Skip to main content

The dog that barked when messages arrived. A modern CLI communication tool for software engineers.

Project description

biff

The original biff mail notification app

Team communication for engineers who never leave the terminal.

Named after the Berkeley dog whose 1980 mail notification program was part of the same BSD family as talk, wall, finger, who, and mesg.

Biff resurrects the Unix communication vocabulary as MCP-native slash commands. It runs inside your Claude Code session — no separate app, no browser tab, no context switch.

Why

Engineers using AI coding tools are shipping faster than ever. But every time they need to coordinate with a teammate — or with another agent — they context-switch to Slack or Discord. Tools designed for managers, not makers in deep focus. Biff keeps communication where the code already lives.

Quick Start

curl -fsSL https://raw.githubusercontent.com/punt-labs/biff/6ce60b3/install.sh | sh

Restart Claude Code twice. Type /who to see your team.

Manual install (if you already have uv)
uv tool install punt-biff
biff install
biff doctor
Verify before running
curl -fsSL https://raw.githubusercontent.com/punt-labs/biff/6ce60b3/install.sh -o install.sh
shasum -a 256 install.sh
cat install.sh
sh install.sh

What It Looks Like

See who's online

> /who

▶  NAME    TTY   IDLE  S  HOST       DIR                        PLAN
   @kai    tty1  0:03  +  m2-mb-air  /Users/kai/code/myapp      refactoring auth module
   @eric   tty2  1:22  +  m2-mb-air  /Users/eric/code/myapp     reviewing PR #47
   @priya  tty1  0:00  +  priya-mbp  /Users/priya/code/myapp    writing integration tests
   @dana   tty1  3:45  -  dana-mbp   /Users/dana/code/myapp     (no plan)

S is message status: + means accepting messages, - means do not disturb.

Send a message

> /write @kai "auth module looks good, just one nit on the error handling"

Message sent to @kai.

Check your inbox

> /read

▶  FROM   DATE              MESSAGE
   kai    Sat Feb 15 14:01  hey, ready for review?
   eric   Sat Feb 15 13:45  pushed the fix for the flaky test
   priya  Sat Feb 15 12:30  can you look at the migration script?

Check what someone is working on

> /finger @kai

▶  Login: kai                              Messages: on
   On since Sat Feb 15 14:01 (UTC) on tty1, idle 0:03
   Host: m2-mb-air  Dir: /Users/kai/code/myapp
   Plan:
    refactoring auth module

Set your status

> /plan "debugging the websocket reconnect logic"

Plan: debugging the websocket reconnect logic

Bead IDs auto-expand:

> /plan biff-ka4

Plan: biff-ka4: post-checkout hook: update plan from branch

Session history

> /last

▶  NAME    TTY   HOST       LOGIN             LOGOUT            DURATION
   @kai    tty3  m2-mb-air  Sat Feb 22 14:01  still logged in   -
   @kai    tty2  m2-mb-air  Sat Feb 22 11:30  Sat Feb 22 13:58  2:28
   @eric   tty1  m2-mb-air  Sat Feb 22 09:15  Sat Feb 22 12:45  3:30
   @priya  tty1  priya-mbp  Fri Feb 21 16:00  Fri Feb 21 18:30  2:30

Shows login/logout history for all sessions, matching Unix last(1). Active sessions show "still logged in". Logout timestamps use the session's last heartbeat for accuracy.

Broadcast to the team

> /wall "release freeze — do not push to main" 2h

Wall posted (2h): release freeze — do not push to main

Every teammate's status bar shows WALL: release freeze — do not push to main in bold red. Expires automatically after 2 hours. Use /wall clear to remove early.

Go do-not-disturb

> /mesg n

is n

Your status bar shows (n) instead of the unread count while messages are off. Messages still accumulate — /mesg y or /read reveals them.

Commands

