Skip to content

Commit b639d25

Browse files
committed
.
1 parent 00eeb30 commit b639d25

File tree

3 files changed

+37
-16
lines changed

3 files changed

+37
-16
lines changed

docs/capabilities/analytics.mdx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
---
2-
title: "Agent Analytics"
2+
title: "Analytics"
33
sidebarTitle: "Analytics"
44
icon: "chart-line"
55
---
66

7-
Get comprehensive insights into your agent activity with detailed analytics on tool usage, costs, performance, and team productivity. Codegen provides fine-grained visibility into how agents are working across your organization.
7+
<Frame caption="Cost analytics on codegen.com/analytics">
8+
<img src="/images/cost-breakdown.png" alt="Analyze cost breakdown" />
9+
</Frame>
10+
11+
What impact are agents having on your codebase (and your finances) today? How can you better deploy them across your org?
12+
13+
Codegen Analytics was built to answer these questions and more.
14+
15+
<Card
16+
title="View Analytics Dashboard"
17+
icon="chart-line"
18+
href="https://codegen.com/analytics"
19+
>
20+
Access detailed analytics on agent performance, costs, and team productivity.
21+
</Card>
822

923
## Key Metrics
1024

@@ -37,18 +51,6 @@ Track the metrics that matter most for your development workflow:
3751
- **Trend analysis** - Identify patterns in agent usage and effectiveness
3852
- **Cost optimization** - Make informed decisions about model selection and usage
3953

40-
## Access Analytics
41-
42-
View your organization's analytics dashboard to get started:
43-
44-
<Card
45-
title="View Analytics Dashboard"
46-
icon="chart-line"
47-
href="https://codegen.com/analytics"
48-
>
49-
Access detailed analytics on agent performance, costs, and team productivity.
50-
</Card>
51-
5254
## Use Cases
5355

5456
**Performance Optimization**

docs/images/cost-breakdown.png

376 KB
Loading

docs/introduction/cli.mdx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ icon: "terminal"
55
iconType: "solid"
66
---
77

8-
# Codegen CLI Manual
8+
The `codegen` CLI allows users to run and interact with agents from the terminal.
99

10-
Welcome to the Codegen CLI documentation. This guide covers all available commands and their usage patterns.
10+
<iframe
11+
className="w-full aspect-video rounded-xl"
12+
src="https://youtube.com/embed/sQ2XOonma0w"
13+
title="YouTube video player"
14+
frameBorder="0"
15+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
16+
allowFullScreen
17+
></iframe>
1118

1219
## Installation
1320

@@ -34,11 +41,13 @@ codegen login
3441
**Description:** Create a new agent run with a prompt, fetch an existing agent run by ID, or pull PR branch.
3542

3643
**Usage Patterns:**
44+
3745
- **Create run:** `codegen agent --prompt "Your prompt"`
3846
- **Get run JSON:** `codegen agent --id 123 --json`
3947
- **Pull PR branch:** `codegen agent --id 123 pull`
4048

4149
**Options:**
50+
4251
- `--prompt, -p TEXT` The prompt to send to the agent (mutually exclusive with --id unless using create)
4352
- `--id INT` Agent run ID to fetch or pull
4453
- `--json` Output raw JSON response when fetching (flag)
@@ -47,6 +56,7 @@ codegen login
4756
- `--repo-id INT` Repository ID to use for this agent run (optional)
4857

4958
**Positional Actions:**
59+
5060
- `pull` Pull the PR branch associated with an agent run (requires --id)
5161

5262
---
@@ -56,10 +66,12 @@ codegen login
5666
**Description:** List and manage agent runs.
5767

5868
**Usage Patterns:**
69+
5970
- **List runs:** `codegen agents list`
6071
- **Get run details:** `codegen agents get 123`
6172

6273
**Options:**
74+
6375
- `--org-id INT` Organization ID (defaults to CODEGEN_ORG_ID/REPOSITORY_ORG_ID or auto-detect)
6476
- `--limit INT` Maximum number of runs to return (default: 10)
6577
- `--json` Output raw JSON response (flag)
@@ -71,10 +83,12 @@ codegen login
7183
**Description:** Store authentication token.
7284

7385
**Usage Patterns:**
86+
7487
- **Interactive login:** `codegen login`
7588
- **Token login:** `codegen login --token YOUR_API_TOKEN`
7689

7790
**Options:**
91+
7892
- `--token TEXT` API token to store
7993
- `--no-verify` Skip token verification (flag)
8094

@@ -85,6 +99,7 @@ codegen login
8599
**Description:** Clear stored authentication token.
86100

87101
**Usage Pattern:**
102+
88103
- `codegen logout`
89104

90105
---
@@ -94,11 +109,13 @@ codegen login
94109
**Description:** Manage and switch between organizations.
95110

96111
**Usage Patterns:**
112+
97113
- **List organizations:** `codegen org list`
98114
- **Switch organization:** `codegen org switch ORG_ID`
99115
- **Get current organization:** `codegen org current`
100116

101117
**Options:**
118+
102119
- `--json` Output raw JSON response (flag)
103120

104121
---
@@ -108,11 +125,13 @@ codegen login
108125
**Description:** Manage repository configuration and environment variables.
109126

110127
**Usage Patterns:**
128+
111129
- **List repositories:** `codegen repo list`
112130
- **Configure repository:** `codegen repo config REPO_NAME`
113131
- **Get repository details:** `codegen repo get REPO_ID`
114132

115133
**Options:**
134+
116135
- `--org-id INT` Organization ID (defaults to CODEGEN_ORG_ID or auto-detect)
117136
- `--json` Output raw JSON response (flag)
118137

0 commit comments

Comments
 (0)