Skip to content

Codebase Analysis

Quick Reference

  • Project: Cody Master v3.2.0
  • Type: CLI Tool + Express Dashboard + Skills Framework
  • Languages: TypeScript, HTML, CSS, JavaScript
  • Frameworks: Commander.js (CLI), Express.js (Dashboard)
  • Lines of Code: ~4,500+ (core TypeScript)

Architecture Overview

Three-layer architecture: Presentation (landing page + dashboard), Business Logic (CLI + REST API + Judge), Data (JSON file store + skills library).

Directory Structure

cody-master/
├── src/                    # Core TypeScript source
│   ├── index.ts            # CLI entry point (1536 lines)
│   ├── dashboard.ts        # Express REST server (710 lines)
│   ├── continuity.ts       # Working memory system
│   ├── judge.ts            # Judge Agent evaluation
│   ├── skill-chain.ts      # Multi-skill pipeline engine
│   ├── agent-dispatch.ts   # Task → AI Agent dispatch
│   ├── data.ts             # JSON data store
│   └── chains/             # Chain definitions
├── public/                 # Landing page website
│   ├── index.html          # Main landing page
│   ├── skills.html         # Skills catalog
│   ├── story.html          # Origin story
│   ├── demo.html           # Demo page
│   ├── start.html          # Getting started
│   ├── persona.html        # Persona detail pages
│   ├── dashboard/          # Dashboard SPA
│   ├── css/                # Stylesheets
│   ├── js/                 # Client-side JavaScript
│   ├── i18n/               # Translation files (6 languages)
│   └── img/                # Assets
├── skills/                 # 30+ AI Agent Skills
│   ├── cm-tdd/             # Test-Driven Development
│   ├── cm-debugging/       # Root cause investigation
│   ├── cm-planning/        # Implementation planning
│   ├── cm-execution/       # Autonomous execution
│   └── ...                 # 25+ more skills
├── adapters/               # Platform-specific configs
│   ├── antigravity.js      # Google Antigravity adapter
│   ├── claude-code.js      # Claude Code adapter
│   └── cursor.js           # Cursor adapter
├── docs/                   # This documentation
├── test/                   # Test suite
├── dist/                   # Compiled output
├── package.json            # Project manifest v3.2.0
├── tsconfig.json           # TypeScript config
├── vitest.config.ts        # Test framework config
└── wrangler.toml           # Cloudflare Pages config

Dependencies

CategoryPackageVersionPurpose
Corecommander^14.0.3CLI framework
Coreexpress^5.2.1HTTP server for dashboard
Corechalk^5.6.2Terminal coloring
Coreprompts^2.4.2Interactive CLI prompts
Buildtypescript^5.9.3TypeScript compiler
Buildts-node^10.9.2TypeScript runtime
Testvitest^4.1.0Test framework
Testjsdom^29.0.1DOM testing
Testacorn^8.16.0JS parser for testing

Key Files

FileRoleLines
src/index.tsCLI entry — all commands~1,536
src/dashboard.tsExpress REST API server~710
src/continuity.tsWorking memory (CONTINUITY.md)~500+
src/judge.tsTask health evaluation~400+
src/skill-chain.tsMulti-skill pipeline engine~350+
src/agent-dispatch.tsTask dispatch to AI agents~250+
src/data.tsJSON data store + types~200+

Route Map (Dashboard REST API)

MethodPathHandlerDescription
GET/api/projectsDashboardList all projects
POST/api/projectsDashboardCreate project
GET/api/tasksDashboardList tasks
POST/api/tasksDashboardCreate task
PUT/api/tasks/:id/moveDashboardMove task (kanban)
POST/api/tasks/:id/transitionDashboardTransition task state
POST/api/tasks/:id/dispatchDashboardDispatch task to AI agent
GET/api/judgeJudgeEvaluate all tasks
GET/api/judge/:taskIdJudgeEvaluate single task
GET/api/agents/suggestJudgeSuggest best agent
GET/api/continuityContinuityAll projects' memory
POST/api/continuity/:projectIdContinuityUpdate working memory
GET/api/deploymentsDashboardDeploy history
POST/api/deploymentsDashboardRecord deployment
POST/api/deployments/:id/rollbackDashboardRollback a deploy
GET/api/changelogDashboardChangelog entries
GET/api/chainsChainList skill chains
POST/api/chain-executionsChainStart chain execution

Test Coverage

FrameworkTest FilesDescription
Vitesttest/frontend-safety.test.tsFrontend safety HTML checks

WARNING

Current test coverage is low — only 1 test file exists. Recommended: add unit tests for judge.ts, continuity.ts, and skill-chain.ts.

Open Source AI Agent Skills Framework