AI-ready local task management with Git integration
TaskGuard is a local-first, Git-native task management system built in Rust. It provides AI-ready task management with automatic agent integration, dependency blocking, and intelligent workflows while keeping developers in complete control.
- π Local-first: No external services, works completely offline
- π Git-native: Tasks stored as Markdown files with YAML front-matter
- π Dependency blocking: Tasks automatically block until prerequisites are complete
- π Multi-area organization: Organize tasks by backend, frontend, auth, etc.
- β‘ Fast & reliable: Built in Rust for performance and safety
- π€ AI-ready: Zero-setup AI agent integration with automatic guide distribution
- π°οΈ Git analysis: Intelligent status suggestions based on commit history
- π GitHub integration: Bidirectional sync with GitHub Issues and Projects v2
- π¦ Archive & restore: Archive completed tasks and close/reopen GitHub issues
- π Security-audited: Comprehensive security testing with 17 security-focused tests
TaskGuard can be installed globally to work with all your projects.
Pre-built Binaries (Easiest):
Download pre-built binaries from GitHub Releases:
| Platform | Binary |
|---|---|
| Linux x86_64 | taskguard-linux-x86_64 |
| Linux ARM64 | taskguard-linux-aarch64 |
| macOS x86_64 | taskguard-macos-x86_64 |
| macOS ARM64 (Apple Silicon) | taskguard-macos-aarch64 |
| Windows x86_64 | taskguard-windows-x86_64.exe |
| Windows WSL/WSL2 | taskguard-linux-x86_64 (use Linux binary) |
# Example: Linux x86_64
curl -L https://github.com/Guard8-ai/TaskGuard/releases/latest/download/taskguard-linux-x86_64 -o taskguard
chmod +x taskguard
sudo mv taskguard /usr/local/bin/Build from Source:
# Clone the repository
git clone https://github.com/Guard8-ai/TaskGuard.git
cd TaskGuard
# Run platform-specific installation script
./scripts/install-linux.sh # Linux
./scripts/install-macos.sh # macOS
./scripts/install-wsl.sh # WSL/WSL2Windows (PowerShell):
.\scripts\install-windows.ps1Termux (Android):
./scripts/install-termux.shManual Build:
# Clone and build
git clone https://github.com/Guard8-ai/TaskGuard.git
cd TaskGuard
cargo build --release
# The binary is available at target/release/taskguardSee INSTALL.md for detailed installation instructions and troubleshooting.
# Navigate to your project
cd my-project
# Initialize TaskGuard (works globally after installation)
taskguard initπ€ Zero-Setup AI Integration: TaskGuard automatically creates AI collaboration files when initialized:
AGENTIC_AI_TASKGUARD_GUIDE.md- Complete guide for AI agents with best practices
For AI agents: TaskGuard automatically copies the integration guide and prompts you to update your memory files (CLAUDE.md, .cursorrules, etc.) with TaskGuard workflow.
# Create a setup task
taskguard create --title "Setup development environment" --area setup --priority high
# Create a backend task that depends on setup
taskguard create --title "Implement user auth" --area backend --priority mediumEdit the backend task to depend on setup:
vim tasks/backend/backend-001.mdAdd to the YAML front-matter:
dependencies: [setup-001]# See all tasks
taskguard list
# Check dependencies and see what's available
taskguard validate
# Get AI recommendations
taskguard ai "what should I work on next?"
# Analyze Git activity for status suggestions
taskguard sync --verboseSync your tasks with GitHub Issues and Projects v2:
# Create GitHub configuration
cat > .taskguard/github.toml << EOF
owner = "your-username"
repo = "your-repo"
project_number = 1
EOF
# Sync tasks to GitHub (creates issues and adds to Projects v2)
taskguard sync --github
# Preview sync without making changes
taskguard sync --github --dry-run
# Archive completed tasks (closes GitHub issues)
taskguard archive
# Restore archived task (reopens GitHub issue)
taskguard restore backend-001GitHub Integration Features:
- Creates GitHub Issues from tasks automatically
- Adds issues to Projects v2 board with correct status columns
- Bidirectional sync keeps local and GitHub in sync
- Status mapping: todoβBacklog, doingβIn Progress, doneβDone
- Archive lifecycle: archiving closes issues, restoring reopens them
TaskGuard's key innovation is dependency blocking - tasks automatically become unavailable until their prerequisites are completed. This ensures work happens in the right order without manual tracking.
Example workflow:
- Create foundation tasks (setup, architecture decisions)
- Create implementation tasks that depend on foundations
- Create testing tasks that depend on implementations
- Use
taskguard validateto see what's ready to work on - Tasks automatically become available as dependencies complete
Tasks are stored as Markdown files with YAML front-matter:
---
id: auth-001
title: "Implement JWT Authentication"
status: todo
priority: high
area: backend
dependencies: [setup-001]
---
# Implement JWT Authentication
## Context
Brief description of what needs to be done and why.
## Tasks
- [ ] Install JWT library
- [ ] Create auth middleware
- [ ] Add login endpoint
- [ ] Write tests
## Acceptance Criteria
β
**Security**: All endpoints properly authenticated
β
**Testing**: 100% test coverage for auth flows| Command | Description |
|---|---|
taskguard init |
Initialize TaskGuard in a project |
taskguard list [--area AREA] [--status STATUS] |
List tasks with optional filters |
taskguard create --title TITLE [OPTIONS] |
Create a new task |
taskguard validate |
Check dependencies and show available tasks |
taskguard archive [--dry-run] |
Archive completed tasks (closes GitHub issues if synced) |
taskguard restore <task-id> |
Restore archived task (reopens GitHub issue if synced) |
| Command | Description |
|---|---|
taskguard sync [--verbose] |
Analyze Git history for intelligent status suggestions |
taskguard lint [--verbose] |
Analyze task complexity and quality |
taskguard ai "QUERY" |
Natural language task management with AI |
| Command | Description |
|---|---|
taskguard sync --github |
Sync tasks with GitHub Issues and Projects v2 |
taskguard sync --github --dry-run |
Preview GitHub sync without making changes |
taskguard sync --github --backfill-project |
Add existing issues to Projects v2 board |
| Platform | Command |
|---|---|
| Linux | ./scripts/install-linux.sh |
| macOS | ./scripts/install-macos.sh |
| Windows | .\scripts\install-windows.ps1 |
| WSL/WSL2 | ./scripts/install-wsl.sh |
| Termux (Android) | ./scripts/install-termux.sh |
my-project/
βββ .taskguard/
β βββ config.toml # Project configuration
β βββ state/ # Local state (gitignored)
βββ tasks/
β βββ setup/
β β βββ setup-001.md
β β βββ setup-002.md
β βββ backend/
β β βββ backend-001.md
β βββ frontend/
β β βββ frontend-001.md
β βββ testing/
β βββ testing-001.md
βββ README.md
TaskGuard provides information and suggestions but never makes decisions for you:
- β Shows which tasks are blocked and why
- β Detects dependency issues and conflicts
- β Suggests what to work on next
- β Never automatically resolves conflicts
- β Never modifies your tasks without permission
- β Never hides information from you
β Phase 1 (COMPLETED): Core Foundation
- Basic CLI with dependency validation
- Task creation, listing, and organization
- YAML + Markdown task format
- Multi-area project structure
β Phase 2 (COMPLETED): Intelligence Layer
- β
Git history analysis with commit correlation (
taskguard sync) - β Smart status suggestions based on commit patterns
- β
Task complexity analysis and linting (
taskguard lint) - β Comprehensive security audit (17 security tests)
β Phase 3 (COMPLETED): AI Integration
- β
Natural language task management (
taskguard ai) - β Context-aware suggestions and recommendations
- β Claude Code integration for intelligent workflow automation
β Phase 4 (COMPLETED): Distribution
- β Cross-platform installation scripts (Linux, macOS, Windows, WSL)
- β Global installation for multi-project usage
- β Comprehensive documentation and guides
β Phase 5 (v0.3.0 - COMPLETED): GitHub Integration
- β Bidirectional sync with GitHub Issues and Projects v2
- β Automatic issue creation and status mapping
- β Archive command with GitHub issue closing
- β Restore command with GitHub issue reopening
- β Task-issue mapping persistence with archived state tracking
TaskGuard is designed to work seamlessly with agentic AI systems like Claude Code. If you're building AI agents that need to manage tasks systematically:
π Agentic AI TaskGuard Guide
This comprehensive guide covers:
- Common pitfalls when AI agents use TaskGuard
- Proper task distribution across areas to avoid ID conflicts
- Tool hygiene practices for reliable dependency management
- Step-by-step workflows for AI-driven task breakdown
- Debugging strategies for complex task hierarchies
Key insight: AI agents must respect TaskGuard's design patterns rather than trying to bulldoze through with rapid commands.
Complete documentation is available at taskguard.readthedocs.io:
TaskGuard is in active development. See CLAUDE.md for detailed technical documentation or visit the contributing section in our documentation.
MIT License - see LICENSE file for details.
Built with β€οΈ in Rust for developers who want to stay in control of their workflow.
TaskGuard has undergone comprehensive security auditing with 17 security-focused tests covering:
- Regular Expression Denial of Service (ReDoS) protection
- Path traversal attack prevention
- Memory exhaustion protection
- Git repository access validation
- Input sanitization and validation
Run security tests with: cargo test security_tests