{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "crabbuild-compass--focused-context-for-coding-assistants",
 "repo": "crabbuild/compass",
 "repo_url": "https://github.com/crabbuild/compass",
 "repo_slug": "crabbuild-compass",
 "title": "Give Claude Code or Codex focused repo context",
 "page_title": "How to give Claude Code or Codex focused repo context with Compass",
 "summary": "Install Compass into an assistant and let it run compact graph queries instead of broad searches.",
 "who": "A developer using Claude Code or Codex on a large repository who wants the assistant to find relevant code with less searching and smaller context.",
 "problem": "Assistants that search broadly consume large context and can miss the implementation path for a question.",
 "outcome": "An assistant that starts from the bounded Agent Orientation and runs focused queries that return graph-backed locations.",
 "steps": [
  "`cd your-project`",
  "`compass init`",
  "`compass install --platform codex` or `compass install --platform claude` (inferred, check the README)",
  "`compass watch` in a second terminal to keep the graph current while you work.",
  "`compass query \"where is authentication enforced?\"` to test a focused question before giving it to the assistant."
 ],
 "agent_prompt": "In the repository at <project path>, confirm that compass-out/ exists, then run `compass query \"<your question>\"` with the crabbuild/compass CLI. Expected output: a concise map of seed nodes, edges, and source locations for the question. Verify that the returned source locations exist in the repository before you edit any file.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Keep `compass watch` running while the assistant works, or the graph can lag behind your latest edits.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A terminal on macOS, Linux, or Windows",
  "A local project folder or Git repository to analyze",
  "Rust 1.97.1 or newer only if you build from source"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/crabbuild-compass/focused-context-for-coding-assistants/",
 "md": "https://dedupedai.com/use-cases/crabbuild-compass/focused-context-for-coding-assistants/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/crabbuild-compass--focused-context-for-coding-assistants.json",
 "api_version": "v1"
}
