Skip to main content

Local developer context daemon with explicit state, memory, and policy layers.

Project description

DevCD

Stop re-explaining your work to every new AI agent session.

CI status MIT License Pre-alpha Read-only MCP GitHub Sponsors

DevCD is a local continuity layer for mixed AI-agent setups. It gives a fresh Copilot, Claude, Codex, OpenClaw, or MCP-capable session a policy-filtered Action Packet before it asks you to recap the task.

That packet gives the next agent the current goal, latest failure or blocker, do-not-repeat guidance, one suggested next action, and a clear note when context was withheld by policy. DevCD is the warm-start layer for your agent stack, not another agent runtime to manage.

It is not a model, chat app, remote service, or task runner. DevCD is the local state and policy layer between your workspace and the agents that help you.

Getting Started | Examples | Agent Resurrection | OpenClaw Integration | Context Packs | Security | Release Readiness | Publishing | Brand System | Architecture | Contributing

Status

DevCD is pre-alpha. The core local continuity loop is implemented and tested, but the package is not published to PyPI yet.

Surface Status
Local checkout install Working
devcd onboard first-run path Working
Agent Passport / Continuity Packet Working
Action Packet for the next agent Working
Read-only MCP resources Working
OpenClaw MCP shape check Working on the DevCD side
Context Packs Developer and research packs built in
PyPI release Prepared, not published
Hosted/cloud mode Not planned for alpha

See Release Readiness for the full alpha bar.

Install From Source

DevCD currently installs from a local checkout:

git clone https://github.com/mick-gsk/DevCD.git
cd DevCD
python -m pip install .
devcd smoke

devcd smoke is intentionally small. It checks the CLI, built-in Context Packs, and a daemonless quickstart report using checked-in demo events instead of your local ledger.

If you prefer an isolated local tool install from the same checkout, these work too:

pipx install .
uv tool install .

Use python -m pip install -e ".[dev]" only when you want contributor tooling such as pytest, Ruff, and mypy in the same environment.

Primary Path

DevCD now has one primary first-run path for real workspaces:

  1. Run devcd onboard to prepare the workspace without starting a daemon.
  2. Read devcd agentic action-packet before a fresh agent asks for a recap.
  3. Seed safe metadata only if the local ledger is still empty.
  4. Use devcd quickstart as the interactive follow-up report around that same Action Packet workflow.

Need proof before touching a real workspace?

devcd agentic action-packet-demo --events examples/agentic-action-packet/sample-events.jsonl

That demo is the shortest honest proof: a fresh agent gets a useful handoff, including withheld-context notes, without a daemon, remote service, or pasted chat recap.

When you are ready for the real workspace, start here:

Make the current workspace agent-ready without starting a daemon or mutating external agent config:

devcd onboard

That default prepares the common local agent targets for this workspace. Use --agents only when you want a narrower target list.

Start from the handoff surface the next agent should read first:

devcd agentic action-packet

If the local ledger is still empty, seed safe metadata instead of pasting raw logs, transcripts, or file contents:

devcd handoff --goal "Ship the failing release gate" --failure "make check failed on policy tests" --next-action "Inspect the failing policy assertion"
devcd capture --kind goal --summary "Ship the failing release gate"
devcd capture --kind failure --summary "make check failed on policy tests" --next-action "Inspect the failing policy assertion"

Use devcd handoff at the end of a session or before switching agents. Use devcd capture when you want to record one granular continuity fact during work.

Then inspect the broader interactive activation report:

devcd quickstart

Use devcd context passport when you want the broader policy-filtered passport directly.

Connect an MCP-capable runtime such as OpenClaw:

devcd integrations openclaw --smoke-test

Run the local daemon only when you want live API event ingestion:

devcd run

What The Next Agent Gets

An agent that reads DevCD before asking you to recap can see policy-filtered continuity like this:

Goal: Ship the failing release gate
Latest failure: make check failed on policy tests
Do not repeat: rerunning the same patch without checking the policy assertion
Suggested next action: inspect the failing policy assertion
Withheld context: raw logs or sensitive notes were not included by policy

That packet is derived from local structured events and metadata. It is not model memory, not telemetry, and not remote sync.

