Repository navigation
improvement(cli): print what apply rewrote, drop the starter's duplicate primer, compact display findings - #10754
Merged
Merged
Conversation
…mer, compact display findings
- workflows/workspaces source apply and create list the lines the reprint changed in the files
they sent as `rewrote` (path -> context-free hunks, capped at 60 lines; {} when nothing
changed), so an agent edits on without rereading workflow.ts; primer and help say so
- a create starter's JSON result names the guide instead of embedding its primer (agents read
.sim/AGENTS.md anyway, Mothership holds the primer as a skill); --verbose keeps it
- display findings print only a frame's marked lines, and a hint once per code
…, color display diffs; primer policy in printTreeResult
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
Author
|
Greptile is unavailable right now, so this PR is gated on green CI, a cubic review of the HEAD commit, and zero unresolved threads. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 13 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ross a command's prints
This branch was previously deployed
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
workflows source apply/createandworkspaces source applylist the lines the reprint changed in the files they sent asrewrote(path -> zero-context hunks, at most 60 lines per command with a "reread " line past it,{}when nothing changed;.sim/records excluded). Agents no longer need to rereadworkflow.tsafter an apply. The primer and help now say so instead of "reread it before editing". The field is additive and no existing field changedcreatestarter's JSON result names the guide (.sim/AGENTS.md) instead of embedding its primer, the same waygetworks. Coding agents read the guide anyway and Mothership holds the primer as a skill, so the primer was being read twice.--verbosekeeps the field&& cat ./new/.sim/AGENTS.md(cli surface only)Measurements (CLI with mock server)
createstarter, JSON stdout: 5260 -> 590 bytesrewrote, which replaces a whole-file reread (3 KB here, 11-13 KB on the larger benchmark workflows); apply with no reprint: +17 bytes ("rewrote": {})A/B (opus, code arm only, staging, 7 tasks x n=3, before = staging CLI, after = this branch)
Type of Change
Testing
rewrote, the dry run, the cap,.sim/records, the starter primer and display findings. Each failed on the pre-change codetsc --noEmit, biome,check:cli-docs(regenerated)Checklist
test-auditauthoring gate)