# Surface token diagnostics in labs

`496e50f`·

peyton-alt·3w ago·3 files·+61 added/-40 removed

## Sessions

642c25c2fd0cView transcript

## Changes

3

- cmd/entire/cli
  
  - Mlabs.go+39/-27
  
  - Mlabs_test.go+19/-11
  
  - Mtokens_profile.go+3/-2

```
8 unmodified lines
9
10
11
12
13
14
12
13
14
15
16
17
18
19
20
21
19
20
21
22
23
24
25
26
24
25
26
27
28
29
30
31
29
30
31
32
33
34
35
36
34
35
36
37
38
39
40
41
39
40
41
42
43
44
45
46
44
45
46
47
48
49
50
51
49
50
51
52
53
54
55
56
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
37 unmodified lines

107
108
109
110
111
112
113
114

8 unmodified lines

)
type experimentalCommandInfo struct {
	Name       string
	Invocation string
	Summary    string
	CommandPath []string
	Invocation  string
	Summary     string
}

var experimentalCommands = []experimentalCommandInfo{
	{
		Name:       "review",
		Invocation: "entire review",
		Summary:    "Run configured review skills against the current branch",
		CommandPath: []string{"review"},
		Invocation:  "entire review",
		Summary:     "Run configured review skills against the current branch",
	},
	{
		Name:       "investigate",
		Invocation: "entire investigate",
		Summary:    "Run a multi-agent investigation against a topic, issue, or seed doc",
		CommandPath: []string{"investigate"},
		Invocation:  "entire investigate",
		Summary:     "Run a multi-agent investigation against a topic, issue, or seed doc",
	},
	{
		Name:       "org",
		Invocation: "entire org",
		Summary:    "Manage Entire organizations (create, list)",
		CommandPath: []string{"tokens"},
		Invocation:  "entire tokens",
		Summary:     "Analyze experimental token usage diagnostics",
	},
	{
		Name:       "project",
		Invocation: "entire project",
		Summary:    "Manage Entire projects (create, list)",
		CommandPath: []string{"tokens", "profile"},
		Invocation:  "entire tokens profile",
		Summary:     "Aggregate token usage across committed checkpoints",
	},
	{
		Name:       "repo",
		Invocation: "entire repo",
		Summary:    "Manage Entire repositories (create, list, get, delete)",
		CommandPath: []string{"org"},
		Invocation:  "entire org",
		Summary:     "Manage Entire organizations (create, list)",
	},
	{
		Name:       "grant",
		Invocation: "entire grant",
		Summary:    "Manage access grants and org membership (org, project, repo)",
		CommandPath: []string{"project"},
		Invocation:  "entire project",
		Summary:     "Manage Entire projects (create, list)",
	},
	{
		Name:       "blame",
		Invocation: "entire blame",
		Summary:    "Show which lines came from Entire checkpoints",
		CommandPath: []string{"repo"},
		Invocation:  "entire repo",
		Summary:     "Manage Entire repositories (create, list, get, delete)",
	},
	{
		Name:       "why",
		Invocation: "entire why",
		Summary:    "Show why a line exists (commit, checkpoint, prompt, session)",
		CommandPath: []string{"grant"},
		Invocation:  "entire grant",
		Summary:     "Manage access grants and org membership (org, project, repo)",
	},
	{
		CommandPath: []string{"blame"},
		Invocation:  "entire blame",
		Summary:     "Show which lines came from Entire checkpoints",
	},
	{
		CommandPath: []string{"why"},
		Invocation:  "entire why",
		Summary:     "Show why a line exists (commit, checkpoint, prompt, session)",
	},
}

37 unmodified lines

Try:
  entire review --help
  entire investigate --help
  entire tokens --help
  entire tokens profile --help
  entire org --help
  entire project --help
  entire repo --help
```
