suzi-cli 0.1.6 → 0.1.8
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.
- package/README.md +267 -1
- package/dist/commands/accounts.d.ts.map +1 -1
- package/dist/commands/accounts.js +59 -0
- package/dist/commands/accounts.js.map +1 -1
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +10 -3
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +47 -37
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/debug.d.ts +3 -0
- package/dist/commands/debug.d.ts.map +1 -0
- package/dist/commands/debug.js +332 -0
- package/dist/commands/debug.js.map +1 -0
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +8 -2
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +139 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/install-hooks.d.ts +16 -0
- package/dist/commands/install-hooks.d.ts.map +1 -0
- package/dist/commands/install-hooks.js +381 -0
- package/dist/commands/install-hooks.js.map +1 -0
- package/dist/commands/list-actions.d.ts +3 -0
- package/dist/commands/list-actions.d.ts.map +1 -0
- package/dist/commands/{list-tools.js → list-actions.js} +24 -18
- package/dist/commands/list-actions.js.map +1 -0
- package/dist/commands/list-triggers.d.ts.map +1 -1
- package/dist/commands/list-triggers.js +27 -1
- package/dist/commands/list-triggers.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +51 -28
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/memory.d.ts +3 -0
- package/dist/commands/memory.d.ts.map +1 -0
- package/dist/commands/memory.js +196 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/portfolio.d.ts.map +1 -1
- package/dist/commands/portfolio.js +5 -8
- package/dist/commands/portfolio.js.map +1 -1
- package/dist/commands/prompt-suggestions.d.ts.map +1 -1
- package/dist/commands/prompt-suggestions.js +14 -20
- package/dist/commands/prompt-suggestions.js.map +1 -1
- package/dist/commands/share.d.ts.map +1 -1
- package/dist/commands/share.js +2 -0
- package/dist/commands/share.js.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/skills.js +2 -1
- package/dist/commands/skills.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +1 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/index.js +41 -13
- package/dist/index.js.map +1 -1
- package/dist/lib/memory.d.ts +45 -0
- package/dist/lib/memory.d.ts.map +1 -0
- package/dist/lib/memory.js +247 -0
- package/dist/lib/memory.js.map +1 -0
- package/dist/lib/suzi-guide.d.ts +1 -1
- package/dist/lib/suzi-guide.d.ts.map +1 -1
- package/dist/lib/suzi-guide.js +255 -52
- package/dist/lib/suzi-guide.js.map +1 -1
- package/dist/utils/ui.d.ts +3 -1
- package/dist/utils/ui.d.ts.map +1 -1
- package/dist/utils/ui.js +4 -1
- package/dist/utils/ui.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/list-tools.d.ts +0 -3
- package/dist/commands/list-tools.d.ts.map +0 -1
- package/dist/commands/list-tools.js.map +0 -1
- package/dist/commands/wallet.d.ts +0 -3
- package/dist/commands/wallet.d.ts.map +0 -1
- package/dist/commands/wallet.js +0 -191
- package/dist/commands/wallet.js.map +0 -1
package/dist/lib/suzi-guide.js
CHANGED
|
@@ -17,18 +17,25 @@ description: >
|
|
|
17
17
|
|
|
18
18
|
**NEVER rely on hardcoded data from this skill for questions about protocols, actions, balances, agents, or any runtime state.** Always run the appropriate \`suzi\` CLI command and use its output. This ensures the user gets up-to-date information.
|
|
19
19
|
|
|
20
|
+
**Hard rule:** the CLI is the primary source of truth. This skill is guidance documentation and can lag behind the latest release. If the skill and CLI output ever conflict, trust the CLI.
|
|
21
|
+
|
|
20
22
|
| User asks about... | Run this command |
|
|
21
23
|
|---------------------|-----------------|
|
|
22
|
-
| Available protocols / actions | \`suzi list-
|
|
23
|
-
| Actions for a specific protocol | \`suzi list-
|
|
24
|
+
| Available protocols / actions | \`suzi list-actions --verbose\` |
|
|
25
|
+
| Actions for a specific protocol | \`suzi list-actions --protocol <name>\` |
|
|
26
|
+
| Action schema (parameters + response) | \`suzi list-actions --protocol <name> --schema <action>\` |
|
|
24
27
|
| Available triggers | \`suzi list-triggers\` |
|
|
25
28
|
| Triggers for a specific protocol | \`suzi list-triggers --protocol <name>\` |
|
|
26
29
|
| Their agents | \`suzi agents\` |
|
|
27
30
|
| Agent details / triggers / config | \`suzi agents view <id>\` |
|
|
28
31
|
| Agent logs | \`suzi agents logs <id>\` |
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
+
| Debugging agent issues | \`suzi debug logs <id>\` |
|
|
33
|
+
| Agent execution history | \`suzi debug runs <id>\` |
|
|
34
|
+
| Failed action details | \`suzi debug executions <id> --status failed\` |
|
|
35
|
+
| Database-level agent logs | \`suzi debug db-logs <id>\` |
|
|
36
|
+
| Wallet addresses | \`suzi accounts show\` |
|
|
37
|
+
| Balances | \`suzi portfolio\` |
|
|
38
|
+
| Portfolio | \`suzi portfolio\` |
|
|
32
39
|
| Transactions | \`suzi transactions\` |
|
|
33
40
|
| Current user / auth status | \`suzi whoami\` |
|
|
34
41
|
|
|
@@ -82,20 +89,23 @@ suzi logout # Sign out and clear stored credentials
|
|
|
82
89
|
suzi whoami # Show current authenticated user, wallet addresses
|
|
83
90
|
\`\`\`
|
|
84
91
|
|
|
85
|
-
###
|
|
92
|
+
### Accounts & Funding
|
|
86
93
|
|
|
87
94
|
\`\`\`bash
|
|
88
|
-
suzi
|
|
89
|
-
suzi
|
|
90
|
-
suzi
|
|
91
|
-
suzi
|
|
95
|
+
suzi accounts # Manage accounts and switch active account
|
|
96
|
+
suzi accounts list # List accounts (same as interactive accounts view)
|
|
97
|
+
suzi accounts show # Show full wallet addresses for active account
|
|
98
|
+
suzi accounts fund # Show deposit instructions with full addresses
|
|
99
|
+
suzi accounts switch <name> # Switch active account
|
|
100
|
+
suzi accounts create <name> # Create a new account
|
|
101
|
+
suzi accounts rename <name> <newName> # Rename an account
|
|
102
|
+
suzi accounts delete <name> # Delete an account (use -f to skip confirmation)
|
|
92
103
|
\`\`\`
|
|
93
104
|
|
|
94
105
|
### Portfolio
|
|
95
106
|
|
|
96
107
|
\`\`\`bash
|
|
97
|
-
suzi portfolio # View
|
|
98
|
-
suzi portfolio --all # Full portfolio including Hyperliquid perp positions
|
|
108
|
+
suzi portfolio # View spot balances and Hyperliquid perp positions
|
|
99
109
|
\`\`\`
|
|
100
110
|
|
|
101
111
|
### Agent Management
|
|
@@ -126,51 +136,96 @@ suzi deploy --activate # Activate immediately after deployment
|
|
|
126
136
|
suzi deploy --update <agentId> # Update existing agent's code
|
|
127
137
|
\`\`\`
|
|
128
138
|
|
|
129
|
-
###
|
|
139
|
+
### Debugging
|
|
130
140
|
|
|
131
141
|
\`\`\`bash
|
|
132
|
-
suzi
|
|
133
|
-
suzi
|
|
134
|
-
suzi
|
|
135
|
-
suzi
|
|
136
|
-
suzi
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
suzi
|
|
143
|
-
suzi
|
|
144
|
-
suzi
|
|
145
|
-
suzi
|
|
146
|
-
suzi
|
|
142
|
+
suzi debug logs <agentId> # View Datadog logs for an agent (last 1h)
|
|
143
|
+
suzi debug logs <agentId> --status error # Filter by log level: error, warn, info, debug
|
|
144
|
+
suzi debug logs <agentId> --time-range now-1d # Lookback: now-15m, now-1h, now-1d
|
|
145
|
+
suzi debug logs <agentId> --limit 100 # Max results (default: 25, max: 1000)
|
|
146
|
+
suzi debug logs <agentId> --query "@http.status_code:500" # Append raw Datadog query
|
|
147
|
+
|
|
148
|
+
suzi debug aggregate <agentId> # Aggregate Datadog logs (counts)
|
|
149
|
+
suzi debug aggregate <agentId> --group-by status # Group by: status, host, service
|
|
150
|
+
suzi debug aggregate <agentId> --time-range now-1d
|
|
151
|
+
|
|
152
|
+
suzi debug db-logs <agentId> # View agent logs from database
|
|
153
|
+
suzi debug db-logs <agentId> --level error # Filter: info, warn, error, debug
|
|
154
|
+
suzi debug db-logs <agentId> --run-id <id> # Filter by specific run
|
|
155
|
+
suzi debug db-logs <agentId> --limit 50 # Page size (default: 50)
|
|
156
|
+
suzi debug db-logs <agentId> --cursor <c> # Pagination cursor from previous response
|
|
157
|
+
|
|
158
|
+
suzi debug executions <agentId> # View action executions from database
|
|
159
|
+
suzi debug executions <agentId> --status failed # Filter: running, completed, failed
|
|
160
|
+
suzi debug executions <agentId> --run-id <id>
|
|
161
|
+
|
|
162
|
+
suzi debug runs <agentId> # View agent runs from database
|
|
163
|
+
suzi debug runs <agentId> --status failed # Filter: running, completed, failed
|
|
147
164
|
\`\`\`
|
|
148
165
|
|
|
149
|
-
###
|
|
166
|
+
### Sharing & Import
|
|
150
167
|
|
|
151
168
|
\`\`\`bash
|
|
152
|
-
suzi
|
|
169
|
+
suzi share create [agentId] # Create share link (prompts if agentId omitted)
|
|
170
|
+
suzi share create --slug <slug> # Create share link with custom slug
|
|
171
|
+
suzi share create --expires <days> # Create expiring share link
|
|
172
|
+
suzi share list # List shared agent snapshots (alias: suzi share ls)
|
|
173
|
+
suzi share update <agentId> --slug <slug> # Publish a new shared version
|
|
174
|
+
suzi share revoke <snapshotId> # Revoke shared snapshot (use -f to skip confirmation)
|
|
175
|
+
suzi import <slug> # Clone a shared agent by slug
|
|
153
176
|
\`\`\`
|
|
154
177
|
|
|
155
178
|
### Transactions
|
|
156
179
|
|
|
157
180
|
\`\`\`bash
|
|
158
|
-
suzi transactions # View recent transactions across
|
|
181
|
+
suzi transactions # View recent transactions across agents (alias: suzi txns)
|
|
159
182
|
suzi txns -n 30 # Show more entries
|
|
160
183
|
suzi txns --type order # Filter: order|cancel|transfer|swap|bridge|liquidity
|
|
161
184
|
suzi txns --protocol polymarket # Filter by protocol
|
|
162
185
|
suzi txns --agent <id> # Filter by specific agent
|
|
163
|
-
suzi tx-confirm <agentId>
|
|
186
|
+
suzi tx-confirm <agentId> [executionId] # Show execution details and parsed input/output
|
|
164
187
|
\`\`\`
|
|
165
188
|
|
|
166
|
-
### Tools &
|
|
189
|
+
### Tools & Triggers
|
|
167
190
|
|
|
168
191
|
\`\`\`bash
|
|
169
|
-
suzi list-
|
|
170
|
-
suzi list-
|
|
171
|
-
suzi list-
|
|
192
|
+
suzi list-actions # List all protocols (alias: suzi actions)
|
|
193
|
+
suzi list-actions --verbose # Show all actions per protocol
|
|
194
|
+
suzi list-actions --protocol <name> # Show actions for one protocol
|
|
195
|
+
suzi list-actions --protocol <name> --schema <action> # Print action schema JSON
|
|
196
|
+
suzi list-actions reload # Force-refresh actions cache from API
|
|
172
197
|
suzi list-triggers # List all available triggers (alias: suzi triggers)
|
|
173
|
-
suzi list-triggers --
|
|
198
|
+
suzi list-triggers --verbose # Show trigger config fields and examples
|
|
199
|
+
suzi list-triggers --protocol <name> # Show triggers for one protocol
|
|
200
|
+
suzi list-triggers --protocol <name> --schema <trigger> # Print trigger schema JSON
|
|
201
|
+
\`\`\`
|
|
202
|
+
|
|
203
|
+
### Action Parameter & Response Schemas
|
|
204
|
+
|
|
205
|
+
Every action has a typed **parameters** schema (what you pass in) and a **response** schema (what the action returns). Both are available as JSON Schema via the CLI.
|
|
206
|
+
|
|
207
|
+
**Before writing any action call in agent code, always run the CLI to get the current schemas:**
|
|
208
|
+
|
|
209
|
+
\`\`\`bash
|
|
210
|
+
# See all actions in a protocol
|
|
211
|
+
suzi list-actions --protocol polymarket --verbose
|
|
212
|
+
|
|
213
|
+
# Get the full JSON schema (parameters + response) for a specific action
|
|
214
|
+
suzi list-actions --protocol polymarket --schema place_order
|
|
215
|
+
\`\`\`
|
|
216
|
+
|
|
217
|
+
**Do NOT guess action parameters or response fields.** Run the CLI to see the exact schemas, then use those fields in your agent code. This skill's field listings can be stale — the CLI is always up to date.
|
|
218
|
+
|
|
219
|
+
### Environment Variables
|
|
220
|
+
|
|
221
|
+
\`\`\`bash
|
|
222
|
+
suzi env # Interactive env-var manager
|
|
223
|
+
suzi env list # List env-var names and scopes
|
|
224
|
+
suzi env list --agent <id> # List env vars for a specific agent
|
|
225
|
+
suzi env set <KEY> # Set env var (prompts for secret value)
|
|
226
|
+
suzi env set <KEY> --agent <id> # Set env var scoped to one agent
|
|
227
|
+
suzi env remove <KEY> # Remove env var
|
|
228
|
+
suzi env remove <KEY> --agent <id> # Remove scoped env var
|
|
174
229
|
\`\`\`
|
|
175
230
|
|
|
176
231
|
### Preferences
|
|
@@ -182,10 +237,55 @@ suzi prefs telegram # Connect Telegram for notifications
|
|
|
182
237
|
suzi prefs api-url <url> # Set API server URL
|
|
183
238
|
\`\`\`
|
|
184
239
|
|
|
185
|
-
###
|
|
240
|
+
### AI-Assisted Agent Creation
|
|
241
|
+
|
|
242
|
+
\`\`\`bash
|
|
243
|
+
suzi create # Create with configured default AI; falls back to Claude
|
|
244
|
+
suzi create ./my-agent # Create inside a target directory
|
|
245
|
+
suzi create --ai claude # Force Claude Code for this run
|
|
246
|
+
suzi create --ai codex # Force Codex for this run
|
|
247
|
+
suzi create --set-default claude # Set default AI provider
|
|
248
|
+
suzi create --set-default codex # Set default AI provider
|
|
249
|
+
suzi create --no-scaffold # Skip template creation for agent.ts
|
|
250
|
+
\`\`\`
|
|
251
|
+
|
|
252
|
+
### Agent Templates
|
|
253
|
+
|
|
254
|
+
\`\`\`bash
|
|
255
|
+
suzi subagents # List agent.md and agent.ts files in current directory
|
|
256
|
+
suzi subagents init # Create template agent.md + agent.ts files
|
|
257
|
+
suzi subagents init --dir ./myagent # Create templates in specific directory
|
|
258
|
+
suzi subagents validate # Validate agent.md (Meta/Resources/Triggers checks)
|
|
259
|
+
suzi subagents validate ./agent.md # Validate specific file
|
|
260
|
+
\`\`\`
|
|
261
|
+
|
|
262
|
+
### Memory & Context
|
|
263
|
+
|
|
264
|
+
\`\`\`bash
|
|
265
|
+
suzi memory # Show memory summary
|
|
266
|
+
suzi memory learnings # View recent learnings
|
|
267
|
+
suzi memory log # View today's activity log
|
|
268
|
+
suzi memory log 2026-01-15 # View a specific day
|
|
269
|
+
suzi memory context # View active context
|
|
270
|
+
suzi memory clear # Clear learnings (use -f to skip confirmation)
|
|
271
|
+
suzi memory edit # Edit learnings in $EDITOR
|
|
272
|
+
suzi memory export # Export memory files to stdout
|
|
273
|
+
\`\`\`
|
|
274
|
+
|
|
275
|
+
### Project Setup & Hooks
|
|
276
|
+
|
|
277
|
+
\`\`\`bash
|
|
278
|
+
suzi init # Generate SUZI.md for current project
|
|
279
|
+
suzi install-hooks # Install global Claude Code hooks (~/.claude/hooks/)
|
|
280
|
+
suzi install-hooks --preferences # Also create starter ~/.suzi/preferences.md
|
|
281
|
+
\`\`\`
|
|
282
|
+
|
|
283
|
+
### Feedback & Suggestions
|
|
186
284
|
|
|
187
285
|
\`\`\`bash
|
|
188
286
|
suzi suggest # Interactive command suggestions (alias: suzi help-me)
|
|
287
|
+
suzi feedback # Send feedback interactively
|
|
288
|
+
suzi feedback -c bug -m "..." # Non-interactive feedback submit
|
|
189
289
|
suzi --help # Show all commands
|
|
190
290
|
\`\`\`
|
|
191
291
|
|
|
@@ -194,8 +294,10 @@ suzi --help # Show all commands
|
|
|
194
294
|
\`\`\`bash
|
|
195
295
|
suzi skills # List available skills
|
|
196
296
|
suzi skills show <name> # Show skill details and sections
|
|
197
|
-
suzi skills add <name> # Install
|
|
297
|
+
suzi skills add <name> # Install for Claude + Codex (default target)
|
|
198
298
|
suzi skills add --all # Install all available skills
|
|
299
|
+
suzi skills add <name> --client claude|codex|both
|
|
300
|
+
suzi skills add <name> --dir <path> # Install into a custom directory
|
|
199
301
|
\`\`\`
|
|
200
302
|
|
|
201
303
|
---
|
|
@@ -335,9 +437,15 @@ ctx.actions.<protocol>.<action>() // Call any protocol action
|
|
|
335
437
|
ctx.config // Access config values
|
|
336
438
|
\`\`\`
|
|
337
439
|
|
|
338
|
-
**To see what protocols and actions are available, run \`suzi list-
|
|
440
|
+
**To see what protocols and actions are available, run \`suzi list-actions --verbose\`.**
|
|
339
441
|
Actions are called as \`ctx.actions.<protocol>.<action_name>({ ...params })\`.
|
|
340
442
|
|
|
443
|
+
**Before writing any action call, always fetch its schema first:**
|
|
444
|
+
\`\`\`bash
|
|
445
|
+
suzi list-actions --protocol <name> --schema <action>
|
|
446
|
+
\`\`\`
|
|
447
|
+
This returns both the **parameters** (what to pass) and the **response** (what comes back). Use the response schema to know what fields are available on the result object. Never guess parameter names or response fields — always check the schema.
|
|
448
|
+
|
|
341
449
|
### Validation Rules
|
|
342
450
|
|
|
343
451
|
- Agent **must** default-export via \`defineAgent({})\`
|
|
@@ -376,6 +484,22 @@ Actions are called as \`ctx.actions.<protocol>.<action_name>({ ...params })\`.
|
|
|
376
484
|
| \`0 */4 * * *\` | Every 4 hours |
|
|
377
485
|
| \`0 0 * * *\` | Daily at midnight |
|
|
378
486
|
|
|
487
|
+
### Trigger Event Output Schemas
|
|
488
|
+
|
|
489
|
+
Every trigger passes a typed \`event\` object to the handler. The \`event\` contains specific fields depending on the trigger type (e.g., price, size, side, timestamp, etc.).
|
|
490
|
+
|
|
491
|
+
**Before writing a trigger handler, always run the CLI to get the current output schema:**
|
|
492
|
+
|
|
493
|
+
\`\`\`bash
|
|
494
|
+
# See output fields for all triggers in a protocol
|
|
495
|
+
suzi list-triggers --protocol polymarket --verbose
|
|
496
|
+
|
|
497
|
+
# Get the full JSON schema (configSchema + outputSchema) for a specific trigger
|
|
498
|
+
suzi list-triggers --protocol polymarket --schema price_change
|
|
499
|
+
\`\`\`
|
|
500
|
+
|
|
501
|
+
**Do NOT guess event field names.** Run the CLI to see the exact output schema, then use those fields in your handler. This skill's field listings can be stale — the CLI is always up to date.
|
|
502
|
+
|
|
379
503
|
---
|
|
380
504
|
|
|
381
505
|
## Common Workflows
|
|
@@ -392,12 +516,15 @@ suzi deploy ./agent.ts --activate
|
|
|
392
516
|
suzi deploy ./agent.ts --update <agent-id>
|
|
393
517
|
\`\`\`
|
|
394
518
|
|
|
395
|
-
### Monitor Agent
|
|
519
|
+
### Monitor & Debug Agent
|
|
396
520
|
|
|
397
521
|
\`\`\`bash
|
|
398
|
-
suzi agents logs <id>
|
|
399
|
-
suzi
|
|
400
|
-
suzi
|
|
522
|
+
suzi agents logs <id> # Quick log check
|
|
523
|
+
suzi debug logs <id> --status error # Datadog error logs
|
|
524
|
+
suzi debug runs <id> --status failed # Failed runs
|
|
525
|
+
suzi debug executions <id> --status failed # Failed action executions
|
|
526
|
+
suzi debug db-logs <id> --level error # Database error logs
|
|
527
|
+
suzi txns --agent <id> # View transactions
|
|
401
528
|
\`\`\`
|
|
402
529
|
|
|
403
530
|
### Typical Development Loop
|
|
@@ -406,27 +533,30 @@ suzi txns --agent <id> # View transactions
|
|
|
406
533
|
# 1. Create template
|
|
407
534
|
suzi subagents init --dir ./my-agent
|
|
408
535
|
|
|
409
|
-
# 2.
|
|
536
|
+
# 2. Look up schemas for the actions you plan to use
|
|
537
|
+
suzi list-actions --protocol <name> --schema <action>
|
|
410
538
|
|
|
411
|
-
# 3.
|
|
539
|
+
# 3. Edit agent.ts — write your logic using the exact parameter/response fields
|
|
540
|
+
|
|
541
|
+
# 4. Validate before deploying (checks triggers + actions)
|
|
412
542
|
suzi validate ./my-agent/agent.ts
|
|
413
543
|
|
|
414
|
-
#
|
|
544
|
+
# 5. Deploy as draft
|
|
415
545
|
suzi deploy ./my-agent/agent.ts
|
|
416
546
|
|
|
417
|
-
#
|
|
547
|
+
# 6. Review
|
|
418
548
|
suzi agents view <id>
|
|
419
549
|
|
|
420
|
-
#
|
|
550
|
+
# 7. Activate
|
|
421
551
|
suzi agents activate <id>
|
|
422
552
|
|
|
423
|
-
#
|
|
553
|
+
# 8. Test manually
|
|
424
554
|
suzi agents execute <id>
|
|
425
555
|
|
|
426
|
-
#
|
|
556
|
+
# 9. Check results
|
|
427
557
|
suzi agents logs <id>
|
|
428
558
|
|
|
429
|
-
#
|
|
559
|
+
# 10. Iterate — update code
|
|
430
560
|
suzi deploy ./my-agent/agent.ts --update <id>
|
|
431
561
|
\`\`\`
|
|
432
562
|
|
|
@@ -442,5 +572,78 @@ suzi deploy ./my-agent/agent.ts --update <id>
|
|
|
442
572
|
6. **No imports** — all code must be self-contained. Use \`ctx.actions\` for all external interactions
|
|
443
573
|
7. **Test with manual triggers first**, then add cron schedules
|
|
444
574
|
8. **Connect Telegram** (\`suzi prefs telegram\`) for \`suzi.notify\` alerts
|
|
575
|
+
|
|
576
|
+
---
|
|
577
|
+
|
|
578
|
+
## Feedback
|
|
579
|
+
|
|
580
|
+
Users can send feedback (bug reports, feature requests, general comments) directly to the Suzi team from the CLI. **Proactively suggest this** when a user hits a bug, has a frustrating experience, or mentions something they wish worked differently.
|
|
581
|
+
|
|
582
|
+
\`\`\`bash
|
|
583
|
+
suzi feedback # Interactive — pick category, type message
|
|
584
|
+
suzi feedback -c bug -m "description" # Non-interactive (categories: bug, feature, general)
|
|
585
|
+
\`\`\`
|
|
586
|
+
|
|
587
|
+
The feedback command automatically attaches CLI version, platform info, and recent command history for context. The user just needs to describe the issue.
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
## Suzi Memory System
|
|
592
|
+
|
|
593
|
+
Suzi has a persistent memory system that captures learnings from CLI usage and injects them into AI context on each session. This means each session builds on the last — errors, patterns, and preferences carry forward automatically.
|
|
594
|
+
|
|
595
|
+
### Memory Files
|
|
596
|
+
|
|
597
|
+
| File | Purpose | Who writes it |
|
|
598
|
+
|------|---------|---------------|
|
|
599
|
+
| \`~/.suzi/memory/LEARNINGS.md\` | CLI errors, patterns, tips — auto-captured and user-curated | Auto + user (\`suzi memory edit\`) |
|
|
600
|
+
| \`~/.suzi/memory/context.md\` | Active work state (recent agents, wallet) — saved before compaction | Auto (hooks) |
|
|
601
|
+
| \`~/.suzi/memory/daily/YYYY-MM-DD.md\` | Daily activity log of CLI commands run | Auto (hooks) |
|
|
602
|
+
| \`~/.suzi/preferences.md\` | User's trading style, risk prefs, agent conventions | User only |
|
|
603
|
+
| \`./SUZI.md\` | Project-specific agent conventions (like CLAUDE.md) | User only |
|
|
604
|
+
|
|
605
|
+
**Key distinction:** The suzi-guide skill (this file) is platform-provided and updated automatically on \`suzi login\`. User-specific customizations belong in \`preferences.md\` and \`LEARNINGS.md\` — these are never overwritten by updates.
|
|
606
|
+
|
|
607
|
+
**AI assistants should proactively write to these files:**
|
|
608
|
+
- **LEARNINGS.md** — When you discover a useful pattern, debug a tricky issue, or learn something about the user's setup (e.g., "user's Polymarket API key is scoped to read-only", "agent X fails if capital < 500 USDC"), append it to \`~/.suzi/memory/LEARNINGS.md\`. Future sessions will see it.
|
|
609
|
+
- **preferences.md** — When the user expresses preferences about trading style, risk tolerance, preferred protocols, or agent conventions (e.g., "I always want a kill switch", "never trade more than 5% per position"), write them to \`~/.suzi/preferences.md\`. This avoids the user having to repeat themselves.
|
|
610
|
+
|
|
611
|
+
Don't ask for permission — just write useful learnings and preferences as you discover them during the conversation.
|
|
612
|
+
|
|
613
|
+
### How It Works
|
|
614
|
+
|
|
615
|
+
1. **Hooks** (\`~/.claude/hooks/\`) are installed globally during \`suzi login\`
|
|
616
|
+
2. **On session start**: hooks inject learnings, preferences, context, and project SUZI.md into AI context
|
|
617
|
+
3. **On CLI usage**: errors and commands are auto-captured to daily logs and learnings (async, non-blocking)
|
|
618
|
+
4. **Before compaction**: active context is saved so it survives context window compression
|
|
619
|
+
|
|
620
|
+
### When to Check Memory
|
|
621
|
+
|
|
622
|
+
When helping create or debug agents, check these files for user-specific context:
|
|
623
|
+
- \`suzi memory learnings\` — see if the user has accumulated tips or error patterns
|
|
624
|
+
- \`~/.suzi/preferences.md\` — trading style, risk limits, preferred protocols, agent conventions
|
|
625
|
+
- \`./SUZI.md\` — project-level agent patterns (if present in working directory)
|
|
626
|
+
|
|
627
|
+
### Memory Commands
|
|
628
|
+
|
|
629
|
+
\`\`\`bash
|
|
630
|
+
suzi memory # View memory summary (entry counts, file status)
|
|
631
|
+
suzi memory learnings # See recent learnings (default: last 30 lines)
|
|
632
|
+
suzi memory learnings -n 50 # Show more entries
|
|
633
|
+
suzi memory log # See today's activity log
|
|
634
|
+
suzi memory log 2026-01-15 # See a specific day's log
|
|
635
|
+
suzi memory context # View active context
|
|
636
|
+
suzi memory clear # Clear learnings (with confirmation, -f to skip)
|
|
637
|
+
suzi memory edit # Edit/curate learnings in $EDITOR
|
|
638
|
+
suzi memory export # Export all memory to stdout
|
|
639
|
+
\`\`\`
|
|
640
|
+
|
|
641
|
+
### Setup
|
|
642
|
+
|
|
643
|
+
\`\`\`bash
|
|
644
|
+
suzi install-hooks # Install global Claude Code hooks (~/.claude/hooks/)
|
|
645
|
+
suzi install-hooks --preferences # Also create a starter ~/.suzi/preferences.md
|
|
646
|
+
suzi init # Generate SUZI.md for current project
|
|
647
|
+
\`\`\`
|
|
445
648
|
`;
|
|
446
649
|
//# sourceMappingURL=suzi-guide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suzi-guide.js","sourceRoot":"","sources":["../../src/lib/suzi-guide.ts"],"names":[],"mappings":";AAAA,iEAAiE;;;AAEpD,QAAA,kBAAkB,GAAG
|
|
1
|
+
{"version":3,"file":"suzi-guide.js","sourceRoot":"","sources":["../../src/lib/suzi-guide.ts"],"names":[],"mappings":";AAAA,iEAAiE;;;AAEpD,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmoBjC,CAAC"}
|
package/dist/utils/ui.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export declare const colors: {
|
|
|
13
13
|
export declare function logo(): string;
|
|
14
14
|
export declare function header(text: string): void;
|
|
15
15
|
export declare function success(msg: string): void;
|
|
16
|
-
export declare function error(msg: string
|
|
16
|
+
export declare function error(msg: string, options?: {
|
|
17
|
+
setExitCode?: boolean;
|
|
18
|
+
}): void;
|
|
17
19
|
export declare function warn(msg: string): void;
|
|
18
20
|
export declare function info(msg: string): void;
|
|
19
21
|
export declare function label(key: string, value: string): void;
|
package/dist/utils/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,MAAM;;;;;;;;;;CAUlB,CAAC;AAEF,wBAAgB,IAAI,IAAI,MAAM,CAW7B;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAQzC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,MAAM;;;;;;;;;;CAUlB,CAAC;AAEF,wBAAgB,IAAI,IAAI,MAAM,CAW7B;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAQzC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAK5E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAED,wBAAgB,WAAW,IAAI,OAAO,CAOrC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAGD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQrG;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkBlD"}
|
package/dist/utils/ui.js
CHANGED
|
@@ -53,8 +53,11 @@ function header(text) {
|
|
|
53
53
|
function success(msg) {
|
|
54
54
|
console.log(`${exports.colors.success(figures_1.default.tick)} ${msg}`);
|
|
55
55
|
}
|
|
56
|
-
function error(msg) {
|
|
56
|
+
function error(msg, options) {
|
|
57
57
|
console.log(`${exports.colors.error(figures_1.default.cross)} ${msg}`);
|
|
58
|
+
if (options?.setExitCode !== false) {
|
|
59
|
+
process.exitCode = 1;
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
function warn(msg) {
|
|
60
63
|
console.log(`${exports.colors.warning(figures_1.default.warning)} ${msg}`);
|
package/dist/utils/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":";;;;;;AAgBA,oBAWC;AAED,wBAQC;AAED,0BAEC;AAED,
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":";;;;;;AAgBA,oBAWC;AAED,wBAQC;AAED,0BAEC;AAED,sBAKC;AAED,oBAEC;AAED,oBAEC;AAED,sBAEC;AAED,0BAEC;AAED,kCAOC;AAED,8BAEC;AAED,8BAEC;AAGD,sCAQC;AAED,kCAkBC;AAhHD,kDAA0B;AAC1B,kDAA0B;AAC1B,sDAA8B;AAEjB,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC;IAC7B,SAAS,EAAE,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC;IAC/B,OAAO,EAAE,eAAK,CAAC,KAAK;IACpB,KAAK,EAAE,eAAK,CAAC,GAAG;IAChB,OAAO,EAAE,eAAK,CAAC,MAAM;IACrB,KAAK,EAAE,eAAK,CAAC,IAAI;IACjB,SAAS,EAAE,eAAK,CAAC,IAAI,CAAC,KAAK;IAC3B,GAAG,EAAE,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC;IACzB,GAAG,EAAE,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,SAAgB,IAAI;I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AO,KAA4B,CAAC;IACrF,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC/C,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,SAAgB,WAAW,CAAC,MAAc;IACxC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,cAAM,CAAC,OAAO,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACvC,KAAK,UAAU,CAAC;QAChB,KAAK,OAAO;YACV,OAAO,cAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACrC,KAAK,SAAS;YACZ,OAAO,cAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACrC,KAAK,WAAW;YACd,OAAO,cAAM,CAAC,OAAO,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACvC,KAAK,SAAS;YACZ,OAAO,cAAM,CAAC,SAAS,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACzC,KAAK,QAAQ;YACX,OAAO,cAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QACrC;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-tools.d.ts","sourceRoot":"","sources":["../../src/commands/list-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0GpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqI/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-tools.js","sourceRoot":"","sources":["../../src/commands/list-tools.ts"],"names":[],"mappings":";;;;;AA0GA,4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