Why DevCD Exists

Every AI coding tool starts cold unless you manually rebuild context. That means lost time, repeated failed attempts, accidental stale fixes, and unnecessary copy/paste of sensitive context.

DevCD gives agents a local, typed, policy-filtered continuity layer:

  • Agent resurrection - new sessions can continue from the previous goal, failure, stale attempts, blockers, and next action.
  • Warm-start handoff - the next agent gets a concrete starting point before it asks for a recap.
  • Local-first context - data stays on your machine unless a future explicit policy says otherwise.
  • Policy visibility - every observation, storage decision, export, or action has an explainable policy reason.
  • Structured continuity instead of pasted recap - captures are designed for compact metadata, not raw logs, transcripts, file contents, or secrets.
  • Runtime-neutral consumption - CLI, localhost API, and read-only MCP expose the same policy-filtered state to different agent surfaces.

Highlights

  • devcd onboard - first-run wrapper for config, selected agent instruction files, and the primary Action Packet workflow entry point.
  • devcd handoff - one-command goal, failure, and next-action capture before switching to a fresh agent.
  • devcd capture - daemonless, policy-gated continuity metadata capture.
  • devcd agentic action-packet - next-action packet for the next local agent.
  • devcd quickstart - interactive activation report that expands on the same Action Packet workflow after onboarding.
  • devcd context passport - broader live continuity view from the configured local ledger.
  • devcd context control - visibility report for included and withheld context.
  • devcd mcp serve - read-only local MCP stdio resources.
  • devcd integrations openclaw --smoke-test - verifies the local MCP shape without installing OpenClaw or mutating its config.
  • devcd recipe research-session - local recipe that proves non-developer continuity through the research Context Pack.
  • make distribution - builds and verifies wheel/sdist artifacts and installed CLI behavior.
  • make smoke - quick daemonless confidence check for evaluators.

Local Agent Skills

This repo also carries local agent skills for repeatable engineering workflows under .github/skills/.

  • agent-ops-observability - diagnose instruction drift, weak handoffs, tool misuse, and missing verification in agent-driven work.
  • devils-advocate - stress-test plans, ADRs, policy changes, and rollout ideas before implementation.
  • deep-interview, brainstorming, systematic-debugging, and verification-before-completion cover clarification, design, debugging, and evidence discipline.

These are repository workflow assets, not DevCD product features. They exist to make agent work in this repo more reliable and reviewable.

Security Defaults

DevCD is built around local-first privacy boundaries.

  • Local storage and loopback API by default.
  • No telemetry.
  • No remote export by default.
  • Observations are policy-gated.
  • Actions are denied by default.
  • Sensitive or raw-content events are denied or withheld by default.
  • MCP exposes read-only resources and no write-capable tools.
  • Agent capture should record metadata only, never raw file contents, raw logs, full chat transcripts, private notes, credentials, or secrets.

Read Security before adding any feature that observes, stores, exports, or acts on local context.

OpenClaw And MCP

DevCD can be used as a read-only MCP context source for OpenClaw:

devcd integrations openclaw --smoke-test

The smoke test verifies the DevCD MCP server shape locally: initialize, resources/list, tools/list, and prompts/list. Current expected shape: resources present, tools empty, prompts empty.

DevCD does not claim to be an OpenClaw plugin, ClawHub package, or fully end-to-end verified OpenClaw gateway integration yet. See OpenClaw Integration for the exact claim boundary and config snippet.

Context Packs

Context Packs are DevCD's current extension surface. They define which metadata signals matter for a workflow and how a policy-filtered Continuity Packet should be rendered for an agent surface.

Built-in packs:

  • developer - coding-agent continuity across goals, git state, files, failures, blockers, and next actions.
  • research - metadata-only research continuity across reviewed sources, hypotheses, decisions, and failed attempts.

List them:

devcd context packs
devcd context packs --json

See Context Packs and Context Pack examples.

Architecture

IDE / Git / Tasks / Notes / Recipes
          |
          v
    Normalized DevEvents
          |
          v
  +---------------------+      +----------------+
  | DevCD Host          | ---> | Policy Layer   |
  | Event API           |      | allow / deny   |
  | State Engine        |      +----------------+
  | Memory Layer        |
  | Ambient Context     | ---> Agent Passport / Action Packet / MCP resources
  +---------------------+
          |
          v
 local JSONL ledger + local memory store

