Agent Deck

July 3, 2026 · View on GitHub

Doc role: Contributor workflow
Install & env: SETUP.md · Product scope: MVP.md · Design: ARCHITECTURE.md


Quick start

git clone https://github.com/not-so-fat/agent_deck.git
cd agent_deck
npm install
npm run build
npm run dev:all
ServiceURL
Dashboardhttp://localhost:3000
APIhttp://localhost:8000
MCPhttp://127.0.0.1:3001/mcp

Data dir: AGENT_DECK_DEV=1~/.agent-deck/dev/ (see SETUP.md).


Daily workflow

npm run dev:all          # all services (scripts/dev-all.sh)
npm run backend:dev      # API only
npm run frontend:dev     # Vite only
npm run mcp              # MCP only
npm test                 # all packages (rebuilds native modules)
npm run smoke:dev        # backend health + key routes
npm run build:release    # pre-publish build

Branch flow: feature branch → change → npm test → PR.

Monorepo layout: ARCHITECTURE.md. Turbo orchestrates packages/shared, packages/backend, packages/cli, apps/agent-deck.


Testing

npm test                           # full suite
npm run test --workspace packages/backend
npm run smoke:dev                  # lightweight launch smoke
  • Framework: Vitest (FE: Vitest + React Testing Library + jsdom — no separate E2E runner)
  • Map: TESTING.md (FE / BE / MCP / CLI scenarios)
  • Native module: better-sqlite3 — if Node major changes, npm install / scripts/rebuild-native.mjs
  • After backend/MCP changes: run npm run dev:all or smoke:dev per verify-service-launch

Where to change things

ChangeStart here
MCP tools / bindpackages/backend/src/mcp-server.ts
REST routespackages/backend/src/routes/
Vault / credentialspackages/backend/src/vault/
Shared typespackages/shared/src/schemas/
Dashboard UIapps/agent-deck/src/
CLI / harnesspackages/cli/src/
Agent harness templatepackages/cli/src/agent-harness.ts

When behavior changes, update the owning doc (MVP.md for product, SETUP.md for install) in the same PR.


Agents & playbooks (contributors)

When working in this repo with Agent Deck MCP:

  1. get_decks, then bind_workspace({ workspaceRoot, deckId }) with repo root
  2. Procedure cards: get_playbooknot direct SQLite / ~/.agent-deck/*.db
  3. Product truth: MVP.md; proposed features: PRD_*.md

See decisions/installation-no-bypass.md.


Contributing

  • Conventional commits: feat:, fix:, docs:, test:
  • Keep diffs focused; match surrounding code style
  • Do not commit secrets, .env, or ~/.agent-deck/ data
  • Release process: PUBLISHING.md

Troubleshooting

IssueFix
NODE_MODULE_VERSION / sqlitenpm rebuild better-sqlite3 or re-npm install
Port in use (CLI)agent-deck stop or change ports in SETUP.md
Dev vs prod data mixedConfirm AGENT_DECK_DEV=1 for dev:all

More: SETUP.md.