ai-cli 0.0.9 → 0.0.11

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.
Files changed (3) hide show
  1. package/README.md +32 -10
  2. package/dist/ai.mjs +323 -236
  3. package/package.json +15 -14
package/README.md CHANGED
@@ -33,7 +33,11 @@ echo "explain this" | ai # pipe input
33
33
 
34
34
  - `-m, --model` - model (default: anthropic/claude-sonnet-4.5)
35
35
  - `--image` - attach image file
36
+ - `-r, --resume` - resume a previous chat by ID
37
+ - `--plan` - start in plan mode (think before acting)
36
38
  - `-l, --list` - list models
39
+ - `--no-color` - disable color output
40
+ - `-v, --version` - show version
37
41
  - `-h, --help` - help
38
42
 
39
43
  ## commands
@@ -49,19 +53,11 @@ echo "explain this" | ai # pipe input
49
53
  - `/copy` - copy response
50
54
  - `/rollback` - undo changes
51
55
 
52
- ### git
53
- - `/git status` - file status
54
- - `/git diff` - unstaged changes
55
- - `/git staged` - staged changes
56
- - `/git branch` - list/switch branches
57
- - `/git commit` - ai-generated commit message
58
- - `/git push` - push to remote
59
- - `/git log` - recent commits
60
- - `/git stash` - stash/pop changes
61
-
62
56
  ### context
63
57
  - `/usage` - token usage and cost
64
58
  - `/compress` - compress history
59
+ - `/plan` - toggle plan mode (think before acting)
60
+ - `/review` - review loop (auto-reviews changes for bugs)
65
61
 
66
62
  ### model
67
63
  - `/model` - select model interactively
@@ -73,6 +69,7 @@ echo "explain this" | ai # pipe input
73
69
  - `/memory` - saved memories
74
70
  - `/mcp` - mcp servers
75
71
  - `/settings` - preferences
72
+ - `/permissions` - tool permission rules
76
73
  - `/alias` - shortcuts
77
74
  - `/purge` - delete all chats
78
75
  - `/help` - commands
@@ -138,6 +135,31 @@ manage with `/rules`:
138
135
  /rules path # show path
139
136
  ```
140
137
 
138
+ ## review loop
139
+
140
+ after the coding agent finishes making file changes, a separate review agent automatically inspects all modifications for severe and high-priority bugs. if it finds issues, it fixes them and re-reviews, up to a configurable number of passes.
141
+
142
+ the review agent runs in its own isolated context with a strict system prompt -- it has no attachment to the code it's reviewing and is intentionally more critical than the coding agent.
143
+
144
+ enabled by default. toggle with:
145
+
146
+ ```bash
147
+ /review on # enable
148
+ /review off # disable
149
+ /review # show status
150
+ ```
151
+
152
+ configure max iterations in `~/.ai-cli/config.json`:
153
+
154
+ ```json
155
+ {
156
+ "review": {
157
+ "enabled": true,
158
+ "maxIterations": 3
159
+ }
160
+ }
161
+ ```
162
+
141
163
  ## tools
142
164
 
143
165
  the AI can: