@nysg/ptta
v0.2.9
Published
AI-first task management CLI - External memory storage for Claude Code
Maintainers
Readme
ptta (Project, Task, Todo, Action)
AI-first Task Management CLI - External Memory for Claude Code
Current Implementation: Workspace → Task → Todo → Action hierarchy (4 layers)
Features
- 📋 Hierarchical Task Management: Workspace → Task → Todo → Action
- 🤖 AI-Optimized: Structured JSON data, designed for easy Claude Code integration
- 💾 Persistent Storage: Fast data management with better-sqlite3
- 📁 Workspace-based: Independent task management per workspace path
- 🔍 Efficient Queries: Save Claude Code's context window
- 🌐 Web Interface: Visual task management via WebUI
Installation
npm install -g @nysg/pttaLocal Development
npm install
npm run build
npm linkWebUI
Launch the web interface to manage your tasks visually.
# Start WebUI (default port: 3737)
ptta web
# Custom port
ptta web --port 8080Open http://localhost:3737 in your browser.
Basic Usage
Task Management
# Create task
ptta task:add "Web App Development" -d "New web application project" -P high
# List tasks
ptta task:list
# Show task details (hierarchical view with todos and actions)
ptta task:show 1
# Update task status
ptta task:update 1 -s completedTodo Management
# Create todo for task 1
ptta todo:add 1 "Implement authentication" -d "Implement JWT authentication" -P high
# List all todos
ptta todo:list
# List todos for task 1
ptta todo:list -T 1
# Update todo status
ptta todo:update 1 -s in_progress
# Complete todo
ptta todo:update 1 -s doneAction Management
# Add actions to todo 1
ptta action:add 1 "Create login UI"
ptta action:add 1 "Implement JWT generation logic"
# Complete action
ptta action:done 1
# Update action
ptta action:update 1 -s doneWorkspace Management
# List workspaces
ptta workspace:list
# Execute in specific workspace
ptta -p /path/to/project task:listData Export
# Export all data as JSON
ptta export
# Export specific task to file
ptta export -T 1 -o task1.json
# Show statistics
ptta statsClaude Code Integration
1. Check current todos at work start
# Get in-progress todos in JSON format
ptta query todos -s in_progress2. Understand task overview
# Get task hierarchy (with todos and actions) in JSON format
ptta query hierarchy -i 13. Record work completion
# Complete todo and add summary
ptta todo:update 5 -s done
ptta summary:add todo 5 "API integration completed. Implemented error handling and rate limiting."4. AI Query Commands (JSON format)
# All tasks
ptta query tasks
# All todos
ptta query todos
# Specific task hierarchy (includes all todos and actions)
ptta query hierarchy -i 1
# All data
ptta query all
# Statistics
ptta query stats
# Workspace list
ptta query workspacesData Storage Location
~/.ptta/ptta.dbStatus Values
Tasks
active: Active (in progress)completed: Completedarchived: Archived
Todos/Actions
todo: Not startedin_progress: In progressdone: Completed
Priority Levels
low: Lowmedium: Medium (default)high: High
Version History
v0.2.5 (Latest)
- ✨ WebUI URL-based Routing: React Router integration for proper URL navigation
- Workspace list:
/ - Task list:
/workspaces/:workspaceId - Task detail:
/workspaces/:workspaceId/tasks/:taskId
- Workspace list:
- ✅ Test Suite: Added comprehensive WebUI routing tests (10 test cases)
- 🎨 UI Improvements: Compact single-line stats display for Tasks/Todos/Actions
- 🔧 Configuration: Added
.gitignorefor Claude Code settings
v0.2.4
- 🌐 WebUI implementation with Hono + React + TypeScript + Tailwind CSS + shadcn/ui
- 📊 Task statistics and hierarchy visualization
- 🎨 Modern UI with status badges and priority indicators
v0.2.3
- 🧪 Added test suite with vitest (80+ tests)
- 🛡️ Error handling improvements
- 📝 JSON validation and utilities
Earlier Versions
- v0.2.0-0.2.2: Core CLI functionality, database layer, 4-layer hierarchy implementation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Repository
License
MIT
