Base plugin that installs the Claude Code CLI (@anthropic-ai/claude-code) and provides shared utilities for other Claude-powered plugins.
This plugin does not run any snapshot-level hooks itself. It provides:
- A crawl-level hook to install the
claudebinary via npm claudecode_utils.py— shared library used byclaudecodeextractandclaudecodecleanup
| Dependency | Installed by | Notes |
|---|---|---|
claude CLI |
This plugin via npm (@anthropic-ai/claude-code) |
Or provide your own binary via CLAUDECODE_BINARY |
| Node.js / npm | Host system | Required for npm-based installation |
All env vars below also serve as defaults for child plugins (claudecodeextract, claudecodecleanup).
This plugin does not define runtime hooks of its own. The Claude CLI is resolved
by the orchestrator from config.json > required_binaries during InstallEvent
preflight before any crawl or snapshot work starts.
Imported by child plugins:
build_system_prompt(snap_dir, crawl_dir, extra_context)— Builds a system prompt describing the ArchiveBox directory layout and current snapshot metadata.run_claude_code(prompt, work_dir, ...)— Spawns the Claude Code CLI as a subprocess with the given prompt, model, timeout, allowed tools, and env filtering.load_config()— Loads typed Claude/child-plugin config with aliases and fallbacks already resolved.emit_archive_result(status, output_str)— Prints a JSONArchiveResultrecord to stdout.
# Enable Claude Code integration
export CLAUDECODE_ENABLED=true
export ANTHROPIC_API_KEY=sk-ant-...
# Optionally use a specific model
export CLAUDECODE_MODEL=claude-opus-4-6
# Optionally point to a pre-installed binary
export CLAUDECODE_BINARY=/usr/local/bin/claudeEnabling this plugin alone only installs the binary. To do useful work, enable one or both child plugins:
claudecodeextract— AI-powered content extractionclaudecodecleanup— AI-powered deduplication and cleanup
