Compare/db0 vs CLAUDE.md

db0 vs CLAUDE.md

CLAUDE.md and db0 solve different problems. CLAUDE.md is for project standards — conventions your whole team follows, written once, committed to git. db0 is for personal knowledge — preferences that follow you, not the repository.

Most teams need both.

What CLAUDE.md does

CLAUDE.md is a file at your project root that Claude Code reads at the start of every session. It becomes part of the system prompt. Developers use it for coding conventions, build commands, architecture notes, and tech stack documentation. The recommended sweet spot is 100-200 lines.

Similar files exist for other tools: .cursorrules for Cursor, .github/copilot-instructions.md for Copilot, AGENTS.md as a vendor-neutral format.

Dimensiondb0CLAUDE.md
Who writes itClaude (as you work)You (manually)
Scopeuser / agent / session / taskProject, user (~/.claude/CLAUDE.md), or org
Cross-project preferencesuser scope (dynamic, searchable)~/.claude/CLAUDE.md (static)
Cross-deviceVia PostgresVia git
Shared with teammatesOptional (shared Postgres)Yes, via git
Updates as you workAutomatic extractionManual edit
Fact versioningSupersede with audit trailOverwrite
Semantic searchYesNo
State checkpointsYesNo

When CLAUDE.md is the right choice

When db0 is the right choice

Use both

They're not alternatives. CLAUDE.md sets the rules. db0 accumulates the learning.

A typical setup: CLAUDE.md defines your project architecture and team conventions. db0 carries your personal preferences across every project you work on, and accumulates project-specific patterns that Claude discovers as it works with your codebase.

Try db0

Core SDK
npm i @db0-ai/core
Claude Code
npx @db0-ai/claude-code init