Command Origin Purpose
/write @user "text" BSD write Send a message
/read BSD from Check your inbox
/finger @user BSD finger Check what someone is working on
/who BSD who List active sessions
/last BSD last Show session login/logout history
/plan "text" BSD .plan Set your status
/tty "name" BSD tty Name the current session
/wall "text" BSD wall Broadcast to the team
/mesg y | /mesg n BSD mesg Control message reception

Status Bar

Biff appends to your existing Claude Code status line — it never replaces it. If you already have a status line command, biff wraps it and adds unread counts at the end:

your-existing-status | kai:tty1(3) | WALL: release freeze

Three states: kai:tty1(0) when caught up, kai:tty1(3) (bold yellow) with unreads, kai:tty1(n) when messages are off. Active wall broadcasts appear as a bold red WALL: segment.

biff install includes status bar setup. For standalone management: biff install-statusline / biff uninstall-statusline.

Agents Welcome

Because biff speaks MCP, it does not distinguish between human and agent sessions. An autonomous coding agent can /plan what it's working on, /write a human when it needs a decision, and show up in /who alongside everyone else.

But presence is just the beginning. When you have multiple agents working in the same codebase — on the same machine, in the same directory — they need to coordinate to avoid stepping on each other's files. Biff solves this with two coordination planes:

Logical plane (cross-machine): What work is everyone doing? /plan shows the task each agent is working on. /who shows all plans across all machines. This prevents duplicate work.

Physical plane (same-machine): Are we sharing a filesystem? /who shows host and directory per session. When two agents share the same machine and directory, they coordinate via /write and create git worktrees to work in isolation.

Biff is the communication layer for the entire hive of humans and agents building software together.

Vision

Biff is built on a simple thesis: the terminal is the new center of gravity for software engineering, and the communication tools haven't caught up. Slack was built for the open-office, always-online workplace. Biff is built for the deep-focus, AI-accelerated one.

Every command implies intent. There are no channels to monitor, no threads to catch up on, no emoji reactions to parse. Communication is pull-based: you decide when to engage.

As engineering teams grow to include both humans and autonomous agents, coordination becomes the bottleneck. Biff provides the primitives — presence, messaging, broadcast, targeted delivery — that let a mixed team of humans and agents work together without stepping on each other.

Roadmap

Shipped

Core communication is live: presence (/who, /finger, /plan), messaging (/write, /read), availability control (/mesg), session history (/last), and team broadcast (/wall) — all working over a NATS relay for cross-machine communication.

TTY sessions (/tty) give each agent a distinct identity — one user with 3 sessions shows 3 entries in /who, targetable via /write @user:tty. Enriched presence shows host and directory per session. Per-session status bar with user:tty(N) format. /mesg n suppresses the unread count on the status line.

/last shows login/logout history modeled after Unix last(1), with three-layer logout detection: sentinel-based (SIGTERM/SIGINT), orphan detection (crash recovery), and KV watcher (TTL expiry).

/wall broadcasts time-limited announcements visible on every teammate's status bar. Duration-based expiry (default 1h, max 3d). Poll-based cross-session refresh so all sessions see wall changes within seconds.

Per-project activation via /biff y (or biff enable from CLI). Biff starts dormant — no NATS connection, no consumers, no status line — until you opt in. Lazy NATS connection management releases the TCP connection after 5 minutes idle and reconnects briefly every 10 minutes to fetch messages (POP-mode polling), so a terminal left open for hours doesn't hold a persistent connection.

Workflow hooks integrate biff into the development lifecycle automatically:

  • Plan auto-expand/plan biff-bf8 resolves the issue title so teammates see what you're working on, not just an opaque ID.
  • Session lifecycle — on startup, biff auto-assigns a tty, sets your plan from the current git branch (with bead ID expansion), and checks for unread messages. On session end, active sessions are cleaned up immediately instead of waiting for TTL expiry.
  • Git hooksbiff enable deploys post-checkout, post-commit, and pre-push hooks into .git/hooks/. Branch switches update your plan automatically (→ feature/auth). Commits update it with a checkmark (✓ feat: add auth). Pushing to main suggests a /wall announcement. All hooks coexist with existing git hooks (e.g. beads) and gate on .biff.local — silent when biff is not enabled.

