CLI Reference
Complete reference for all agentful CLI commands, options, and outputs.
Installation
# Local installation
npx @itz4blitz/agentful init
# Global installation
npm install -g @itz4blitz/agentfulCommands
agentful init
Initialize agentful in the current directory.
Usage
agentful init
agentful init --bareOptions
| Option | Type | Description |
|---|---|---|
--bare | flag | Skip creating template files (CLAUDE.md, PRODUCT.md), only create .claude/ and .agentful/ directories |
What It Creates
-
.claude/directory (if not exists)- All agent configurations
- Command definitions
- Settings and permissions
- Skills and capabilities
-
.agentful/directory (gitignored)state.json- Current work statecompletion.json- Feature progress trackingdecisions.json- Pending/resolved decisionsarchitecture.json- Detected tech stack
-
Template files (skipped with
--bare)PRODUCT.md- Product specification templateCLAUDE.md- Quick start guide
-
.gitignoreupdate- Adds
.agentful/to gitignore
- Adds
Behavior
If .claude/ already exists, prompts for confirmation:
⚠️ .claude/ directory already exists!
Overwrite? (y/N)y- Removes existing directory and recreatesNor any other input - Aborts initialization
Output Example
___ __ ____________ ____ ___ ____________
/ | / / / /_ __/ __ \/ __ \/ _ | / ____/ _/ /
/ /| | / / / / / / /_/ / /_/ / __ |/ / / // /
/ ___ |/ /_/ / / / / _, _/ _, _/ /_/ / /___/ // /
/_/ |_|_____/ /_/_/ /_/ |_/_/ |_|\____/\____/___/
v1.0.0
Creating .claude/ directory structure...
Initializing state files...
✓ Created CLAUDE.md
✓ Created PRODUCT.md
Added .agentful/ to .gitignore
✅ agentful initialized successfully!
Next steps:
1. Edit PRODUCT.md with your product specification
2. Run: claude
3. Type: /agentful-start
For autonomous 24/7 development:
/ralph-loop "/agentful-start" --max-iterations 50 --completion-promise "AGENTFUL_COMPLETE"Exit Codes
0- Successfully initialized1- Initialization failed (directory permissions, user aborted)
agentful status
Display current development progress and state.
Usage
agentful statusPrerequisites
- Must be run in a directory with
.agentful/folder state.jsonmust exist
Output Sections
1. Current Work
Shows active development task:
Current Status:
🔧 Working on: Authentication - JWT implementation
Phase: backend-implementation
Iterations: 3Or if idle:
💤 Idle - no active task2. Progress Bar
Visual completion percentage:
Progress:
████████████░░░░░░░░ 48%3. Quality Gates
Status of all quality gates:
Quality Gates:
✅ Tests Passing
❌ No Type Errors
✅ No Dead Code
❌ Coverage 80
⚠️ Security Clean4. Pending Decisions
If decisions are blocking development:
⚠️ 2 pending decisions:
1. Should auth use JWT or session cookies?
2. Which database provider?
Run: /agentful-decide5. Next Actions
Always shows available commands:
Next Actions:
• /agentful-start - Continue development
• /agentful-decide - Answer pending decisions
• /agentful-validate- Run quality checksError Cases
❌ agentful not initialized in this directory!
Run: npx @itz4blitz/agentful init❌ State file missing!
Run: npx @itz4blitz/agentful initComplete Output Example
___ __ ____________ ____ ___ ____________
/ | / / / /_ __/ __ \/ __ \/ _ | / ____/ _/ /
/ /| | / / / / / / /_/ / /_/ / __ |/ / / // /
/ ___ |/ /_/ / / / / _, _/ _, _/ /_/ / /___/ // /
/_/ |_|_____/ /_/_/ /_/ |_/_/ |_|\\____/\\____/___/
v1.0.0
Current Status:
🔧 Working on: User authentication system
Phase: backend-implementation
Iterations: 7
Progress:
████████░░░░░░░░░░░░ 35%
Quality Gates:
❌ Tests Passing
❌ No Type Errors
✅ No Dead Code
❌ Coverage 80
✅ Security Clean
Next Actions:
• /agentful-start - Continue development
• /agentful-decide - Answer pending decisions
• /agentful-validate- Run quality checksagentful --help
Display help information.
Usage
agentful --help
agentful -h
agentful helpOutput
___ __ ____________ ____ ___ ____________
/ | / / / /_ __/ __ \/ __ \/ _ | / ____/ _/ /
/ /| | / / / / / / /_/ / /_/ / __ |/ / / // /
/ ___ |/ /_/ / / / / _, _/ _, _/ /_/ / /___/ // /
/_/ |_|_____/ /_/_/ /_/ |_/_/ |_|\\____/\\____/___/
v1.0.0
USAGE:
agentful <command>
COMMANDS:
init Initialize agentful in current directory
init --bare Skip creating templates (just .claude/)
status Show current development progress
--help Show this help message
--version Show version
AFTER INIT:
1. Edit PRODUCT.md with your product spec
2. Run claude to start Claude Code
3. Type /agentful-start to begin autonomous development
FOR 24/7 DEVELOPMENT:
/ralph-loop "/agentful-start" --max-iterations 50 --completion-promise "AGENTFUL_COMPLETE"agentful --version
Display agentful version.
Usage
agentful --version
agentful -vOutput
agentful v1.0.0Exit Codes Summary
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (unknown command, initialization failed, missing state) |
Environment
Required Files
| File | Purpose | Created By |
|---|---|---|
.claude/ | agentful configuration | agentful init |
.agentful/state.json | Current state | agentful init |
.agentful/completion.json | Progress tracking | agentful init |
.agentful/decisions.json | Decision tracking | agentful init |
.agentful/architecture.json | Tech stack detection | Agent (automatically) |
Optional Files
| File | Purpose | Created By |
|---|---|---|
PRODUCT.md | Product specification | agentful init (skip with --bare) |
CLAUDE.md | Quick start guide | agentful init (skip with --bare) |
Directory Permissions
agentful requires:
- Read access to current directory
- Write access to create
.claude/and.agentful/ - Write access to update
.gitignore
Color Scheme
The CLI uses ANSI colors for better readability:
| Color | Usage |
|---|---|
| Cyan | Banner, branding |
| Green | Success messages, completed items |
| Yellow | Warnings, pending items |
| Red | Errors, failures |
| Blue | Active work, information |
| Magenta | Not currently used |
| Dim/Bright | Text emphasis |
Version Compatibility
agentful Version
Current version: 1.0.0
Check compatibility:
agentful --versionNode.js Requirements
Minimum Node.js version: 18.0.0
Check your version:
node --versionQuick Reference
| Command | Purpose | Common Use Case |
|---|---|---|
agentful init | Start new project | Creating new agentful project |
agentful init --bare | Config only | Adding to existing project |
agentful status | Check progress | See what's done/in progress |
agentful --help | Get help | Remember command syntax |
agentful --version | Check version | Debug version issues |
Troubleshooting
"Command not found"
# Use npx instead
npx @itz4blitz/agentful init
# Or install globally
npm install -g @itz4blitz/agentful"Permission denied"
# Check directory permissions
ls -la .
# Ensure write access
chmod u+w ."Already initialized"
# Remove existing .claude/ first
rm -rf .claude .agentful
# Then reinitialize
agentful initState file corruption
# Remove corrupted state
rm .agentful/state.json
# Reinitialize (preserves other state)
agentful init --bareIntegration Examples
With npm scripts
{
"scripts": {
"agentful:init": "agentful init",
"agentful:status": "agentful status",
"start": "claude"
}
}With CI/CD
# Check agentful status in CI
- run: agentful status
# Validate completion percentage
- run: |
PERCENT=$(jq -r '.overall' .agentful/completion.json)
if [ "$PERCENT" -lt 100 ]; then
echo "Project not complete: $PERCENT%"
exit 1
fiWith Git hooks
# .git/hooks/pre-commit
#!/bin/bash
agentful status
echo "Check progress before committing"See Also
- State Files Reference - Details on state file formats
- Settings Reference - Configuration options
- Commands - Claude Code slash commands
- Agents - Agent specifications