Repository navigation
docs(claude): add working notes pointer and code discovery policy - #33
Merged
Merged
Conversation
Working Notes points at ~/.claude/agent-workflow-notes.md so detailed practices stay out of permanent context. Code Discovery bounds the graph-first framing asserted by the codebase-memory-mcp tool descriptions and its session/subagent hooks, which reads as unconditional and is wrong for non-code artifacts, aggregate counts, and git history. The freshness rule is deliberately behavioral rather than tool-directed: no tool in codebase-memory-mcp 0.9.0 reports index staleness. index_status reads live git rather than indexed state, so a stale index still reports ready on the current branch, and Branch.head_sha freezes at creation-time HEAD. Verified locally: an index 14 days old and on a different branch reported clean. Upstream DeusData/codebase-memory-mcp#1296, #1213, #1339; the fix is #786, open, milestone 0.9.2-rc. Revisit this section when that lands. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Summary
Adds two sections to the global Claude Code instructions: a pointer to
~/.claude/agent-workflow-notes.mdfor practices that don't need to sit in permanent context, and a## Code Discoverypolicy for routing between thecodebase-memory-mcpknowledge graph and plain text search.Changes
## Code Discoverydeliberately does not restate graph-first routing. That is already asserted by the MCP tool descriptions and by the server's SessionStart and SubagentStart hooks, so a fourth copy would be redundant. The section carries only what no other layer does: a bound on those hooks' unconditional "ALWAYS ... for ANY code exploration" framing, which is wrong for non-code artifacts, aggregate counts, and git history.index_statusreads live git rather than indexed state, so a stale index still reportsreadyon the current branch. Verified locally against an index 14 days old and sitting on a different branch than the worktree — it reported clean.CLAUDE.mdso it cannot rot silently: upstreamDeusData/codebase-memory-mcp#786(open, milestone 0.9.2-rc) would expose real freshness metadata. When it lands, the second bullet's justification largely collapses.