Lightning-fast task management for AI-human collaborative development
Task Patterns is a CLI tool that brings joy to task management. Built for developers who work with AI assistants, it provides instant task capture, smart context switching, and celebration of progressβall from your terminal.
Working with AI on code? You need a task system that:
- Captures tasks instantly - No context switching, no browser tabs
- Shows what matters - Your current work, not everything
- Celebrates progress - Because shipping code should feel good
- Works anywhere - Local configs follow your projects
# Install globally
npm install -g @pattern-stack/task-patterns
# Or clone and link
git clone https://github.com/pattern-stack/task-patterns.git
cd task-patterns
npm install && npm link
# Configure (one-time)
export LINEAR_API_KEY=lin_api_xxx # Add to ~/.zshrc or ~/.bashrc
tp config init # Initialize local project config# What am I working on?
tp context # Shows your current sprint at a glance
# Capture a task (stay in flow)
tp add "Fix auth bug" # Creates task instantly
# Work on something
tp working TASK-19 # Marks as in progress
tp done TASK-19 # Complete with celebration! π
# Get details when needed
tp show TASK-19 # Full issue details
tp update TASK-19 --status "In Review"
# Manage labels
tp update TASK-19 --add-labels "Bug,Refactor"
tp update TASK-19 --list-labels # See available labelsTask Patterns uses a hierarchical configuration system:
Each project can have its own settings:
tp config init # Create .tp/config.json
tp config teams TASK TECH # Set team filters for this project
tp config set defaultTeam TASK # Set default team for new tasksUser preferences that apply everywhere:
tp config set --global backend linear # Choose task backendLINEAR_API_KEY=lin_api_xxx # Required for Linear
LINEAR_WORKSPACE_ID=xxx # Optional workspacePriority: Local project β Global user β Environment variables
Focus on what's relevant:
tp config teams TASK TECH # Only see TASK and TECH team issues
tp context # Now shows filtered viewNo more remembering flags:
tp config set defaultTeam TASK
# Prompts: "Save to project or global config?"
# Choose with arrow keys - easy!Your settings follow your code:
cd ~/projects/auth-service
tp config init && tp config teams AUTH
# This project now only shows AUTH team tasks
cd ~/projects/frontend
tp config init && tp config teams FE
# This project only shows FE team tasksSmart label assignment with fuzzy matching:
# See available labels
tp update TASK-19 --list-labels
# Add labels (by name or ID)
tp update TASK-19 --add-labels "Bug,Refactor"
# Remove labels
tp update TASK-19 --remove-labels "Testing"
# Replace all labels
tp update TASK-19 --set-labels "Task,CLI,Features"
# Typo? Get suggestions!
tp update TASK-19 --add-labels "Bugg"
# β Label not found: Bugg
# Did you mean: BugLabel Groups: Linear uses exclusive label groups - you can only have one label per group on an issue. See docs/LINEAR_LABEL_GROUPS.md for details.
Built with Atomic Architecture for maintainability:
src/
βββ atoms/ # Foundation (config, client, types)
βββ features/ # Service layer (Linear SDK wrapper)
βββ molecules/ # Business logic (entities, workflows)
βββ organisms/ # User interfaces (CLI commands)
Key Files:
bin/tp.js- CLI entry pointsrc/organisms/cli/index.ts- Command definitionssrc/atoms/config/- Configuration system.tp/config.json- Your project settings
- β Linear - Full support with GraphQL API
- π§ GitHub Issues
- π§ Jira
- π§ Custom APIs
The architecture supports any backend through consistent interfaces.
# Setup
npm install
npm run build
# Development
npm run dev # Watch mode
npm test # Run tests
npm run verify # Full check (lint, type, test)
# Testing
npm run test:watch # TDD mode
npm run test:coverage # Coverage reportnpm link # Link globally
tp context # Use anywhere
# Or run directly
npm run cli context # Without global installCLAUDE.md- AI assistant instructionsdocs/- Architecture, testing, and technical documentation.claude/tickets/- Development tickets
We welcome contributions! Please:
- Use
tpto track your work - Follow TDD practices (see
.claude/tickets/TDD-GUIDELINES.md) - Run
npm run verifybefore committing - Tag commits with issue numbers (e.g.,
[TASK-19])
MIT
Built with β€οΈ for developers who ship with AI