@agentuity/claude-code 2.0.10 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,200 +1,81 @@
1
1
  ---
2
2
  name: agentuity-ops
3
- description: When working with the Agentuity CLI, cloud services (KV, Vector, Storage, Sandbox, Database, SSH), deployments, or infrastructure. Activates when running agentuity commands, managing cloud resources, deploying projects, or configuring infrastructure.
4
- version: 1.0.0
3
+ description: When running Agentuity CLI commands for deploying, managing databases, creating sandboxes, configuring storage, queues, cron jobs, email, or any cloud resource. Also activates for SSH debugging, environment variables, and non-interactive automation.
4
+ version: 2.0.0
5
5
  ---
6
6
 
7
- # Agentuity Ops Reference
8
-
9
- Deep reference material for the Agentuity CLI, cloud services, deployments, and infrastructure.
7
+ # Agentuity CLI & Operations Reference
10
8
 
11
9
  ## CLI Accuracy Contract (NON-NEGOTIABLE)
12
10
 
13
- **Never hallucinate CLI flags, subcommands, URLs, or outputs.**
11
+ - **Never guess** flags, subcommands, or argument order
12
+ - If not 100% certain, FIRST run: `agentuity <cmd> --help`
13
+ - **Trust CLI output over memory** — never fabricate URLs or outputs
14
+ - For the full CLI schema: `agentuity ai schema show`
14
15
 
15
- 1. **Never guess** flags, subcommands, or argument order
16
- 2. If not 100% certain, FIRST run: `agentuity <cmd> --help`
17
- 3. **Trust CLI output over memory**
18
- 4. **Never fabricate URLs** — read actual command output
19
- 5. Provide **copy/paste-ready commands**
16
+ ## Key Conventions
20
17
 
21
- ## CRITICAL: Region Configuration
18
+ - Agentuity projects **always use `bun`** (never npm/pnpm) — check for `agentuity.json` or `.agentuity/`
19
+ - Check region config before adding `--region` flags (`~/.config/agentuity/config.json` and `agentuity.json`)
20
+ - Sandbox default working directory is `/home/agentuity` (not `/app`)
21
+ - Always read actual command output for URLs — never fabricate them
22
22
 
23
- Before suggesting `--region` flags, CHECK EXISTING CONFIG:
23
+ ## Non-Interactive Execution
24
24
 
25
- ```bash
26
- cat ~/.config/agentuity/config.json 2>/dev/null | grep region
27
- cat agentuity.json 2>/dev/null | grep region
28
- ```
25
+ When running CLI commands programmatically (in Claude Code, CI, or scripts), skip confirmation prompts:
29
26
 
