Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ This repo contains the CLI for Entire.

### Command Layout

The CLI is organized around five noun groups plus a small set of top-level
The CLI is organized around six noun groups plus a small set of top-level
verbs. The groups are the canonical home for each verb; legacy top-level
shortcuts remain functional but hidden, and emit a deprecation hint pointing
at the canonical group form.

- `session` (alias: `sessions`): `list`, `info`, `stop`, `attach`, `resume`, `current`
- `checkpoint` (aliases: `cp`, `checkpoints`): `list`, `explain`, `search`, plus
- `session` (alias: `sessions`): `list`, `info`, `tokens`, `stop`, `attach`, `resume`, `current`
- `checkpoint` (aliases: `cp`, `checkpoints`): `list`, `explain`, `tokens`, `search`, plus
the deprecated `rewind` (functional, prints a cobra deprecation message, will
be removed in a future release)
- `tokens`: `profile`
- `agent`: bare opens the interactive agent selector, plus `list`, `add`, `remove`
- `configure`: bare prints help and a hint pointing at `entire agent`; flags
manage non-agent settings (telemetry, git-hook installation mode, strategy
Expand Down
1 change: 1 addition & 0 deletions cmd/entire/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func NewRootCmd() *cobra.Command {
// Noun groups (canonical homes for subcommands).
cmd.AddCommand(newSessionsCmd()) // 'session' (with 'sessions' as Cobra alias)
cmd.AddCommand(newCheckpointGroupCmd()) // 'checkpoint' / 'cp' / 'checkpoints'
cmd.AddCommand(newTokensGroupCmd()) // 'tokens'
cmd.AddCommand(newAgentGroupCmd()) // 'agent'
cmd.AddCommand(newAuthCmd()) // 'auth'
cmd.AddCommand(newDoctorCmd()) // 'doctor' (group: trace/logs/bundle)
Expand Down
6 changes: 5 additions & 1 deletion cmd/entire/cli/session_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,12 @@ func writeTokenRecommendations(w io.Writer, recs []sessionTokensRecommendation)
}

func writeTokenUsageSection(w io.Writer, tokens *sessionTokensUsage) {
writeTokenUsageSectionWithTitle(w, "Token usage", tokens)
}

func writeTokenUsageSectionWithTitle(w io.Writer, title string, tokens *sessionTokensUsage) {
fmt.Fprintln(w)
fmt.Fprintln(w, "Token usage")
fmt.Fprintln(w, title)
if tokens != nil {
fmt.Fprintf(w, "Total: %s tokens\n", formatTokenCount(tokens.Total))
parts := []string{
Expand Down
Loading
Loading