Skip to content

Commit 1f3c803

Browse files
authored
Merge pull request #1558 from entireio/tokens-labs
[codex] List session token diagnostics in labs
2 parents 7b6b53b + b0e5b2c commit 1f3c803

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

cmd/entire/cli/labs.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ var experimentalCommands = []experimentalCommandInfo{
4040
Invocation: "entire tokens profile",
4141
Summary: "Aggregate token usage across committed checkpoints",
4242
},
43+
{
44+
CommandPath: []string{"session", "tokens"},
45+
Invocation: "entire session tokens",
46+
Summary: "Show token usage and recommendations for a session",
47+
},
4348
{
4449
CommandPath: []string{"org"},
4550
Invocation: "entire org",
@@ -119,6 +124,7 @@ Try:
119124
entire investigate --help
120125
entire tokens --help
121126
entire tokens profile --help
127+
entire session tokens --help
122128
entire org --help
123129
entire project --help
124130
entire repo --help

cmd/entire/cli/labs_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func TestLabsCmd_PrintsExperimentalCommandList(t *testing.T) {
2929
"entire tokens",
3030
"entire tokens profile",
3131
"entire tokens profile --help",
32+
"entire session tokens",
33+
"entire session tokens --help",
3234
} {
3335
if !strings.Contains(got, want) {
3436
t.Fatalf("entire labs output missing %q:\n%s", want, got)

0 commit comments

Comments
 (0)