A CLI issue tracker for AI Agents
A simple, lean issue tracker CLI designed for AI-assisted development. Track tasks across sessions with context preservation.
.chainlink/issues.db)session action survives context resetschainlink quick creates, labels, and starts work in one commandchainlink next suggests what to work on based on priority and progresschainlink tree--json flag for structured, machine-readable output--quiet flag for minimal, pipe-friendly outputclose-all with label/priority filtering.chainlink/rules/ markdown files# Install from crates.io
cargo install chainlink-trackerThe binary is named chainlink and will be available in your PATH after install.
git clone https://github.com/dollspace-gay/chainlink.git
cd chainlink/chainlink
cargo install --path .
# The binary will be at ~/.cargo/bin# Or build without installing
cargo build --release
# The binary will be at target/release/chainlink…| Command | Description |
|---|---|
chainlink create |
Create a new issue |
chainlink create -p high |
Create with priority (low/medium/high/critical) |
chainlink create -d "desc" |
Create with description |
chainlink create --template bug |
Create from template (bug/feature/refactor/research/audit/continuation/investigation) |
chainlink create --work -l bug |
Create, label, and start working on it |
chainlink quick [-p high] [-l label] |
Shorthand: create + label + set as active work item |
chainlink subissue |
Create a subissue under a parent |
chainlink subissue -p high |
Subissue with priority |
chainlink list |
List open issues |
chainlink list -s all |
List all issues |
chainlink list -s closed |
List closed issues |
chainlink list -l bug |
Filter by label |
chainlink list -p high |
Filter by priority |
chainlink show |
Show issue details |
chainlink show --json |
Show issue details as JSON |
chainlink update --title "New" |
Update title |
chainlink update -d "desc" |
Update description |
chainlink update -p critical |
Update priority |
chainlink close |
Close an issue |
chainlink close --no-changelog |
Close without adding a changelog entry (e.g. internal scaffolding subissues) |
chainlink close-all |
Close all open issues |
chainlink close-all --no-changelog |
Close all without changelog entries (e.g. internal scaffolding subissues) |
chainlink close-all -l bug |
Close all issues with a specific label |
chainlink close-all -p low |
Close all issues with a specific priority |
chainlink reopen |
Reopen a closed issue |
chainlink delete |
Delete an issue (with confirmation) |
chainlink delete -f |
Delete without confirmation |
Tip: Add
--quiet/-qto any command for minimal output (just the ID), useful for scripting and piping.
| Command | Description |
|---|---|
chainlink comment "text" |
Add a comment to an issue |
chainlink label |
Add a label to an issue |
chainlink unlabel |
Remove a label from an issue |
| Command | Description |
|---|---|
chainlink block |
Mark issue as blocked by another |
chainlink unblock |
Remove blocking relationship |
chainlink blocked |
List all blocked issues |
chainlink ready |
List issues ready to work on (no blockers) |
| Command | Description |
|---|---|
chainlink relate |
Link two related issues together |
chainlink unrelate |
Remove relationship between issues |
| Command | Description |
|---|---|
chainlink milestone create |
Create a new milestone |
chainlink milestone create -d "desc" |
Create with description |
chainlink milestone list |
List all milestones |
chainlink milestone show |
Show milestone details and progress |
chainlink milestone add |
Add an issue to a milestone |
chainlink milestone remove |
Remove an issue from a milestone |
chainlink milestone close |
Close a milestone |
chainlink milestone reopen |
Reopen a closed milestone |
| Command | Description |
|---|---|
chainlink archive |
Archive a closed issue |
chainlink unarchive |
Restore an archived issue |
chainlink archived |
List all archived issues |
chainlink archive-older |
Archive issues closed more than N days ago |
| Command | Description |
|---|---|
chainlink export |
Export all issues to JSON (stdout) |
chainlink export -o backup.json |
Export to a file |
chainlink import backup.json |
Import issues from JSON file |
chainlink import backup.json --merge |
Merge with existing issues |
| Command | Description |
|---|---|
chainlink next |
Recommend the next issue to work on (by priority/progress) |
chainlink tree |
Show all issues in a tree hierarchy |
chainlink tree -s open |
Show only open issues in tree view |
| Command | Description |
|---|---|
chainlink start |
Start a timer for an issue |
chainlink stop |
Stop the current timer |
chainlink timer |
Show current timer status |
Sessions preserve context across AI assistant restarts. Stale sessions (idle >4 hours) are auto-ended on the next startup.
| Command | Description |
|---|---|
chainlink session start |
Start a session, shows previous handoff notes |
chainlink session work |
Set the issue you're currently working on |
chainlink session action "..." |
Record a breadcrumb (survives context compression) |
chainlink session status |
Show current session info and last action |
chainlink session end |
End the current session |
chainlink session end --notes "..." |
End with handoff notes for next session |
chainlink session last-handoff |
Retrieve handoff notes from the previous session |
The daemon auto-flushes session state every 30 seconds.
| Command | Description |
|---|---|
chainlink daemon start |
Start background daemon |
chainlink daemon status |
Check if daemon is running |
chainlink daemon stop |
Stop the daemon |
…All data is stored locally in .chainlink/issues.db (SQLite). No external services, no network requests.
Chainlink includes behavioral hooks for Claude Code that inject best practice reminders into AI sessions. These hooks help ensure Claude follows coding standards without requiring manual prompting.
Requirement: Python 3.6+ must be installed and available in your PATH for hooks to work. The VS Code extension will warn you if Python is not detected.
The hooks are located in .claude/hooks/ and configured in .claude/settings.json:
| Hook | Trigger | Purpose |
|---|---|---|
prompt-guard.py |
Every prompt | Injects language-specific best practices (condensed after first prompt) |
post-edit-check.py |
After file edits | Debounced linting reminder to verify changes compile |
work-check.py |
Before write/edit | Enforces issue tracking (configurable: strict/normal/relaxed) and blocks git mutations |
session-start.py |
Session start/resume | Loads context, detects stale sessions, restores breadcrumbs after context compression |
The hooks enforce these principles:
When code will exceed 500 lines, the hooks guide Claude to:
The hooks auto-detect the project language(s) and inject relevant best practices:
? operator, clippy, parameterized SQL, avoid .unwrap()pathlib, context managersconst/let, async/await, strict mode, input validationcontext.Context, defer for cleanupHook behavior is controlled by .chainlink/hook-config.json:
{
"tracking_mode": "strict",
"blocked_git_commands": ["git push", "git commit", "..."],
"allowed_bash_prefixes": ["chainlink ", "git status", "..."]
}Controls how aggressively chainlink enforces issue creation before code changes:
| Mode | Hook Behavior | Prompt Language | Best For |
|---|---|---|---|
strict |
Blocks Write/Edit/Bash without an active issue | ALL CAPS MANDATORY, "ABSOLUTE RULE" | Teams that want every change tracked |
normal |
Reminds but allows proceeding without an issue | Soft "should" language, gentle nudges | Balanced — tracks most work, doesn't block quick fixes |
relaxed |
No enforcement — only git mutation blocks apply | Minimal — just mentions chainlink is available | Users who want tracking opt-in only |
Each mode loads its instructions from .chainlink/rules/tracking-{mode}.md, so you can edit the wording per-mode.
Git mutation commands (push, commit, merge, rebase, etc.) are permanently blocked in all modes — these are human-only operations. You can customize the list in hook-config.json.
Read-only git commands (status, diff, log, show, branch) are always allowed.
Commands that bypass the issue-required check (read-only and infrastructure commands). Customize in hook-config.json.
Rules are stored in .chainlink/rules/ as markdown files:
| File | Purpose |
|---|---|
global.md |
Security, correctness, and style rules |
tracking-strict.md |
Strict mode: forceful issue |
No open issues yet, or sync has not completed.