20 packages · 12 on npm · MIT licensed

Give your AI agents
memory, context & eyes

Open-source toolkit for AI coding agents. Persistent memory, automatic context injection, multi-provider transport, project management, and observability — everything your harness needs.

Built for how agents actually work

Memory that persists

Decisions, preferences, and project context survive across every session. Your agents never start from zero.

Provider agnostic

Claude, Codex, Gemini, OpenCode — swap with a flag. Same interface, same memory, any model.

MCP native

Every service speaks MCP. Works with Claude Code, Cursor, Windsurf — any MCP-compatible client.

Markdown-driven

Tasks, docs, and roadmaps in plain text. Git-friendly, human-readable, always portable.

Observable

Tokens, costs, tool usage, success rates. Know exactly what your agents do and what they cost.

dbrain

Your distributed mind

Persistent knowledge that follows your AI agents across sessions, tools, and projects. SQLite + FTS5, REST API + MCP protocol, federation across brains, and a React dashboard.

  • Entities, facts, and conversations with automatic tiering (hot / warm / cold)
  • 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, searching, and managing
install
$ npm install -g @dtoolkit/dbrain
npm →
dwork

AI-native project manager

Markdown files are the source of truth. Tasks, docs, roadmaps — all in plain text, indexed with FTS5, served via MCP. Your agents create tasks, update status, and search across projects.

  • BACKLOG.md as kanban — parsed and indexed automatically
  • Numbered docs with full-text search
  • Code intelligence: symbol search, call graphs, impact analysis
  • React dashboard with kanban board, file tree, and code graph
  • 21 MCP tools including 5 graph tools
install
$ npm install -g @dtoolkit/dwork
npm →
dops

Datadog for AI agents

Agent observability platform. Ingest telemetry from Claude, Codex, Gemini, and OpenCode sessions — track tokens, costs, tool usage, and errors across your team.

  • Ingest from 4 CLI sources — scan local transcripts automatically
  • Cost estimation by model with built-in pricing
  • Tool analytics — call count, success rate, duration
  • MCP server for querying observability data from agents
  • React dashboard with overview, sessions, tools, and costs views
install
$ npm install -g @dtoolkit/dops
npm →
@dtoolkit/dcontext

Automatic context injection

Hooks into your coding CLI to inject identity, project facts, and memory at session start. No manual setup — your agents know who you are and what you're working on from the first message.

  • Hooks for Claude Code, Codex, Gemini CLI, and OpenCode
  • Injects identity, soul, and project facts automatically
  • Saves conversation exchanges before context compaction
  • Zero-config after install — just works
install
$ npm install -g @dtoolkit/dcontext
npm →
terminal
# Connect to dbrain and map projects
$ dcontext init
? dbrain URL: http://localhost:7878
? Map directory to entity: my-app
✓ Connected to dbrain

# Install hooks for your CLI
$ dcontext install claude
✓ Hook added to .claude/settings.json

# Every new session now starts with:
## Session Context (from dbrain)
- Identity, soul, project facts, tasks
@dtoolkit/dproxy

One CLI, any model

Universal adapter for invoking models through local CLIs. Swap between Claude, Codex, Gemini, and OpenCode with a flag. Built-in context pipeline, templates, memory, and an HTTP API.

  • Single-shot (ask) and interactive (chat) modes
  • HTTP API via serve command — integrate anywhere
  • Context pipeline: memory + workspace + day log
  • Template system for reusable prompts
  • 4 providers: Claude, Codex, Gemini, OpenCode
install
$ npm install -g @dtoolkit/dproxy
npm →
terminal
# Ask any model from the terminal
$ dproxy "explain this error" --provider claude
→ The error occurs because...

# Pipe code for review
$ cat src/index.ts | dproxy "review this"

# Start as HTTP API
$ dproxy serve --port 7880
✓ API ready on :7880

# Interactive REPL
$ dproxy chat --provider gemini

The full ecosystem

20 packages organized in clusters. Install what you need — each works standalone or together.

Available now — 12 packages on npm, ready to install
Coming soon — 8 packages in the roadmap
@dtoolkit/dcouncil planned

Multi-agent debate for architecture decisions — security, performance, simplicity.

@dtoolkit/dguard planned

Pre-commit for agents — validate LLM output before applying.

@dtoolkit/dpolicy planned

Policy-as-code for the team harness — centralized rules, versioned, repo-synced.

@dtoolkit/droute planned

Model router (Haiku/Sonnet/Opus) with cost tracking and per-project policies.

@dtoolkit/dpair planned

Real-time pair-programming with a shared agent between two devs.

@dtoolkit/dreplay planned

Session browser for the team — tools, decisions, files touched (privacy-aware).

@dtoolkit/dstream planned

Daily digest — what each agent learned, decided, or blocked today.

@dtoolkit/dforge planned

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.

Your Coding CLI Claude Code · Codex · Gemini · OpenCode
dcontext hooks · context injection
dbrain memory · MCP :7878 · :7879
dwork projects · tasks · docs :7881 · :7882
dops observability · costs :7883 · :7884
sdk DBrainClient · DWorkClient · DProxyClient
core types · schemas · adapters
dproxy ask · chat · serve · templates
adapter-claude
adapter-codex
adapter-gemini
adapter-opencode

one interface, any provider

Full environment in 5 steps

From zero to a fully instrumented AI coding harness.

1

Install

All 5 products, one command.

terminal
$ npm install -g \
    @dtoolkit/dbrain \
    @dtoolkit/dcontext \
    @dtoolkit/dwork \
    @dtoolkit/dops \
    @dtoolkit/dproxy
2

Memory

Create a brain, start the server, connect your CLI.

terminal
$ dbrain init && dbrain start
✓ API on :7878 — Dashboard on :7879

$ dbrain connect claude
✓ MCP configured — CLAUDE.md written
3

Context

Automatic identity and project facts at every session.

terminal
$ dcontext init
✓ Connected to dbrain

$ dcontext install claude
✓ Hooks installed
4

The rest

Project management, observability, multi-provider.

terminal
$ dwork init && dwork start
✓ API on :7881 — Dashboard on :7882

$ dops init && dops start
✓ API on :7883 — Dashboard on :7884

$ dproxy init
✓ Default provider: claude
5

Build

Open your CLI. The full harness is active.

terminal
$ claude
✓ Memory · Context · Tasks
  Observability · Multi-model

Ready to give your agents a brain?

Start with dbrain for memory. Add context injection, project management, and observability as you grow. All MIT, all composable.