codedb pairing: list_dir jail + one-shot context/around/callpath - #593
Open
justrach wants to merge 4 commits into
Open
codedb pairing: list_dir jail + one-shot context/around/callpath#593justrach wants to merge 4 commits into
justrach wants to merge 4 commits into
Conversation
codedb is the lean-catalog navigator; pairing it with the harness means folder listing and index health cannot depend on the CLI being installed, and path-bearing queries cannot bypass read_file's jail. list_dir is in-process (gitignore, 10k cap, PathConfine). status reports codedb.snapshot without a spawn. read/outline/deps/file/glob stay inside the cwd. The codedb guard now redirects ls/find/tree even when the binary is missing (ADR 0013).
Graphify spends fewer agent calls because query/explain/path return a neighborhood. codedb already has those primitives (context, callpath); the harness was advertising search→outline→read instead, and blocking callpath. around <name> folds symbol --body + callers into one tool result (ADR 0014).
justrach
marked this pull request as ready for review
August 20, 2026 18:50
CI tsc failed on remote.test.ts: process.off("unhandledRejection") is
not in bun-types' Process overloads. Cast through EventEmitter so the
test still asserts create-rejection is observed, not unhandled.
The catalog was still one codedb tool whose description listed search, outline, read, and the rest — so models kept chaining. Advertise only context / around / callpath / list_dir / status. Hop verbs stay callable; they are not on the menu (ADR 0014).
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.
The advertised codedb menu was still the hop chain. This PR (against main) advertises five one-shots and keeps hop verbs callable.
Advertised:
context <task>·around <name>·callpath A B·list_dir <path>·statusRelease-line twin (same pairing on
release/v0.0.269): #597Codedb-side default MCP mini + native
codedb_explainis being landed onjustrach/codedbcursor/oneshot-surface-1a17→release/0.2.5842.