Repository navigation
context: interface for bounding and continuing the walk (no behavior change) - #2033
Open
Ayingxizhao wants to merge 1 commit into
Open
Ayingxizhao wants to merge 1 commit into
Ayingxizhao wants to merge 1 commit into
Conversation
start_symbol and token_budget map to the existing --from and --page-budget; direction and max_depth are checked but not yet used; expand_context is refused as not implemented. With the new inputs left out, answers are unchanged.
4 of 5 tasks
Ayingxizhao
marked this pull request as ready for review
November 24, 2026 04:45
Ayingxizhao
requested review from
JaredHLZhang,
Whua689,
suyashpaliwal26 and
swapnilpaliwal-sd
as code owners
November 24, 2026 04:45
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.
What changed
The interface for bounding and continuing a
contextwalk. No traversal logic changes: a call that leaves the newinputs out builds the same CLI command as before and gets the same answer.
start_symbol--from(exists)token_budget--page-budget(exists)direction(callers / callees / both)--direction(new)max_depth--depth(new forcontext)expand_context(continuation_id, branch)--continue,--branch(new)mcp/server.py: the new inputs and tool. Bad values are refused as tool errors in the tool's own words, becausethe CLI's refusal names its flag and
plain()drops that clause. The new flags are added toVALUEDand_CLI_OPTIONS.axiomcode-context: parses and checks the new flags. Before, an unknown flag was read as task words.--jsongainsdepth_reached,stop_reason,branches_remaining,continuation_id,unresolved,omitted,all
null(not computed yet), never an empty list that would read as "nothing omitted".axiomcodelauncher andax_web.py: the new flags join the lists of flags that take a value, so--direction callersis not taken for the repository directory.tests/mcp.pyletscontexttake up to six parameters (MAX_PARAMS; every other tool keeps two);tests/surfaces.pylistsexpand_contextas MCP-only, since it iscontext --continueand not a second verb;tests/mcp_docs.pyandtests/front_door.pyexpect the new tool.SKILL.mdandAGENTS.mdsay which inputs work now and which are placeholders.Why the goldens moved, or why they did not
No golden moved. Nothing under
test/*/expectedchanged: this touches the query surface only, not the rules orthe parser.
Evidence
On a synthetic two-function project (
acallsb):contextoutput is byte-identical todev;direction='callers', max_depth=2the answer is unchanged;direction='sideways',max_depth=-1andexpand_context('abc')are refused withisErrorand amessage naming the parameter; an unknown argument is still refused.
Checklist
tests/mcp.py,tests/mcp_docs.pypass;tests/surfaces.pyfails only onREADME.md CLI section: names the flag --fresh, which fails the same way ondevtests/front_door.py: 21 of 21 holdtests/run.py --lang python: 479 of 483 pass; the 4 failures (text-interpolated-phrase,text-when-the-graph-has-no-answer) fail the same way ondev