Get from zero to your first AI-driven sprint in 5 minutes.
- Prerequisites
- Installation
- First Project Setup
- Writing Directives
- Running a Sprint
- Understanding Results
- Next Steps
| Requirement | Minimum Version | How to Check |
|---|---|---|
| Node.js | >= 20 | node --version |
| git | any | git --version |
| Claude Code CLI | any | claude --version |
| tmux | any (optional) | tmux -V |
tmux is the default backend for spawning workers. If tmux is not available, Deckent falls back to the subprocess backend automatically.
Install tmux if needed:
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt install tmux
# Fedora
sudo dnf install tmuxYou also need an active Claude subscription (Pro, Max 5x, Max 20x) or an Anthropic API key. Alternatively, you can use OpenAI Codex or Google Gemini as providers -- see MULTI-PROVIDER-GUIDE.md.
Install Deckent globally:
npm install -g deckentVerify the installation:
deckent --versionIf you see command not found, add the npm global bin to your PATH:
export PATH="$(npm bin -g):$PATH"Add that line to ~/.bashrc or ~/.zshrc to make it permanent.
Run the health check to confirm all dependencies are available:
deckent doctorExpected output:
node_version v20.11.0 (>=20 required) [pass]
git git 2.43.0 [pass]
tmux tmux 3.3a [pass]
claude_cli claude 1.2.3 [pass]
workspace .deckent/ not found [fail]
The workspace check will fail until you initialize a project. That is expected at this stage.
Navigate to your project directory and run the init wizard:
cd my-project
deckent initThe wizard will prompt you for:
- Project name -- for example,
my-project - Plan mode -- your Claude subscription tier:
Max 20x ($200/mo)-- up to 8 parallel workers, Opus for BrainMax 5x ($100/mo)-- up to 5 workers, Sonnet for BrainPro ($20/mo)-- up to 3 workers, Sonnet onlyAPI (pay-as-you-go)-- up to 10 workers, any model
- Language --
en(English) ortr(Turkish)
After initialization, your project will contain:
my-project/
DECKENT.md # Single source of truth for agent config
DIRECTIVES.md # Your sprint goals (edit this before each sprint)
CLAUDE.md # Claude Code adapter
AGENTS.md # Generic agent adapter
.deckent/
config.json # Runtime config (mode, language, sprint ID)
workspace/
.brain/
MEMORY.md # Learned patterns (auto-updated)
DEBT.md # Technical debt log
sprints/ # Per-sprint logs
.tasks/ # Task JSON files (written by Brain)
.locks/ # File locks (managed by workers)
.claude/
settings.json # MCP server registration (auto-created)
rules/ # Agent rule files
Verify the setup:
deckent doctorAll checks should pass now.
Open DIRECTIVES.md and describe what you want to build. Use the ## Task N: format so Brain can parse your goals into individual tasks:
# DIRECTIVES -- Sprint 1
## Task 1: User Authentication
- Files: src/auth/index.ts (new), tests/auth/auth.test.ts (new)
- Scope: src/auth/, tests/auth/
### Description
Implement JWT-based login and registration endpoints.
- POST /auth/login returns an access token
- POST /auth/register creates a user and returns a token
- Add bcrypt password hashing
- Write tests for both endpoints
### Tests
- All auth tests pass
- 90%+ coverage on src/auth/
## Task 2: User Profile Page
- Files: src/pages/profile.tsx (new)
- Scope: src/pages/, src/components/
### Description
Create a user profile page showing name, email, and avatar.
- Fetch user data from GET /users/me
- Display in a responsive card layout
- Add loading and error states
### Tests
- Component renders correctly
- API integration test passesTips for effective directives:
- Be specific about which files to create or modify
- Define the scope so workers know their boundaries
- Include test requirements -- workers run tests before marking done
- Each
## Task N:block becomes one parallel worker agent - Use higher priority and the
opusmodel for complex tasks
See what Brain will create without running anything:
deckent planOutput:
Sprint 001 -- 2 tasks planned
ID TITLE MODEL PRIORITY EFFORT
001-001 User Authentication sonnet HIGH normal
001-002 User Profile Page haiku NORMAL low
Max workers: 8 (performance)
Planning mode: ai
deckent startBrain will:
- Read
DIRECTIVES.md - Plan tasks (AI mode by default) and write
.tasks/task-NNN.jsonfiles - Spawn one Claude worker per task in separate tmux windows
- Start the auditor scan loop (health checks every 30 seconds)
- Wait for all workers to complete
- Evaluate each result (GO / NO-GO / GO_WITH_TECH_DEBT)
- Write a retrospective and update memory
Workers run in tmux windows. Attach to watch a worker live:
tmux attach -t deckent
# Press Ctrl+B, then a window number to switch workersPreview without spawning workers:
deckent start --dry-runSkip all worker permission prompts:
deckent start --auto-approveUse --auto-approve only in trusted environments. Workers are scoped to assigned directories, but auto-approve removes confirmation prompts.
deckent statusExample output during a sprint:
Sprint sprint-001 -- EXECUTE phase
TASK STATUS MODEL LAST HEARTBEAT
001-001 EXECUTING sonnet 5s ago
001-002 DONE haiku 42s ago
Progress: 1/2 done | 0 failed | 1 running
No alerts.
Auto-refresh every 2 seconds:
deckent status --watchJSON output for scripting:
deckent status --jsondeckent historyBrain writes what it learned after each sprint:
deckent retroEach completed task produces a .result file:
cat .tasks/task-001-001.result{
"taskId": "001-001",
"filesChanged": ["src/auth/index.ts", "tests/auth/auth.test.ts"],
"linesAdded": 120,
"linesRemoved": 0,
"testsPassed": true,
"coverage": 97.5,
"selfAssessment": "DONE",
"notes": "Implemented JWT auth with bcrypt hashing"
}Evaluation values:
- DONE -- Task complete, all criteria met
- GO_WITH_TECH_DEBT -- Task complete with known debt (logged in
.brain/DEBT.md) - NO_GO -- Task failed; Brain logs the failure and it can be retried next sprint
Brain tracks technical debt automatically:
cat .brain/DEBT.mdBrain stores learnings that persist across sprints:
cat .brain/MEMORY.md- CONFIG-REFERENCE.md -- All configuration options in detail
- API.md -- Full TypeScript API and HTTP API reference
- MCP-GUIDE.md -- Using Deckent inside Claude Code via MCP
- ARCHITECTURE.md -- How Brain, Workers, and Auditor work together
- SPRINT-LIFECYCLE.md -- The full PLAN, SPAWN, EXECUTE, EVALUATE, RETRO, DECAY cycle
- TROUBLESHOOTING.md -- Solutions for common issues
- MULTI-PROVIDER-GUIDE.md -- Using Claude, Codex, and Gemini together
- PLUGIN-GUIDE.md -- How to extend Deckent with plugins
- GLOSSARY.md -- Terminology reference
Deckent -- AI Agent Orchestration CLI | Node.js >=20 | TypeScript ESM | MIT License