Skip to main content

Quick Start

2.1 Installation

# Global install
npm install -g @mindfoldhq/trellis@latest

# Navigate to your project directory
cd your-project
OS Requirements: Mac, Linux, and Windows are fully supported. All scripts have been migrated to Python for cross-platform compatibility.
Choose the init command based on your platform:
trellis init -u your-name
Automatically detects the Claude Code environment and configures the .claude/ directory (commands, agents, hooks).
your-name becomes your developer identity and creates your personal workspace at .trellis/workspace/your-name/.

2.2 Platform Configuration

trellis init automatically detects and configures installed platforms:
PlatformConfig DirectoryCommand Format
Claude Code.claude/commands/trellis/, .claude/agents/, .claude/hooks//start
Cursor.cursor/commands/*.md/start
CodexAGENTS.md, .agents/skills/$start
OpenCode.agents/skills//start
Kilo.kilocode/workflows/, .kilocode/rules/, .kilocode/skills//start.md
Kiro.kiro/steering/, .kiro/hooks/, .kiro/prompts/@start

Platform Capability Comparison

CapabilityClaude CodeCursorCodexOpenCodeKiloKiro
Session auto-injection✅ Hook❌ Manual /start⚡ AGENTS.md✅ Hook⚡ rules/ + launchConfig⚡ steering/
Sub-Agent spec injection✅ PreToolUse Hook⚡ Orchestrator Mode⚡ Custom Agents
Ralph Loop quality gate✅ SubagentStop Hook⚡ Agent Hooks
Multi-Agent Pipeline✅ Orchestrator + worktree✅ Autonomous Agent
Number of commands13121313workflowsprompts

2.3 Three Steps to Get Started

# Step 1: Open the Claude Code terminal
# Hook auto-injects context — you can describe your task directly (or run /start to see the full flow)

# Step 2: Describe what you want to do
"Add user login feature"

# Step 3: AI works automatically
# AI reads specs → creates task → invokes Agent to implement → self-checks
# Once done, you test, commit, and record the session

2.4 Full Directory Structure

your-project/
├── .trellis/                          # Trellis core directory
│   ├── .developer                     # Developer identity (gitignored)
│   ├── .current-task                  # Active task pointer
│   ├── .version                       # Trellis version number
│   ├── .template-hashes.json          # Template file hashes (for update)
│   ├── workflow.md                    # Development workflow guide
│   ├── worktree.yaml                  # Multi-Agent worktree config
│   │
│   ├── spec/                          # Project spec library
│   │   ├── frontend/                  #   Frontend specs
│   │   │   ├── index.md               #     Spec index
│   │   │   ├── component-guidelines.md
│   │   │   ├── hook-guidelines.md
│   │   │   ├── state-management.md
│   │   │   ├── type-safety.md
│   │   │   ├── quality-guidelines.md
│   │   │   └── directory-structure.md
│   │   ├── backend/                   #   Backend specs
│   │   │   ├── index.md
│   │   │   ├── database-guidelines.md
│   │   │   ├── error-handling.md
│   │   │   ├── logging-guidelines.md
│   │   │   ├── quality-guidelines.md
│   │   │   └── directory-structure.md
│   │   └── guides/                    #   Thinking guides
│   │       ├── index.md
│   │       ├── cross-layer-thinking-guide.md
│   │       └── code-reuse-thinking-guide.md
│   │
│   ├── workspace/                     # Developer workspace
│   │   ├── index.md                   #   Workspace master index
│   │   └── {developer-name}/          #   Per-developer directory
│   │       ├── index.md               #     Personal index
│   │       └── journal-N.md           #     Session journal
│   │
│   ├── tasks/                         # Task directory
│   │   ├── {MM-DD-task-name}/         #   Active tasks
│   │   │   ├── task.json              #     Task metadata
│   │   │   ├── prd.md                 #     Requirements document
│   │   │   ├── info.md                #     Technical design (optional)
│   │   │   ├── implement.jsonl        #     Implement Agent context
│   │   │   ├── check.jsonl            #     Check Agent context
│   │   │   └── debug.jsonl            #     Debug Agent context
│   │   └── archive/                   #   Archived tasks
│   │       └── {YYYY-MM}/
│   │
│   └── scripts/                       # Automation scripts
│       ├── task.py                    #   Task management (14 subcommands)
│       ├── get-context.py             #   Get session context
│       ├── get-developer.py           #   Get developer identity
│       ├── init-developer.py          #   Initialize developer
│       ├── add-session.py             #   Record session
│       ├── common/                    #   Shared libraries
│       │   ├── paths.py
│       │   ├── developer.py
│       │   ├── git-context.py
│       │   ├── task-utils.py
│       │   ├── task-queue.py
│       │   ├── phase.py
│       │   ├── registry.py
│       │   └── worktree.py
│       └── multi-agent/               #   Parallel development scripts
│           ├── plan.py
│           ├── start.py
│           ├── status.py
│           ├── create-pr.py
│           └── cleanup.py

├── .claude/                           # Claude Code configuration
│   ├── settings.json                  #   Hook and permission config
│   ├── commands/                      #   Slash commands
│   │   └── trellis/                   #     Trellis command set
│   │       ├── start.md
│   │       ├── parallel.md
│   │       ├── record-session.md
│   │       ├── finish-work.md
│   │       ├── onboard.md
│   │       ├── before-backend-dev.md
│   │       ├── before-frontend-dev.md
│   │       ├── check-backend.md
│   │       ├── check-frontend.md
│   │       ├── check-cross-layer.md
│   │       ├── break-loop.md
│   │       ├── create-command.md
│   │       └── integrate-skill.md
│   ├── agents/                        #   Agent definitions
│   │   ├── dispatch.md
│   │   ├── plan.md
│   │   ├── implement.md
│   │   ├── check.md
│   │   ├── debug.md
│   │   └── research.md
│   ├── hooks/                         #   Hook scripts
│   │   ├── session-start.py
│   │   ├── inject-subagent-context.py
│   │   └── ralph-loop.py
│   └── skills/                        #   Skill directory

├── .cursor/                           # Cursor configuration
│   └── commands/
│       └── trellis-*.md               #   Cursor command set

├── AGENTS.md                          # Codex entry file
├── .agents/                           # Agent Skills (Codex / OpenCode)
│   └── skills/

├── .kilocode/                         # Kilo Code configuration
│   ├── rules/                         #   Project rules (all modes)
│   ├── workflows/                     #   Workflow commands
│   └── skills/                        #   Agent Skills

└── .kiro/                             # Kiro configuration
    ├── steering/                      #   Project context (Steering system)
    ├── hooks/                         #   Agent Hooks (event-driven automation)
    ├── prompts/                       #   Custom prompts
    └── specs/                         #   Spec-Driven Development docs