Feature request: AI agent reporter mode optimized for token-efficient output #3156
Replies: 1 comment
-
|
I'm okay with this in principle, but someone has to be in charge of this project in a rigorous, data-driven manner. Whoever is interested should start off by writing a design document with:
See https://nexte.st/docs/design/architecture/recording-runs/ for an example of the level of rigor the design document should aspire to reach. (I wouldn't focus too much on organizational or grammatical correctness -- I'm more interested in things like the principles, data, etc) To address your points:
This can be tested via
This is nextest's default behavior.
Nextest already outputs this kind of summary line.
This is already the case with things like Claude Code which don't spawn a tty. I think some coding harnesses do spawn a tty, in which case I feel like I'd put this on them and not on nextest. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
Reduce token usage when executing by an agent.
Proposal
Add a --reporter agent mode with the following behavior:
Other test runner such as vitest use https://github.com/unjs/std-env#agent-detection to automatically enable agent reporter mode, nextest could do something similar.
Alternatives
No response
Additional context
Vitest implemented this recently (jest too): vitest.dev/guide/reporters.html#agent-reporter.
Beta Was this translation helpful? Give feedback.
All reactions