๐ SystemPrompt Coding Agent
The SystemPrompt Coding Agent transforms your workstation into a remotely accessible AI coding assistant. It allows any MCP client to connect to your MCP server, enabling seamless AI - powered coding from anywhere.
๐ฏ 100% Free and Open Source
We appreciate your support! If you find this project useful, please consider:
โญ Star this repo โข ๐ข Share with your network โข ๐ Report issues โข ๐ค Contribute code
Every star, share, and contribution helps us improve this tool for the community!
๐ฑ Works with Any MCP Client
This server is 100% free and open source and works with any MCP - compatible client.
We also offer a paid subscription native mobile app (SystemPrompt) designed for voice - first interactions with this server.
The mobile app is still in early development but provides a native mobile experience for controlling your coding agent from anywhere.
๐ Quick Start
Prerequisites
The setup script will check for these automatically:
- Node.js 18+ (required)
- Docker & Docker Compose (required)
- Claude Code CLI (optional but recommended - the setup script will guide you)
Installation and Running
git clone https://github.com/systempromptio/systemprompt-code-orchestrator
cd systemprompt-code-orchestrator
npm i
npm run setup
npm run start
npm run inspector
Essential Commands
npm run start
npm run stop
npm run status
npm run logs
npm run tunnel
Essential Configuration
# Required (setup will prompt for this)
PROJECT_ROOT=/path/to/your/code # โ ๏ธ AI agents have FULL access here
# Optional (with defaults)
PORT=3000
COMPOSE_PROJECT_NAME=systemprompt-coding-agent
# Optional (for additional features)
CLOUDFLARE_TOKEN=your_token # For tunnel access
PUSH_TOKEN=your_token # For mobile notifications
โจ Features
๐ค AI Agent Orchestration
- Multi - Agent Support: Claude Code CLI out of the box, extendable for any agent
- Task Management: Create, track, and manage coding tasks - Task Management โ
- Session Isolation: Each task runs in its own context - Claude Integration โ
- Real - time Streaming: Watch AI agents work in real - time - Event System โ
๐ฑ Mobile - First Design
- Voice Commands: "Create a login form with validation"
- Push Notifications: Get alerts when tasks complete - Push Notifications โ
- Quick Actions: Pre - defined templates for common tasks - Prompt Templates โ
- Remote Control: Manage your dev environment from anywhere
๐ง MCP Protocol Features
- Persistent State: Tasks survive server restarts - State Persistence โ
- Resource Management: Expose task data as MCP resources - Tools & Resources โ
- Interactive Prompts: AI agents can ask for clarification
- Progress Notifications: Real - time status updates
- Structured Data: Full schema validation - MCP Server โ
๐ฆ Installation
The installation process involves cloning the repository, installing dependencies, and running the setup script. Refer to the Quick Start section for detailed steps.
๐ป Usage Examples
Basic Usage
git clone https://github.com/systempromptio/systemprompt-code-orchestrator
cd systemprompt-code-orchestrator
npm i
npm run setup
npm run start
Advanced Usage
npm run tunnel
๐ Documentation
Core Architecture
- Daemon - The host - side bridge that executes commands and manages Claude processes
- Docker Architecture - How the Docker container and host machine interact
- MCP Server - The Model Context Protocol server implementation
AI Agent Systems
- Agent Manager - Central orchestrator for all AI agent sessions
- Claude Code Integration - How Claude Code CLI is integrated and managed
- Task Management - Task lifecycle, persistence, and state management
Protocol & API
- Tools and Resources - MCP tools and resources implementation
- Event System and Logging - Real - time event streaming and structured logging
Additional Features
- Testing Framework - E2E testing setup and best practices
- Tunnel and Remote Access - Cloudflare tunnel setup for internet access
- State Persistence - How tasks and sessions persist across restarts
- Push Notifications - Mobile push notification integration
- Prompt Templates - Pre - built prompt system for common tasks
๐ง Technical Details
Technical Architecture
MCP Client (Mobile/Desktop)
|
v
Docker Container (MCP Server)
- Handles MCP protocol
- Resource subscriptions
- Event streaming
|
v
Host Bridge Daemon (TCP Socket)
- Command routing
|
v
Host Machine
- AI agent execution
- File system access
Key Technical Innovations
1. Real - Time Resource Subscription Model
The server implements the MCP SDK's listChanged
pattern for resource subscriptions. When a task state changes:
client.listResources()
client.getResource({ uri: "task://abc-123" })
await this.persistence.saveTask(updatedTask);
this.emit("task:updated", updatedTask);
await sendResourcesUpdatedNotification(`task://${taskId}`, sessionId);
2. Push Notifications for Task Completion
Integrated Firebase Cloud Messaging (FCM) support sends push notifications to mobile devices when tasks complete:
{
notification: {
title: "Task Complete",
body: "Your refactoring task finished successfully"
},
data: {
taskId: "abc-123",
status: "completed",
duration: "45s"
}
}
3. Stateful Process Management
Event - Driven Architecture
All operations emit events consumed by multiple subsystems:
- Logger: Structured JSON logs with context
- State Manager: Task status updates
- Notifier: Push notifications to mobile clients
- Metrics: Performance and usage analytics
Remote Access Options
๐ Internet Access via Cloudflare Tunnel
npm run tunnel
This will:
- Create a secure HTTPS tunnel to your local server
- Display both the public URL and local network addresses
- Enable access from anywhere (including mobile devices)
โ Full Tunnel Documentation
๐ Local Network Access
- Start the server normally:
npm start
- Access from devices on the same network:
- Find your machine's IP address
- Connect using:
http://YOUR_IP:3000/mcp
Tool Reference
โ Full Tools and Resources Documentation
Task Orchestration
Property |
Details |
create_task |
Start new AI coding session |
update_task |
Send additional instructions |
end_task |
Complete and cleanup |
report_task |
Generate task reports |
System Management
Property |
Details |
check_status |
Verify agent availability |
update_stats |
Get system statistics |
clean_state |
Cleanup old tasks |
Pre - Built Prompts
๐ Bug Fixing
{
"prompt_template": "bug_fix",
"variables": {
"bug_description": "Login fails after password reset",
"error_logs": "401 Unauthorized at auth.js:42"
}
}
โ๏ธ React Components
{
"prompt_template": "react_component",
"variables": {
"component_name": "UserDashboard",
"features": ["data visualization", "real - time updates", "export functionality"]
}
}
๐งช Unit Testing
{
"prompt_template": "unit_test",
"variables": {
"target_files": ["src/auth/*.js"],
"framework": "jest",
"coverage_target": 85
}
}
Performance Optimizations
- Streaming Output: Agent output streamed in chunks, not buffered
- Lazy Resource Loading: Resources fetched on - demand
- Connection Pooling: Reused TCP connections to daemon
- Efficient State Persistence: Only changed fields written to disk
Development
Project Structure
systemprompt-coding-agent/
โโโ src/
โ โโโ server.ts # MCP server setup
โ โโโ handlers/ # Protocol handlers
โ โโโ services/ # Agent services
โ โโโ constants/ # Tool definitions
โ โโโ types/ # TypeScript types
โโโ docker-compose.yml
โโโ package.json
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
For security issues, email security@systemprompt.io
Support
Future Roadmap
- Multi - Agent Orchestration: Coordinate multiple AI agents on complex tasks
- Incremental Computation: Cache and reuse AI outputs
- Distributed Execution: Spread tasks across multiple machines
- Web UI Dashboard: Browser - based monitoring and control
MCP Client Options
While this server works with any MCP - compatible client, for a mobile voice - controlled experience, check out SystemPrompt.io - still early, but a native iOS/Android app designed specifically for voice - driven AI coding workflows. We want to create these tasks and interact with them asynchronously with our voice!
๐ License
MIT License - see LICENSE