Skip to content

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-master

After installation, the following commands are available:

  • cody โ€” primary CLI command
  • cm โ€” short alias
  • codymaster โ€” full name

Option 2: Clone & Build โ€‹

bash
git clone https://github.com/tody-agent/codymaster.git
cd cody-master
npm install
npm run build

Option 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 cursor

Configuration โ€‹

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 & decisions

Default Settings โ€‹

SettingDefaultDescription
Dashboard Port48120HTTP server port
Data File~/.cody/cm-tasks.jsonProject & task storage
PID File~/.cody/cm-dashboard.pidDashboard process tracker
Stuck Threshold30 minutesTime before task flagged as stuck

Environment Configuration โ€‹

bash
# Custom port
cm dashboard start --port 3001

# Custom project path
cm continuity init --path /my/project

Running the Dashboard โ€‹

bash
# Start dashboard server
cm dashboard start

# Check status
cm dashboard status

# Open in browser
cm open

# Stop
cm dashboard stop

The 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 3000

Production 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.ts

Deployment 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=preview

DNS Setup โ€‹

RecordNameValue
CNAMEcodymaster.pages.devCloudflare Pages auto-configured
CustomYour domainPoint 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 manifest

Monitoring โ€‹

Dashboard Status โ€‹

bash
# Check if dashboard is running
cm dashboard status

# View activity history
cm history --limit 20

# Check for stuck tasks
cm task stuck

Health Checks โ€‹

The dashboard provides these endpoints for monitoring:

EndpointMethodPurpose
/api/tasks/stuckGETReturns tasks stuck > threshold
/api/judgeGETOverall task health evaluation
/api/activitiesGETRecent activity log
/api/deploymentsGETDeployment history

Open Source AI Agent Skills Framework