AGENT / CLI MODE — synchronous
claude -psynthesis.
Claude CLI synthesis backend
v1.4.0 uses synthesis.backend: claude for agent-friendly synthesis.
Each page is synthesized with a single claude -p - invocation — no
pending-prompt files, no --list-pending / --complete round-trip.
One-line enable
{
"synthesis": {
"backend": "claude",
"claude_model": "sonnet"
}
}
Optional: claude_path (binary path), timeout (seconds, default 180).
How it works
llmwiki synth(oradd/all) resolves the backend.- For each new/changed raw file, the pipeline renders the source-page prompt.
ClaudeCLISynthesizershells out toclaude -p -with the prompt on stdin.- The wiki page is written immediately under
wiki/sources/.
CLI
python3 -m llmwiki synth --check # is claude available?
python3 -m llmwiki synth --estimate # cost preview
python3 -m llmwiki synth # run (sources + candidates)
python3 -m llmwiki synth --force # re-synth everything
Removed (v1.4.0)
| Old | Replacement |
|---|---|
synthesis.backend: agent / agent_delegate |
claude |
synthesize --list-pending |
n/a — synthesis is synchronous |
synthesize --complete <uuid> |
n/a |
.llmwiki-pending-prompts/ |
migrated into llmwiki-state.json / deleted |
See UPGRADING.md for the one-time state migration.
Invariants
- Works with or without
ANTHROPIC_API_KEY(uses the Claude Code CLI subscription when available). - One backend serves
syncauto-paths,synthesize,add, andall. - Unavailable backend aborts the run (no silent dummy overwrite of real pages).