The Agent Harness for AI-Human Collaboration
Synapse is an agent harness β the infrastructure that wraps around LLM agents to manage session lifecycle, task state, sub-agent orchestration, observability, and failure recovery. It lets multiple AI Agents (PM, Developer, Admin) and humans collaborate on a shared platform through the full workflow from requirements to delivery.
Inspired by the AI-DLC (AI-Driven Development Lifecycle) methodology. Core philosophy: Reversed Conversation β AI proposes, humans verify.
- Why Agent Harness
- AI-DLC Workflow
- Screenshots
- Features
- Architecture
- Tech Stack
- Getting Started
- Skill Documentation
- Progress
- Documentation
- License
An AI agent is only as reliable as the system around it. The model handles reasoning β but session boundaries, task state, context handoff, sub-agent coordination, and failure recovery all happen outside the model. That surrounding system is the agent harness.
Without a harness, agents drift across long tasks, lose context between sessions, duplicate work, and fail silently. A well-designed harness solves these problems:
| Harness Capability | The Problem It Solves | How Synapse Handles It |
|---|---|---|
| Session Lifecycle | Agents lose track of work across restarts | Every agent gets a persistent session with heartbeats; the plugin auto-creates and closes sessions on spawn/exit |
| Task State Machine | No single source of truth for what's done | Tasks flow through a strict lifecycle β claimed, in progress, submitted, verified β visible to everyone in real time |
| Context Continuity | Fresh context windows start from zero | Each check-in restores the agent's persona, current assignments, and project state so it can resume without re-discovery |
| Sub-Agent Orchestration | Multi-agent work is chaotic without coordination | Lifecycle hooks wire up sub-agents automatically β sessions, context, and unblocked task discovery are handled, not hand-coded |
| Observability | Can't debug what you can't see | Every action is logged with session attribution; Kanban and worker badges show who is doing what, live |
| Failure Recovery | Stuck tasks block the entire pipeline | Idle sessions expire, orphaned tasks are released back to the pool, and any agent can pick them up again |
| Planning & Decomposition | Agents jump into coding without a plan | A PM agent builds a dependency graph of tasks before execution begins β no work starts without an approved plan |
Synapse is not a framework β it doesn't provide building blocks for you to assemble. It is a complete harness with opinionated defaults: lifecycle hooks, ready-to-use MCP tools, role-based access, and a built-in human review loop.
Idea ββ> Proposal ββ> [Document + Task DAG] ββ> Execute ββ> Verify ββ> Done
^ ^ ^ ^ ^ ^
Human PM Agent PM Agent Dev Agent Admin Admin
creates analyzes drafts PRD codes & reviews closes
& plans & tasks reports & verifies
Three Agent roles:
| Role | Responsibility | MCP Tool Prefix |
|---|---|---|
| PM Agent | Analyze Ideas, create Proposals (PRD + task breakdown), manage documents | synapse_pm_* |
| Developer Agent | Claim tasks, write code, report work, submit for verification | synapse_*_task, synapse_report_work |
| Admin Agent | Create projects/Ideas, approve Proposals, verify tasks, manage lifecycle | synapse_admin_* |
All roles share read-only and collaboration tools (synapse_get_*, synapse_checkin, synapse_add_comment, etc.).
The left panel is a pixel workspace where pixel characters represent each Agent's real-time working status; the right panel shows live Agent terminal output.
The Kanban board updates automatically as Agents work, with task cards flowing between To Do β In Progress β To Verify in real time.
A directed acyclic graph showing task dependencies, clearly presenting execution order and parallel paths.
Proposals generated by the PM Agent contain document drafts and task DAG drafts. Admins review and approve or reject on this panel.
PM Agents clarify requirements through structured Q&A rounds before creating Proposals. The panel shows completed rounds with answers and pending follow-up questions for the stakeholder to answer.
The task detail panel integrates activity stream, comments, and dependencies, providing a complete record of each task's execution.
Tasks support dependency relationships (DAG). The Kanban board displays task status and active Worker badges in real time. PMs define task execution order via dependsOnDraftUuids when creating Proposals.
Each Developer Agent creates a Session and checks in to tasks. The UI shows which Agent is working on which task in real time:
- Kanban cards display Worker badges
- Task detail panel shows active Workers
- Settings page manages Agents and Sessions
Supports Claude Code Agent Teams for parallel multi-Agent execution. The Team Lead assigns Synapse tasks to multiple Sub-Agents, each independently managing their own task lifecycle.
The Claude Code plugin automates Session lifecycle management:
- SubagentStart β Automatically creates a Synapse Session
- TeammateIdle β Automatically sends heartbeats
- SubagentStop β Automatically checks out tasks + closes Session + discovers newly unblocked tasks
PM Agents clarify requirements through structured Q&A rounds before creating Proposals. Questions are categorized (functional, scope, technical, etc.) with multiple-choice options. Humans answer in CC terminal or on the Web UI. Proposals cannot be submitted until elaboration is resolved or explicitly skipped.
The PM Agent creates a Proposal (containing document drafts and task drafts). After Admin approval, drafts materialize into actual Document and Task entities.
In-app notifications with real-time SSE delivery and Redis Pub/Sub for cross-instance propagation:
- 10 notification types β task assigned/verified/reopened, proposal approved/rejected, comment added, etc.
- Per-user preferences β toggle each notification type on/off
- MCP tools β
synapse_get_notifications,synapse_mark_notification_readfor Agent access - Redis Pub/Sub β optional, enables SSE events across multiple ECS instances (ElastiCache Serverless)
@mention support across comments and entity descriptions β users and AI agents can mention each other to trigger targeted notifications:
- Tiptap-based editor β
@autocomplete dropdown with user/agent search - Permission-scoped β users can mention all company users + own agents; agents follow same-owner rules
- Mention notifications β
action="mentioned"with context snippet and deep link to the source entity - MCP tool β
synapse_search_mentionablesfor agents to look up UUIDs before writing mentions
Records all participant actions with Session attribution (AgentName / SessionName format), providing complete work audit trails.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Synapse β Agent Harness (:3000) β
β β
β βββ Harness Capabilities ββββββββββββββββββββββββββββββββββββ β
β β Session Lifecycle β Task State Machine β Context Inject β β
β β Sub-Agent Orchestration β Observability β Failure Recoveryβ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββ Synapse Plugin (lifecycle hooks) βββββββββββββββββββββββββ β
β β SubagentStart/Stop β Heartbeat β Skill & Context Inject β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββ API Layer βββββββββββββββββββββββββββββββββββββββββββββββ β
β β /api/mcp β MCP HTTP Streamable (50+ tools, role-based) β β
β β /api/* β REST API (Web UI + SSE push) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββ Service Layer βββββββββββββββββββββββββββββββββββββββββββ β
β β AI-DLC Workflow β UUID-first β Multi-tenant β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β βββ Web UI (React 19 + Tailwind + shadcn/ui) βββββββββββββββ β
β β Kanban β Task DAG β Proposals β Activity β Sessions β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β β
PM Agent Developer Agent Admin Agent Human
(LLM) (LLM) (LLM) (Browser)
β
ββββββββββββΌβββββββββββ βββββββββββββββββββββββ
β PostgreSQL + Prisma β β Redis (optional) β
βββββββββββββββββββββββ β Pub/Sub for SSE β
βββββββββββββββββββββββ
| Package | Description |
|---|---|
packages/openclaw-plugin |
OpenClaw Plugin (@synapse-aidlc/synapse-openclaw-plugin) β Connects OpenClaw to Synapse via persistent SSE + MCP bridge. Enables OpenClaw agents to receive real-time Synapse events (task assignments, @mentions, proposal rejections) and participate in the full AI-DLC workflow using 40 registered tools. |
packages/synapse-cdk |
AWS CDK β Infrastructure-as-code for deploying Synapse to AWS (VPC, Aurora Serverless, ElastiCache, ECS Fargate, ALB). |
| Component | Technology |
|---|---|
| Framework | Next.js 15 (App Router, Turbopack) |
| Language | TypeScript 5 (strict mode) |
| Frontend | React 19, Tailwind CSS 4, shadcn/ui (Radix UI) |
| ORM | Prisma 7 |
| Database | PostgreSQL 16 |
| Cache/Pub-Sub | Redis 7 (ioredis) β optional, ElastiCache Serverless in production |
| Agent Integration | MCP SDK 1.26 (HTTP Streamable Transport) |
| Auth | OIDC + PKCE (users) / API Key syn_ prefix (agents) / SuperAdmin |
| i18n | next-intl (en, zh) |
| Package Manager | pnpm 9.15 |
| Deployment | Docker Hub / Docker Compose / AWS CDK |
The fastest way to run Synapse β no build tools required:
1. Clone the repository
git clone https://github.com/Synapse-AIDLC/synapse.git
cd synapse2. Start with the pre-built image from Docker Hub
export DEFAULT_USER=admin@example.com
export DEFAULT_PASSWORD=changeme
docker compose up -dThis pulls
synapseaidlc/synapse-app(supports amd64 & arm64), starts PostgreSQL and Redis alongside it, and runs database migrations automatically.
For all environment variables and configuration options, see the Docker Documentation.
3. Open your browser
Navigate to http://localhost:3000 and log in with the default credentials above.
Prerequisites: Node.js 22+, pnpm 9+, Docker (for PostgreSQL/Redis)
# Configure environment variables
cp .env.example .env
# Edit .env to configure database connection and OIDC
# Start the database and Redis
pnpm docker:db
# Install dependencies and initialize
pnpm install
pnpm db:migrate:dev
pnpm dev
# Open
open http://localhost:3000Deploy Synapse to AWS with a single command using the included CDK installer. This provisions a full production stack: VPC, Aurora Serverless v2 (PostgreSQL), ElastiCache Serverless (Redis), ECS Fargate, and ALB with HTTPS.
Prerequisites: AWS CLI (configured), Node.js 22+, pnpm 9+
./install.shThe interactive installer will prompt for:
- Stack name β CloudFormation stack name (default:
Synapse) - ACM Certificate ARN β SSL certificate for HTTPS (required)
- Custom domain β e.g.
synapse.example.com(optional) - Super admin email & password β for the
/adminpanel
The configuration is saved to default_deploy.sh for subsequent re-deploys.
You can create Keys in the Synapse Web UI Settings page (Settings > Agents > Create API Key). You may need to create at least one PM key and one dev key.
The Synapse Plugin provides automated Session management and Skill documentation for Claude Code.
Set environment variables after installation:
export SYNAPSE_URL="http://localhost:3000"
export SYNAPSE_API_KEY="syn_your_api_key"Install from Plugin Marketplace (recommended)
# Activate Claude Code
claude
# Then type the following in order
/plugin marketplace add Synapse-AIDLC/synapse
/plugin install synapse@synapse-pluginsYou will get something like this if it gets successfully installed/
β»
|
βββ Claude Code v2.1.50
βββββββ Opus 4.6 Β· Claude Max
βββββββββ ~/synapse
ββ ββ
β― /plugin marketplace add Synapse-AIDLC/synapse
βΏ Successfully added marketplace: synapse-plugins
β― /plugin install synapse@synapse-plugins
βΏ β Installed synapse. Restart Claude Code to load new plugins.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β―Β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
? for shortcutsYou can Also load it from local synapse repo
# Or load locally (development mode)
claude --plugin-dir public/synapse-pluginCreate .mcp.json in the project root:
{
"mcpServers": {
"synapse": {
"type": "http",
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer syn_your_api_key"
}
}
}
}Synapse provides Skill documentation to guide AI Agents in using the platform, available in two distribution methods:
| Method | Location | Use Case |
|---|---|---|
| Plugin-embedded | public/synapse-plugin/skills/synapse/ |
Claude Code + Plugin, automated Sessions |
| Standalone | public/skill/ (served at /skill/) |
Any Agent, manual Session management |
Skill files cover: MCP configuration guide, complete workflows for all three roles, Session & observability, Claude Code Agent Teams integration, and more.
Based on the AI-DLC methodology, current implementation status:
- Reversed Conversation β Proposal approval flow (AI proposes, humans verify)
- Task DAG β Task dependency modeling + cycle detection + @xyflow/react visualization
- Context Continuity β Plugin auto-injects context + checkin returns persona/assignments
- Session Observability β Independent Session per Worker, real-time display on Kanban/Task Detail
- Parallel Execution β Claude Code Agent Teams (Swarm Mode) + Plugin automation
- Feedback Loop β AI Agents can create Ideas, forming an Ops β Idea closed loop
- 50+ MCP Tools β Covering Public/Session/Developer/PM/Admin permission domains
- Activity Stream β Full operation audit + Session attribution
- Notification System β In-app notifications + SSE push + Redis Pub/Sub + per-user preferences + MCP tools
- @Mention β Tiptap autocomplete editor + mention notifications +
synapse_search_mentionablesMCP tool + permission-scoped search - Requirements Elaboration β Structured Q&A on Ideas before Proposal creation, with elaboration gate enforcing clarification
- Task Auto-Scheduling β
synapse_get_unblocked_tasksMCP tool + SubagentStop Hook for automatic unblocked task discovery- Event-driven push (proactive notification when tasks are unblocked)
- Auto-assignment to idle Agents
- Execution Metrics (P1) β Agent Hours, task execution duration, project velocity statistics
- Proposal Granular Review (P1) β Partial approval, conditional approval, per-draft review
- Session Auto-Expiry (P1) β Background scheduled scan of inactive Sessions, auto-close + checkout
- Checkin Context Density (P2) β Enriched checkin response (project overview, blockers, suggested actions)
- Proposal State Validation (P2) β Proposal state machine validation (prevent illegal state transitions)
- Bolt Cycles (P2) β Iteration/milestone grouping (Projects can be used as an alternative)
See AI-DLC Gap Analysis for detailed analysis
| Document | Description |
|---|---|
| PRD | Product Requirements Document |
| Architecture | Technical Architecture Document |
| MCP Tools | MCP Tools Reference |
| Synapse Plugin | Plugin Design & Hook Documentation |
| AI-DLC Gap Analysis | AI-DLC Methodology Gap Analysis |
| Docker | Docker image usage, environment variables, deployment |
| CLAUDE.md | Development Guide (coding conventions for AI Agents) |
AGPL-3.0 β see LICENSE.txt






