Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.75 KB

File metadata and controls

46 lines (33 loc) · 1.75 KB

CLAUDE.md - Claude Code Configuration

Claude-specific optimizations for Litestream. See AGENTS.md for project documentation.

Critical Coding Rules

  • 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.

Context Window

With Claude's large context window, load documentation as needed:

Claude-Specific Resources

Specialized Agents (.claude/agents/)

  • sqlite-expert.md - SQLite WAL and page management
  • replica-client-developer.md - Storage backend implementation
  • ltx-compaction-specialist.md - LTX format and compaction
  • test-engineer.md - Testing strategies
  • performance-optimizer.md - Performance optimization

Commands (.claude/commands/)

  • /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

Quick Commands

go build -o bin/litestream ./cmd/litestream
go test -race -v ./...
pre-commit run --all-files