Beans is an issue tracker for you, your team, and your coding agents. Instead of tracking tasks in a separate application, Beans stores them right alongside your code. You can use the beans CLI to interact with your tasks, but more importantly, so can your favorite coding agent!
This gives your robot friends a juicy upgrade: now they get a complete view of your project, make suggestions for what to work on next, track their progress, create bug issues for problems they find, and more.
You've been programming all your life; now you get to be a product manager. Let's go! π
Beans.Announcement.Trailer.720p.mp4
Beans is still under heavy development, and its features and APIs may still change significantly. If you decide to use it now, please follow the release notes closely.
Since Beans emits its own prompt instructions for your coding agent, most changes will "just work"; but sometimes, we modify the schema of the underlying data files, which may require some manual migration steps. If you get caught by one of these changes, your agent will often be able to migrate your data for you:
"The Beans data format has changed. Please migrate this project's beans to the new format."
- Track tasks, bugs, features, and more right alongside your code.
- Plain old Markdown files stored in a
.beansdirectory in your project. Easy to version control, readable and editable by humans and machines alike! - Use the
beansCLI to create, list, view, update, and archive beans; but more importantly, let your coding agent do it for you! - Supercharge your robot friend with full context about your project and its open tasks. A built-in GraphQL query engine allows your agent to get exactly the information it needs, keeping token use to a minimum.
- A beautiful built-in TUI for browsing and managing your beans from the terminal.
- Generates a Markdown roadmap document for your project from your data.
We'll need to do three things:
- Install the
beansCLI tool. - Configure your project to use it.
- Configure your coding agent to interact with it.
Either download Beans from the Releases section, or install it via Homebrew:
brew install hmans/beans/beansAlternatively, install directly via Go:
go install github.com/hmans/beans@latestInside the root directory of your project, run:
beans initThis will create a .beans/ directory and a .beans.yml configuration file at the project root. All of it is meant to be tracked in your version control system.
From this point onward, you can interact with your Beans through the beans CLI. To get a list of available commands:
beans helpBut more importantly, you'll want to get your coding agent set up to use it. Let's dive in!
We'll need to teach your coding agent that it should use Beans to track tasks, and how to do so. The exact steps will depend on which agent you're using.
An official Beans plugin for Claude is in the works, but for the time being, please manually add the following hooks to your project's .claude/settings.json file:
{
"hooks": {
"SessionStart": [
{ "hooks": [{ "type": "command", "command": "beans prime" }] }
],
"PreCompact": [
{ "hooks": [{ "type": "command", "command": "beans prime" }] }
]
}
}You can use Beans with other coding agents by configuring them to run beans prime to get the prompt instructions for task management. We'll add specific integrations for popular agents over time.
As a human, you can get an overview of the CLI's functionalities by running:
beans helpYou might specifically be interested in the interactive TUI:
beans tuiBut the real power of Beans comes from letting your coding agent manage your tasks for you.
Assuming you have integrated Beans into your coding agent correctly, it will already know how to create and manage beans for you. You can use the usual assortment of natural language inquiries. If you've just added Beans to an existing project, you could try asking your agent to identify potential tasks and create beans for them:
"Are there any tasks we should be tracking for this project? If so, please create beans for them."
If you already have some beans available, you can ask your agent to recommend what to work on next:
"What should we work on next?"
You can also specifically ask it to start working on a particular bean:
"It's time to tackle myproj-123."
You can configure external tools to launch from the TUI. Press ! when viewing or selecting a bean to open the launcher picker.
First-time setup: If no launchers are configured, you'll be prompted to select from default options (opencode, claude, crush). Only installed tools will be pre-selected. This provides a quick start with sensible defaults.
Configure launchers in .beans.yml:
launchers:
# Simple single-line launcher
- name: opencode
exec: opencode -p "Work on task $BEANS_ID"
description: "Open task in OpenCode"
# Git worktree + tmux launcher
- name: worktree-tmux
description: "Create git worktree and open in new tmux pane"
exec: |
#!/bin/bash
set -euo pipefail
WORKTREE_DIR=".worktrees/$BEANS_ID"
# Create worktree if it doesn't exist
if [ ! -d "$WORKTREE_DIR" ]; then
git worktree add "$WORKTREE_DIR" -b "task/$BEANS_ID"
fi
# Open in new tmux pane
tmux split-window -h -c "$BEANS_ROOT/$WORKTREE_DIR"
tmux send-keys "opencode -p 'Work on task $BEANS_ID'" Enter
# Kitty terminal window launcher
- name: worktree-kitty
description: "Create git worktree and open in new kitty window"
exec: |
#!/bin/bash
set -euo pipefail
WORKTREE_DIR=".worktrees/$BEANS_ID"
# Create worktree if it doesn't exist
if [ ! -d "$WORKTREE_DIR" ]; then
git worktree add "$WORKTREE_DIR" -b "task/$BEANS_ID"
fi
# Open in new kitty window
kitty @ launch --type=window --cwd="$BEANS_ROOT/$WORKTREE_DIR" \
opencode -p "Work on task $BEANS_ID"Some launchers can handle multiple beans in parallel, while others can only work with one bean at a time. Mark launchers that support parallel execution with multiple: true:
launchers:
# Single-bean only (default)
- name: opencode
exec: opencode -p "Work on task $BEANS_ID"
description: "Open task in OpenCode"
# multiple: false (default)
# Can handle multiple beans in parallel
- name: worktree-tmux
multiple: true # β Supports multi-bean launching
description: "Create git worktree and open in new tmux pane"
exec: |
#!/bin/bash
set -euo pipefail
WORKTREE_DIR=".worktrees/$BEANS_ID"
if [ ! -d "$WORKTREE_DIR" ]; then
git worktree add "$WORKTREE_DIR" -b "task/$BEANS_ID"
fi
tmux split-window -h -c "$BEANS_ROOT/$WORKTREE_DIR"
tmux send-keys "opencode -p 'Work on task $BEANS_ID'" EnterWhen to use multiple: true:
- Launchers that create separate workspaces (worktrees, tmux panes, kitty windows)
- Scripts that can safely run in parallel without conflicts
- Tools that operate on isolated resources per bean
When to keep default multiple: false:
- Interactive tools that can only open one file/project at a time (editors, IDEs)
- Tools that modify shared state
- Single-instance applications
Behavior:
- Single bean selected β All launchers shown
- Multiple beans selected β Only
multiple: truelaunchers shown - No
multiple: truelaunchers available β Error message displayed
- Single-line exec: Runs via
sh -c, just like a shell command. Use for simple commands. - Multi-line exec: Passed to the interpreter via stdin. Must start with a shebang (
#!/bin/bash,#!/usr/bin/env python3, etc.). The shebang determines which interpreter executes your script. - Environment variables: All launchers receive
$BEANS_ROOT,$BEANS_DIR,$BEANS_ID,$BEANS_TASK - Working directory: Set to project root (
$BEANS_ROOT) - Unix/Linux/macOS only: Shebang mechanism is Unix-specific
In the TUI, you can launch for multiple beans simultaneously using launchers marked with multiple: true:
- Select multiple beans using
x(mark/unmark) orX(mark all visible) - Press
!to open the launcher picker (only showsmultiple: truelaunchers) - Choose a launcher - it will run in parallel for all selected beans
Features:
- Parallel execution: All launchers start simultaneously (perfect for creating multiple tmux panes or worktrees)
- Real-time progress: See status for each bean as it runs
- Stop on failure: If any bean fails, all others are immediately stopped
- Confirmation prompt: For 5+ beans, you'll be asked to confirm (can be disabled in config)
- Selection management: Selection is cleared on success, kept on failure (so you can retry)
Use cases:
- Create git worktrees for multiple tasks at once
- Open multiple beans in separate tmux panes/kitty windows
- Batch process related beans
You can customize TUI behavior in .beans.yml:
tui:
# Disable confirmation prompt when launching for 5+ beans
disable_launcher_warning: false# Simple tool invocation
- name: cursor
exec: cursor "$BEANS_TASK"
# Shell command with pipes
- name: show-bean
exec: cat "$BEANS_TASK" | less
# Multi-step bash script
- name: test-and-open
exec: |
#!/bin/bash
set -e
cd "$BEANS_ROOT"
npm test -- "$BEANS_ID" || true
code "$BEANS_TASK"
# Ruby script
- name: ruby-tool
exec: |
#!/usr/bin/env ruby
bean_id = ENV['BEANS_ID']
puts "Processing #{bean_id}"Launchers receive these environment variables:
BEANS_ROOT: Project root directory (parent of.beans/, your working directory)BEANS_DIR: Beans directory (e.g.,/path/to/project/.beans)BEANS_ID: Bean ID (e.g.,beans-abc123)BEANS_TASK: Full path to bean file (e.g.,/path/to/project/.beans/beans-abc123.md)
Launch beans from the command line:
# List all configured launchers with availability status
beans launch -l
# Example output:
# NAME AVAILABLE DESCRIPTION
# opencode β Open task in OpenCode
# worktree-tmux β Create git worktree and open in new tmux pane
# test-echo β Simple test launcher
# Launch a specific launcher for a bean
beans launch opencode beans-abc123 # Full ID
beans launch opencode beans-abc # Partial ID (if unique)
# Launch worktree launchers
beans launch worktree-tmux beans-def456
beans launch worktree-kitty beans-ghi789
# JSON output for scripting
beans launch -l --jsonCLI launcher features:
- Supports partial bean ID matching (like other commands)
- Executes launchers interactively (you see output in your terminal)
- Shows availability status with
-l(β if command/interpreter found, β if not) - Returns non-zero exit code on failure
This project currently does not accept contributions -- it's just way too early for that! But if you do have suggestions or feedback, please feel free to open an issue.
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
If you have any questions, suggestions, or just want to say hi, feel free to reach out to me on Bluesky, or open an issue in this repository.