Skip to content

Latest commit

 

History

165 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbtodo

Watch your coding agent work — its checklist, live, in a pane beside it.

CI Python 3.9+ No dependencies Platform: macOS | Linux License: MIT

fbtodo displays your Freebuff agent's task list in a side pane while it works. It shows:

  • What's done, running, and next — with live timers
  • How much time is left — estimates based on your project history
  • If it's stuck or waiting — with optional alerts to your phone

No configuration: it reads the list your agent already keeps. Freebuff's list turns up on its own; anything else can push one over stdin — see docs/SOURCES.md.

Installation · Commands · FAQ · Settings · Deep docs


See it work

fbtodo's pane working through a scripted session

The clip above shows - fbtodo pane in real time. It monitors a scripted session through eight steps, updating continuously until all tasks are marked complete and the session ends—the exact trigger required for the notification bell.

Side-by-Side View

To see how the pane mirrors the active session, here is the side-by-side pairing: the scripted session on the left, and the fbtodo pane tracking it on the right:

the scripted session and the pane, side by side

Note: The recording script exports animations as lossless WebP files rather than standard video formats. This ensures crisp, pixel-perfect inline rendering directly within GitHub Markdown.


Installation

Quick start

# 1. Install tmux (shows the pane)
brew install tmux                # or: apt install tmux

# 2. Clone fbtodo
git clone https://github.com/TLE47/fbtodo ~/Projects/fbtodo

# 3. Add to your PATH
mkdir -p ~/.local/bin && ln -sf ~/Projects/fbtodo/fbtodo ~/.local/bin/fbtodo

# 4. Start working
tmux new -s work
fbtodo                           # opens the pane automatically

That's it. Requirements: Python 3.9+ and tmux.

Using the fb shortcut (optional)

For a one-word launcher that updates and manages everything:

. ~/Projects/fbtodo/examples/fb.sh    # add this line to ~/.zshrc or ~/.bashrc
fb                                    # now use 'fb' instead of 'fbtodo'

One lazy command:

echo '. ~/Projects/fbtodo/examples/fb.sh' >> ~/.bashrc && source ~/.bashrc && fb

Install with pipx (no clone to manage)

If you would rather not keep a checkout on your PATH, install it as an isolated app:

pipx install git+https://github.com/TLE47/fbtodo

pipx installs fbtodo into an isolated environment on your PATH. No Python dependencies are required, though displaying the pane still needs tmux

Update + virtual env

pipx install --force git+https://github.com/TLE47/fbtodo

Pin version

pipx install "git+https://github.com/TLE47/fbtodo@4.29.0"

How it works

Your agent writes a todo list (by calling write_todos). fbtodo watches that list and displays it in a side pane. The pane updates in real time as the agent works through tasks.

No configuration needed — fbtodo reads the list your agent already creates. Just make sure your agent is keeping one. You can ask it once per session: "Plan this as a todo list and check off items as you go."


Commands

fbtodo              # watch the pane (default)
fbtodo bar          # show "todos 3/5" in your status bar
fbtodo snap         # print one snapshot
fbtodo status       # show pane info and why it might be empty

Other commands: ledger (forecast vs. actual), why (pane location), pin (resize pane), stop (close watcher), prune (clean up old data).

Run fbtodo -h for all flags.


Customization

Colors

Create ~/.config/fbtodo/theme.json:

{
  "accent": "#89b4fa",
  "active": "#cdd6f4",
  "success": "#a6e3a1"
}

Or use environment variables:

export FBTODO_ACCENT="#89b4fa"
export FBTODO_SUCCESS="#a6e3a1"

Three presets are included in examples/ (Catppuccin, Gruvbox, Nord).

Pane size and position

fbtodo pin --size 24 --side h    # 24 columns wide, beside the session
fbtodo pin --size 12 --side v    # 12 lines tall, below the session
fbtodo pin --list                # show current settings

--size is counted along the split: columns for --side h (the pane sits beside the session) and lines for --side v (below it). The pane remembers your last size and opens that way next time. Default: 12 lines below.

Disable the pane

If you only want the status bar:

export FBTODO_NO_PANE=1
fbtodo bar        # just show "todos 3/5"

Alerts (optional)

Get notifications when your agent finishes, gets stuck, or asks for input:

# Install the notification kit
mkdir -p ~/.config/freebuff-notify
cp scripts/notify/*.py scripts/notify/*.sh ~/.config/freebuff-notify/
chmod +x ~/.config/freebuff-notify/*.sh
~/.config/freebuff-notify/phone.sh --init

See scripts/notify/README.md for details on iMessage and ntfy alerts.


Troubleshooting

Problem Fix
Pane is empty Run fbtodo status — it'll tell you why. Usually the agent hasn't written a list yet.
Pane won't appear Make sure you're in tmux and fbtodo is in your PATH.
Pane closed It'll reopen automatically. If it doesn't, try fbtodo stop then run fbtodo again.
Wrong size/position Use fbtodo pin --side h (beside) or --side v (below), with --size N in columns or lines respectively.
List looks old Run fbtodo status to check how long ago it was written.

FAQ

Do I need Freebuff?

For the built-in stores, yes. But you can use any agent that writes a JSON state file — see docs/SOURCES.md.

Does this send my data anywhere?

No. fbtodo reads local files only. The only outbound traffic is optional phone notifications (if you install them).

Will it slow my agent down?

No. It reads files that are being written anyway — the overhead is negligible.

Can I run multiple sessions?

Yes. Each session gets its own pane, bound to its task list.

Works on Windows?

WSL only. Windows Terminal + WSL works fine. Native Windows won't work (tmux isn't available).

I just want a status bar, no pane.

Set FBTODO_NO_PANE=1 and use fbtodo bar. It prints todos 3/5 and updates every few seconds.


For developers

Run the test suite:

python3 scripts/fbtodo-selfcheck.py      # full suite (~90-160 seconds)
python3 scripts/fbtodo-selfcheck.py --only local-session   # one test
bash scripts/notify/test-freebuff-notify.sh   # notification tests

License

MIT — see LICENSE.

About

Watch a coding agent's todo list live: a pane below, beside, or wherever you arrange it in your terminal

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages