Add agent packet mode#106
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No New Issues Found | Recommendation: Merge Resolved IssuesThe following previously reported issues were addressed in commits since the last review:
Previous Issues Still ActiveThe following previously reported inline comments remain active on unchanged code:
Files Reviewed (2 files)
Reviewed by kimi-k2.6 · 435,029 tokens |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an “agent packet mode” workflow to Codegraph: a compact first-turn repo orientation response that returns stable handles, plus a packet retrieval API/CLI/MCP tool to fetch bounded evidence by handle (including review-range packets).
Changes:
- Introduces
orientCodegraph()/getCodegraphPacket()APIs and corresponding CLI commands (codegraph orient,codegraph packet get). - Extends MCP with
orientandpacket_gettools and handler wiring. - Adds tests and documentation describing the first-turn orientation → packet follow-up workflow.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/mcp-server.test.ts | Validates MCP tool registration and orient/packet handler behavior |
| tests/cli-regressions.test.ts | Adds CLI regression tests for orient output and packet get behavior |
| tests/cli-command-modules.test.ts | Ensures --help routing covers orient/packet commands |
| tests/agent-orient.test.ts | New tests for orientation API response shape/handles |
| tests/agent-packet.test.ts | New tests for packet retrieval (file + review) |
| src/mcp/tools.ts | Adds MCP tool schemas for orient and packet_get |
| src/mcp/server.ts | Adds MCP handler methods + Zod schemas for orient/packet_get |
| src/index.ts | Exports new agent orientation/packet APIs and types |
| src/cli/orient.ts | Implements codegraph orient command and pretty formatting |
| src/cli/packet.ts | Implements codegraph packet get command and JSON/pretty output |
| src/cli/options.ts | Registers --budget as a value option |
| src/cli/help.ts | Adds orient/packet help text and top-level CLI help entries |
| src/cli.ts | Wires new commands into CLI dispatch and include-roots handling |
| src/agent/orient.ts | Implements orientation response (tree/modules/health/handles) |
| src/agent/packet.ts | Implements packet retrieval wrapper around explain/review packets |
| README.md | Documents the orient → packet-get first-turn workflow |
| docs/library-api.md | Documents new library APIs and MCP handler usage |
| docs/cli.md | Documents new CLI commands and updates command overview |
| docs/agent-workflows.md | Adds orientation packet workflow guidance |
| codegraph-skill/codegraph/SKILL.md | Updates skill guidance to recommend orient/packet workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
orientandpacket getCLI commands plus MCPorientandpacket_gettoolsVerification