docs(cli): document oneshot usage reports - #59901
Open
r266-tech wants to merge 1 commit into
Open
Conversation
GottZ
reviewed
Jul 27, 2026
GottZ
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
Summary
Two PRs address the same one-shot usage-report feature: #59615 implements the --usage-file JSON reporting path, while #59901 documents that behavior in the English CLI guide and its zh-Hans mirror.
Related pull requests
- #59615 [merged]
related— (+133/-0) — merged reference implementation: adds--usage-file, threads it through both one-shot dispatch paths, writes best-effort JSON reports on success and failure, and adds focused tests. It remains relevant because #59901 documents this merged behavior. - #59901
related— (+9/-3) — merge: documents the implementedhermes -z --usage-file <path>workflow and its report fields in both the English CLI guide and zh-Hans mirror, without changing runtime behavior.
Suggested consolidation
Merge #59901 as the documentation follow-up to the already merged implementation in #59615; the PRs are complementary, so neither should be closed as a duplicate.
Cross-PR triage: Reviewed 2 pull requests and 0 issues in this complex. Each diff was read against this issue; Assessment working set: 12 kB of PR diffs, 2 kB of issue/PR text, 0 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
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
Document
hermes -z --usage-file <path>in the CLI guide and zh-Hans mirror.This flag was added for one-shot automation so batch callers can capture JSON usage data without scraping terminal output. The new docs show the command and summarize the report fields: estimated cost, token counts, model/provider, API call count, and completion/failure status.
Checks
hermes_cli/_parser.pyandhermes_cli/oneshot.py