Skip to content

luuuc/shape-cli

Repository files navigation

Shape CLI

Turn documents into tasks. Turn tasks into AI context. Git-backed, local-first project management for humans and AI agents.

Crates.io License: MIT

The Problem

Your documents (epics, PRDs, RFCs, Pitches) live in one place. Your tasks live in another. AI agents can't see either. You copy-paste between tools and lose context.

The Solution

Shape stores briefs alongside the tasks they spawn. Both are git-backed. Both are AI-readable.

Briefs can be any document that drives work:

  • Epics, User Stories (Agile/Scrum)
  • PRDs (Product teams)
  • RFCs, ADRs (Engineering)
  • Pitches (ShapeUp)
Brief (Markdown)  →  Tasks (JSONL)  →  AI Context
"The Why"            "The What"        "What Agents See"

Quick Start

# Install
cargo install shape-cli

# Initialize
shape init

# Create a brief and add tasks
shape brief new "User Authentication"
# → Created brief b-7f2a3b1

shape task add b-7f2a3b1 "Set up OAuth provider"
shape task add b-7f2a3b1 "Build login endpoint"
shape task add b-7f2a3b1 "Add session management"

# Set dependencies
shape task dep b-7f2a3b1.2 b-7f2a3b1.1   # login waits for OAuth
shape task dep b-7f2a3b1.3 b-7f2a3b1.2   # sessions wait for login

# See what's ready
shape ready
# → b-7f2a3b1.1  Set up OAuth provider

# Export for AI
shape context --compact

Installation

Cargo (Rust)

cargo install shape-cli

Homebrew (macOS/Linux)

brew install shape-cli/tap/shape-cli
Other installation options

npm (Node.js)

npm install -g shape-cli

pip (Python)

pip install shape-cli

gem (Ruby)

gem install shape-cli

Pre-built binaries

Download from GitHub Releases:

Platform Download
macOS (Apple Silicon) shape-darwin-arm64.tar.gz
macOS (Intel) shape-darwin-x64.tar.gz
Linux (x64) shape-linux-x64.tar.gz
Linux (ARM64) shape-linux-arm64.tar.gz
Windows (x64) shape-windows-x64.zip

Features

Core

  • Briefs — Human-editable markdown documents with YAML frontmatter
  • Tasks — Machine-readable JSONL with dependency tracking
  • Ready queueshape ready shows unblocked tasks
  • Search — Full-text search across briefs and tasks

AI Integration

  • Context exportshape context --compact for minimal tokens
  • Agent setupshape agent-setup configures Claude, Cursor, Windsurf
  • MCP server — Native Model Context Protocol support
  • JSON output--format json on all commands

Multi-Agent Coordination

  • Claimsshape claim / shape unclaim for task ownership
  • Next taskshape next suggests optimal task to work on
  • Handoffsshape handoff transfers work between agents
  • Historyshape history shows task timeline
  • Notes & links — Attach context, commits, PRs to tasks

Infrastructure

  • TUI viewershape tui for interactive browsing
  • Background daemonshape daemon for automatic git sync
  • Memory compactionshape compact summarizes old tasks
  • Merge driver — Conflict resolution for concurrent edits

Essential Commands

Command Description
shape ready Show tasks ready to work on
shape next Suggest the best next task
shape task start <id> Mark task in progress
shape task done <id> Mark task complete
shape context --compact Export state for AI
shape tui Interactive terminal UI

Documentation

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

About

A local-first task management tool for your AI, and your team

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors