austere-axi 0.10.4 → 0.12.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 +79 -436
- package/dist/austere.js +2 -2
- package/dist/catalog.json +1 -1
- package/dist/chrome/chrome.css +1 -1
- package/dist/chrome/chrome.js +49 -42
- package/dist/cli.mjs +7516 -1681
- package/dist/packs/shadcn/catalog.json +2 -2
- package/dist/packs/shadcn/pack.js +1 -1
- package/package.json +1 -1
- package/skills/austere-setup/SKILL.md +3 -3
package/README.md
CHANGED
|
@@ -1,493 +1,136 @@
|
|
|
1
1
|
# austere-axi
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/austere-axi)
|
|
4
|
-
[](https://www.npmjs.com/package/austere-axi)
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/austere-axi)
|
|
6
|
-
[](https://skills.sh/mandalorianbatman/austere-axi)
|
|
7
4
|
[](https://github.com/MandalorianBatman/austere-axi/actions/workflows/ci.yml)
|
|
8
|
-
[](https://www.npmjs.com/package/austere-axi)
|
|
9
5
|
[](LICENSE)
|
|
10
6
|
|
|
11
|
-
Review
|
|
7
|
+
**Review what your AI coding agent proposes on a page you can click, instead of in a wall of chat text.**
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
2. You open it in the browser, click any part, and write a note.
|
|
15
|
-
3. The agent gets each note with the name of the statement it points at, edits only those statements, and the page updates in place.
|
|
9
|
+

|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
<sub>A real review, about 30 seconds: [MP4](docs/demo.mp4) · [WebM](docs/demo.webm).</sub>
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
**See it without installing anything:** [example pages](https://mandalorianbatman.github.io/austere-axi/gallery/) · [try it in your browser](https://mandalorianbatman.github.io/austere-axi/play/) · [website](https://mandalorianbatman.github.io/austere-axi/)
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
## The problem
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
root = Stack([intro, flow, options, decide], "column", "l")
|
|
25
|
-
intro = Card([CardHeader("Session storage migration", "Redis → Postgres"), introText])
|
|
26
|
-
introText = MarkDownRenderer("Sessions are lost on failover. **Goal:** durable sessions, no forced logout.")
|
|
27
|
-
flow = Card([CardHeader("Request path"), flowDiagram])
|
|
28
|
-
flowDiagram = Architecture([client, api, pg], [toApi, toPg])
|
|
29
|
-
client = Node("Client", "external")
|
|
30
|
-
api = Node("API", "backend", "Node :8080")
|
|
31
|
-
pg = Node("Postgres", "database", "sessions table", "new")
|
|
32
|
-
toApi = Edge(client, api, "HTTPS", "emphasis")
|
|
33
|
-
toPg = Edge(api, pg, "SQL")
|
|
34
|
-
options = Card([CardHeader("Rollout options"), optionTable])
|
|
35
|
-
optionTable = Table([Col("Option", ["Big bang", "Dual-write"]), Col("Risk", [Tag("high", null, "sm", "danger"), Tag("low", null, "sm", "success")])])
|
|
36
|
-
decide = Form("rollout", Buttons([Button("Send decision", @ToAssistant("Decision: rollout"), "primary")]), [strategyField])
|
|
37
|
-
strategyField = FormControl("Rollout", RadioGroup("strategy", [RadioItem("Big bang", "", "bigbang"), RadioItem("Dual-write", "", "dualwrite")]))
|
|
38
|
-
```
|
|
17
|
+
You ask an AI coding agent (Claude Code, Codex, Cursor and the like) for a plan, a comparison, or a summary of what it changed. The answer comes back as a long chat message.
|
|
39
18
|
|
|
40
|
-
|
|
19
|
+
Reviewing that message is slow:
|
|
41
20
|
|
|
42
|
-
|
|
21
|
+
- You have to describe which part you mean ("the second option in the rollout table") before you can say what is wrong with it.
|
|
22
|
+
- The agent guesses what you pointed at, then often rewrites the whole answer, so you read all of it again to find what changed.
|
|
23
|
+
- A diagram or a side-by-side comparison would make the decision easy, and chat gives you paragraphs.
|
|
43
24
|
|
|
44
|
-
##
|
|
25
|
+
## What austere-axi does
|
|
45
26
|
|
|
46
|
-
|
|
27
|
+
The agent puts its answer on a page: sections, tables, diagrams, charts, code changes, and a form for the decision it needs from you.
|
|
47
28
|
|
|
48
|
-
|
|
49
|
-
npx -y austere-axi spec # component reference (read once per session)
|
|
50
|
-
npx -y austere-axi plan.html # validate and open the page for review
|
|
51
|
-
npx -y austere-axi poll plan.html # wait until the reviewer presses Send
|
|
52
|
-
```
|
|
29
|
+
You click the exact thing you want changed and write a note, the way you would comment on a shared document. The agent changes only that part, and the page updates while you watch.
|
|
53
30
|
|
|
54
|
-
|
|
31
|
+
## How you use it
|
|
55
32
|
|
|
56
|
-
|
|
33
|
+
1. **Ask your agent for a page.** Say "show me this plan as a page", or type `/austere` followed by what you want to see. The page opens in your browser.
|
|
34
|
+
2. **Click what you want changed and write a note.** Anything on the page works: a section, one cell of a table, one box in a diagram, one line of a code change, or a sentence you select. Where the page offers choices, pick one or fill in the form.
|
|
35
|
+
3. **Press Send.** The agent gets each note attached to the part you clicked and changes only those parts. The page updates in place and highlights what changed, so you don't have to hunt for it.
|
|
57
36
|
|
|
58
|
-
|
|
37
|
+
Repeat until it is right. When you are done, press **Done** (or **Send & finish** with a last note) and carry on in the chat. The agent stops listening; a note you add later waits until an agent checks.
|
|
59
38
|
|
|
60
|
-
|
|
61
|
-
|---|---|---|
|
|
62
|
-
| Agent writes | Full HTML + CSS + SVG | OpenUI Lang statements |
|
|
63
|
-
| After feedback | Edits the HTML; the page reloads | Edits the named statements; the page patches in place |
|
|
64
|
-
| Feedback points at | CSS selector + text | Statement name and line, plus table cell, diff line, diagram node or selected text |
|
|
65
|
-
| Validation | Layout audit in the browser | `austere-axi check`, in Node, no browser |
|
|
66
|
-
| Look | Different for each agent | One dark design |
|
|
39
|
+
**Come back any time.** Open the page and add a note. If it says *Agent not listening*, tell your agent to check your austere notes.
|
|
67
40
|
|
|
68
|
-
|
|
41
|
+
## What people review with it
|
|
69
42
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
43
|
+
| | Example |
|
|
44
|
+
|---|---|
|
|
45
|
+
| A plan, before any work starts | [Moving a database, with a diagram, rollout options and a decision form](https://mandalorianbatman.github.io/austere-axi/gallery/session-migration.html) |
|
|
46
|
+
| A design, with alternatives to choose from | [API design review](https://mandalorianbatman.github.io/austere-axi/gallery/api-design-review.html) |
|
|
47
|
+
| A summary of what the agent changed | [Pull request summary](https://mandalorianbatman.github.io/austere-axi/gallery/pr-summary.html) |
|
|
48
|
+
| A report on something that went wrong | [Outage postmortem](https://mandalorianbatman.github.io/austere-axi/gallery/incident-postmortem.html) |
|
|
49
|
+
| A plan for the team | [Sprint plan](https://mandalorianbatman.github.io/austere-axi/gallery/sprint-plan.html) |
|
|
73
50
|
|
|
74
|
-
|
|
51
|
+
## What else it does
|
|
75
52
|
|
|
76
|
-
|
|
53
|
+
- **Bring in a teammate.** Ask your agent to publish the page and invite someone by name. Each person gets their own link, and their notes appear under their name. You see their notes first and decide which ones go to the agent. [More on sharing](docs/hosted-pages.md).
|
|
54
|
+
- **Review from your phone.** The review page has a phone layout. This needs [Tailscale](https://tailscale.com) on your computer and phone. [How it works](docs/how-it-works.md#the-review-loop).
|
|
55
|
+
- **Send someone a copy.** "Download standalone HTML" in the page's ⋯ menu saves the page as one file that opens in any browser, offline.
|
|
56
|
+
- **Nothing gets lost.** Every note is saved the moment you send it. If the agent is busy or your computer restarts, the notes are waiting when the agent comes back.
|
|
57
|
+
- **Let the agent answer on its own.** Click the Agent pill at the top of a review page and turn it on: each note you send starts your coding agent, which patches the page and replies while you watch. Stop and Retry are right there. [More on attach](docs/attach.md).
|
|
58
|
+
- **Find old pages.** Ask your agent to open the austere home page. It lists every page by project, and every note, with search. To put a page away, choose Archive page in its ⋯ menu; the Archived link on the home page shows pages you put away. [More on the home page](docs/hub.md).
|
|
77
59
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
**Let your agent do it.** Install the setup skill, then ask your agent to "set up austere-axi":
|
|
81
|
-
|
|
82
|
-
```sh
|
|
83
|
-
npx skills add MandalorianBatman/austere-axi --skill austere-setup
|
|
84
|
-
```
|
|
60
|
+
## Get started
|
|
85
61
|
|
|
86
|
-
|
|
62
|
+
You need two things:
|
|
87
63
|
|
|
88
|
-
|
|
64
|
+
- An AI coding agent, such as Claude Code, Codex or Cursor.
|
|
65
|
+
- [Node.js](https://nodejs.org) version 22.18 or later. It is free, and you install it once.
|
|
89
66
|
|
|
90
|
-
|
|
91
|
-
npx -y austere-axi --help
|
|
92
|
-
```
|
|
67
|
+
Then:
|
|
93
68
|
|
|
94
|
-
|
|
69
|
+
1. Run this once in a terminal:
|
|
95
70
|
|
|
96
|
-
```sh
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
```
|
|
71
|
+
```sh
|
|
72
|
+
npx skills add MandalorianBatman/austere-axi --skill austere-setup
|
|
73
|
+
```
|
|
100
74
|
|
|
101
|
-
|
|
75
|
+
2. Tell your agent: **"set up austere-axi"**. It checks your computer, installs the rest, and opens a test page so you can see it work.
|
|
102
76
|
|
|
103
|
-
|
|
77
|
+
After that, ask for a page whenever an answer would be easier to review as one.
|
|
104
78
|
|
|
105
|
-
|
|
79
|
+
Using Claude Code? You can install it as a plugin instead:
|
|
106
80
|
|
|
107
81
|
```sh
|
|
108
82
|
claude plugin marketplace add MandalorianBatman/austere-axi
|
|
109
83
|
claude plugin install austere@austere-axi
|
|
110
84
|
```
|
|
111
85
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### MCP
|
|
115
|
-
|
|
116
|
-
`austere-axi mcp` is an MCP server on stdio. Tools: `spec`, `check`, `open`, `poll`, `reply`, `patch`, `end`, `components`. Each one runs the CLI command of the same name, so the loop is the same as on the command line.
|
|
117
|
-
|
|
118
|
-
- `poll` returns `status: timeout` after 50 s by default, because many clients cancel longer calls. The agent polls again; nothing is lost. `timeout_ms: 0` waits until feedback arrives.
|
|
119
|
-
- `poll` and `reply` take the `cursor` a poll returned, like `--cursor`.
|
|
120
|
-
- `components` takes `command` (`search`, `show`, `list` or `add`) and `args`; `show` also takes `pack`, like `--pack`. `add` takes only an npm package name, never a folder or `.tgz`, and has no `trust`: a third-party pack the user has not trusted is refused, and the agent asks the user to install it.
|
|
121
|
-
- Pass absolute file paths. The server resolves relative paths against its own working directory, which depends on the client.
|
|
122
|
-
- No screen? Set `AUSTERE_AXI_NO_OPEN=1` in the server's `env` so `open` prints the link instead. Other [environment variables](#environment) work the same way.
|
|
123
|
-
|
|
124
|
-
**Claude Desktop** (`claude_desktop_config.json`) and **Cursor** (`~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project):
|
|
125
|
-
|
|
126
|
-
```json
|
|
127
|
-
{
|
|
128
|
-
"mcpServers": {
|
|
129
|
-
"austere": {
|
|
130
|
-
"command": "npx",
|
|
131
|
-
"args": ["-y", "austere-axi", "mcp"]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
**Codex** (`~/.codex/config.toml`), or `codex mcp add austere -- npx -y austere-axi mcp`:
|
|
138
|
-
|
|
139
|
-
```toml
|
|
140
|
-
[mcp_servers.austere]
|
|
141
|
-
command = "npx"
|
|
142
|
-
args = ["-y", "austere-axi", "mcp"]
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## How it works
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
agent writes plan.html ──► austere-axi plan.html ──► local server + browser review
|
|
149
|
-
│ reviewer annotates, picks options,
|
|
150
|
-
│ types, presses Send
|
|
151
|
-
agent patches changes ◄── austere-axi poll plan.html ◄─┘ (long-poll returns the batch)
|
|
152
|
-
│
|
|
153
|
-
└─► page updates in place and flashes the changed statements
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
- **A page is a plain `.html` file:** one runtime `<script>` tag and one `<script type="text/openui">` block. Opened directly, it loads the runtime from the CDN. Under review, the server serves a local copy.
|
|
157
|
-
- **Components:** 58 stock OpenUI components, plus `Architecture` (`Node`, `Edge`, `Group`), `Diff` and `FileTree`. Nine shadcn-style components come as a bundled [pack](#components-and-packs).
|
|
158
|
-
- **Diagrams lay out automatically** ([dagre](https://github.com/dagrejs/dagre)); the agent never writes coordinates. Every node and edge is a click target. `lanes` puts each group in a column; `tone` colors a box or line to show risk.
|
|
159
|
-
- **Notes** attach to the smallest named statement under the click, with detail where it exists: table row and column, `file:+line` in a diff, a diagram node, or selected text. The hover box outlines that row, line or node, not the whole statement. The reviewer can move a note to a parent section.
|
|
160
|
-
- **Changes flash** after each agent turn, and the bar shows `N changed`. Click it to keep the last turn's changes outlined until you click again.
|
|
161
|
-
- **Buttons and forms send feedback.** `@ToAssistant("…")` sends a message with the form values. A button with no action sends its label.
|
|
162
|
-
- **Phone review:** with Tailscale running, the server also listens on the tailnet IP and prints a phone link. That link carries your owner key; keep it private. The review UI has a mobile layout.
|
|
163
|
-
|
|
164
|
-
## CLI
|
|
165
|
-
|
|
166
|
-
Usage errors (unknown command or flag, missing argument) exit 2 before anything runs; failures exit 1. `<command> --help` prints that command's flags and an example.
|
|
167
|
-
|
|
168
|
-
```
|
|
169
|
-
austere-axi sessions + command list
|
|
170
|
-
austere-axi <file> validate + open a review [--no-open] [--reopen]
|
|
171
|
-
austere-axi poll <file> long-poll for feedback [--cursor n] [--agent-reply "..."] [--after n] [--takeover]
|
|
172
|
-
austere-axi reply <file> post a reply without polling [--cursor n]
|
|
173
|
-
austere-axi end <file> stop as the agent; the reviewer can still add notes
|
|
174
|
-
austere-axi close <file> close the review: no more notes until reopen
|
|
175
|
-
austere-axi reopen <file> reopen an ended or closed review
|
|
176
|
-
austere-axi login [file] single-use link that signs a browser in as you (SSH, --no-open)
|
|
177
|
-
austere-axi feedback <file> feedback no agent has answered yet [--all] [--peek]
|
|
178
|
-
austere-axi check <file> validate the program (no browser) [--fix] [--render: headless Chrome, text report]
|
|
179
|
-
austere-axi patch <file> merge statements from stdin into the program (reports dropped unreferenced ones)
|
|
180
|
-
austere-axi spec [group|pack...] component reference (~5.8k tokens; groups narrow it)
|
|
181
|
-
austere-axi components ... list | search | show | add | remove | new | build
|
|
182
|
-
austere-axi trust list|add|remove packs your agent may add without --trust (see Trust)
|
|
183
|
-
austere-axi registry list|add|remove private npm registries for scopes (see Private registries)
|
|
184
|
-
austere-axi export <file> one self-contained HTML file, works offline (~1.1 MB)
|
|
185
|
-
austere-axi hub on|off|status|list|notes|open home page with every page and note
|
|
186
|
-
austere-axi share <file> --as "<name>" invite link for a teammate on your tailnet [--auto]
|
|
187
|
-
austere-axi share list|revoke see invites, cut one off
|
|
188
|
-
austere-axi publish <file> hosted copy of the page on austere.kasat.xyz [--invite <name>]... [--expires <dur>] [--unlisted] [--auto] [--no-presence] [--new]
|
|
189
|
-
austere-axi publish invites|revoke <file> [name] see a page's invites, cut one off
|
|
190
|
-
austere-axi publish list|rm <file|id> your hosted pages; delete one now
|
|
191
|
-
austere-axi stop stop the background server
|
|
192
|
-
austere-axi server --persist run the server in the foreground and never idle out
|
|
193
|
-
austere-axi mcp MCP server on stdio (see MCP)
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
Output is compact YAML for agents. Each `poll` item has its statement and that statement's line and source, so the agent does not read the file again. Agents revise with `patch` only: they send the changed statements, never the whole file.
|
|
197
|
-
|
|
198
|
-
### Session rules
|
|
199
|
-
|
|
200
|
-
- **One listener:** one `poll` listens on a session at a time.
|
|
201
|
-
- **Hand the page to an agent:** **Copy agent prompt** in the review page's `⋯` menu (the owner's only) copies a prompt for an agent that should listen on this page: the file, the shared page's address when it is published, and the `poll` / `patch` loop. It holds no owner key, token or invite link. The agent needs the file at the same path, so it works on another machine too once that machine has your `cloud.json`.
|
|
202
|
-
- **No lost notes:** every note is written to `~/.austere-axi/hub.db` before the page is told it was sent, so it survives a server crash or restart. Feedback sent while no agent listens waits for the next poll.
|
|
203
|
-
- **Acknowledge with the cursor:** `poll` prints a `cursor`. Passing it back (`--cursor n` on the next `poll` or `reply`), or replying at all, acknowledges everything up to it. Without it, `poll` returns the same feedback again, so a crash or timed-out tool call loses nothing. `--after n` replays from any point.
|
|
204
|
-
- **End is soft:** ending a review (the agent's `end`, or **End review** in the page) means the agent stopped. The reviewer can still send notes. The next `poll` returns every unacknowledged note, including ones sent before the end or released from hold after it, and reopens the review. A batch the reviewer sent together with end stays final.
|
|
205
|
-
- **Close is hard:** only the owner's **close** (`close <file>`, or **Close review** in the page) locks the composer. `reopen <file>` or **Reopen review** unlocks it.
|
|
206
|
-
- A review the user ended or closed opens again only with `--reopen`.
|
|
207
|
-
- An `Image` src that is a path relative to the page (png, jpg, gif, webp, svg, avif) loads under review for the owner and for invited reviewers, and `export` inlines it as a data URI. Both read only regular files in the page's own folder, never dotfiles or links that leave it; `export` skips an image over 10 MB. A file `export` cannot read stays as written, and the output names it in `notices`.
|
|
208
|
-
- **Tabs closed:** `poll` returns `browser_disconnected` 10 s after the last review tab closes, or 5 min after a dropped connection (for example, a locked phone). The review stays open, so later notes reach the next `poll`.
|
|
209
|
-
- `feedback <file>` returns notes no agent has answered, from any day. Reading them acknowledges them; `reply` marks them answered.
|
|
210
|
-
- **Render failures reach the agent without a click:** an unknown component or a component that throws. The owner's open review page sends them as a note from "Render check", once per page revision, and `poll` returns them as `render_error` items. With no review tab open, nothing renders, so nothing is sent. `check --render <file>` renders the page in headless Chrome (an installed Chrome, Chromium or Edge, or `CHROME_PATH`) at 1280 and 390 px, opens each tab in turn, and prints render errors and the statements that make the page scroll sideways, as text, with no screenshot. Agents run it only when the user asks for a check.
|
|
211
|
-
|
|
212
|
-
## Components and packs
|
|
213
|
-
|
|
214
|
-
`spec` covers the common components (~5.8k tokens). Rare ones (area and scatter charts, sliders, switches, editable tables, …) are in the library but not in `spec`. Find them with `components`:
|
|
215
|
-
|
|
216
|
-
```sh
|
|
217
|
-
austere-axi components # every component, by group
|
|
218
|
-
austere-axi components search scatter # search by name, group, description; also packs on npm
|
|
219
|
-
austere-axi components show AreaChart # signature, notes, example
|
|
220
|
-
austere-axi components show Milestones --pack austere-pack-orbit # one pack's, when several share the name
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Packs** add components. A pack is an npm package with `dist/pack.js` (the components, a few KB) and `dist/catalog.json` (signatures, examples, schema).
|
|
224
|
-
|
|
225
|
-
```sh
|
|
226
|
-
austere-axi components add austere-pack-gantt --trust # npm name, folder, or .tgz
|
|
227
|
-
austere-axi check --fix plan.html # adds the pack tag to the page
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
`components search` and `components show` also cover packs on npm that are not installed, meaning any package with the keyword `austere-axi-pack`. Search lists up to 8 core and installed components under `results`, then up to 3 from packs on npm under `npm`, so a pack on npm never pushes a core component out. A result names its pack, says `not installed`, and says whether the pack is first-party, `trusted` (on your trust list) or third-party; `show` cuts such a component's description, example and notes short. `show <Name>` returns the first component by that name, core and installed packs first; `--pack <pack>` looks only in that pack, and search names it for an npm result whose name another result or a local component shares. The CLI reads the pack's catalog from its tarball, checked against the registry's integrity hash, and runs none of its code. It caches the pack list for an hour, under `~/.austere-axi/npm-packs/`. It caches each pack version for good once it is read, fails the install checks, or the registry answers 404 or 410 for it; any other failure is tried again on the next search. For a third-party pack, the agent is told to ask you to review it and run `components add <pack> --trust`. With the registry unreachable, search shows local results, says so, and tries the registry again after 5 minutes. A pack the registry fails to serve is left out, and search says how many were.
|
|
231
|
-
|
|
232
|
-
A page names its packs in the head, so it renders anywhere:
|
|
233
|
-
|
|
234
|
-
```html
|
|
235
|
-
<meta name="austere-packs" content="austere-pack-gantt@1.2.0 sha384-…">
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
- Under review, the server serves an installed pack only while it matches its hash in `~/.austere-axi/packs.json`. Opened directly, the page loads packs from jsDelivr with Subresource Integrity. `export` inlines them.
|
|
239
|
-
- `export` inlines the runtime and packs gzipped (base64), and a short loader unpacks them with `DecompressionStream` (Chrome 80, Firefox 113, Safari 16.4). Review and patch the source page; the exported copy is for sharing. `check` flags an exported copy, and review serves it as it is, with no second runtime.
|
|
240
|
-
- A pack component with no pack tag is a `missing-pack` error. `check --fix` repairs it.
|
|
241
|
-
- **Bundled packs** need no tag and load only when used:
|
|
242
|
-
- `shadcn`: `Progress`, `Avatar`, `AvatarGroup`, `Tooltip`, `HoverCard`, `Breadcrumb` (`BreadcrumbItem`), `Kbd`, `Skeleton`, `Calendar` and `Timeline` (`TimelineItem`). Read-only.
|
|
243
|
-
```
|
|
244
|
-
rollout = Progress(64, "Rows migrated")
|
|
245
|
-
freeze = Calendar("2026-11", ["2026-11-04 Code freeze"])
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
**Trust.** Pack code runs inside your review pages, where notes and button presses also come from. Packs under `@austere-axi/` on npm install directly. Other npm packs and any `.tgz` need `--trust`, so read them first. A local folder counts as your own. A page with third-party packs shows a warning, and `poll` tells the agent.
|
|
249
|
-
|
|
250
|
-
Your trust list, `~/.austere-axi/trusted.json`, names npm packs your agent may install without `--trust`:
|
|
251
|
-
|
|
252
|
-
```sh
|
|
253
|
-
austere-axi trust add austere-pack-gantt@1.2.0 # pins that version and the hash of its pack.js
|
|
254
|
-
austere-axi trust add @acme # every pack in a scope on the current registry, e.g. your company's
|
|
255
|
-
austere-axi trust list
|
|
256
|
-
austere-axi trust remove @acme
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
- A pin trusts one exact version with the same `pack.js`. A later publish, or the same version with other code, still needs `--trust`. `components add <pack>` with no version installs the pinned one.
|
|
260
|
-
- A scope is bound to the registry it was added from: its private registry when the scope is mapped to one (see Private registries), else the default (`AUSTERE_AXI_NPM_REGISTRY`, else `npm_config_registry`, else npmjs). Pointed at another registry, packs in that scope are third-party again, since anyone may own the same scope name there.
|
|
261
|
-
- Search marks packs on the list `trusted` and tells the agent it may add them.
|
|
262
|
-
- `trust add` asks you to confirm at a terminal and refuses when stdin is not one, which is how agents run commands. That stops an agent adding a search hit to the list by accident. It does not stop an agent set on editing the file.
|
|
263
|
-
- Only this file in your home folder counts. A project cannot ship its own list.
|
|
264
|
-
- If the file is unreadable, search counts every npm pack third-party and says so, and `trust` refuses until you fix or delete it. `components add` refuses only the installs the list would decide: a third-party npm pack without `--trust`. First-party packs, local folders and `--trust` installs are unaffected.
|
|
265
|
-
|
|
266
|
-
**Private registries.** Packs your team publishes to Verdaccio, Artifactory or GitHub Packages are found and installed once you map their npm scope to that registry, in `~/.austere-axi/registries.json`:
|
|
267
|
-
|
|
268
|
-
```sh
|
|
269
|
-
austere-axi registry add @acme https://npm.acme.dev/ --token-env ACME_NPM_TOKEN
|
|
270
|
-
austere-axi registry list
|
|
271
|
-
austere-axi registry remove @acme
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
- `components search` and `show` query the default registry and each mapped one, with the same `austere-axi-pack` keyword search. A hit from a mapped registry names its host, e.g. `npm @acme/pack-flows@0.3.0 (npm.acme.dev), not installed, third-party`. If one registry does not answer, the others still do and the result says which one was unavailable.
|
|
275
|
-
- `components add @acme/<pack>` installs from @acme's registry. A mapped registry counts only for its own scope: packs it lists under other names are ignored, and the default registry's packs in that scope are left out.
|
|
276
|
-
- `--token-env` names an environment variable that holds a bearer token. The file stores the name, never the token. The token goes only to that registry's own origin, never to the default registry or to a tarball on another host.
|
|
277
|
-
- The URL must be https, or http on localhost. `@austere-axi` cannot be mapped.
|
|
278
|
-
- `registry add` runs only at a terminal, like `trust add`: a mapping decides which host receives the token, so an agent without a terminal is told to ask you. `registry remove` works anywhere.
|
|
279
|
-
- Mapping a scope grants no trust: its packs stay third-party until you trust the scope (`trust add @acme`, which records the mapped registry) or pin a pack.
|
|
280
|
-
- Only this file in your home folder counts. If it is unreadable, search covers the default registry only and says so, while `components add`, `trust add` and `registry` refuse until you fix it.
|
|
281
|
-
|
|
282
|
-
**Write a pack:** [Writing a pack](docs/writing-a-pack.md) goes from scaffold to `npm publish`, with [austere-pack-gantt](https://github.com/MandalorianBatman/austere-pack-gantt) as the example. Short version:
|
|
283
|
-
|
|
284
|
-
```sh
|
|
285
|
-
austere-axi components new austere-pack-milestones
|
|
286
|
-
cd austere-pack-milestones && npm install && npm run build
|
|
287
|
-
austere-axi components add .
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
Each component uses `austereComponent` from `austere-axi/pack`: a PascalCase name, zod props in positional order (append-only after you publish), a one-line description and an example. The build loads the pack in Node, so build only code you trust.
|
|
86
|
+
Claude Desktop, Cursor, Codex and manual setup are covered in the [install guide](docs/install.md).
|
|
291
87
|
|
|
292
|
-
##
|
|
88
|
+
## Why it is quick
|
|
293
89
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
```sh
|
|
297
|
-
austere-axi hub on # http://127.0.0.1:4388/: pages by project and day, with search
|
|
298
|
-
austere-axi hub list # the same, for an agent: [words] [--project dir]
|
|
299
|
-
austere-axi hub notes # every note, same for an agent: [words] [--project dir] [--unanswered]
|
|
300
|
-
austere-axi hub off # back to the plain session list; the database stays
|
|
301
|
-
```
|
|
90
|
+
Other tools have the agent hand-write a whole web page, which is slow, costs more, and looks different every time.
|
|
302
91
|
|
|
303
|
-
|
|
92
|
+
With austere-axi the agent writes a short outline that names what goes on the page, and austere-axi draws it. Three things follow:
|
|
304
93
|
|
|
305
|
-
-
|
|
306
|
-
-
|
|
307
|
-
|
|
308
|
-
### Always on, behind a reverse proxy
|
|
309
|
-
|
|
310
|
-
Run the server under a supervisor with `--persist` so it never idles out, and point the proxy at it:
|
|
311
|
-
|
|
312
|
-
```ini
|
|
313
|
-
# ~/.config/systemd/user/austere-axi.service
|
|
314
|
-
[Unit]
|
|
315
|
-
Description=austere-axi review server
|
|
316
|
-
|
|
317
|
-
[Service]
|
|
318
|
-
ExecStart=/usr/bin/env npx -y austere-axi server --persist
|
|
319
|
-
Environment=AUSTERE_AXI_LINK_URL=https://austere.example.com
|
|
320
|
-
Restart=on-failure
|
|
321
|
-
|
|
322
|
-
[Install]
|
|
323
|
-
WantedBy=default.target
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
Then `systemctl --user enable --now austere-axi`. CLI commands on the same machine use the running server. A newer CLI that replaces an older server also starts it with `--persist`. `AUSTERE_AXI_PERSIST=1` is the same as `--persist`.
|
|
327
|
-
|
|
328
|
-
Read the [trust model](#team-review) first: behind a proxy on the same machine, every request looks local.
|
|
329
|
-
|
|
330
|
-
## Team review
|
|
331
|
-
|
|
332
|
-
Teammates on your tailnet can review a page and leave notes under their own name. The server still runs on your machine. No accounts, no hosted service.
|
|
333
|
-
|
|
334
|
-
```sh
|
|
335
|
-
austere-axi share plan.html --as "Ana" # prints a link; notes wait for you
|
|
336
|
-
austere-axi share plan.html --as "Bo" --auto # Bo's notes go straight to the agent
|
|
337
|
-
austere-axi share list [--links] # who has a link
|
|
338
|
-
austere-axi share revoke Ana # name or id; takes effect at once
|
|
339
|
-
```
|
|
94
|
+
- **Pages arrive sooner and cost less.** In our [benchmark](docs/benchmark.md), an agent hand-writing the same pages as full web pages took more than twice as long and cost more than twice as much. The benchmark also lists the cases where the other approach did better.
|
|
95
|
+
- **Every page looks the same.** One clean, dark design, so you learn where things are once.
|
|
96
|
+
- **Changes are small.** The agent edits the one part you pointed at instead of rebuilding the page.
|
|
340
97
|
|
|
341
|
-
|
|
98
|
+
## Private by default
|
|
342
99
|
|
|
343
|
-
-
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
-
|
|
100
|
+
- It runs on your own computer. There is no account and no sign-up.
|
|
101
|
+
- Your pages and notes stay on your computer unless you choose to publish a page.
|
|
102
|
+
- A published page is invite-only unless you ask for an open link, and it expires 30 days after you last published it.
|
|
103
|
+
- It is free and open source (MIT license).
|
|
347
104
|
|
|
348
|
-
|
|
105
|
+
The details are in the [security guide](docs/security.md).
|
|
349
106
|
|
|
350
|
-
|
|
351
|
-
- A request without a valid invite or the owner key is refused, on loopback too. The hub and its Notes view are yours only. A reverse proxy on the same machine gets no owner rights from looking local.
|
|
352
|
-
- Your own phone link carries the owner key (`~/.austere-axi/owner.key`); do not forward it. To revoke all old phone links and owner cookies, delete that file and restart the server.
|
|
107
|
+
## What it does not do yet
|
|
353
108
|
|
|
354
|
-
|
|
109
|
+
- You cannot attach an image to a note.
|
|
110
|
+
- A page is a snapshot. It does not show live data.
|
|
111
|
+
- There is one look: the dark theme.
|
|
355
112
|
|
|
356
|
-
|
|
113
|
+
## Documentation
|
|
357
114
|
|
|
358
|
-
|
|
359
|
-
austere-axi publish plan.html --invite Ana --invite Ben # prints https://austere.kasat.xyz/p/<id>#i=<token> for each
|
|
360
|
-
austere-axi publish plan.html # again: same page, new version; Ana's and Ben's links keep working
|
|
361
|
-
austere-axi publish plan.html --invite Cy --expires 7d # one more reviewer, for a week
|
|
362
|
-
austere-axi publish invites plan.html # who is invited (live, expired, revoked), with their links
|
|
363
|
-
austere-axi publish revoke plan.html Ben # Ben's link stops working; his open page is disconnected
|
|
364
|
-
austere-axi publish plan.html --unlisted # opt-in open link: anyone with the plain URL may review
|
|
365
|
-
austere-axi publish plan.html --new # a fresh page
|
|
366
|
-
austere-axi publish list # your pages, expiry, note counts
|
|
367
|
-
austere-axi publish rm plan.html # or the page id; every link stops working at once
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
- **What is uploaded:** the file with its runtime tag pointed at the service's copy of this CLI version, the installed packs it declares, and the images beside it, inlined by the same rules as `export`. A declared pack that is not installed at that version, or an image that cannot be inlined, is an error. Each upload is limited to 1 MB after gzip.
|
|
371
|
-
- **Who can see it:** pages are invite-only. Each `--invite <name>` gets its own link; the token is in the URL fragment (`#i=…`), which browsers never send to the server, and the reviewer's notes carry that name. Send each person only their link. `--unlisted` opts a page into an open link where reviewers name themselves.
|
|
372
|
-
- **Notes:** reviewers' notes reach `poll` and `feedback` like any other, from the reviewer's name and with `remote: true`. They are held for you by default: press Send (or Discard) in the review page. With `--auto` on the publish they go straight to the agent. The local server picks them up while a `poll` listens, when it starts, and when you run `feedback`; offline, it keeps retrying (up to every 60 s) and local review goes on.
|
|
373
|
-
- **Replies:** `reply` (and `poll --agent-reply`) on a published file also posts the reply to the hosted page. If the service cannot be reached, `reply` warns and the reply is sent when it can.
|
|
374
|
-
- **The ⋯ menu on a hosted page:** "Download standalone HTML" saves the published page with its runtime and packs inlined, the same file `export` writes. On an `--unlisted` page, "Copy page link" copies the open link for every viewer, invited or not. On an invite-only page each link is one reviewer's alone, so the menu says how the owner invites someone instead.
|
|
375
|
-
- **Presence:** everyone on the page sees who is there: your own chip first, ringed, with the name you post under, then a chip per other viewer (viewing, away or writing) and the part each one last clicked in Annotate mode, outlined with their name. You are on the page too while your local review page is open: hosted viewers show as chips there, and your clicks show as an outline for them. Nothing about it is stored. `--no-presence` on a publish turns it off for that page.
|
|
376
|
-
- **Expiry:** 30 days after the last publish.
|
|
377
|
-
- **Owner token:** created on the first `publish`, stored in `~/.austere-axi/cloud.json` (mode 0600). It only controls your pages. Copying the file to another machine makes that machine a peer: it gets the same notes, and a note you send on one machine arrives sent on the other. `cloud.json` maps pages by absolute path, so the file must sit at the same path on both machines.
|
|
378
|
-
|
|
379
|
-
The protocol is in [docs/hosted-share-links.md](docs/hosted-share-links.md).
|
|
380
|
-
|
|
381
|
-
## GitHub Action
|
|
382
|
-
|
|
383
|
-
Posts an austere review page on every pull request: runs `austere-axi check` on the pages you commit, exports each with `austere-axi export`, uploads them as a workflow artifact, and posts or updates **one** PR comment with a summary and a download link.
|
|
384
|
-
|
|
385
|
-
```yaml
|
|
386
|
-
# .github/workflows/austere.yml
|
|
387
|
-
name: austere review
|
|
388
|
-
on: pull_request
|
|
389
|
-
|
|
390
|
-
permissions:
|
|
391
|
-
contents: read
|
|
392
|
-
pull-requests: write # to post the comment
|
|
393
|
-
|
|
394
|
-
jobs:
|
|
395
|
-
review:
|
|
396
|
-
runs-on: ubuntu-latest
|
|
397
|
-
steps:
|
|
398
|
-
- uses: actions/checkout@v7
|
|
399
|
-
- uses: MandalorianBatman/austere-axi/action@v0.7.0
|
|
400
|
-
with:
|
|
401
|
-
pages: reviews/*.html
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
| Input | Default | |
|
|
405
|
-
|---|---|---|
|
|
406
|
-
| `pages` | required | paths or globs, one per line, relative to the workspace |
|
|
407
|
-
| `version` | `latest` | austere-axi version from npm; pin it for reproducible runs |
|
|
408
|
-
| `artifact-name` | `austere-review` | workflow artifact that holds the exported pages |
|
|
409
|
-
| `retention-days` | repository default | artifact retention |
|
|
410
|
-
| `comment` | `true` | `false` leaves only the artifact and the job summary |
|
|
411
|
-
| `comment-tag` | `default` | names the sticky comment; use one per use of the action in the same PR |
|
|
412
|
-
| `github-token` | `github.token` | needs `pull-requests: write` to comment |
|
|
413
|
-
|
|
414
|
-
Outputs: `ok` (`true` when every page passed) and `artifact-url`.
|
|
415
|
-
|
|
416
|
-
- **A failing check fails the job.** The log and the job summary show each error with its statement and line. Pages that passed are still exported.
|
|
417
|
-
- **Fork PRs** get a read-only token, so the comment is skipped with a warning. The job summary and the artifact still carry the report.
|
|
418
|
-
- **Sticky comment:** the action updates only a marked comment posted by its own token's account (a bot account for `github.token`). If someone else posts a comment with the same marker, the action leaves it alone and posts its own.
|
|
419
|
-
- **Triggers:** use `pull_request`. Do not use `pull_request_target` to run pages from a fork.
|
|
420
|
-
- **Artifact:** GitHub zips it and needs a login to download. Unzip and open the HTML in a browser; it works offline. No Pages preview.
|
|
421
|
-
- The action lives in this repo under `action/`, so one ref pins both the action and the CLI contract it calls. `version` still picks the CLI.
|
|
422
|
-
|
|
423
|
-
## Environment
|
|
424
|
-
|
|
425
|
-
| Variable | Default | |
|
|
426
|
-
|---|---|---|
|
|
427
|
-
| `AUSTERE_AXI_PORT` | `4388` | server port |
|
|
428
|
-
| `AUSTERE_AXI_STATE_DIR` | `~/.austere-axi` | sessions, owner key, server log (mode 0700 on macOS and Linux) |
|
|
429
|
-
| `AUSTERE_AXI_NO_OPEN` | | `1` = never open a browser |
|
|
430
|
-
| `AUSTERE_AXI_HOST` | | extra bind address (never `0.0.0.0`) |
|
|
431
|
-
| `AUSTERE_AXI_NO_TAILSCALE` | | `1` = loopback only |
|
|
432
|
-
| `AUSTERE_AXI_LINK_HOST` | | host in the printed remote link (`http://<host>:<port>`) |
|
|
433
|
-
| `AUSTERE_AXI_LINK_URL` | | full origin of the printed remote link, e.g. `https://austere.example.com` behind a TLS proxy; the host is accepted without `ALLOWED_HOSTS` |
|
|
434
|
-
| `AUSTERE_AXI_ALLOWED_HOSTS` | | extra `Host` headers to accept (reverse proxy) |
|
|
435
|
-
| `AUSTERE_AXI_DISCONNECT_GRACE_MS` | `300000` | how long a dropped connection can stay away before `poll` returns; `0` disables |
|
|
436
|
-
| `AUSTERE_AXI_IDLE_TIMEOUT_MS` | `1800000` | idle shutdown; `0` disables |
|
|
437
|
-
| `AUSTERE_AXI_PERSIST` | | `1`: never idle out, as `server --persist` |
|
|
438
|
-
| `AUSTERE_AXI_NPM_REGISTRY` | `npm_config_registry`, else npmjs | where `components add` gets packs and `components search` finds them, except scopes mapped with `registry add` |
|
|
439
|
-
| `AUSTERE_AXI_CLOUD_URL` | `https://austere.kasat.xyz` | the service `publish` talks to (self-hosting, tests) |
|
|
440
|
-
| `AUSTERE_AXI_SYNC_RETRY_MS` | `1000` | first wait before the local server reconnects to a hosted page; it doubles up to 60 s |
|
|
441
|
-
| `CHROME_PATH` | an installed Chrome, Chromium or Edge | the browser `check --render` uses |
|
|
442
|
-
|
|
443
|
-
## Security
|
|
444
|
-
|
|
445
|
-
The server binds to loopback, plus the Tailscale IP when Tailscale is up. Never to all interfaces.
|
|
446
|
-
|
|
447
|
-
**Loopback is not the owner.** Other OS users on the machine can reach loopback too. The owner key (`owner.key`) is what proves ownership.
|
|
448
|
-
|
|
449
|
-
- **API:** `/api/*` answers only loopback callers that send the owner key, and refuses browser requests. `/api/health` needs no key. It proves the server holds the key with an HMAC of its port and the CLI's nonce, so the CLI never talks to, or hands the key to, another program on its port.
|
|
450
|
-
- **Browser sign-in:** when the CLI opens your browser, it gets a single-use login code from the server and opens the page with it. The server swaps the code for the owner cookie and removes it from the address bar. The key never appears on a command line or in output. A code works once, for 60 seconds. Another local user who reads it from the process list in that window can use it first; your browser then shows "used already", and `austere-axi login` gives you a new one.
|
|
451
|
-
- **Other browsers:** a printed `url` works in a browser that already has the cookie. For any other browser (SSH with a forwarded port, `--no-open`, a second browser), run `austere-axi login [file]` and open the link it prints.
|
|
452
|
-
- **Owner cookie** is an HMAC of the key, not the key. Browsers share `127.0.0.1` cookies across ports, so a program on another local port that your browser visits can read it. With it, that program can open your pages and the hub as you in a browser, but cannot call `/api/*`, which needs the key.
|
|
453
|
-
|
|
454
|
-
**Files.** On macOS and Linux the state dir is set to mode 0700 on every run. New files in it (`owner.key`, `server.log`, and `hub.db`, which holds every note) are mode 0600. Files an older version created keep their old mode, behind the 0700 dir. On Windows, file modes do not apply; only your user profile's permissions protect the state dir.
|
|
455
|
-
|
|
456
|
-
**Requests.**
|
|
457
|
-
|
|
458
|
-
- `Host` headers must be on an allowlist (DNS-rebinding defense).
|
|
459
|
-
- Browser routes that change state refuse a foreign `Origin`.
|
|
460
|
-
- Invite tokens are random, compared in constant time, and kept out of the log. A reviewer link can only add notes to its own page. See [Team review](#team-review).
|
|
461
|
-
- The server serves files only from the page's own directory, with no dotfiles.
|
|
462
|
-
|
|
463
|
-
**Page sandbox.** The page runs in a sandboxed iframe with no same-origin access; packs run there too. Page files are also served with `Content-Security-Policy: sandbox`, so a page opened in a popup or its own tab stays sandboxed. In review, the review page opens new-window links only if they are external `http(s):` or `mailto:` links. A popup the frame opens any other way stays sandboxed.
|
|
464
|
-
|
|
465
|
-
**Packs.** Third-party packs need `--trust` unless your trust list names them. Installed packs must match their lockfile hash; CDN loads use Subresource Integrity.
|
|
466
|
-
|
|
467
|
-
**Telemetry.** OpenUI's Node side has PostHog telemetry; the CLI sets `OPENUI_TELEMETRY_DISABLED=1`. The browser runtime sends none.
|
|
468
|
-
|
|
469
|
-
## Not in v1
|
|
470
|
-
|
|
471
|
-
- Image attachments in feedback.
|
|
472
|
-
- Live data: `Query` and `Mutation` are off, so pages are static.
|
|
473
|
-
- Themes: one dark theme only.
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
## Development
|
|
477
|
-
|
|
478
|
-
```sh
|
|
479
|
-
npm install
|
|
480
|
-
npm run build # dist/: runtime, packs, pack kit, spec, catalog, review UI, cli.mjs
|
|
481
|
-
npm test
|
|
482
|
-
npm run typecheck # tsc over src/cli, src/shared and the pack types
|
|
483
|
-
node dist/cli.mjs examples/session-migration.html
|
|
484
|
-
```
|
|
115
|
+
The reference material lives in [`docs/`](docs/README.md).
|
|
485
116
|
|
|
486
|
-
|
|
117
|
+
| Guide | What is in it |
|
|
118
|
+
|---|---|
|
|
119
|
+
| [Install and quick start](docs/install.md) | Setup skill, Claude Code plugin, Claude Desktop, Cursor, Codex |
|
|
120
|
+
| [How it works](docs/how-it-works.md) | What the agent writes, the review loop, how it compares with lavish-axi |
|
|
121
|
+
| [CLI reference](docs/cli.md) | Every command, the review rules, settings |
|
|
122
|
+
| [Components and packs](docs/components-and-packs.md) | What can go on a page, and how to add more |
|
|
123
|
+
| [Writing a pack](docs/writing-a-pack.md) | Build and publish your own components |
|
|
124
|
+
| [Team review](docs/team-review.md) | Invite teammates over your own private network |
|
|
125
|
+
| [Hosted pages](docs/hosted-pages.md) | Publish a page and invite reviewers by link |
|
|
126
|
+
| [Hub](docs/hub.md) | A home page with every review and note; running it all the time |
|
|
127
|
+
| [GitHub Action](docs/github-action.md) | Post a review page on every pull request |
|
|
128
|
+
| [Security](docs/security.md) | Who can reach your pages, and how they are protected |
|
|
129
|
+
| [Benchmark](docs/benchmark.md) | The speed and cost comparison, with its caveats |
|
|
487
130
|
|
|
488
131
|
## Contributing
|
|
489
132
|
|
|
490
|
-
Bug reports, examples, docs fixes and packs are welcome
|
|
133
|
+
Bug reports, examples, docs fixes and packs are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) has the setup and the rules. Issues labelled [`good first issue`](https://github.com/MandalorianBatman/austere-axi/labels/good%20first%20issue) are small and have a clear finish line. Security problems: [report them privately](https://github.com/MandalorianBatman/austere-axi/security/advisories/new), not in an issue.
|
|
491
134
|
|
|
492
135
|
## License
|
|
493
136
|
|