Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 53a2e6d2ca531dd5ee9ea9f8b1079f31ec5ca199
parent 3251212ba87d7f2a710dbd8ebd5901cfa679cfef
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 12 Oct 2026 12:51:37 -0400

plans: local-model report media — the Claude API as a second provider (api-sweep stopgap, the strict quote check)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mplans/local-llm-report-media.md | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/plans/local-llm-report-media.md b/plans/local-llm-report-media.md @@ -114,3 +114,25 @@ polemic-groundbreaking (polemic), the Candace fact-check (3 of 14 sections, 21 c "Make sure I can make my own reports without needing Claude asap": the sweep itself is now in scope (D5 overridden). A stopgap outside the repo — `~/reports/local-reports/` (`local-sweep`, `local-narrate`, `RUNBOOK.html`) — is built first; release 27 folds it in. + +### A second provider: the Claude API on a key (operator, 2026-10-12) + +"Set something up to use the promotional Claude API credits, which can't be used in Claude Code": the draft tasks and +the sweep run on either provider, **ollama** (local, the GPU lane above) or **the Claude API** (an +`ANTHROPIC_API_KEY`, billed to the Console account). The model tag picks it (`claude-…` is the API). The stopgap +in `~/reports/local-reports/` has it now: +- `claude_api.py`: stdlib HTTPS, the key from env or `~/.config/archilyzer/anthropic.env` (mode 600, never printed), + retries, prompt caching, and a per-run estimated-USD meter. +- `api-sweep`: the MCP `sweep_plan` text worked by Claude over the read-only MCP tools. An `extract_batch` tool, + run by Haiku, stands in for the Task-tool extractor. The tool writes only `sweep.md`, has a `--max-usd` cap with a + wrap-up at 85%, and prunes old tool results. +- After convert and verify-quotes, a **strict** verbatim check: every fragment must be in the transcript within + ±90 s. verify-quotes passed a quote with two words reversed in meaning at 0.85. A refusal goes back for one + repair round. + +For release 27: +- An API call never takes the GPU lane or the heavy slot. +- The key is a setting that points at the file. The key itself never goes in `settings.json`. +- umtool's "Draft with …" picker lists both providers. +- The run's estimated cost is shown on the job. +- The strict check moves into code that both providers' sweeps run.