@aiiware/aii 0.17.27 → 0.18.1
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 +29 -1
- package/bin/aii +699 -673
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ An autonomous AI assistant that lives in your terminal. Ask it anything — it r
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<strong>npm:</strong> <code>@aiiware/aii</code> · <strong>Version:</strong> 0.
|
|
12
|
+
<strong>npm:</strong> <code>@aiiware/aii</code> · <strong>Version:</strong> 0.18.0 · <strong>Node.js:</strong> >= 20
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -160,6 +160,7 @@ During interactive sessions, type `/` to see all commands. Highlights:
|
|
|
160
160
|
| `/theme [name]` | View or switch color theme |
|
|
161
161
|
| `/auto` | Toggle auto-approve mode |
|
|
162
162
|
| `/plan` | Toggle plan mode (read-only) |
|
|
163
|
+
| `/goal [objective]` | Set a session goal the agent works toward autonomously (see [Session Goals](#session-goals)) |
|
|
163
164
|
| `/diff` | See all file changes this session |
|
|
164
165
|
| `/undo` | Revert the last file change |
|
|
165
166
|
| `/stats` | Session stats — tokens, cost, duration |
|
|
@@ -271,6 +272,33 @@ Pause takes effect between tool calls — the agent finishes what it's doing, th
|
|
|
271
272
|
|
|
272
273
|
The status bar updates in real time with iteration count, token usage, estimated cost, and tool calls — you always know what the loop is doing and what it's costing.
|
|
273
274
|
|
|
275
|
+
### Session Goals (`/goal`)
|
|
276
|
+
|
|
277
|
+
Give the interactive session a **persistent objective it keeps working toward until evidence says it's done** — no more typing "keep going" after every turn:
|
|
278
|
+
|
|
279
|
+
```text
|
|
280
|
+
/goal Make the checkout suite pass, verified by `npm test -w checkout`,
|
|
281
|
+
without changing public API behavior. --budget 2.00
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
While a goal is **active**, the agent sees the objective every turn; when a turn ends and you're not typing, Aii **auto-continues** — checking the evidence first, then either keeps working, declares `GOAL COMPLETE — evidence: …`, or declares `GOAL BLOCKED — <what it needs>`. Completion is evidence-based and shown verbatim; the lifecycle stays yours:
|
|
285
|
+
|
|
286
|
+
| Command | What It Does |
|
|
287
|
+
|---------|-------------|
|
|
288
|
+
| `/goal <objective>` | Set the goal (`--budget <usd>`, `--auto-turns <n>` — `0` = unlimited; `--max-time 2h`, `--max-tokens 5M`; `--verify "cmd"`; `--auto` = no approval prompts) |
|
|
289
|
+
| `/goal` | Status view — objective, status, verify, armed limits, time/tokens used, contextual next commands |
|
|
290
|
+
| `/goal draft <plain description>` | The model proposes a strong goal contract (outcome · verification · constraints); you edit + submit it |
|
|
291
|
+
| `/goal edit <text and/or flags>` | Revise in place (`/goal edit --budget 5` raises a limit without retyping) |
|
|
292
|
+
| `/goal pause` / `resume` / `clear` | Suspend / re-arm / remove |
|
|
293
|
+
|
|
294
|
+
**Verified completion** — arm `--verify "npm test"` and a `GOAL COMPLETE` claim only counts when that command exits 0: failures keep the goal active and feed the output back to the agent, so "done" means *provably* done. **Cloud-safe limits** — `--max-time` and `--max-tokens` work everywhere (including cloud mode, where `--budget` is unavailable by design).
|
|
295
|
+
|
|
296
|
+
**Unattended runs**: in Normal mode, approval prompts pause the goal (it never escalates its own authority) — add `--auto` at set time (or type `/auto`) to auto-approve mutating tools for the session and let it run hands-off.
|
|
297
|
+
|
|
298
|
+
Guardrails by default: auto-continuation caps at **10 turns** per arming (raise with `--auto-turns`, or `--auto-turns 0` for the run-until-done mode — loudly warned without a budget), budgets stop between turns with an honest summary (never claimed as "done"), a continuation that stops making tool calls pauses visibly, typing always wins the turn, Esc pauses the goal, and the `◎ Goal` status-bar segment keeps the state in view the whole time. Goals are session-scoped and survive restarts via `aii agent --continue` (same project only).
|
|
299
|
+
|
|
300
|
+
`/goal` vs `/loop`: a loop grinds a fixed prompt with fresh context each iteration; a goal keeps one **conversation** converging on an outcome — the evidence trail stays in context. Starting a loop auto-pauses an active goal.
|
|
301
|
+
|
|
274
302
|
### Telegram Integration
|
|
275
303
|
|
|
276
304
|
Run the full agent from Telegram:
|