The codebase uses Vertical Slice Architecture. Slice-owned models, API routes, services, and tests live under packages/devcd-core/src/devcd/slices/<slice>/. Shared infrastructure belongs in devcd/kernel/ only when multiple slices need it.

Trust And Public Signals

DevCD should earn trust by making current maturity visible instead of pretending to be more finished than it is.

Signal Where
Security policy and threat model SECURITY.md
Alpha readiness and known limitations Release Readiness
Distribution artifact checks Publishing
Container sandbox and CI proof path Container Sandbox
Brand system and project assets Brand System
Funding configuration GitHub Sponsors
Community contribution path Contributing

No PyPI, Homebrew, Discord, hosted service, or production-support badge appears here until that surface actually exists.

Operator Quick Refs

  • First run: devcd onboard
  • Quick health check: devcd smoke
  • Full local verification: make check
  • Distribution verification: make distribution
  • Local daemon: devcd run
  • Agent Passport: devcd context passport
  • Action Packet: devcd agentic action-packet
  • Context control report: devcd context control
  • OpenClaw snippet and shape check: devcd integrations openclaw --smoke-test
  • Read-only MCP server: devcd mcp serve

Docs By Goal

Development

git clone https://github.com/mick-gsk/DevCD.git
cd DevCD
python -m pip install -e ".[dev]"
make smoke
make check

Useful targets:

make smoke         # daemonless CLI sanity check
make check         # ruff + mypy + pytest
make distribution  # build, twine check, wheel content check, installed CLI smoke
make docs          # strict MkDocs build
make run           # run the local daemon

Configuration

devcd onboard and devcd init create devcd.toml with local-first defaults. The daemon binds to 127.0.0.1:8765 by default, stores runtime data locally, and uses a local bearer token for protected API routes.

Example shape:

[devcd]
host = "127.0.0.1"
port = 8765
runtime_dir = ".devcd"
working_memory_ttl_seconds = 300
allowed_data_classes = ["metadata"]
allow_observation = true
allow_local_storage = true
allow_remote_export = false
allow_actions = false

Roadmap

Milestone Focus
0.1 Local continuity foundation, Agent Passport, policy layer, read-only MCP
Public alpha PyPI publish, install docs, release notes, OpenClaw E2E verification
Next Native IDE event sources, more recipes, pack authoring guide
Later Policy editor, stable API contracts, broader runtime integrations

DevCD will stay local-first by default. Remote export, write-capable MCP tools, hosted deployment, and arbitrary plugin execution are not part of the first alpha boundary.

Community

DevCD is maintained by Mick Gottschalk. Community contributions are welcome, especially focused bug reports, reproducible Context Pack proposals, Event Recipe proposals, and policy-boundary reviews.

See Contributing, Security, Open issues, and GitHub Sponsors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devcd-0.1.0.tar.gz (905.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devcd-0.1.0-py3-none-any.whl (90.1 kB view details)

Uploaded Python 3

File details

Details for the file devcd-0.1.0.tar.gz.

File metadata

  • Download URL: devcd-0.1.0.tar.gz
  • Upload date:
  • Size: 905.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devcd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9dca85df1b5bbd403a3f6bd46209406785bfdd59839f74c3260637c8062e65b1
MD5 e49b7925af4d710cf13295aa3cc03f30
BLAKE2b-256 781bce2452a38b2dbbabe56579f34fcf12b5fbc2ae7fcb2e678dafe5b66df3b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for devcd-0.1.0.tar.gz:

Publisher: publish-pypi.yml on mick-gsk/DevCD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devcd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: devcd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 90.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devcd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c405dbb61e6c6c0f63de35fd8c67c0c61da8b94140b48b7e71d579e9c0ee5b19
MD5 5a5f3425e8324d286ce2dc7a51a4f6cd
BLAKE2b-256 5668ccf2b0133e5c071d3c921db55c89ff0c6c215e1f7ea748e7f740695a5cf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for devcd-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on mick-gsk/DevCD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page