mirror of
https://github.com/hanzoai/replicate.git
synced 2026-10-30 18:23:20 +00:00
1.7 KiB
1.7 KiB
CLAUDE.md - Claude Code Configuration
Claude-specific optimizations for Replicate. 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:
- 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
Claude-Specific Resources
Specialized Agents (.claude/agents/)
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
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/replicate ./cmd/replicate
go test -race -v ./...
pre-commit run --all-files