Commit b509e4c
authored
feat: codebase map bootstrap (map_id + routing hints) (#183)
* feat: add map_id and codebase_map to context bootstrap
Agents get a hash-stable routing card on context (CLI/MCP/HTTP) plus MCP
initialize instructions appendix; opt out via --no-codebase-map or compact.
* harden: parity and watch-ordering for codebase map bootstrap
Align skill shard, MCP tool description, and HTTP tests with map_id
fields; prime watch before baking initialize instructions appendix.
* fix: honor opts.instructions in runMcpServer
Only assemble codebase-map appendix when caller did not supply instructions.
* harden: test resolveMcpInitializeInstructions override path
Extract instructions resolver from runMcpServer so CodeRabbit fix has
regression coverage without stdio integration harness.1 parent e4f6087 commit b509e4c
21 files changed
Lines changed: 509 additions & 164 deletions
File tree
- .changeset
- docs
- plans
- src
- application
- cli
- templates/agent-content
- skill
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments