18 packages · MIT licensed

Engineer your
AI agents

Open-source harness engineering toolkit. Memory, context, routing, observability and project management — everything your coding agents need to work smarter.

terminal
$ 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.

@dtoolkit/dbrain

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
terminal
# 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.

Project Management

AI-native project management. Markdown is the source of truth.

How it all fits together

Each package is independent. Combine what you need — the dependency graph keeps it clean.

Your Coding CLI Claude Code · Codex · Gemini · OpenCode
dcontext hooks · context injection
dbrain memory · MCP :7878 · :7879
dwork projects · tasks · docs :7881 · :7882
sdk DBrainClient · DWorkClient · DProxyClient
core Entity · Fact · Tier · Zod schemas
dproxy ask · chat · serve · templates
claude
codex
gemini
opencode

adapters — one interface, any provider

Up and running in 3 steps

From zero to persistent AI memory in under two minutes.

1

Install & start dbrain

Install the memory server, create a brain, start the API, and connect your coding CLI.

terminal
$ 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
2

Set up dcontext

Connect to dbrain, map your project directory, and install hooks for automatic context injection.

terminal
$ 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
3

Start building

Open your coding CLI. Your agent now has persistent memory, knows your identity, and understands your projects.

terminal
$ 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.

terminal
$ 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.