Claude-specific optimizations for Litestream. See AGENTS.md for project documentation.
- Always return errors, never log and continue. The only exception is DEBUG logging for best-effort operations that don't affect correctness. This is the #1 cause of PR review feedback. See docs/PATTERNS.md for the full decision framework.
With Claude's large context window, load documentation as needed:
- Start with AGENTS.md for overview and checklist
- Load docs/PATTERNS.md when writing code
- Load docs/SQLITE_INTERNALS.md for WAL/page work
- Load docs/PROVIDER_COMPATIBILITY.md for storage backend configs
sqlite-expert.md- SQLite WAL and page managementreplica-client-developer.md- Storage backend implementationltx-compaction-specialist.md- LTX format and compactiontest-engineer.md- Testing strategiesperformance-optimizer.md- Performance optimization
/analyze-ltx- Analyze LTX file structure/debug-ipc- Debug IPC Unix socket issues/debug-wal- Debug WAL replication issues/test-compaction- Test compaction scenarios/trace-replication- Trace replication flow/validate-replica- Validate replica client/add-storage-backend- Create new storage backend/fix-common-issues- Diagnose common problems/run-comprehensive-tests- Execute full test suite
go build -o bin/litestream ./cmd/litestream
go test -race -v ./...
pre-commit run --all-files