Open Source · v0.4.6 · Beta Coming Soon

Coordinate changes across
your entire architecture

CodePlans gives engineering teams a shared view of what's changing, in which components, and why — from individual tasks up to cross-service migrations.

📦
Products
Top-level boundary
🔩
Assets
Services, apps, libs
🧩
Work Items
demand: features, bugs, debt
📋
Code Plans
Coordinated changes
Tasks
Units of work
🚀
Releases
What ships together

See it in action

The demo workspace that ships with the repo — seed it locally with pnpm db:seed-demo and explore the same views.

CodePlans screenshot

The dashboard — team velocity, active plans, and a live activity feed across your products.

Everything your team needs to ship coordinated changes

Built for engineering teams managing change across complex service-oriented and monorepo architectures.

📦

Product & Asset Inventory

Model your architecture as products containing typed assets — apps, services, libraries, datastores, and platforms. Track health and tech debt per component.

📋

Code Plans

Coordinate related changes under a single plan with a clear lifecycle: Draft → Active → Completed. Assign target assets, set deadlines, and track progress at a glance.

Task Management

Break plans into tasks with priorities, effort estimates, assignees, and asset scope. View work in a list table or a kanban board by status.

Velocity Tracking

Dashboard metrics show active plans, completed tasks, tasks this week, and rolling velocity — so teams always know how fast they're moving.

🏢

Teams & Organisations

Invite team members with role-based access — owner, admin, editor, or viewer. Products can be shared across an organisation or owned by an individual.

🔌

Pluggable Backend

Run locally with SQLite (zero cloud setup) or connect to Supabase + Postgres for production. Auth works with a local password store or Supabase Auth.

🧩

Work Items & Tech Debt

Capture demand — features, bugs, UX issues, and tech debt — natively or mirrored from your tracker. A living debt register per asset and area, resolvable by plans.

🚀

Releases & Versions

Group the plans that ship together — a version of one asset or a coordinated multi-asset revision. Stamp per-asset versions and get release notes derived from the work items delivered.

📜

Asset History & Design Log

Every asset carries a version-structured timeline: releases shipped, plans delivered, debt movement — plus curated design notes authored by your team or your coding agents.

🗺️

Asset Atlas

A system map drawn live from your inventory: products as columns, dependency edges between assets, and lenses that recolor the map by health, debt, or delivery activity. Hover to see any asset's blast radius.

🏛️

Asset Record

A capabilities register per asset, built only from delivered work — each claim carries its lineage back to the work item, plan, and release that shipped it. Removals become tombstones, never silence.

🔄

Tracker Integrations

Pull-only mirrors from GitHub, GitLab, Jira, Asana, and Linear into work items — with provenance badges, per-connection status mapping, and narrow write-back on plan completion.

🤖

Built for AI Agents

An MCP server with 42 tools lets Claude Code, Cursor, and other agents read plans, log work, record design notes, and manage releases — with optional AI-drafted release notes.

The system of record your coding agents read — and write

CodePlans records the reality of your system: what shipped, where, and why. Connect an AI coding agent over MCP and that record builds itself as the work happens.

📖

Agents read the map

Before touching an asset, an agent pulls its history, open debt, dependencies, and the active plan — get_asset_history tells the asset's whole story in one call.

✍️

Agents write the record

As plans complete, agents mark tasks done, update branch/PR status, file tech debt they discover, and record a design note on each asset they changed — attributed with an agent badge.

📝

AI drafts, humans decide

With an Anthropic API key configured, CodePlans drafts release notes from the delivered work and design notes from completed plans — always landing in an editor, never auto-published.

# Connect Claude Code to your CodePlans instance
claude mcp add --transport http codeplans http://localhost:3000/api/mcp \
  --header "Authorization: Bearer cpk_your_key"

Generate API keys in Settings → API Keys — connection snippets included for Claude Code, Claude Desktop, Cursor, Codex CLI, GitHub Copilot, and Antigravity. Keys act as your user, so org access rules and mirrored-field protections apply unchanged. See the AI agents guide for the full 42-tool catalog.

Technical reference

Everything you need to understand the data model, architecture decisions, and current feature state.

Reference

App Spec

Complete spec of the current app: schemas, views, query/mutation API, access rules, and wiring gaps.

