Engineer your
AI agents
Open-source harness engineering toolkit. Memory, context, routing, observability and project management — everything your coding agents need to work smarter.
$ npm install -g @dtoolkit/dbrain @dtoolkit/dcontext $ dbrain init ✓ Brain initialized at ~/.dbrain ✓ MCP server ready on :7878 $ dcontext install ✓ Hooks installed for Claude Code ✓ Identity + project facts injected at session start
Built for how agents actually work
Memory that persists
Your agents remember decisions, preferences, and context across every session. No more repeating yourself.
Provider agnostic
Swap between Claude, Codex, Gemini, and OpenCode with a single flag. Same interface, any model.
MCP native
Every service exposes MCP tools. Works with any MCP-compatible client — Claude Code, Cursor, Windsurf, and more.
Markdown-driven
Projects, tasks, and docs live in plain Markdown files. Git-friendly, human-readable, always portable.
Products that actually solve problems
Four core products, each with a CLI, REST API, MCP server, and React dashboard.
Your distributed mind
Persistent knowledge that follows your AI agents across sessions, tools, and projects. SQLite + FTS5 full-text search, REST API + MCP protocol, and federation across multiple brains.
- Entities, facts, and conversations with automatic tiering
- Full-text search with FTS5 across all memories
- MCP server — works with Claude Code, Cursor, Windsurf
- Federation — connect personal and shared team brains
- React dashboard for browsing and searching
$ npm install -g @dtoolkit/dbrain# Create and start your brain $ dbrain init $ dbrain start ✓ API on :7878 — Dashboard on :7879 # Connect your coding CLI $ dbrain connect claude ✓ MCP server configured ✓ Permissions added ✓ CLAUDE.md instructions written # Your agents remember everything (via MCP) > remember "Deploy uses blue-green on prod" ✓ Fact stored (entity: infrastructure) > recall "how do we deploy?" → Deploy uses blue-green on prod (tier: hot, confidence: 0.95)
The full ecosystem
18 packages organized in clusters. Install what you need — each works standalone or together.
Memory & Context
Give your agents persistent memory and automatic context injection.
Persistent memory server — the brain. SQLite + FTS5, REST + MCP, federation across brains.
Hook-based context injection. Identity, project facts, and conversation logs — automatic.
Typed HTTP clients for dbrain, dproxy, and dwork. Shared auth and error handling.
Shared types and Zod schemas — Entity, Fact, Tier, ContextBlock, adapters.
Transport
One CLI to invoke any model provider. Swap Claude, Codex, Gemini or OpenCode with a flag.
Universal adapter for invoking models via local CLIs. ask, chat, serve, templates.
Shell-out adapter for Claude Code CLI with streaming and delta support.
Shell-out adapter for Codex CLI with JSONL streaming.
Shell-out adapter for Gemini CLI with stream-json support.
Shell-out adapter for OpenCode CLI with JSONL streaming.
Project Management
AI-native project management. Markdown is the source of truth.
Team & Governance
Control, observe, and coordinate your team's AI agents at scale.
Multi-agent debate for architecture decisions — security, performance, simplicity.
Pre-commit for agents — validate LLM output before applying.
Policy-as-code for the team harness — centralized rules, versioned, repo-synced.
Agent observability — tokens, cost, tools, success rate, errors per hook.
Model router (Haiku/Sonnet/Opus) with cost tracking and per-project policies.
Collaboration
Pair programming, session replay, and daily digests for the whole team.
Real-time pair-programming with a shared agent between two devs.
Session browser for the team — tools, decisions, files touched (privacy-aware).
Daily digest — what each agent learned, decided, or blocked today.
Internal marketplace for skills, hooks, and slash commands.
How it all fits together
Each package is independent. Combine what you need — the dependency graph keeps it clean.
adapters — one interface, any provider
Up and running in 3 steps
From zero to persistent AI memory in under two minutes.
Install & start dbrain
Install the memory server, create a brain, start the API, and connect your coding CLI.
$ npm install -g @dtoolkit/dbrain $ dbrain init ✓ Brain created at ~/.dbrain $ dbrain start ✓ API on :7878 — Dashboard on :7879 $ dbrain connect claude ✓ MCP server configured ✓ Permissions added
Set up dcontext
Connect to dbrain, map your project directory, and install hooks for automatic context injection.
$ npm install -g @dtoolkit/dcontext $ dcontext init ? dbrain URL: http://localhost:7878 ? Map this directory to entity: my-app ✓ Connected $ dcontext install claude ✓ Hook added to .claude/settings.json
Start building
Open your coding CLI. Your agent now has persistent memory, knows your identity, and understands your projects.
$ claude # Every session starts with context from dbrain: # - Your identity and preferences # - Project-specific facts and decisions # - Access to recall/remember via MCP ✓ Session enriched by dbrain
Want the full suite? Add dproxy for multi-model support, dwork for project management.
$ npm install -g @dtoolkit/dproxy @dtoolkit/dwork $ dproxy init # Multi-provider CLI $ dwork init # Project management
Ready to give your agents a brain?
Start with dbrain for memory. Add context injection, multi-model support, and project management as you grow.