Clew
In Greek myth, Ariadne gave Theseus a clew (a ball of thread) to navigate the labyrinth and find the way back out. Clew does the same for small software projects: it keeps local, git-native work state that humans and coding agents can both follow.
There are endless ways to manage software projects, if the below resonates, maybe this one suits you as well.
What Clew is for
Clew is a lightweight project tracker for hobby projects, tiny teams, and agent-assisted development.
It is designed to:
- run locally with no server, subscription, or external tracker
- (GH issues import/export coming soon)
- store work as committed Markdown in the repo
- fit agent habits with stable IDs and familiar CLI workflows that frontier models are optimized for
- be agent harness agnostic (e.g. can switch between Claude Code and Pi in the same session without issues)
- integrate with normal git workflow without auto-commits or hidden sync
- help keep context light and save tokens by offloading repetitive work to clew
- reduce the cognitive load for humans to capture, sharpen, and implement ideas, so we can focus on the essential bits
Installation
Install Clew with Homebrew, the GitHub Release shell installer, or Cargo:
# Homebrew
# Shell installer from the latest GitHub Release
|
# Cargo
Windows: use WSL2 for the release artifacts. Native Windows / Git Bash distribution is still experimental.
First-time setup
From a project repo:
This creates .clew/ project state. Commit it alongside your code changes.
Then open .clew/README.md and copy the recommended agent instructions into the persistent instruction file your agent reads for this repo: AGENTS.md, CLAUDE.md, Cursor rules, Codex instructions, a skill, or equivalent.
clew init creates an initial bootstrap Increment with instructions to do this; asking your clanker to do it for you works great.
In Pi:
!
Essential workflow for agents
Recommended agent context: copy this into your project agent instructions.
Core concepts
- Increment — a standalone unit of work that should leave the codebase stable, tested, and committable when complete.
- Task — a Markdown checkbox inside an Increment.
- Path — the hand-curated priority order across active Increments, stored in
.clew/path.md. - Archive — completed or abandoned Increments moved to
.clew/archive/. - Tag — lightweight frontmatter classification for filtering, such as
bug,docs, orp0.
Use Clew to track work in this project
- ------
Common commands:
| Need | Command |
|---|---|
| See active work | clew list |
| Filter by status | clew list --status todo |
| Filter by tag | clew list --tag bug |
| Read an Increment | clew show 0024 |
| Create an Increment | clew new "Short title" |
| Create with body | clew new "Short title" < body.md |
| Add tags | clew tag 0024 bug p0 |
| Remove tags | clew untag 0024 p0 |
| Start work | clew start 0024 |
| Finish work | clew done 0024 |
Creating detailed Increments
Clew writes frontmatter itself; stdin is body content only.
Tips for humans
- You can open any
.clew/folder with Obsidian as a convenient UI. !clew <command>in Pi works great and gets your agent the context if you already know what you want it to see.- Clew fits quite nicely into Matt Pocock's workflows/skills as a local GH issues alternative.
- Clew is under active development; feel free to submit an issue or reach out if you run into functionality gaps for your workflow.
Developing Clew itself
Use the installed clew command for normal workflow, including while developing Clew itself. Use this repository's ./clew runner only when intentionally testing the promoted local development build from scripts/promote-clew.
After a successful Clew increment, promote the current source build with:
That script runs cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test, builds the release binary, and copies it to .clew/bin/clew. The promoted binary is local-only and ignored by git.
Usage highlights
# Show all the things!
for; do ; ; done
# Reseeding path.md from clew list
&& && &&