@r5n/ariadne 0.2.0 → 0.3.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 +37 -4
- package/dist/cli.js +214 -125
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@ Requires [Bun](https://bun.sh) and git.
|
|
|
12
12
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
|
-
Install it with Bun, then
|
|
15
|
+
Install it with Bun, then run the guided setup in a repository that has at least one commit:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
bun add -g @r5n/ariadne
|
|
19
|
-
ari
|
|
19
|
+
ari install
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
To try an unreleased change, build it from this repository and link the single-file CLI onto your `PATH` instead:
|
|
@@ -27,7 +27,15 @@ bun --filter @r5n/ariadne build
|
|
|
27
27
|
ln -s "$PWD/packages/ariadne/dist/cli.js" ~/.local/bin/ari
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`ari
|
|
30
|
+
`ari install` shows what is already set up, finds the agents on your `PATH` and asks what to install for each: `.ari/config.json` and a short managed block in `AGENTS.md` that teaches any agent the loop below, agent hooks, the MCP server, the `ariadne` skill, git hooks and, optionally, which agents implement and review tasks. It warns before anything would run twice or clash with lefthook or husky, shows every file it will create or update, writes only after you confirm, then checks the result by starting `ari mcp serve`. Running it again is a status screen: when everything is current it asks nothing.
|
|
31
|
+
|
|
32
|
+
Without a terminal, or in a script, pass the choices as flags; `--yes` takes the recommended defaults and `--dry-run` prints the plan without writing:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
ari install --init --agent claude,codex --yes
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`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.
|
|
31
39
|
|
|
32
40
|
Create a task and write its contract:
|
|
33
41
|
|
|
@@ -88,17 +96,42 @@ Memory is tiered by how often it changes:
|
|
|
88
96
|
|
|
89
97
|
| Layer | Works with | Set up with |
|
|
90
98
|
| --- | --- | --- |
|
|
99
|
+
| Everything below at once | the agents you choose | `ari install` |
|
|
91
100
|
| Instructions | every agent that reads `AGENTS.md` | `ari init` |
|
|
92
101
|
| Self-description | every agent with a shell | `ari --help --json` |
|
|
93
102
|
| Git hooks | every agent and person | `ari hooks install --agent git` (`pre-commit` runs `ari scope --staged`, `pre-push` runs `ari verify`) |
|
|
94
103
|
| CI | everything merged | `ari verify --base <ref>` as a required check, on a checkout with the full history |
|
|
95
104
|
| Agent hooks | Claude Code, Codex CLI, Gemini CLI; Cursor and GitHub Copilot CLI in part | `ari hooks install --agent <name>` |
|
|
96
|
-
|
|
|
105
|
+
| MCP tools | Claude Code, Codex CLI, Gemini CLI, Cursor | `ari mcp install --agent <name>` registers `ari mcp serve` |
|
|
106
|
+
| Skill | Claude Code, Codex CLI, Gemini CLI, Cursor | `ari skills install --agent <name>` |
|
|
107
|
+
| Headless runs | agents with a non-interactive mode | `ari agents add <preset>`, then `ari run`, with `routing` choosing the agent per stage |
|
|
108
|
+
| Review agents | agents with a read-only mode | `ari review`, and `review.agent` for the `review` gate |
|
|
97
109
|
|
|
98
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.
|
|
99
111
|
|
|
112
|
+
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
|
+
|
|
100
114
|
Every command that reports data accepts the global `--json` flag and then writes exactly one JSON document to stdout. Exit code 1 means a failure, including failing gates; exit code 2 means a usage error such as an unknown option.
|
|
101
115
|
|
|
116
|
+
## Agents and review
|
|
117
|
+
|
|
118
|
+
`ari agents add` writes an agent from a preset with least-privilege, non-interactive flags, and `routing` decides who works on which stage. Here Claude Code implements, Codex reviews on another model, and Gemini CLI gives a second opinion:
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
ari agents add claude
|
|
122
|
+
ari agents add codex --role review --model gpt-5.5
|
|
123
|
+
ari agents add gemini --role review
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"routing": { "default": "claude", "review": "gemini" },
|
|
129
|
+
"review": { "command": null, "agent": "codex" }
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`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
|
+
|
|
102
135
|
## Documentation
|
|
103
136
|
|
|
104
137
|
- [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
|