30
- - If region is configured NO `--region` flag needed
31
- - If NOT configured help user set it in config OR use `--region`
27
+ | Flag | Short | Behavior |
28
+ | --- | --- | --- |
29
+ | `--confirm` | `-y` | Skip confirmation prompts |
30
+ | `--force` | — | Alias for `--confirm` (when command doesn't have its own `--force`) |
32
31
 
33
- ## CRITICAL: Agentuity Projects Use Bun (Always)
32
+ These work on any command with a confirmation prompt (deploy, create, delete, etc.).
34
33
 
35
- - If `agentuity.json` or `.agentuity/` exists → ALWAYS use `bun`
36
- - Never suggest `npm` or `pnpm` for Agentuity projects
34
+ **Special cases:**
35
+ - `agentuity project import` — requires BOTH `--name` and `-y` (or `--confirm`) for non-interactive use
36
+ - `agentuity cloud env push` — has its own `--force` flag (overwrites remote values); `--force` does NOT alias `--confirm` here
37
+ - `agentuity cloud deployment remove/undeploy` — has its own `--force` flag for the same reason
37
38
 
38
39
  ## Golden Commands
39
40
 
40
- | Purpose | Command |
41
- | ----------------- | -------------------------------------------------------------- |
42
- | Create project | `agentuity new` (interactive) or `agentuity new --name <name>` |
43
- | Start dev server | `bun run dev` read output for actual URL |
44
- | Deploy | `agentuity deploy` → read output for deployment URL |
45
- | Check auth | `agentuity auth whoami` |
46
- | List regions | `agentuity region list` |
47
- | Get CLI help | `agentuity <command> --help` |
48
- | Show all commands | `agentuity ai schema show` |
49
-
50
- ---
51
-
52
- ## Cloud Service Commands
53
-
54
- ### KV (Key-Value Storage)
55
-
56
- ```bash
57
- # Namespace management
58
- agentuity cloud kv list-namespaces --json
59
- agentuity cloud kv create-namespace <name>
60
- agentuity cloud kv delete-namespace <name> --json
61
-
62
- # Key operations
63
- agentuity cloud kv set <namespace> <key> <value> [ttl]
64
- agentuity cloud kv get <namespace> <key> --json
65
- agentuity cloud kv keys <namespace> --json
66
- agentuity cloud kv search <namespace> <keyword> --json
67
- agentuity cloud kv delete <namespace> <key> --json
68
- agentuity cloud kv stats --json
69
- ```
70
-
71
- ### Storage (S3-compatible)
72
-
73
- ```bash
74
- agentuity cloud storage list --json
75
- agentuity cloud storage create --json
76
- agentuity cloud storage upload <bucket> <file> --key <path> --json
77
- agentuity cloud storage download <bucket> <filename> [output]
78
- agentuity cloud storage list <bucket> [prefix] --json
79
- agentuity cloud storage delete <bucket> <filename> --json
80
- ```
81
-
82
- ### Vector (Semantic Search)
83
-
84
- ```bash
85
- agentuity cloud vector upsert <namespace> <key> --document "text" --json
86
- agentuity cloud vector search <namespace> "query" --limit N --json
87
- agentuity cloud vector get <namespace> <key> --json
88
- agentuity cloud vector delete <namespace> <key> --no-confirm --json
89
- ```
90
-
91
- ### Sandbox (Isolated Execution)
92
-
93
- ```bash
94
- # Runtimes
95
- agentuity cloud sandbox runtime list --json
96
-
97
- # Lifecycle
98
- agentuity cloud sandbox run [--memory 1Gi] [--cpu 1000m] \
99
- [--runtime <name>] [--name <name>] [--description <text>] \
100
- -- <command> # One-shot
101
- agentuity cloud sandbox create --json [--memory 1Gi] \
102
- [--network] [--port <1024-65535>] \
103
- [--runtime <name>] [--name <name>] # Persistent
104
- agentuity cloud sandbox exec <sandboxId> -- <command>
105
- agentuity cloud sandbox list --json
106
- agentuity cloud sandbox get <sandboxId> --json
107
- agentuity cloud sandbox delete <sandboxId> --json
108
-
109
- # File operations (default working dir: /home/agentuity)
110
- agentuity cloud sandbox files <sandboxId> [path] --json
111
- agentuity cloud sandbox cp ./local sbx_abc123:/home/agentuity
112
- agentuity cloud sandbox cp sbx_abc123:/home/agentuity ./local
113
- agentuity cloud sandbox mkdir <sandboxId> /path/to/dir
114
- agentuity cloud sandbox rm <sandboxId> /path/to/file
115
-
116
- # Environment variables
117
- agentuity cloud sandbox env <sandboxId> VAR1=value1 VAR2=value2
118
- agentuity cloud sandbox env <sandboxId> --delete VAR1
119
-
120
- # Snapshots
121
- agentuity cloud sandbox snapshot create <sandboxId> \
122
- [--name <name>] [--description <text>] [--tag <tag>]
123
- agentuity cloud sandbox snapshot list --json
124
- ```
125
-
126
- **Snapshot tags:** Default to `latest`. Max 128 chars, must match `^[a-zA-Z0-9][a-zA-Z0-9._-]*$`.
127
-
128
- ### Network & Public URLs
129
-
130
- | Scenario | Use `--network`? | Use `--port`? |
131
- | --------------------------------------- | ---------------- | ------------- |
132
- | Running tests locally | No | No |
133
- | Installing npm packages | Yes | No |
134
- | Running web server for internal testing | Yes | No |
135
- | Exposing dev preview to share | Yes | Yes |
136
- | API that external services call | Yes | Yes |
137
-
138
- **Public URL format:** `https://s{identifier}.agentuity.run`
139
-
140
- ### SSH (Remote Access)
141
-
142
- ```bash
143
- # SSH into deployed projects
144
- agentuity cloud ssh # Current project
145
- agentuity cloud ssh proj_abc123 # Specific project
146
- agentuity cloud ssh proj_abc123 'tail -f /var/log/app.log' # Run command
147
-
148
- # SSH into sandboxes
149
- agentuity cloud ssh sbx_abc123 # Interactive shell
150
-
151
- # File transfer
152
- agentuity cloud scp upload ./config.json --identifier=proj_abc123
153
- agentuity cloud scp download /var/log/app.log --identifier=deploy_abc123
154
- ```
155
-
156
- ### Database (Postgres)
157
-
158
- ```bash
159
- agentuity cloud db create <name> [--description "<text>"] --json
160
- agentuity cloud db list --json
161
- agentuity cloud db sql <name> "<query>" --json
162
- agentuity cloud db delete <name> --json
163
- ```
164
-
165
- ---
166
-
167
- ## Deployment Commands
168
-
169
- ```bash
170
- # Deploy current project
171
- agentuity deploy
172
-
173
- # Deploy with specific environment
174
- agentuity deploy --env production
175
-
176
- # List deployments
177
- agentuity cloud deployment list --json
178
-
179
- # Get deployment details
180
- agentuity cloud deployment get <deploymentId> --json
181
- ```
182
-
183
- ## Project Configuration
184
-
185
- ### agentuity.json
186
-
187
- ```json
188
- {
189
- "projectId": "proj_abc123",
190
- "orgId": "org_xyz",
191
- "region": "use"
192
- }
193
- ```
194
-
195
- ### CLI Profile (~/.config/agentuity/production.yaml)
196
-
197
- Contains `orgId` from `preferences.orgId` — used as fallback when `agentuity.json` doesn't have orgId.
41
+ | Purpose | Command |
42
+ | ---------------- | -------------------------------- |
43
+ | Create project | `agentuity create` |
44
+ | Start dev server | `agentuity dev` or `bun run dev` |
45
+ | Deploy | `agentuity deploy` |
46
+ | Check auth | `agentuity auth whoami` |
47
+ | List regions | `agentuity region list` |
48
+ | Get help | `agentuity <command> --help` |
49
+ | Full CLI schema | `agentuity ai schema show` |
50
+ | Migrate to v2 | `npx @agentuity/migrate` |
51
+
52
+ ## Cloud Services
53
+
54
+ | Service | CLI Prefix | Documentation |
55
+ | -------------- | -------------------------- | ---------------------------------------------------- |
56
+ | KV Storage | `agentuity cloud kv` | https://agentuity.dev/reference/cli/storage.md |
57
+ | Vector Search | `agentuity cloud vector` | https://agentuity.dev/reference/cli/storage.md |
58
+ | Object Storage | `agentuity cloud storage` | https://agentuity.dev/reference/cli/storage.md |
59
+ | Sandbox | `agentuity cloud sandbox` | https://agentuity.dev/reference/cli/sandbox.md |
60
+ | Database | `agentuity cloud db` | https://agentuity.dev/services/database.md |
61
+ | SSH | `agentuity cloud ssh` | https://agentuity.dev/reference/cli/debugging.md |
62
+ | Deployments | `agentuity deploy` | https://agentuity.dev/reference/cli/deployment.md |
63
+
64
+ ## Documentation Links
65
+
66
+ | Topic | Link |
67
+ | ------------------ | -------------------------------------------------------- |
68
+ | CLI Getting Started | https://agentuity.dev/reference/cli/getting-started.md |
69
+ | Build Configuration | https://agentuity.dev/reference/cli/build-configuration.md |
70
+ | Deployment | https://agentuity.dev/reference/cli/deployment.md |
71
+ | Local Development | https://agentuity.dev/reference/cli/development.md |
72
+ | Debugging | https://agentuity.dev/reference/cli/debugging.md |
73
+ | Storage Commands | https://agentuity.dev/reference/cli/storage.md |
74
+ | Sandbox Commands | https://agentuity.dev/reference/cli/sandbox.md |
75
+ | Configuration | https://agentuity.dev/reference/cli/configuration.md |
76
+ | Git Integration | https://agentuity.dev/reference/cli/git-integration.md |
77
+ | GitHub App | https://agentuity.dev/reference/github-app.md |
78
+ | Migration Guide | https://agentuity.dev/reference/migration-guide.md |
198
79
 
199
80
  ## Common Mistakes
200
81
 
@@ -205,3 +86,14 @@ Contains `orgId` from `preferences.orgId` — used as fallback when `agentuity.j
205
86
  | Hardcoding sandbox paths as `/app` | Use `/home/agentuity` | That's the default working directory |
206
87
  | Making up CLI flags | Run `--help` first | Flags change between versions |
207
88
  | Fabricating deployment URLs | Read actual output | URLs are generated dynamically |
89
+ | Using `expect`/`yes` piping for prompts | Use `-y` or `--confirm` flag | Built-in flag support is cleaner and more reliable |
90
+ | Running v1 project without migrating | Run `npx @agentuity/migrate` first | v2 requires explicit agent/router wiring |
91
+
92
+ ## When In Doubt, Check the Docs
93
+
94
+ If you're unsure about any CLI command, flag, or service, **check first** rather than guessing:
95
+
96
+ - Run `agentuity <command> --help` for flag details
97
+ - Full CLI schema: `agentuity ai schema show`
98
+ - Full docs: https://agentuity.dev
99
+ - LLM-friendly index: https://agentuity.dev/llms.txt