Read →
Guide

How CodePlans Thinks

The conceptual map: what products, assets, plans, and releases are each for, the boundary rule between them, and the five design principles behind the tool.

Read →
Guide

Capturing a Docs Corpus

The /codeplans-capture skill: turn an existing /docs folder into plans, tasks, and tech-debt items, each linked to its source markdown via specUrl.

Read →
Guide

Logging Work via Claude

The /codeplans-log skill: turn "document what we just did" into plans, tasks, PR records, and work items at the end of any session.

Read →
Guide

Modeling Monorepos

Break a large codebase into assets without over-modeling: the asset test, tiered libraries, curated dependency edges — and a Claude skill that does it for you.

Read →
Guide

Linking Design Specs

Keep specs in git, link them to plans and work items, and render them read-only in-app — including private repos via integration tokens.

Read →
Guide

Releases & Versions

Group plans that ship together, stamp per-asset versions, derive release notes from delivered work, and ship with a trustworthy record.

Read →
Guide

Asset History & Design Log

The version-structured timeline every asset builds for itself, and how humans and agents record design notes worth keeping.

Read →
Guide

The Asset Atlas

The live system map: lenses for health, debt, and activity, blast-radius hover, and the grid and table views beside it.

Read →
Guide

Working with AI Agents

Connect Claude Code, Cursor, and friends over MCP: the full 42-tool catalog, recommended agent workflows, and the AI drafting flags.

Read →
Design

Releases & Asset History Spec

The design behind v0.4.x: releases as delivery groupings, derived history, the design log, and feature-flagged AI drafting. All four phases shipped.

Read →
Design

Asset Record Spec

The capabilities register per asset shipped in v0.4.4. Next (v0.4.7+): agent-driven reconciliation against code and round-trip release publishing.

Read →
Design

Asset Atlas Spec

The map shipped in v0.4.5, and its path from picture to planning surface: lens thresholds, transitive blast radius, and plans started from the map.

Read →
Design

Layers & Boundaries Spec

Shipped in v0.4.6: the product-vs-asset rule made operational — asset layers, layer columns on the Atlas, and move_asset for refining a model.

Read →
Design

MCP Server Spec

How the MCP endpoint works: Streamable HTTP inside the app, API-key auth with read/write scopes, and the design of all 42 tools.

Read →
Design

Design Spec v3

The canonical target design: work items, provenance-based integrations, per-asset PR tracking, and the phased roadmap (all phases shipped).

Read →
Archive

Historical Specs

Superseded v2-era functional spec and data-model plan, kept for the reasoning trail behind the current design.

Read →
Reference

Database Schemas

Current database schema diagrams covering both SQLite and Postgres configurations.

Read →

Up and running in minutes

Local SQLite mode requires no cloud account, no API keys, nothing external.

# Clone and install
git clone https://github.com/SylonZero/CodePlans.git && cd CodePlans
pnpm install

# Configure (defaults work for local SQLite)
cp .env.example .env.local

# Run migrations and create the admin account
pnpm db:migrate
pnpm db:seed

# Start the dev server
pnpm dev

Open localhost:3000 and sign in with admin@example.com / Password1!. Change your password in Settings → Security after first login.

Want realistic demo data? Run pnpm db:seed-demo after the initial seed to populate with products, assets, plans, and tasks. All demo accounts use password Password1!.
Deploying to a server? Set AUTH_URL=https://your-server-domain (or http://ip:port) in .env.local. Auth.js requires this in production to construct correct callback URLs — without it, login redirects will fail. If running the dev server on a remote machine, also set ALLOWED_DEV_ORIGINS=your.server.ip.

Deployment modes & environment variables

Two independent knobs control how your instance behaves — the deployment model and who can register.

