Persistent agent knowledge that survives sessions and account rotations
Beads provides a persistent memory system for AI agents that survives context compaction, session resets, and account rotations. Use bd remember, bd recall, bd forget, and bd memories to store knowledge that should persist across conversations.
bd remember "Database: Dolt for version control, SQLite deprecated as of v0.50" --key db-architecturebd remember "Auth: JWT with refresh token rotation, PKCE for mobile clients" --key auth-patternbd remember "Error handling: wrap errors with context, log at boundary, never panic in production" --key error-pattern
bd remember "Dolt auto-commit defaults: ON for embedded, OFF for server mode" --key dolt-autocommitbd remember "Server mode port 3307 to avoid MySQL conflict on 3306" --key dolt-port
bd remember "Staging: deploy via 'make deploy-staging', requires VPN and kubectl config" --key deploy-stagingbd remember "Production deploys need approval gate from @alice and CI green on main" --key deploy-prod
bd remember "Phantom database issues: check ~/.dolt/, /tmp/dolt-*, and .beads/dolt/" --key debug-phantomsbd remember "Lock contention: use 'bd doctor' to detect, switch to server mode if persistent" --key debug-locks
# Good - focusedbd remember "Test command: make test-full-cgo" --key test-cmdbd remember "CI requires both unit and integration tests" --key ci-requirements# Bad - too broadbd remember "Testing: use make test-full-cgo for CI which requires unit and integration tests and coverage" --key testing
# Working on auth, discover important detailbd remember "Auth tokens expire after 24h, refresh at 23h mark" --key auth-expiry# Session ends (context compacted)
2
Session 2: Different task
# New session, different workbd ready # Work on something else# bd prime auto-injected the auth-expiry memory# Agent knows about 24h expiry without being told
3
Session 3: Account rotation
# Account rotated, fresh start# But memories persist in database!bd prime # Includes auth-expirybd recall auth-expiry # Full details available