Deployment Guide โ
Quick Reference
- Node.js: 18+ required
- Install:
npm install -g cody-master- Dashboard Port: 48120 (default)
- Hosting: Cloudflare Pages (landing page)
Installation โ
Option 1: npm Global Install โ
bash
npm install -g cody-masterAfter installation, the following commands are available:
codyโ primary CLI commandcmโ short aliascodymasterโ full name
Option 2: Clone & Build โ
bash
git clone https://github.com/tody-agent/codymaster.git
cd cody-master
npm install
npm run buildOption 3: Install as AI Agent Skill โ
bash
# For Antigravity (Gemini)
cody install cm-tdd --platform gemini
# For Claude Code
cody install cm-tdd --platform claude
# For Cursor
cody install cm-tdd --platform cursorConfiguration โ
Project Initialization โ
bash
# Initialize a new Cody Master project
cm init
# This creates a .cm/ directory with:
# .cm/CONTINUITY.md - Working memory
# .cm/config.yaml - RARV settings
# .cm/memory/ - Learnings & decisionsDefault Settings โ
| Setting | Default | Description |
|---|---|---|
| Dashboard Port | 48120 | HTTP server port |
| Data File | ~/.cody/cm-tasks.json | Project & task storage |
| PID File | ~/.cody/cm-dashboard.pid | Dashboard process tracker |
| Stuck Threshold | 30 minutes | Time before task flagged as stuck |
Environment Configuration โ
bash
# Custom port
cm dashboard start --port 3001
# Custom project path
cm continuity init --path /my/projectRunning the Dashboard โ
bash
# Start dashboard server
cm dashboard start
# Check status
cm dashboard status
# Open in browser
cm open
# Stop
cm dashboard stopThe dashboard will be available at http://codymaster.localhost:48120
Building from Source โ
Development โ
bash
# Install dependencies
npm install
# Run TypeScript compilation
npm run build
# Run tests
npm run test:gate
# Start landing page dev server
npx serve public -l 3000Production Build โ
bash
# Full build pipeline
npm run build
# Output goes to dist/
# Landing page assets are in public/Test Pipeline โ
bash
# Run all tests
npm run test:gate
# Run specific test file
npx vitest run test/frontend-safety.test.tsDeployment to Cloudflare Pages โ
The landing page is deployed to Cloudflare Pages:
wrangler.toml Configuration โ
toml
name = "codymaster"
pages_build_output_dir = "./public"Deploy Process โ
bash
# Deploy to production
npx wrangler pages deploy ./public --project-name=codymaster
# Deploy preview
npx wrangler pages deploy ./public --project-name=codymaster --branch=previewDNS Setup โ
| Record | Name | Value |
|---|---|---|
| CNAME | codymaster.pages.dev | Cloudflare Pages auto-configured |
| Custom | Your domain | Point to Cloudflare Pages |
File Structure for Deployment โ
Production deployment:
โโโ public/ # Cloudflare Pages
โ โโโ index.html # Landing page
โ โโโ skills.html # Skills catalog
โ โโโ story.html # Origin story
โ โโโ demo.html # Demo page
โ โโโ start.html # Getting started
โ โโโ dashboard/ # Dashboard SPA
โ โ โโโ index.html
โ โโโ css/ # Stylesheets
โ โโโ js/ # Client-side JS
โ โโโ i18n/ # Translations
โ โโโ img/ # Assets
npm Package:
โโโ dist/ # Compiled TypeScript
โ โโโ index.js # CLI entry
โ โโโ dashboard.js # Dashboard server
โ โโโ ...
โโโ skills/ # Skill definitions
โโโ package.json # npm manifestMonitoring โ
Dashboard Status โ
bash
# Check if dashboard is running
cm dashboard status
# View activity history
cm history --limit 20
# Check for stuck tasks
cm task stuckHealth Checks โ
The dashboard provides these endpoints for monitoring:
| Endpoint | Method | Purpose |
|---|---|---|
/api/tasks/stuck | GET | Returns tasks stuck > threshold |
/api/judge | GET | Overall task health evaluation |
/api/activities | GET | Recent activity log |
/api/deployments | GET | Deployment history |