Next: Real-Time and Security

Phase What Ships
Security E2E encryption (NaCl/libsodium), GitHub identity and auth, per-repo NATS credentials
Real-time /talk for live conversation, /pair for session sharing with explicit consent
Hosted relay Managed service with admin controls, audit logs, team isolation

Setup

Biff requires a git repo and a GitHub identity. Your username and display name are resolved automatically from gh auth — no manual configuration needed.

1. Create a .biff file

Commit a .biff file in your repo root (TOML format):

[team]
members = ["kai", "eric", "priya"]

[relay]
url = "tls://connect.ngs.global"

Biff ships with a shared demo relay so your team can start immediately. When you're ready for your own relay, see the relay configuration section below.

biff install (from Quick Start) registers the MCP server, installs slash commands, and enables the plugin — there is no separate "start the server" step. biff enable activates biff in the current repo and deploys git hooks (post-checkout, post-commit, pre-push) that keep your plan current as you work. Run biff doctor to verify everything is wired up.

Development

uv sync --extra dev        # Install dependencies
uv run ruff check .        # Lint
uv run ruff format .       # Format
uv run mypy src/ tests/    # Type check
uv run pytest              # Test (unit + integration)
uv run pytest -m nats      # NATS tests (requires local nats-server)
uv run pytest -m hosted    # Hosted NATS tests (see below)

Hosted NATS tests

Tests against a real hosted NATS account (Synadia Cloud or self-hosted):

BIFF_TEST_NATS_URL=tls://connect.ngs.global \
BIFF_TEST_NATS_CREDS=/path/to/user.creds \
    uv run pytest -m hosted -v

Environment variables (set exactly one auth var, or none for anonymous):

Variable Purpose
BIFF_TEST_NATS_URL Required. Server URL (e.g. tls://connect.ngs.global)
BIFF_TEST_NATS_TOKEN Token auth
BIFF_TEST_NATS_NKEYS_SEED Path to NKey seed file
BIFF_TEST_NATS_CREDS Path to credentials file

Relay configuration

The demo relay works out of the box. To run your own NATS relay, update .biff:

[relay]
url = "tls://your-nats-server:4222"

# Authentication (pick at most one):
# token = "s3cret"                          # shared secret
# nkeys_seed = "/path/to/user.nk"          # NKey seed file
# user_credentials = "/path/to/user.creds" # JWT + NKey creds (Synadia Cloud)

Use nats:// for unencrypted local connections, tls:// for encrypted remote connections.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

punt_biff-0.8.1.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

punt_biff-0.8.1-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

Details for the file punt_biff-0.8.1.tar.gz.

File metadata

  • Download URL: punt_biff-0.8.1.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for punt_biff-0.8.1.tar.gz
Algorithm Hash digest
SHA256 5008d2bff13e37c271fd7d5bc8611a448fc9f45ad6f20d223f12179d82b0cb70
MD5 aee54ab227498bbc73e4791d8ff7871f
BLAKE2b-256 66f12137739622ccb3055118e4b551152e73515539a5044705770182341cc3a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for punt_biff-0.8.1.tar.gz:

Publisher: release.yml on punt-labs/biff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file punt_biff-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: punt_biff-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 84.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for punt_biff-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6453dc980c4e80d4bbc4f6d0116a0a2866d08ed34543fc0728d29d9a9f386c86
MD5 81040b3eb00310195f052f9b82cf5ad9
BLAKE2b-256 23d0423f1e93ca0d51184aed0fe671f95a09031535be03dae9c7958872308640

See more details on using hashes here.

Provenance

The following attestation bundles were made for punt_biff-0.8.1-py3-none-any.whl:

Publisher: release.yml on punt-labs/biff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page