You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/ccusage-agent-sources/SKILL.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ ccusage amp daily
21
21
ccusage pi daily
22
22
```
23
23
24
-
Standalone agent binaries such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi` are deprecated compatibility wrappers. Preserve compatibility when needed, but do not promote standalone binaries in new docs, tests, or examples.
24
+
Standalone agent wrapper packages have been removed. Use the unified `ccusage <agent> ...` commands in docs, tests, and examples, and do not reintroduce wrapper commands such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, or `ccusage-pi`.
25
25
26
26
Cost modes:
27
27
@@ -46,13 +46,12 @@ Read only the relevant reference before changing parser behavior, token mappings
46
46
- Treat Codex, OpenCode, Amp, and pi-agent as agent subcommands under the unified `ccusage` CLI.
47
47
- Reuse shared packages such as `@ccusage/terminal`, `@ccusage/internal`, pricing helpers, and logging where appropriate.
48
48
- Keep command names and flag semantics aligned unless the source data forces a difference.
49
-
- Internal workspace runtime libraries for bundled/private agent apps belong in `devDependencies`.
50
-
- Deprecated wrapper packages must keep install-time runtime dependencies such as `ccusage` in `dependencies`.
49
+
- Internal workspace runtime libraries for bundled/private packages belong in `devDependencies`.
51
50
52
51
## Adapter Layout
53
52
54
53
New or migrated agent implementations belong under `apps/ccusage/src/adapter/<agent>/`.
55
-
Keep agent-specific code there, not in deprecated wrapper packages. Split files by responsibility when the implementation grows:
54
+
Keep agent-specific code there. Split files by responsibility when the implementation grows:
56
55
57
56
-`index.ts` - thin public adapter surface: `detect<Agent>()`, `load<Agent>Rows()`, and high-level wiring.
58
57
-`paths.ts` - environment variables, default directories, and path discovery.
@@ -76,7 +75,7 @@ Before adding or changing an adapter, read `apps/ccusage/src/adapter/ARCHITECTUR
76
75
For each migrated or new agent:
77
76
78
77
- Put all source-specific runtime logic under `apps/ccusage/src/adapter/<agent>/`.
79
-
- Keep deprecated wrapper packages as thin compatibility commands only.
78
+
- Keep agent-specific package logic under `apps/ccusage/src/adapter/<agent>/`.
80
79
- Implement fast detection that short-circuits once a usable source file is found.
81
80
- Use shared file walking, JSONL byte marker scanning where applicable, worker gating, logging, pricing fetcher lifecycle, date formatting, table rendering, and all-agent aggregation.
82
81
- Keep adapter code responsible for source paths, raw parsing, token mapping, model mapping, source metadata, and agent-specific pricing.
The canonical user-facing command is `ccusage` with agent subcommands:
@@ -26,9 +22,9 @@ ccusage amp daily
26
22
ccusage pi daily
27
23
```
28
24
29
-
Standalone agent binaries such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi` are deprecated compatibility wrappers. Keep backward compatibility where it already exists, but prefer `ccusage <agent> ...` in docs, tests, examples, and new behavior.
25
+
Standalone agent wrapper packages have been removed. Prefer `ccusage <agent> ...` in docs, tests, examples, and new behavior, and do not reintroduce wrapper commands such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, or `ccusage-pi`.
30
26
31
-
Agent apps are still bundled runtime payloads. Treat runtime libraries as bundled assets: add dependencies to each app's `devDependencies` unless the user explicitly asks otherwise. Deprecated wrapper packages are the exception: keep install-time dependencies such as `ccusage` in `dependencies` when the wrapper needs them after installation.
27
+
Agent implementations live inside the bundled `ccusage` package. Treat runtime libraries as bundled assets: add dependencies to each package's `devDependencies` unless the user explicitly asks otherwise.
32
28
33
29
## Common Commands
34
30
@@ -59,7 +55,7 @@ Tools are managed by `flake.nix` and `package.json`. Use `comma` or `nix run` fo
59
55
- Use Gunshi for CLI commands; use the `use-gunshi-cli` skill for details.
60
56
- Only export constants, functions, and types used by other modules.
61
57
- Keep internal-only files and helpers private where possible.
62
-
- Dependency additions go in `devDependencies` for bundled/private packages, but keep install-time wrapper dependencies in `dependencies`.
58
+
- Dependency additions go in `devDependencies` for bundled/private packages.
Copy file name to clipboardExpand all lines: .agents/skills/ccusage-docs/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The docs build copies `apps/ccusage/config-schema.json` to `docs/public/config-s
28
28
## Content Rules
29
29
30
30
- Prefer the unified command form in new or edited docs: `ccusage codex ...`, `ccusage opencode ...`, `ccusage amp ...`, and `ccusage pi ...`.
31
-
- Standalone wrapper commands such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi`are deprecated. Mention them only for migration or compatibility notes.
31
+
- Standalone wrapper commands such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi`have been removed. Do not promote or reintroduce them in docs.
32
32
- Place screenshots immediately after the page H1 when a guide has a primary screenshot.
33
33
- Use relative image paths such as `/screenshot.png` for files in `docs/public/`.
34
34
- Always include descriptive alt text for screenshots and images.
- The canonical user-facing CLI is `ccusage` with agent subcommands such as `ccusage amp`, `ccusage codex`, `ccusage opencode`, and `ccusage pi`.
39
-
- Standalone agent binaries such as `ccusage-amp`, `ccusage-codex`, `ccusage-opencode`, and `ccusage-pi` are deprecated compatibility wrappers. Do not add new docs, tests, or features that promote them as the primary interface.
40
-
-Agent apps are still bundled runtime payloads. Put runtime libraries in each app's `devDependencies` unless explicitly requested otherwise. Deprecated wrapper packages may keep install-time dependencies such as `ccusage` in `dependencies`.
35
+
- Standalone agent wrapper packages have been removed. Do not add docs, tests, or features that promote `ccusage-amp`, `ccusage-codex`, `ccusage-opencode`, or `ccusage-pi`.
36
+
-Runtime libraries for bundled packages belong in `devDependencies` unless explicitly requested otherwise.
41
37
- Prefer tools provided by the Nix dev shell before falling back to ad hoc installs: `rg`, `fd`, `fzf`, `delta`, `dust`, `jq`, `gh`, `hyperfine`, `similarity`, `typos`, and `typos-lsp`. When a missing tool would be useful for repeated agent work in this repository, add it to `flake.nix`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ pnpm typecheck
49
49
pnpm run test
50
50
```
51
51
52
-
Use the canonical `ccusage` command in docs and tests. Deprecated compatibility wrappers such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi`should not be promoted as the primary interface.
52
+
Use the canonical `ccusage` command in docs and tests. Standalone wrapper packages such as `ccusage-codex`, `ccusage-opencode`, `ccusage-amp`, and `ccusage-pi`have been removed and should not be reintroduced.
53
53
54
54
Do not proactively create documentation files unless the change requires user-facing documentation.
The main CLI tool for analyzing Claude Code, Codex, OpenCode, Amp, and pi-agent usage from local data. Track daily, weekly, monthly, and session-based usage with beautiful tables.
Compatibility wrapper for [Amp](https://ampcode.com/) usage. Prefer `ccusage amp`.
47
-
48
30
## Installation
49
31
50
32
### Quick Start (Recommended)
@@ -64,15 +46,6 @@ npx ccusage@latest
64
46
> 💡 **Runtime**: `bunx ccusage` is recommended for everyday use. If you use `npx`, include `@latest` and use Node.js 22+.
65
47
> Because the published CLI shebang targets Node.js, package runners can start ccusage under Node.js even when launched through `bunx`. When ccusage finds `bun` in `PATH`, it automatically re-runs the bundled entrypoint with Bun for better warm runtime performance. Set `CCUSAGE_BUN_AUTO_RUN=0` to force Node.js.
Copy file name to clipboardExpand all lines: apps/ccusage/src/adapter/ARCHITECTURE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Use small files under each adapter directory:
39
39
-`pricing.ts` or `pricing-macro.ts` - model aliases, provider filters, and bundled pricing.
40
40
-`types.ts` - adapter-local types.
41
41
42
-
Do not put new source logic in deprecated standalone packages. Those packages are compatibility wrappers; ccusage adapter directories are the implementation home.
42
+
Do not put source logic outside the ccusage adapter directories. The standalone wrapper packages have been removed, and `apps/ccusage/src/adapter/<agent>/` is the implementation home.
43
43
44
44
When migrating an existing root-level implementation into an adapter, update internal import sites to point at `adapter/<agent>/...` directly. Avoid root-level re-export shims unless the path is part of the package's declared public exports or a dedicated bundled worker entry. `apps/ccusage/src/data-loader.ts` is such an entry: it keeps the optimized Claude loader in the separate `data-loader` chunk introduced by PR #984, while source logic stays under `adapter/claude/`.
0 commit comments