feat(scout): ground Recall:scout in the native code KG (#207)#213
Merged
Conversation
Wire the Phase 2a graph verbs (recall callers/callees/trace) and the Phase 2b memory↔code join (recall code-context) into commands/Recall/scout.md so scout is graph-grounded for every user without the external .codegraph dependency. - Repo map / Key paths / Risks now ground native-first: Recall's own KG -> external codegraph (.codegraph/ + codegraph_explore) -> grep/tree-walk backstop. The graph stays an enhancement, never a hard dependency. - New scout step + report section: "Decisions & learnings tied to the key files" via recall code-context — the memory↔code angle no external code-graph tool can do (one SQLite DB alongside memories, per spec §5). - Sensitive-data boundary kept intact and reinforced: the code-graph verbs are the sanctioned project-scoped interface; never raw SQL on recall.db. - Aligned commands/AGENTS.md and docs/slash-commands.md to the new behavior. Command syntax/output verified against this repo's indexed graph using a scratch RECALL_DB_PATH (callers/callees/trace/code-context, empty + populated states), never the live ~/.agents/Recall/recall.db. Closes #207. Advances #85.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Wires the merged Phase 2a/2b native code-KG surfaces into
commands/Recall/scout.mdso/Recall:scoutis graph-grounded for every user — no external.codegraph/dependency required.Closes #207. Advances #85 (update Recall:scout). Parent epic #196 · Phase 2c · spec
.agents/atlas/plans/2026-06-25-kg-schema-design.md§5.Value
Scout already led with memory and optionally leaned on the external
codegraphMCP tool. That tool isn't installed for most users, so the graph grounding was effectively opt-in. Phase 1+2a+2b shipped a native KG (code_*tables,recall index, and the verbsrecall callers/callees/trace+ the joinrecall code-context) that lives in the same SQLite DB as memories — so scout can now be graph-grounded by default, and can do something the external tool fundamentally can't: tie decisions and learnings to the code they're about.Changes (surgical — per KarpathyGuidelines)
commands/Recall/scout.md:.codegraph/+codegraph_explore) → grep/tree-walk backstop. The graph is an enhancement, never a hard dependency (mirrors the prior codegraph framing).recall code-context <relpath>to surface the memory↔code join (spec §5), the unique angle external codegraph can't reach.No code symbol matched/not indexed→ offerrecall index;Run 'recall init'capability error →recall init).recall.db.Doc alignment (DOX):
commands/AGENTS.mdanddocs/slash-commands.mdupdated to describe native-first grounding and the new report section.Verification
Every command's syntax and output shape was confirmed by reading the merged CLI (
src/commands/code-graph.ts,src/commands/code-context.ts,src/index.ts) and by a dry scout pass against this repo's own indexed graph using a scratchRECALL_DB_PATH(never the live~/.agents/Recall/recall.db):callersprintsNo code symbol matched …;code-contextprints… not indexed … Run \recall index` first.`recall index src(71 files, 807 nodes, 5161 edges) →callers/callees/trace/code-contextall return the expectedpath:line/ call-path / symbol-count shapes.No code touched; doc-only change, no build/lint impact. No regression to the non-KG scout path.