Improve CLI workflows for coding agents#323
Open
joesobo wants to merge 55 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 3b21ba4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
joesobo
marked this pull request as ready for review
July 24, 2026 04:23
joesobo
marked this pull request as draft
July 24, 2026 04:38
joesobo
marked this pull request as ready for review
July 24, 2026 18:08
This reverts commit e9d55db.
This reverts commit 356bce1.
This reverts commit 53743a9.
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.
Goal
Make the headless CodeGraphy CLI plus Agent Skill a useful, measurable coding-agent interface: structured JSON, bounded evidence, safe workspace control, truthful relationships, and lower model-token use on real implementation work.
Model tokens per correct task are primary. Correctness is a gate. Calls, tool output, elapsed time, fallback navigation, and indexing cost are diagnostics.
Final selected changes
Agent exploration
search <pattern>merges live source locations, cached AST Symbols, and indexed Nodes. Sparse natural phrases use deterministic all-term File ranking.map <task>builds a bounded personalized File map from independent live terms, selected declarations, source-area diversity, personalized PageRank, and cached typed Relationships.query <node>inspects one exact File or Symbol with bounded declarations and incoming/outgoing Relationships.dependencies,dependents, andpathpreserve typed direction and bounded JSON.Structural graph correctness
reexportRelationships.Workspace and automation contracts
settings,settings get/set/unsetsafely mutate validated workspace settings and refuse to overwrite malformed persisted JSON.indexedFiles,totalFound,limitReached, and the exactmaxFilesrecovery command.plugins listreturns structured registry/workspace state.--; conceptual Query help and JSON/error contracts are documented.Generalized Agent Skill
The shipped skill explains the Relationship Graph, lifecycle, command semantics, identity, freshness, shaping, pagination, JSON output, and limitations. It does not prescribe a command sequence, call budget, search wording, stopping rule, or conditions under which CodeGraphy is permitted. Agents choose their own strategy.
Benchmark protocol
openai-codex/gpt-5.6-sol, low thinking.The benchmark panel contains a harder Plugin-runtime disposal task and a viable relationship task with independent extension-host and Webview Plugin rejection paths. Untouched parents are red, historical solutions are green, and hidden graders assert behavior rather than historical wording. A direct previous-CLI-versus-candidate A/B follows the required raw comparison when general CLI adoption would otherwise confound attribution.
Experiment scoreboard
Percentages compare the treatment with its fresh paired raw/control condition. “Correct tokens” means mean cumulative model tokens over correct runs only.
triage <text>on lexical taskimpact <node>radiusOther measured rejections recorded in ADRs:
Seeded weighted Leiden itself was fast (45.2 ms, modularity 0.864 on 2,729 Files) but improved zero of six localization ranks and degraded two key targets, so no dependency or ranking path was added.
Durable decisions
Validation
Final source validation before the latest documentation-only commit:
CI run
30144140076passed every job on the selected head, including Playwright and native/VSIX targets. Local mutation and Playwright were intentionally excluded from this experiment as requested.Remaining queue disposition
The current queue is closed rather than padded with duplicate or weakened paths:
queryplusdependencies/dependents;ADR 0013 records the concrete blockers. These can be reopened only for a new architectural requirement or a viable historical task that naturally exercises the missing evidence.
Artifacts
/tmp/codegraphy-structural-benchmark//tmp/codegraphy-feature-benchmark//tmp/codegraphy-feature-benchmark-v2//tmp/codegraphy-token-research//tmp/codegraphy-agent-benchmark//tmp/codegraphy-relationship-benchmark//tmp/codegraphy-relationship-benchmark-v2/