You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install.md
+98-28Lines changed: 98 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,13 @@ The installer writes only Blaze's skill and tool configuration under `~/.claude`
18
18
`~/.agents/skills/blaze`, `~/.codex`, or `~/.config/opencode`, including the shared client helper, token, and private timing receipts, plus the temporary
19
19
installer download described above. It does not modify the user's repository.
20
20
21
-
Blaze watches prompts and splices in a verified Solution Card when one matches a problem an
22
-
earlier agent already solved: two hooks (prompt-submitted, session-stopped) and one skill.
21
+
**Solve once. Build together.** Blaze is a collective memory of verified solutions,
22
+
shared across agents and the people using them. Hooks offer a relevant prior solution
23
+
when a prompt matches; your agent checks it in the current codebase.
23
24
24
-
Human signup is optional. Complete the normal installation without creating an account.
25
+
Every service request requires a private installation token. Authentication makes
26
+
contributions traceable; rate limits protect the shared resource. Human signup is
27
+
optional. Complete the normal installation without creating an account.
25
28
The installed skill explains `/signup`, `/account`, and the helper's explicit `claim`
26
29
command if the user later wants to connect this installation to their account.
27
30
@@ -44,21 +47,68 @@ The client requires Node.js 20 or newer, already available in most coding enviro
44
47
Run `node --version` first. If it is missing or older, report the requirement and pause
45
48
installation; do not claim working timing hooks.
46
49
47
-
Run this next, in the shell you will use for your section:
50
+
Set `BLAZE_TOOL` to `claude`, `codex`, or `opencode` for your current tool, then run
51
+
this block and your section's block **in the same shell call**. It reuses an existing
52
+
token; only a new installation registers. Never print the token or enable shell tracing.
48
53
49
54
```bash
50
-
BLAZE_TOKEN=$(curl -fsS --max-time 5 -X POST {BLAZE_URL}/api/install \
51
-
-H 'content-type: application/json' -d '{}' \
52
-
| sed -n 's/.*"token"[^"]*"\([^"]*\)".*/\1/p')
53
-
if [ -n"$BLAZE_TOKEN" ];thenecho"token obtained";elseecho"token unavailable";fi
55
+
set -e
56
+
set +x
57
+
:"${BLAZE_TOOL:?Set BLAZE_TOOL to claude, codex, or opencode}"
catch { throw new Error('The existing Blaze origin configuration is invalid; setup is incomplete.'); }
75
+
}
76
+
if (origin !== new URL('{BLAZE_URL}').origin) throw new Error('An installation for a different Blaze origin already exists; keep its token and configuration together.');
Copy file name to clipboardExpand all lines: llms.txt
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Blaze
2
2
3
-
> Smart caching for LLM subtasks, built to save users' time. Reuse verified lessons, measure full retrieval, and report outcomes without inventing speedups.
3
+
> Solve once. Build together. A collective memory of verified solutions, shared across agents, models, and the people using them.
4
4
5
5
## Install
6
6
@@ -11,13 +11,21 @@
11
11
12
12
## API
13
13
14
+
All service endpoints below require `Authorization: Bearer blz_...`, except the
15
+
rate-limited `POST /api/install` bootstrap. Public docs and installer downloads need
16
+
no token. Human signup is optional; agent authentication is mandatory. On HTTP 401 repair
17
+
the token, never retry anonymously. On HTTP 429 honor `Retry-After` with the same installation
18
+
and event IDs; never register around a limit. `X-Blaze-Request-Id` supports diagnosis
19
+
without exposing tokens or prompts. Authentication gives accountability, while
20
+
independent verification establishes whether a contribution works.
- POST {BLAZE_URL}/api/install: JSON `{install_id, token: "blz_...", require_auth, endpoints}` — the per-install token, baked into the hooks as `Authorization: Bearer`.
23
+
- POST {BLAZE_URL}/api/install: JSON `{install_id, token: "blz_...", require_auth: true, endpoints}` — the per-install token, stored privately and read by the client.
16
24
- POST {BLAZE_URL}/api/hooks/{claude,codex,opencode}: the lookup endpoint the hooks call; returns `hookSpecificOutput.additionalContext` (also flat `additionalContext` for OpenCode), and `blaze` decision/offer metadata when a durable decision exists. No-offer decisions can still carry timing/reporting context; Stop is not an outcome.
17
25
18
26
- POST {BLAZE_URL}/api/lookup: explicit lookup with optional stable `client_event_id` and compatible 64-hex `context_fingerprint`; returns decision and offer IDs.
19
27
- POST {BLAZE_URL}/api/outcomes: authenticated, idempotent agent report bound to a decision; returns `summary_line`. Use the installed helper to preserve measured timing and retry identity.
- POST {BLAZE_URL}/api/auth/agent/claim/start: authenticated, explicitly requested short-lived installation claim URL/code. Normal installation needs no human signup; optional pages are [signup]({BLAZE_URL}/signup) and [account]({BLAZE_URL}/account).
22
30
- POST {BLAZE_URL}/api/contributions: authenticated, minimized contribution envelope with a stable `client_event_id`; private by default. Public sharing requires explicit user authorization, `visibility: "public"`, and `public_sharing_authorized: true`, followed by trusted evaluation. Use `contribute --tool <tool> --file <minimized-card.json>`; never automatically upload a transcript.
23
31
- GET or DELETE {BLAZE_URL}/api/contributions/{id}: read an owned candidate's status or explicitly revoke and erase its hosted payload. The helper's `contribution` and `delete-contribution` commands take `--id` with the returned contribution UUID.
0 commit comments