Skip to main content
CodeGraspCodeGrasp
DAMS v2.0 — Local-first codebase memory

Local-firstcontext steering,safety gates, andpersistent memory(DAMS) for AI agents

A local-first, fine-tuned workbench (DAMS-FT) that compiles code context, warms SQLite caches, and intercepts native search tools so agents write features without re-reading the codebase.

PRD Specdams atomizeLocal CacheDuckDB / SQLiteCompilerAGENTS.mdAI AgentSafety CheckSHIELDS UP
Model Context Protocol (MCP)Regression Traps & Safety GatesCodebase-Intelligence ResearchGraph RAG & AST MappingDAMS-FT Fine-Tuned ModelBonsai-8B Query RouterGCX1 Token CompressionPreToolUse Security Shield

See DAMS run a feature from PRD to code

Create a project, atomize the PRD into task cards, generate queries, warm the SQLite cache, and let the agent write code from a curated scratchpad while native search stays blocked.

(4-minute walkthrough — full demo recording incoming.)

DAMS PRD-to-Code Demo Preview

Read the demo transcript (coming soon)

The DAMS workflow

Persistent memory. Defensive by design.

From PRD to working code — every step keeps the agent focused on what matters.

PRD Atomization
PRD → tasks → registry

PRD Atomization

`dams atomize PRD.md` decomposes a product spec into a dependency-aware task tree tracked in `.dams/context/tasks/`.

System architecture

From PRD to code, guarded at every step.

PASSFAIL: AUTO-FIX RETRY
Project Init
Bootstrap
01 • `dams init` / `dams new`
Context Bootstrap
Bootstrap
02 • Pre-compiled snippets
Scratchpad Setup
Bootstrap
03 • Research scratchpad
PRD Decompose
Decompose
04 • PRD Spec parsing
Task Tree Gen
Decompose
05 • dams atomize hierarchy
Ledger Registry
Interface
06 • SQLite DB database
Dashboard Load
Interface
07 • Launches Web UI
Board Render
Interface
08 • Interactive board
Task Selection
Analyze
09 • Developer activation
Query Gen
Analyze
10 • Semantic & structural
Query Review
Analyze
11 • Developer adjustment
Cache Warming
Sandbox
12 • SQLite cache warmth
cAST Harvesting
Sandbox
13 • Chunkhound retrieval
Dependency Res
Sandbox
14 • Graphify call chains
Steering Inject
Sandbox
15 • Update steering rules
AI Agent Sandbox
Agent
16 • Search interception
Safety Gate
Safety
17 • GritQL check validation
Target Codebase
Codebase
18 • Workspace updates
Step 01Bootstrap

Project Init

`dams init` / `dams new`

Initializes the workspace, setting up DAMS environment, configurations, and preparing for local-first context tracking.

Performance MetricWorkspace loaded

Native tools route to DAMS by default. A programmatic toggle lets the agent fall back when DAMS search is not enough.

Beyond one product

Codebase Intelligence Research Lab

We study the top projects in codebase intelligence — retrieval engines, agent harnesses, knowledge graphs, observability, and local LLM tooling — and build practical, local-first products from what we learn.

DAMS ships as a container because OS-level PATH shims interfered with the host OS.

Shipped

DAMS

Flagship product. PRD-to-code task automation with defensive memory and agent-native tool interception.

In research

DAMS-Edge

Embedded-database variant for teams that need fully offline, on-device codebase intelligence.

Featured Project

DAMS-FT (Fine-Tuned)

Fine-tuned local LLM variant optimized for code research, query generation, and context summarization. Powered by Gortex Extension.

Local Model Evolution

The DAMS-FT Local-First Model

DAMS-FT is the high-performance local model evolution of our standard DAMS RAG engine.

1

DAMS-FT Model

The high-performance, local model evolution of our standard DAMS RAG engine.

2

Deterministic Routing

Powered by Bonsai-8B to route developer prompts directly into AST code knowledge graphs.

3

100% Reliability

Achieves 100% tool mapping accuracy, completely eliminating model hallucination errors.

4

Token Compression

Uses our GCX1 wire protocol to slash LLM token overhead by 27% to 40%.

5

Cost-Efficient

Directly reduces external API operational inference costs and context latency.

6

Defensive Interception

Features an active PreToolUse Shield that intercepts and blocks raw text scans.

7

Speculative Security

Integrates an AST Parse Gate to validate code syntax before model inference.

8

Resource Friendly

Fits in a lightweight 6GB VRAM footprint for secure, local offline deployment.

9

Sub-300ms Speed

Delivers lightning-fast local query routing without relying on heavy cloud servers.

10

Enterprise Ready

The ultimate private, secure, and cost-optimized RAG engine for massive codebases.

Pipeline Demonstration

Gortex Extension Pipeline

Explore the pipeline stages below to preview how DAMS-FT intercepts, routes, navigates, and compresses context for codebase intelligence tasks.

Bonsai-8B Routing Engine
100% Accuracy

Bonsai-8B Routing Engine

A local, fine-tuned query router achieving 100% tool selection accuracy. Fits in a lightweight 6GB VRAM footprint for cost-effective, secure self-hosting.

Why DAMS

Built for long-running AI coding projects where context is everything.

Markdown Context Wiki

Obsidian-compatible Markdown files serve as the single source of truth for decisions, safety contracts, regression traps, and task trees.

Freshness-Scored Steering

Compiles a token-budgeted AGENTS.md context steering file dynamically with freshness scoring so the AI agent always knows the workspace state.

Graphify AST Mapping

Traces project call graphs and AST dependencies up to depth 2, achieving 71.5× token reduction vs raw code dumps during LLM discovery.

Search Interception Shims

Installs OS-level bash shims for grep, rg, and find inside the isolated Docker container, ensuring your developer host machine remains completely untouched and clean.

Regression Traps

Auto-extracts past bugs from git commit histories and injects them as invariants in the agent's context window to prevent the same bug from returning.

Pre-Commit Safety Gates

Enforces custom codebase rules and conventions before commits ship, blocking AI agents from introducing violating code changes.

Proactive Cache Warming

Warms ast-dependency code caches in SQLite in the background dynamically when tasks are activated to eliminate LLM tool response latency.

Developer-first

Built for developers, not dashboards.

DAMS is a CLI at heart. Initialize a project, atomize a PRD, compile context, and enforce safety — all from the terminal. The web UI is a focused workbench that guides research, not another project-management tool.

  • Markdown-native context: decisions, tasks, and skills live in `.dams/context/`.
  • Local SQLite cache keeps code snippets on your machine.
  • Open-source harness integration: oh-my-pi, pi.dev, Zed, Goose.
terminal
$ dams init
$ dams atomize PRD.md
$ dams recompile
$ dams check
$ dams ui

Built on a modern AI stack

Python, React, FastAPI, Ollama, Chunkhound, Graphify, DuckDB, Typer, GritQL, ragas, MCP, Obsidian.

Python
React
TypeScript
FastAPI
Tailwind CSS
Ollama
DuckDB
Ragas
Obsidian
Docker
MCP
Graphify

Ship the next feature without re-reading the codebase.

Get started with the documentation, or reach out to talk about the codebase-intelligence research behind DAMS.