@r5n/ariadne 0.3.0 → 0.4.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.
- package/README.md +13 -3
- package/dist/cli.js +209 -189
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,8 @@ Without a terminal, or in a script, pass the choices as flags; `--yes` takes the
|
|
|
35
35
|
ari install --init --agent claude,codex --yes
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
After it writes, `ari install` prints what changed with the command that undoes each part, and the commands that lead back to your tasks. `ari doctor` checks the whole setup later without changing anything and names the fix for each problem; `ari install --check` does the same for a pipeline; `ari uninstall` removes hooks, MCP servers, skills and git hooks again and gives every file back byte for byte, leaving `.ari/` and your tasks alone.
|
|
39
|
+
|
|
38
40
|
`ari install` is built from smaller commands you can also run yourself: `ari init` creates the configuration and the `AGENTS.md` block, and `ari hooks install`, `ari mcp install`, `ari skills install` and `ari agents add` set up one target each.
|
|
39
41
|
|
|
40
42
|
Create a task and write its contract:
|
|
@@ -90,7 +92,7 @@ Memory is tiered by how often it changes:
|
|
|
90
92
|
| Task notes | the task record | with the task |
|
|
91
93
|
| Knowledge | `.ari/knowledge/*.md` | until archived |
|
|
92
94
|
|
|
93
|
-
`ari sleep` consolidates memory: it runs after every finished task and before an agent compacts its context. It prunes journals, archives duplicates and stale entries, keeps the knowledge within its byte budget and reports what needs judgement.
|
|
95
|
+
`ari sleep` consolidates memory: it runs after every finished task and before an agent compacts its context. It prunes journals, archives duplicates and stale entries, keeps the knowledge within its byte budget and reports what needs judgement. Every pass is logged, `ari sleep --dry-run` shows what would change, and `ari sleep --undo` gives archived entries back byte for byte.
|
|
94
96
|
|
|
95
97
|
## Integrations
|
|
96
98
|
|
|
@@ -107,7 +109,7 @@ Memory is tiered by how often it changes:
|
|
|
107
109
|
| Headless runs | agents with a non-interactive mode | `ari agents add <preset>`, then `ari run`, with `routing` choosing the agent per stage |
|
|
108
110
|
| Review agents | agents with a read-only mode | `ari review`, and `review.agent` for the `review` gate |
|
|
109
111
|
|
|
110
|
-
Agent hooks give early feedback: they deny edits and plain shell writes outside the scope, inside locked files or to ari's own records, refuse `ari approve` and commits that skip git hooks, keep the agent working until `ari done` has passed, and load the context pack when a session starts. The shell hook catches common mistakes. It [does not resolve shell code](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/design.md#what-the-shell-hook-is-for), so an agent can get past it; `ari done`, `ari verify`, the git hooks and CI decide. `ari hooks uninstall --agent <name>` removes the hooks again. Ariadne never adds permission-bypass flags to an agent command.
|
|
112
|
+
Agent hooks give early feedback: they deny edits and plain shell writes outside the scope, inside locked files or to ari's own records, refuse `ari approve`, `ari trust`, `ari uninstall` and commits that skip git hooks, keep the agent working until `ari done` has passed, and load the context pack when a session starts. The shell hook catches common mistakes. It [does not resolve shell code](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/design.md#what-the-shell-hook-is-for), so an agent can get past it; `ari done`, `ari verify`, the git hooks and CI decide. `ari hooks uninstall --agent <name>` removes the hooks again. Ariadne never adds permission-bypass flags to an agent command.
|
|
111
113
|
|
|
112
114
|
The MCP server gives the loop to agents as tools (`ari_next`, `ari_check`, `ari_done` and more) that return the same JSON documents as the commands; approving, amending and resolving stay with people. The skill teaches the loop, contract writing, the gates and the memory commands, and loads whenever a repository has `.ari/`.
|
|
113
115
|
|
|
@@ -132,12 +134,20 @@ ari agents add gemini --role review
|
|
|
132
134
|
|
|
133
135
|
`ari run` then drives a task with Claude Code, the `review` gate (as in the `sdlc` pack's review stage) asks Codex, and `ari review` asks Gemini CLI for its verdict without recording anything. A review agent works in a temporary copy of the change and must answer one JSON verdict; anything else, a timeout or a changed file fails the review.
|
|
134
136
|
|
|
137
|
+
A review can also see what [Argus](https://github.com/r5n-labs/clis/blob/develop/packages/argus/README.md) flags. Set `review.argus` to the path of an argus config that lives outside the repository, and the prompt gains a section "Candidates from a decision model (not verified defects)" with the answers that argus flagged in the files of the change, most confident first and cut to a byte cap. They are leads for the reviewer, never a verdict: the answer format and the fail-closed rules do not change, and if argus is missing or fails, the review runs without the section and says why. `mode: "cached"` (the default) reads answers that argus already holds and sends nothing anywhere; `mode: "run"` lets argus ask its model about the changed files, which sends their source to the model endpoint. `ari review --argus` insists on it and `--no-argus` skips it. See [the command reference](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/reference.md#argus-candidates-as-evidence).
|
|
138
|
+
|
|
139
|
+
An agent starts with a small base environment (`HOME`, `PATH` and the locale, terminal and `XDG_*` variables) plus the variables that its `env` names, so name an API key there: `"env": ["ANTHROPIC_API_KEY"]`. `"inheritEnv": true` passes everything instead and is an explicit choice.
|
|
140
|
+
|
|
141
|
+
## Trust
|
|
142
|
+
|
|
143
|
+
`.ari/config.json` and the project packs in `.ari/packs/` can start processes: agent commands, `review.command`, `review.argus`, `regression.setup` and `command` gates. Like direnv with an `.envrc`, ari starts them only after you trust them on this machine: `ari trust` shows the exact commands and records the SHA-256 of that configuration in `~/.ari/trust/`, and any change to those commands asks again. In CI, set `ARI_TRUST_CONFIG=1` for a repository that you control. Reading commands, `ari verify`, the git and agent hooks, the MCP read tools and gates that only run a contract's checks never need it. `ari init`, `ari install` and `ari agents add` keep trust for the configuration that they write themselves. See [the command reference](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/reference.md#trust) and the [security policy](https://github.com/r5n-labs/clis/blob/develop/SECURITY.md).
|
|
144
|
+
|
|
135
145
|
## Documentation
|
|
136
146
|
|
|
137
147
|
- [Command reference](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/reference.md): every command, its options, JSON output, exit codes and the hook adapters
|
|
138
148
|
- [Design](https://github.com/r5n-labs/clis/blob/develop/packages/ariadne/docs/design.md): contracts, gates, packs, memory and verification in detail
|
|
139
149
|
|
|
140
|
-
|
|
150
|
+
The `checks` and `invariants` of a task contract are shell commands from the repository, run with the same trust as package scripts, and the trust record does not cover them. Review a repository's `.ari/` before running `ari done` inside it. To report a vulnerability, read the [security policy](https://github.com/r5n-labs/clis/blob/develop/SECURITY.md).
|
|
141
151
|
|
|
142
152
|
## Licence
|
|
143
153
|
|