Skip to content

codedb pairing: list_dir jail + one-shot context/around/callpath - #593

Open
justrach wants to merge 4 commits into
mainfrom
cursor/codedb-harness-1a17
Open

codedb pairing: list_dir jail + one-shot context/around/callpath#593
justrach wants to merge 4 commits into
mainfrom
cursor/codedb-harness-1a17

Conversation

@justrach

@justrach justrach commented Aug 20, 2026

Copy link
Copy Markdown
Owner

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> · status

Release-line twin (same pairing on release/v0.0.269): #597

Codedb-side default MCP mini + native codedb_explain is being landed on justrach/codedb cursor/oneshot-surface-1a17release/0.2.5842.

Open in Web Open in Cursor 

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
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants