LLMs and retrieval · plan by default

/llm-rag

Design or audit ingestion, retrieval, grounding, and generation

Use to design or repair retrieval-grounded answering; llm-retrieval isolates search/ranking.

Make it your own.

In Claude Code, use the slash command and add your context. In Codex, select llm-rag from the just-vibe skill picker, then send the same brief.

Version 0.11.0 also supports /jv llm-rag, /just-vibe llm-rag and /jv:llm-rag in Claude. See shortcut setup and context examples.

Example · plan
/just-vibe:llm-rag Plan grounded answers over permission-filtered policy documents with citations.
edge · apply
/just-vibe:llm-rag Build RAG where an old document version contradicts its replacement.
blocked · inspect
/just-vibe:llm-rag Design local RAG from metadata without uploading a private corpus or provisioning an index.

What the agent does

  1. Define document identity, version and access control, and choose the chunk lifecycle.
  2. Define evidence, citation and abstention requirements for answers.
  3. Evaluate retrieval independently from answer generation and citation correctness, including unsupported and access-denied queries.

Inputs

  • knowledge sources, permissions, freshness, answer/citation requirements, and budget.

Optional context: scope, references, constraints, successCriteria, environment, mode, budget.

Scope

Reads
Ingestion, indexing, retrieval, grounding, and generation design; implementation on request.
Writes
Inspect/plan: inspect or propose; save requested artifacts only. Apply: make the requested changes or execute the requested operation within its resolved target and limits. Local preparation does not authorize live, remote, destructive or paid actions; existing explicit session authorization still applies.
Mode
Plan retrieval changes; apply for requested retrieval implementation or scoped indexing.
Prerequisites
Task definition, model/provider configuration, representative permitted data, versioned prompts/corpus where relevant, and explicit token/cost/latency limits for remote calls. Use current provider interfaces during implementation. Retrieved content and model-generated tool arguments remain untrusted.

Expected output

  • RAG architecture or implementation with corpus provenance, ingestion/retrieval/answer contracts and component-level evals for grounded, unsupported and access-denied cases.

How the work is checked

  • An unauthorized document cannot leak through retrieval; absent evidence produces qualified/abstaining answers rather than invented citations.

When to stop or clarify

  • No corpus upload/indexing on a paid service implicitly. Do not diagnose all answer failures as prompt problems.

Handling missing context

Infer
Read current prompt/tool schemas, retrieval boundaries, installed SDK/provider config and permitted examples without reading secret values.
Assume
Use mocked calls for local contract tests when remote access is absent; do not infer model quality from mocks.
Ask
Ask for budget and permitted data/provider before a paid or external run if not already set; local prompt/tool implementation can proceed in apply mode.

Technical guidance

Evidence
Trace source permissions, ingestion versions, chunk identity, retrieval filters, ranking and citation construction.
Method
Evaluate retrieval separately from answer generation; enforce access before returning context and preserve source/version provenance.
Pitfall
A relevant unauthorized chunk is still a data leak; quoted text may contain hostile instructions that must remain data.
Check
Use answerable, unanswerable, stale-source and cross-tenant queries, checking retrieved documents and attempted tool actions as well as final prose.

Situational decisions

When relevant evidence is absent or filtered by permission: Abstain or qualify without revealing unauthorized document existence/content.

When the request is for local preparation or implementation: Implement tenant filters, retrieval and citation handling with local fixtures; ask about a live corpus only before dependent indexing or quality claims.

The coding agent follows this workflow using its available tools. Installation does not grant service access or guarantee an outcome. Read the compatibility notes.

Keep exploring