HOST_MODE — deployment model
team
Single private team. One org, registration closed by default, billing UI hidden. Recommended for self-hosted installs.
saas
Multi-tenant hosted. Multiple independent orgs, open registration possible, billing UI available.
REGISTRATION — who can create accounts
closed
/signup returns 404. Users are created by an admin via pnpm db:seed.
invite
/signup shows an invite-only message. (Token invite flow is planned.)
open
Anyone who can reach the server can sign up.
Variable Default Description
PORT 3000 Port the dev server binds to.
HOST_MODE saas team (private self-hosted) or saas (multi-tenant hosted).
REGISTRATION open closed, invite, or open — controls who can create accounts.
AUTH_PROVIDER local local (bcrypt + session cookie) or supabase.
DB_PROVIDER sqlite sqlite or postgres.
DATABASE_URL :memory: SQLite: file:data/codeplans.db or :memory:. Postgres: full connection string.
DB_SSL true Set false for local or non-SSL Postgres (e.g. Railway, local Docker).
AUTH_SECRET Secret for local auth session signing. Min 32 chars. Generate: openssl rand -base64 32.
AUTH_URL Required in production
Full URL of the server (e.g. https://codeplans.yourteam.com or http://ip:3000). Auth.js uses this to construct callback URLs and validate login redirects. Not needed for localhost dev.
BILLING_ENABLED true Set false to hide billing UI. Always off when HOST_MODE=team.
ALLOWED_DEV_ORIGINS Comma-separated hosts allowed to access Next.js dev resources. Needed when running the dev server on a remote machine.
RESEND_API_KEY Resend API key for transactional email (email change verification, future team invites). Without this, verification URLs are logged to the server console — fine for local dev.
RESEND_FROM_EMAIL CodePlans <noreply@codeplans.ai> From address used in outgoing emails.
ANTHROPIC_API_KEY Enables AI drafting (release notes, design notes). Without it, all AI features are hidden — the app never requires it.
AI_ENABLED true Set false to force AI drafting off even when an API key is configured.
AI_MODEL claude-opus-5 Claude model used for drafting.

See .env.example for the full annotated configuration file.

Built on proven, modern tooling

No heavy abstractions. Readable Next.js App Router code with a clean DB layer you can fork and adapt.

Layer Technology Notes
Framework Next.js 16 App Router Server Components, Server Actions, streaming
Language TypeScript 5.7 Strict mode throughout
Styling Tailwind CSS v4 + Radix UI shadcn/ui component patterns
ORM Drizzle ORM Dual SQLite + Postgres schemas with migrations
Database SQLite local / PostgreSQL cloud Switched via DB_PROVIDER env var
Auth Local bcrypt local / Supabase cloud Switched via AUTH_PROVIDER env var
Charts Recharts Velocity, effort accuracy, tech debt trends
Testing Vitest 190 tests — queries, mutations, releases, asset history, design log, sync engine & connectors, AI prompt builders; in-memory SQLite

Current feature status

Transparent about what's wired, what's in progress, and what's coming.

Feature Status
Products & asset inventoryAvailable
Tech debt scoring per assetAvailable
Code Plans with status lifecycleAvailable
Task management (list & kanban)Available
Dashboard with velocity metricsAvailable
Organisation & team managementAvailable
Pluggable auth & database backendsAvailable
Product / asset create & edit (panels & modals)Available
Code Plan create/edit flowsAvailable
Task create/edit panel & inline status updatesAvailable
Workspace product switcher (filter by product)Available
Team invite flow (invite, change role, remove)Available
Work items — features, bugs & tech debt registerAvailable
Per-asset branch & PR tracking on code plansAvailable
Asset dependency mapping & impact analysisAvailable
Analytics wired to real dataAvailable
Activity feedAvailable
GitHub, GitLab, Jira, Asana & Linear integrations (pull-only)Available
Milestone-linked plans & PR auto-linkingAvailable
Write-back: plan-completion comments on tracker issuesAvailable
MCP server (Claude Code, Cursor, Codex, Copilot, Antigravity — API-key auth, 42 tools)Available
Releases — delivery grouping with per-asset version stamps & derived release notesAvailable
Asset history timeline, version ladder & design log (user + agent authored)Available
AI drafting — release notes & design notes (feature-flagged)Available
Asset Record — per-asset capabilities register with delivery lineage (v0.4.4)Available
Asset Atlas — live system map with health/debt/activity lenses (v0.4.5)Available
Layers & model boundaries — asset layers, Atlas layer columns, move_asset (v0.4.6)Available
Asset Record — agent reconciliation & round-trip publishing (v0.4.7+)Planned
AI-assisted effort estimationPlanned