Skip to content
 
 

Repository files navigation

firstmate

Talk to one agent. Ship with a crew.

firstmate itself, the whole workflow of one agent dispatching and supervising a crew of agents, is Kun Chen's project: kunchenguid/firstmate. It's a genuinely great piece of design - go use it.

This is anbclausen's fork, and it adds exactly two things on top: containerizing everything for safety (firstmate and every crewmate it spawns run in podman, least-privilege, instead of directly on your host), and a TUI built specifically for the firstmate workflow, rather than a general-purpose one like herdr.

firstmate TUI

Requirements

Requires podman, running.

Quick Start

git clone https://github.com/anbclausen/firstmate
cd firstmate
./install.sh
fm

fm opens the TUI. First launch walks you through picking an agent and any login it needs, then you're talking to your first mate.

Built-in skills

Firstmate ships these user-invocable built-in skills. Claude and grok use the slash form shown here; codex uses the same names with $, such as $afk.

Skill What it does
/afk Enter away-mode supervision: the sub-supervisor self-handles routine notifications in bash, escalates captain-relevant events and bounded declared-external-wait rechecks as batched digests, and actively alerts if delivery gets stuck while you step away
/ahoy Recap visible session events since the prior real captain message plus visibly unanswered captain decisions, falling back to Bearings when invoked as the session's first real captain message
/bearings Generate a concise four-section chat digest from bounded local fleet and registered-secondmate state; use /bearings file to also replace today's dated report in data/, and add include PRs when live PR enrichment is wanted
/updatefirstmate Self-update the running firstmate and its secondmates to the latest from origin with fast-forward-only pulls, then re-read instructions and nudge secondmates
/stow Sweep the session for uncaptured durable knowledge, route each finding to its disk home per AGENTS.md, file undone next steps to the backlog, cascade the same sweep to every registered second mate against that home's own memory budget, and report what is now safe to reset

Bearings invocation examples:

  • /bearings returns the fresh four-section digest in chat only.
  • /bearings include PRs keeps chat-only mode and opts into live PR enrichment.
  • /bearings file replaces today's data/status-report-<YYYY-MM-DD>.md from scratch and links it from the four-section chat digest.
  • /bearings file include PRs combines the dated report with live PR enrichment.

Documentation

Contributing

Contributions are welcome - see CONTRIBUTING.md for the workflow, repo conventions, and how to run the tests.

License

MIT - see LICENSE.

About

TUI on top of containerized 'firstmate'.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages