Skip to content

docs: reposition docs around coding agents#1009

Merged
ryoppippi merged 18 commits into
mainfrom
codex/docs-multi-agent-refresh
May 17, 2026
Merged

docs: reposition docs around coding agents#1009
ryoppippi merged 18 commits into
mainfrom
codex/docs-multi-agent-refresh

Conversation

@ryoppippi
Copy link
Copy Markdown
Owner

@ryoppippi ryoppippi commented May 16, 2026

Refreshes the docs so ccusage is presented as a coding-agent usage analyzer rather than a Claude Code-only tool. The home page, guide introduction, report guides, configuration pages, and agent pages now prefer the unified `ccusage ` command shape, with Claude-specific features labelled explicitly.\n\nAdds a new Amp guide so every supported non-Claude agent has a docs entry point.\n\nValidation run locally:\n- `pnpm run format`\n- `pnpm typecheck`\n- `pnpm run test`\n- `pnpm --filter docs build`


Summary by cubic

Repositions the docs and CLI around coding (agent) CLI usage with all‑source views as the default and a consistent ccusage <source> <report> flow. Updates copy, titles, examples, runtime guidance, and infra for a clearer multi‑agent experience, plus small review polish.

  • New Features

    • Docs IA: new “All Sources (Default)” page; sidebar “Usage Views”; Claude, Codex, OpenCode, Amp, and pi framed as data sources; Amp guide added; Codex pages merged; refreshed home/meta/screenshots; clarified weekly Agent column appears only in unified all‑source reports; fixed monthly date‑range label; added text language tags to samples.
    • Copy and CLI: report title is “Coding (Agent) CLI Usage Report - …”; package/README descriptions updated; Bun 1.3+ recommended (Node.js 22+ supported); docs explain bunx Node shebang fallback and Bun PATH auto‑run; removed Deno examples; May 2026 examples and models refreshed.
    • Infra: Cloudflare preview URLs enabled; wrangler updated to 4.91.0.
  • Migration

    • Prefer ccusage <source> <report>; per‑agent packages and ccusage-* aliases are no longer presented.
    • Unified all‑source views are the default; --all is accepted but optional.
    • Config keys are documented under source namespaces; legacy keys still work.

Written for commit 79d26b0. Summary will update on new commits. Review in cubic

Summary by CodeRabbit

  • Documentation
    • Expanded docs for multiple coding agents and unified reports (All/Daily/Weekly/Monthly/Session); added guides for Amp, Claude, Codex, OpenCode, and pi-agent; updated examples, env var guidance, config wording, JSON output samples, and removed the old custom-paths guide.
  • Site
    • Updated site title/description and Open Graph title, reorganized sidebar groups, and added redirects for legacy guide paths.
  • Tests
    • Updated CLI snapshot headers to reflect revised report title/format.

Review Change Stack

Refresh the documentation entry points so ccusage is presented as a multi-agent usage analyzer instead of a Claude Code-only tool.

Update the home page, guide introduction, sidebar labels, report guides, configuration pages, and agent pages to prefer the unified ccusage <agent> command shape. Add an Amp guide so every supported non-Claude agent has an explicit docs entry point.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 16, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 56e5c307-064b-4fb8-969c-989ea155b74c

📥 Commits

Reviewing files that changed from the base of the PR and between a64c8c0 and 79d26b0.

📒 Files selected for processing (3)
  • docs/guide/monthly-reports.md
  • docs/guide/statusline.md
  • docs/guide/weekly-reports.md
✅ Files skipped from review due to trivial changes (1)
  • docs/guide/weekly-reports.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/guide/monthly-reports.md

📝 Walkthrough

Walkthrough

Rebrand site and docs from Claude-specific to a unified multi-agent ccusage CLI, add an Amp guide and All-Reports page, standardize per-agent command examples and environment-variable/docs, reorganize VitePress sidebar and redirects, and update CLI report title and snapshots.

Changes

Documentation rebranding and multi-agent support

Layer / File(s) Summary
Site config, metadata, and preview
docs/.vitepress/config.ts, docs/wrangler.jsonc, docs/package.json
Update site description and OG title to multi-agent wording, reorganize guide sidebar into Usage Views and Data Sources, add Cloudflare redirects, enable Wrangler preview URLs, and update docs package description.
Homepage & guide index
docs/index.md, docs/guide/index.md
Rewrite hero and features to present ccusage as a local multi-agent CLI; add Report Shape guidance and Amp/pi defaults.
New Amp guide & data-source pages
docs/guide/amp/index.md, docs/guide/claude/index.md, docs/guide/codex/*, docs/guide/opencode/index.md, docs/guide/pi/index.md, docs/guide/all-reports.md
Add Amp (beta) docs; add/rewire per-source guides to ccusage <source> forms; add All Sources guide explaining unified vs focused views and supported namespaces.
Reports and examples
docs/guide/daily-reports.md, docs/guide/weekly-reports.md, docs/guide/monthly-reports.md, docs/guide/session-reports.md, docs/guide/blocks-reports.md, docs/guide/json-output.md, docs/guide/statusline.md
Generalize report docs for multi-agent usage (Agent/Models columns), refresh sample outputs, JSON payloads, model identifiers, and date ranges.
Configuration, env vars, installation, config files
docs/guide/configuration.md, docs/guide/environment-variables.md, docs/guide/config-files.md, docs/guide/directory-detection.md, docs/guide/installation.md, docs/guide/getting-started.md
Replace “Directory Detection” with Data source directories, add Agent Data Directories/env var examples (CODEX_HOME, OPENCODE_DATA_DIR, AMP_DATA_DIR, PI_AGENT_DIR), change config precedence to source-specific namespacing, and update installation/runtime examples (bunx/pnpm/npx, Node/Bun versions).
CLI title, README, package metadata, tests & snapshots
apps/ccusage/src/commands/all.ts, apps/ccusage/test/*, apps/ccusage/README.md, apps/ccusage/package.json
Change generated report title and command descriptions to “Coding (Agent) CLI Usage Report”, update README/package description to multi-agent wording, and update CLI test expectations & snapshots to match new header text.
Misc examples & date/model updates
docs/guide/cost-modes.md, docs/guide/json-output.md, many guide pages
Refresh many example dates, model identifiers, JSON samples, and related links across guides to current sample values.

Sequence Diagram(s)

No sequence diagrams generated.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 I hopped through docs with tiny feet,
New agents gathered for a treat,
Amp and pi now learn the play,
Headers, guides, and demos sway,
Rabbity cheers — the docs are neat!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'docs: reposition docs around coding agents' accurately summarizes the main objective of reorganizing documentation to present ccusage as a multi-agent coding CLI analyzer, which is the primary focus of the substantial changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/docs-multi-agent-refresh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 16, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
ccusage-guide 79d26b0 May 17 2026, 01:16 AM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 16, 2026

Open in StackBlitz

@ccusage/amp

npx https://pkg.pr.new/ryoppippi/ccusage/@ccusage/amp@1009

ccusage

npx https://pkg.pr.new/ryoppippi/ccusage@1009

@ccusage/codex

npx https://pkg.pr.new/ryoppippi/ccusage/@ccusage/codex@1009

@ccusage/opencode

npx https://pkg.pr.new/ryoppippi/ccusage/@ccusage/opencode@1009

@ccusage/pi

npx https://pkg.pr.new/ryoppippi/ccusage/@ccusage/pi@1009

commit: 79d26b0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 16, 2026

ccusage performance comparison

This compares the PR build against the base branch build on the same CI runner.

Committed fixture performance

Committed small fixtures for stable PR-to-PR feedback and explicit Claude/Codex command coverage.

Fixtures: Claude apps/ccusage/test/fixtures/claude (0.00 MiB, 2 files), Codex apps/ccusage/test/fixtures/codex (0.00 MiB, 1 files)
Runtime: package ccusage bin from apps/ccusage/package.json through bun -b, --offline --json, measured by hyperfine with 2 warmups and 7 runs.

Command Input Base median PR median PR vs base Base throughput PR throughput
claude daily --offline --json 0.00 MiB 54.2ms 53.5ms 1.01x 0.03 MiB/s 0.03 MiB/s
claude session --offline --json 0.00 MiB 53.1ms 53.5ms 0.99x 0.03 MiB/s 0.03 MiB/s
codex daily --offline --json 0.00 MiB 53.2ms 53.5ms 0.99x 0.02 MiB/s 0.02 MiB/s
codex session --offline --json 0.00 MiB 52.1ms 53.2ms 0.98x 0.02 MiB/s 0.02 MiB/s

Large real-world-shaped fixture performance

Generated fixtures shaped from aggregate local log statistics: thousands of JSONL files, many small sessions, and a long tail of larger sessions. No real prompts, paths, or outputs are stored in the fixtures.

Fixtures: Claude /home/runner/work/_temp/ccusage-large-fixture (1.01 GiB, 2,597 files), Codex /home/runner/work/_temp/ccusage-large-codex-fixture (1.01 GiB, 2,597 files)
Runtime: package ccusage bin from apps/ccusage/package.json through bun -b, --offline --json, measured by hyperfine with 0 warmups and 1 runs.

Command Input Base median PR median PR vs base Base throughput PR throughput
claude --offline --json 1.01 GiB 1.338s 1.349s 0.99x 770.55 MiB/s 764.41 MiB/s
codex --offline --json 1.01 GiB 1.460s 1.437s 1.02x 706.14 MiB/s 717.27 MiB/s

Package size

Package artifact Base PR Delta Ratio
packed ccusage-*.tgz 68.01 KiB 67.74 KiB -0.27 KiB 1.00x

Lower medians and smaller packed package sizes are better. CI runner noise still applies; use same-run ratios as directional PR feedback, not release guarantees.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/guide/weekly-reports.md (1)

11-12: 💤 Low value

Consider adding examples for other agents.

The daily reports page shows examples for codex, opencode, amp, and pi agents, but the weekly reports only show claude and opencode. For consistency, consider adding the other agents if they support weekly reports.

📝 Suggested addition
 ccusage weekly
 ccusage claude weekly
+ccusage codex weekly
 ccusage opencode weekly
+ccusage amp weekly
+ccusage pi weekly
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/guide/weekly-reports.md` around lines 11 - 12, The weekly reports
section currently only lists "claude" and "opencode" examples (lines showing
"ccusage claude weekly" and "ccusage opencode weekly"); add matching weekly
examples for the other agents shown on the daily page—specifically "codex",
"amp", and "pi"—so the weekly docs mirror the daily examples; update the block
in docs/guide/weekly-reports.md to include "ccusage codex weekly", "ccusage amp
weekly", and "ccusage pi weekly" alongside the existing lines.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/guide/amp/index.md`:
- Around line 45-51: The fenced code block containing the directory tree
starting with "~/.local/share/amp/" is missing a language specifier and triggers
markdownlint MD040; update the opening fence from ``` to ```text to silence the
warning (i.e., add "text" after the backticks) and, if desired, replace the
incorrect "<!-- eslint-skip -->" comment with a markdownlint directive (e.g.
"<!-- markdownlint-disable MD040 -->") or remove it so the lint state is
correct.

---

Nitpick comments:
In `@docs/guide/weekly-reports.md`:
- Around line 11-12: The weekly reports section currently only lists "claude"
and "opencode" examples (lines showing "ccusage claude weekly" and "ccusage
opencode weekly"); add matching weekly examples for the other agents shown on
the daily page—specifically "codex", "amp", and "pi"—so the weekly docs mirror
the daily examples; update the block in docs/guide/weekly-reports.md to include
"ccusage codex weekly", "ccusage amp weekly", and "ccusage pi weekly" alongside
the existing lines.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3ab673c4-e7d2-4937-ac08-61c78488a572

📥 Commits

Reviewing files that changed from the base of the PR and between 5280515 and 7650404.

📒 Files selected for processing (15)
  • docs/.vitepress/config.ts
  • docs/guide/amp/index.md
  • docs/guide/configuration.md
  • docs/guide/daily-reports.md
  • docs/guide/directory-detection.md
  • docs/guide/environment-variables.md
  • docs/guide/getting-started.md
  • docs/guide/index.md
  • docs/guide/installation.md
  • docs/guide/monthly-reports.md
  • docs/guide/opencode/index.md
  • docs/guide/pi/index.md
  • docs/guide/session-reports.md
  • docs/guide/weekly-reports.md
  • docs/index.md

Comment thread docs/guide/amp/index.md Outdated
Stop presenting the old per-agent packages and ccusage-* aliases as documentation entry points.

The docs now show only the unified ccusage <agent> <report> command surface for Codex, OpenCode, Amp, and pi-agent reports.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
docs/guide/amp/index.md (1)

29-35: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a language to the directory tree code fence.

This fence still triggers markdownlint MD040 because it has no language identifier.

Suggested fix
-<!-- eslint-skip -->
-
-```
+```text
 ~/.local/share/amp/
 └── threads/
     └── **/*.json
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/guide/amp/index.md` around lines 29 - 35, The markdown code fence
displaying the directory tree is missing a language identifier and triggers
MD040; update the fenced block (the triple-backtick block that contains
"~/.local/share/amp/" and the threads tree) to include a language tag such as
"text" (i.e., change ``` to ```text) so markdownlint no longer flags it and the
tree is treated as plain text.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/guide/pi/index.md`:
- Around line 12-18: Make the guidance consistent: either relax the top line
("Recommended - always include `@latest`") or update the alternative runner
examples to include `@latest`. Concretely, change the alternative commands shown
(the lines with "pnpm dlx ccusage pi --help" and "pnpx ccusage pi --help") to
include "`@latest`" (e.g., "pnpm dlx ccusage@latest pi --help" and "pnpx
ccusage@latest pi --help"), or alternatively reword the header to say that using
`@latest` is recommended but optional; update the corresponding examples to match
that wording.

---

Duplicate comments:
In `@docs/guide/amp/index.md`:
- Around line 29-35: The markdown code fence displaying the directory tree is
missing a language identifier and triggers MD040; update the fenced block (the
triple-backtick block that contains "~/.local/share/amp/" and the threads tree)
to include a language tag such as "text" (i.e., change ``` to ```text) so
markdownlint no longer flags it and the tree is treated as plain text.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96feff34-deab-4a01-b11f-54db3cd1fca9

📥 Commits

Reviewing files that changed from the base of the PR and between 7650404 and 5e55f18.

📒 Files selected for processing (8)
  • docs/guide/amp/index.md
  • docs/guide/codex/daily.md
  • docs/guide/codex/index.md
  • docs/guide/codex/monthly.md
  • docs/guide/codex/session.md
  • docs/guide/index.md
  • docs/guide/opencode/index.md
  • docs/guide/pi/index.md
✅ Files skipped from review due to trivial changes (3)
  • docs/guide/codex/monthly.md
  • docs/guide/opencode/index.md
  • docs/guide/codex/index.md

Comment thread docs/guide/pi/index.md Outdated
ryoppippi added 5 commits May 16, 2026 22:48
Replace the main report screenshot with the refreshed all-agent daily report.

The updated image reflects the current multi-agent docs positioning and shows the unified all-agent output.
Replace the Codex daily screenshot with the current unified command output and add a separate Codex monthly screenshot.

This keeps the Codex overview and monthly guide aligned with the current ccusage codex command surface.
Reword agent-focused docs so Codex, OpenCode, Amp, and pi-agent are presented as ccusage data sources rather than standalone command products.

The sidebar, overview pages, and report pages now emphasise all-agent reports first and focused source views only when narrowing the same report shape.
Update visible documentation language from coding agent usage toward coding (agent) CLI usage so ccusage is described around the local CLI data it analyzes. Also update Wrangler to 4.91.0, the newest version allowed by the repository minimum release age policy, so Cloudflare Workers Builds uses a recent preview URL implementation.
@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 16, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedwrangler@​4.91.0981009296100

View full report

ryoppippi added 10 commits May 16, 2026 23:21
Align remaining user-facing copy, README examples, CLI report titles, and output snapshots around coding (agent) CLI terminology. Keep internal agent identifiers and table columns where they still describe the source dimension.
Reorganize the VitePress sidebar so all-source usage is the default entry point, keep Claude Code, Codex, OpenCode, Amp, and pi-agent as peer data sources, and move Claude-specific Blocks and Statusline into their own feature section. Merge the Codex daily/monthly/session pages back into the Codex data source page and explain the ccusage name expansion from Claude Code usage to general coding CLI usage.
Document Bun as the recommended command runner, update the published Node.js minimum to 22, refresh Bun requirements to 1.3+, and keep compatibility package README examples aligned with bunx-first usage. Also clarify that the cc name maps to both Claude Code and Codex CLI usage.
Update the main ccusage package and repository README copy to describe coding (agent) CLI usage analysis instead of a Claude-only tool.

Mark the agent-specific npm packages as compatibility wrappers and make their README examples prefer the unified ccusage command through bunx.
Remove general Deno examples and keep the recommended runtime path focused on bunx, pnpm dlx, and npx.

Fold Claude Code custom paths and directory detection into the Claude data source page, redirect the old guide URLs, and remove direct Blocks/Statusline links from shared usage view pages.
Update report examples to use recent May 2026 date ranges across the unified docs and package READMEs.

Refresh model examples to use gpt-5.5 for Codex, Claude Opus 4.1, and Claude Sonnet 4.5. Keep full JSON model IDs aligned with current Claude API snapshot names.

Also adjust Codex pricing text so gpt-5.5 is described as resolving through LiteLLM pricing rather than mapping directly to an older canonical model.
…t-refresh

# Conflicts:
#	apps/amp/package.json
#	apps/ccusage/src/commands/all.ts
#	apps/ccusage/test/cli-output.test.ts
#	apps/ccusage/test/snapshots/cli-output/all-agent-daily-table.txt
#	apps/codex/README.md
#	apps/codex/package.json
#	apps/opencode/README.md
#	apps/opencode/package.json
#	apps/pi/README.md
#	apps/pi/package.json
#	docs/guide/codex/daily.md
#	docs/guide/codex/index.md
#	docs/guide/codex/monthly.md
#	docs/guide/codex/session.md
#	docs/guide/opencode/index.md
#	docs/guide/pi/index.md
#	pnpm-lock.yaml
Update configuration docs after the adapter foundation merge so the documented merge order matches the generated JSON schema.

The runtime still accepts legacy command keys for compatibility, but the schema exposes source namespace sections such as codex.commands.daily and opencode.commands.weekly as the documented path.
Document the Bun PATH auto-run behavior in Getting Started so users see why bunx remains the recommended command runner. Replace remaining Bun examples that used bunx ccusage@latest with bunx ccusage while keeping npx ccusage@latest examples for npx freshness. Also fix the Amp data-directory code fence language so the docs lint cleanly.
Clarify that package runners can initially start the published CLI under Node.js because the shebang targets Node.js, even when users invoke bunx. The runtime note now explains why ccusage checks for bun in PATH and re-runs the bundled Bun entrypoint for better warm runtime performance.
@ryoppippi
Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/guide/config-files.md (1)

358-361: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove duplicate "Claude Code" entry in Next Steps.

Lines 358 and 361 both link to /guide/claude/ with slightly different descriptions ("Claude Code data discovery" vs "Claude Code data paths and source-specific options"). This appears to be an accidental duplication.

📝 Proposed fix to remove duplicate
 - [Command-Line Options](/guide/cli-options) - All available CLI arguments
 - [Environment Variables](/guide/environment-variables) - System configuration
 - [Configuration Files](/guide/config-files) - Persistent settings
-- [Claude Code](/guide/claude/) - Claude Code data discovery
+- [Claude Code](/guide/claude/) - Claude Code data paths and source-specific options
 - [Cost Modes](/guide/cost-modes) - Understanding calculation modes
-- [Claude Code](/guide/claude/) - Claude Code data paths and source-specific options
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/guide/config-files.md` around lines 358 - 361, Two Next Steps entries
both link to "/guide/claude/" (one labeled "Claude Code data discovery" and the
other "Claude Code data paths and source-specific options"); remove the
duplicate by keeping the most accurate/complete entry and deleting the other so
the Next Steps list contains a single "/guide/claude/" link. Update whichever
element (the list item string referring to "/guide/claude/") in the
docs/guide/config-files.md Next Steps section—remove the redundant link text and
its list item.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/guide/monthly-reports.md`:
- Around line 62-64: The heading "Show usage from 2026" and the example command
"ccusage monthly --since 20260101 --until 20260531" are inconsistent with the
prior example; fix by making the heading match the command's date-range (e.g.,
change the heading to "Show usage from Jan–May 2026" or otherwise adjust the
command's --since/--until to reflect the intended year), ensuring the heading
text and the "ccusage monthly --since ... --until ..." example are aligned.

In `@docs/guide/statusline.md`:
- Around line 111-113: The fenced sample outputs in statusline.md (the three
code blocks showing Opus status lines) are missing language identifiers; update
each triple-backtick fence that contains the sample outputs (the blocks starting
with "🤖 Opus 4.1 | ...") to use ```text so they pass MD040 and follow docs
markdown linting conventions, and ensure any docs commands or metadata follow
the ccusage-docs guidelines for docs/**/*.{md,mdx}; update the blocks referenced
around the sample lines (the sequences matching the three shown outputs)
accordingly.

In `@docs/guide/weekly-reports.md`:
- Around line 35-38: The "Understanding the Columns" section mentions an "Agent"
column but the example output table on the same page doesn't include it; either
add an "Agent" column header and sample values to the example table or
remove/qualify the "Agent" bullet in the list to indicate it is
optional/derived. Update the markdown near the "Understanding the Columns"
heading and the example table so both the list and the table headers (and any
sample row data) consistently include or omit "Agent", ensuring the "Agent"
terminology matches the existing table output.
- Around line 17-29: The ASCII table code fences in the weekly-reports.md
example use untagged triple-backticks; update those fences to include the
language tag "text" (e.g., replace ``` with ```text) for the block that begins
with "┌────────────────┬──────────────────────┬..." and the matching closing
fence, and do the same for the other identical table block(s) referenced (also
around the region noted as lines 92-102) so the markdown linter MD040 is
satisfied.

---

Outside diff comments:
In `@docs/guide/config-files.md`:
- Around line 358-361: Two Next Steps entries both link to "/guide/claude/" (one
labeled "Claude Code data discovery" and the other "Claude Code data paths and
source-specific options"); remove the duplicate by keeping the most
accurate/complete entry and deleting the other so the Next Steps list contains a
single "/guide/claude/" link. Update whichever element (the list item string
referring to "/guide/claude/") in the docs/guide/config-files.md Next Steps
section—remove the redundant link text and its list item.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c19c0d2e-47eb-444b-99a2-9dfc68672206

📥 Commits

Reviewing files that changed from the base of the PR and between 5e185d8 and a64c8c0.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (39)
  • apps/ccusage/README.md
  • apps/ccusage/package.json
  • apps/ccusage/src/commands/all.ts
  • apps/ccusage/test/cli-output.test.ts
  • apps/ccusage/test/snapshots/cli-output/all-agent-daily-table.txt
  • apps/ccusage/test/snapshots/cli-output/daily-table.txt
  • apps/ccusage/test/snapshots/cli-output/session-table.txt
  • docs/.vitepress/config.ts
  • docs/guide/all-reports.md
  • docs/guide/amp/index.md
  • docs/guide/blocks-reports.md
  • docs/guide/claude/index.md
  • docs/guide/cli-options.md
  • docs/guide/codex/daily.md
  • docs/guide/codex/index.md
  • docs/guide/codex/monthly.md
  • docs/guide/codex/session.md
  • docs/guide/config-files.md
  • docs/guide/configuration.md
  • docs/guide/cost-modes.md
  • docs/guide/custom-paths.md
  • docs/guide/daily-reports.md
  • docs/guide/directory-detection.md
  • docs/guide/environment-variables.md
  • docs/guide/getting-started.md
  • docs/guide/index.md
  • docs/guide/installation.md
  • docs/guide/json-output.md
  • docs/guide/live-monitoring.md
  • docs/guide/monthly-reports.md
  • docs/guide/opencode/index.md
  • docs/guide/pi/index.md
  • docs/guide/session-reports.md
  • docs/guide/statusline.md
  • docs/guide/weekly-reports.md
  • docs/index.md
  • docs/package.json
  • docs/wrangler.jsonc
  • pnpm-workspace.yaml
💤 Files with no reviewable changes (5)
  • docs/guide/custom-paths.md
  • docs/guide/codex/session.md
  • docs/guide/codex/daily.md
  • docs/guide/directory-detection.md
  • docs/guide/codex/monthly.md
✅ Files skipped from review due to trivial changes (14)
  • apps/ccusage/test/snapshots/cli-output/session-table.txt
  • docs/package.json
  • apps/ccusage/package.json
  • docs/guide/live-monitoring.md
  • docs/guide/cli-options.md
  • apps/ccusage/test/snapshots/cli-output/all-agent-daily-table.txt
  • apps/ccusage/src/commands/all.ts
  • docs/guide/json-output.md
  • docs/guide/environment-variables.md
  • pnpm-workspace.yaml
  • docs/index.md
  • docs/guide/pi/index.md
  • docs/guide/amp/index.md
  • docs/guide/installation.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/wrangler.jsonc

Comment thread docs/guide/monthly-reports.md Outdated
Comment thread docs/guide/statusline.md Outdated
Comment thread docs/guide/weekly-reports.md Outdated
Comment thread docs/guide/weekly-reports.md
Fix the inconsistent monthly date-range label, add text language tags to statusline and weekly sample-output fences, and clarify that the weekly Agent column only appears in unified all-source reports. The remaining config-files Claude link comment is stale against the current file and will be answered on the PR.
@ryoppippi
Copy link
Copy Markdown
Owner Author

@coderabbitai addressed the latest review pass in 79d26b0.

  • Fixed monthly date-filter wording so the heading matches the Jan-May 2026 command range.
  • Added `text` language tags to the statusline sample-output fences and weekly report table fences.
  • Clarified that the weekly `Agent` column is shown in unified all-source reports.
  • The config-files duplicate Claude Code link comment appears stale: current `docs/guide/config-files.md` Related Documentation has only Command-Line Options, Environment Variables, and Configuration Overview; there is no duplicate `/guide/claude/` link left to remove.
  • I am still not adding `ccusage codex weekly`, `ccusage amp weekly`, or `ccusage pi weekly` examples from the earlier nit because those reports are not supported by the current command registry. `apps/ccusage/src/commands/index.ts` only registers weekly for Claude and OpenCode, and it explicitly treats Amp weekly as unsupported.

Please review the latest commit.

@ryoppippi
Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Fetch the latest commit diff for 79d26b0
gh api repos/ryoppippi/ccusage/commits/79d26b0 --jq '.commit.message'
echo "---"
gh api repos/ryoppippi/ccusage/commits/79d26b0/files --jq '.[].filename'
echo "---FILES CHANGED---"
gh api repos/ryoppippi/ccusage/commits/79d26b0/files --jq '.[] | "\(.filename)\n\(.patch)\n---"'

Length of output: 780


🏁 Script executed:

#!/bin/bash
# Get commits from PR `#1009` to find full SHA
gh api repos/ryoppippi/ccusage/pulls/1009/commits --jq '.[] | "\(.sha) \(.commit.message | split("\n")[0])"'

Length of output: 1514


🏁 Script executed:

#!/bin/bash
# Fetch files changed in commit 79d26b00baa622939352fa9477fd87a1ae6fc9cb
gh api repos/ryoppippi/ccusage/commits/79d26b00baa622939352fa9477fd87a1ae6fc9cb/files \
  --jq '.[] | "\(.filename)\n\(.patch)\n---"'

Length of output: 267


🏁 Script executed:

#!/bin/bash
# Try using gh api with different path format
gh api /repos/ryoppippi/ccusage/commits/79d26b00baa622939352fa9477fd87a1ae6fc9cb \
  --jq '.files[] | "\(.filename)\n\(.patch)\n---"'

Length of output: 2264


@ryoppippi: Thanks for the thorough follow-up! I've verified the changes in commit 79d26b0:

  • Monthly date-filter wording"Show usage from 2026""Show usage from Jan-May 2026" correctly matches the --since 20260101 --until 20260531 command range.
  • text language tags — All three bare fences in statusline.md and both table fences in weekly-reports.md now use ```text.
  • Weekly Agent column clarification"Source CLI for unified reports""Source CLI, shown in unified all-source reports" is clear and accurate.
  • Config-files duplicate link — Confirmed your assessment; the stale comment no longer applies to the current file content.
  • Declined weekly examples for Codex/Amp/pi — Agreed; omitting commands that aren't registered in apps/ccusage/src/commands/index.ts avoids misleading users. Makes sense to keep docs faithful to the actual command registry.

Everything looks good. The PR is in great shape — the documentation refresh is well-structured and the multi-agent/unified CLI positioning is clean throughout.

[approve]

@ryoppippi ryoppippi merged commit 8a228dc into main May 17, 2026
24 checks passed
@ryoppippi ryoppippi deleted the codex/docs-multi-agent-refresh branch May 17, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant