SuperAPIAI Directory

firstmate

github.com · AI agents

Agent distro for running a crew of coding agents. You talk to one "first mate" that spawns autonomous workers, gives each a clean git worktree, supervises them to completion, and hands back PRs or approved local merges. Nothing to install: the cloned repo (AGENTS.md, skills, helper scripts) runs ins

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

firstmate solves the "tab management" problem when running multiple coding agents at the same time: when you want to work on multiple project tasks in parallel (fixes, investigations, planning, audits), you usually need to constantly switch sessions, copy context, and lose track of which terminal is running the failing tests. firstmate inverts this pattern—you talk to only one agent (the first mate), and it runs the entire crew.

Main capabilities

  • Single point of contact: You only talk to the first mate; it handles scheduling and supervision, escalates to you only when a real decision is needed, and reports concise results.
  • Visible crew: Each crew member works in their own tmux window or Herdr tab (or experimental Zellij tab, cmux workspace, Orca terminal), and you can watch or type into it while the first mate coordinates.
  • Disposable worktrees: Each task runs in a clean treehouse git worktree (when backend=orca, an Orca-managed worktree is used), so parallel work on the same repository does not conflict.
  • Two task shapes: ship tasks deliver authorized changes; scout tasks leave an independent research report when the entry contract requires separate research.
  • Explicit project modes: Each project publishes via no-mistakes, direct-PR, or local-only, with an optional +yolo merge autonomy flag, an optional branch=<prefix> to override the default fm/ release branch prefix, and an optional forge=gerrit binding (in which case workers publish Gerrit changes instead of opening pull requests).
  • Self-repository boundary: home runs as the firstmate user/operator by default, so firstmate's own bugs are diagnosed and patched locally, but it never pushes upstream, opens PRs, files issues, comments, or forks on its own.
  • Optional secondmates: You can optionally enable persistent second-level peers that run from independent firstmate homes, with their own FM_HOME, state, projects, and session locks, and can run locally or with the entire home running on an SSH-reachable host.
  • Event-driven, zero-token supervision: bash watcher sleeps and waits, waking the first mate only when you are needed.
  • Optional Relay: Selectively enable it with a local .env pairing token, letting firstmate answer your public mentions on X and Discord.
  • Strict project boundaries: The first mate is read-only on your projects, except for the few protected and captain-approved operations authorized by hard rule 1; other project changes are made by crew members after the configured merge permissions.
  • Restart-safe: All state is kept on disk and in the active session backend; the next session will coordinate after a restart, and normal supervision will restore confirmed-dead secondmate agents.

How to use

  1. Prepare the environment: You need a verified primary agent harness (Claude Code, Grok, Pi, pi-signed, Oh My Pi (omp), Codex, OpenCode, or Cursor Agent CLI); Git and the GitHub CLI (via gh auth login authentication); the CLI and dependencies for the chosen runtime backend, with tmux as the reference default.
  2. firstmate will detect and offer the option to install missing supporting tools (after your approval).
  3. Clone the repository and start a supported primary harness in it;AGENTS.md will take over the subsequent process.

After startup, you talk to the First Mate. It routes each request to the respective session endpoints and team members in git worktrees, oversees the entire team with a zero-token, event-driven watcher, and brings back completed PRs, approved local merges, or research reports.

When to Use

Suitable for developers who need to handle multiple coding tasks (fixes, investigations, planning, audits) in parallel at the same time and want to dispatch and oversee a team of coding agents through a single conversational interface, rather than managing multiple terminal sessions themselves.

Limitations

  • Requires a pre-installed supported agent harness and the corresponding backend dependencies.
  • tmux is the reference default backend; herdr, zellij, orca, and cmux are optional or experimental backends.
  • codex-app is not yet a runtime backend.
  • Features such as Relay and secondmates must be enabled selectively.
  • The First Mate is read-only by default for projects, and changes are constrained by strict boundaries and merge permissions.
  • For specific installation steps, environment variables, and configuration details, see the documentation (docs/architecture.md, docs/configuration.md, etc.).

(Note: The materials do not provide specific fee or pricing information.)

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools