Repository navigation
feat(cli): Ask agents to report CLI friction from error output - #2134
Merged
Merged
Conversation
When a detected AI agent hits an error that is not a user error, the error text now ends with a line pointing it at sentry cli feedback. People never see it, and it is left out for user errors, in the sentry-mcp bundle (which has no cli feedback command), and while telemetry is off (cli feedback refuses to send then). Co-Authored-By: bete <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
…ck-hint Co-Authored-By: bete <[email protected]>
The hint was limited to errors that look like CLI bugs. Agent friction mostly shows up as user errors instead: a wrong flag, an unknown command, or an argument that takes several tries to get right. Show the hint on every error an agent sees, including argument and unknown-command errors, and ask what got in the way once the agent is done. The skill guidance now covers commands that took several tries too. Co-Authored-By: bete <[email protected]>
betegon
approved these changes
Nov 10, 2026
7 tasks done
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.
Follow-up to #2133. That PR tells agents in the skill to report friction. This one also asks in the CLI's error output, which is where an agent finds out that a flag, an argument, or the help misled it, often only after several tries.
When
detectAgent()finds an agent, every error it sees ends with one more line. That covers command failures (user errors included), arguments that don't parse, and unknown commands:"Once you're done" is deliberate. We want one report after the agent gets there, along the lines of "it took me 10 tries because X and Y", not a report on every failure. The skill guidance now also lists "took several tries to get a command right" as a reason to send feedback.
The line is left out when:
helpandinituse.sentry-mcpbundle, which has nocli feedbackcommand.cli feedbackrefuses to send then.One open question: the SDK (
sdk.run()) builds the same app under thesentryidentity. So when an SDK host runs inside a detected agent,SentryErrormessages will include the line. If we'd rather keep it out of SDK errors, this needs a flag from the binary entry point.via @betegon.
--
View Session in Sentry