Hunch

Jonathan M.Thread ContentNot reviewed by BB
Get it for macOS

See the prompt you were about to type as grey text in the empty composer, and press Tab to take it. After each finished turn, a throwaway copy of the thread's own Claude Code or Codex session predicts your next message, so the suggestion draws on everything the agent saw, tool output included. Show up to three suggestions as numbered cards above the composer instead, or both. Nothing is sent or written to the thread until you send the draft yourself. Each prediction is one model request on your own Claude or ChatGPT sign-in, and its cost grows with the session; threads on other providers use the stored transcript and the model you pick.


See the instruction you were about to type before you type it, written by a copy of the agent's own session.

What you get

  • After each finished turn, up to three suggestions: the first as grey text inside the empty composer (the default), as numbered cards above the composer, or both.
  • Press Tab or → in the empty composer, or swipe right on a touch screen, to put the first suggestion in the draft. Click a card to do the same with its text, or set clicks to send at once. Nothing is sent without your action.
  • Silence when there is nothing to suggest: the model is told to return none while the agent says work is running, when the task is finished and you asked for nothing more, or when the only reply would be an acknowledgment.
  • bb hunch to show, generate, and debug suggestions, and to see which route a thread's request takes.

How it works

When a visible top-level thread goes idle, Hunch forks the thread's own Claude Code or Codex session, so the model sees everything the agent saw, tool output included, and asks it for your next message. A Claude Code fork runs with no tools, a Codex fork runs in a read-only sandbox, and neither writes a session file. Threads on other providers, and sessions on another machine than the bb server, send the first request and the newest user and assistant messages (no tool output) to the suggestion model instead. Hunch keeps the suggestions until the thread moves on, across reloads and restarts, and writes nothing to the thread or the agent's context.

Requirements

BB 0.45 or newer. Claude Code forks need the claude CLI and Codex forks the codex CLI, signed in on the machine that runs the bb server. They use your existing Claude or ChatGPT subscription and need no API key.

  • Claude Code forks run on Haiku 5.5 at low effort. Codex forks run on the session's own model at low effort.
  • Other threads use the model picked in bb's provider/model picker: Claude Code's Sonnet 5.5 at low reasoning by default. Claude Code and Codex models run as a CLI call; other providers run as a hidden worker thread.
  • An Anthropic- or OpenAI-compatible HTTP API, with your own key, can replace every route.

Each fork resends the whole session, so its cost grows with it. Measured on one Mac: $0.0063 per Claude Code fork of a 60k-token session and $0.076 of a 150k-token session, as reported by the CLI.

The plugin ID is hunch. For installation, see the project README.

Hunch is a fork of Next Prompt by Serge Baranov.

More from Jonathan M.

Machine BalanceStart each new thread on the connected machine with the most free CPU and memory, without picking one yourself. The new-thread screen moves to the best machine for the project, and a machine you pick by hand stays picked until you send. A Machines settings section shows each machine's live load and score, and lets you set a machine to Prefer, Normal, Less often or Manual only. Agents get a bb balance command to spawn child threads on the least-busy machine. Needs BB 0.50 or newer and at least two connected machines to have an effect. Nothing leaves your machines.NewProject PickerStart a new thread in any project from the keyboard with Cmd+N. Type to filter projects by name or path, with your most recently active projects at the top. Press Enter or Cmd+1 to Cmd+9 to open that project's new-thread screen with the prompt focused. BB's own New thread shortcut moves to Cmd+Shift+O while the plugin runs and returns to Cmd+N when you disable it.NewShelvesKeep the threads that need you in view, and file finished ones without archiving or deleting them. Threads sort onto three shelves: Working for running agents, Active for recent results, errors and questions, and Settled for filed conversations. Snooze hides a thread until later, and Settle has Undo. Threads settle on their own after seven days of inactivity or when their pull request is merged or closed, while running work, unanswered questions and pins keep a thread in place. Replaces BB's thread list in the sidebar while it is selected. Automatic settling reads pull request state from BB's GitHub PR Status plugin, and leaves a thread in place while that state is unknown.NewThread On BranchRight-click any thread and pick "New thread on <branch>" to start another thread on the same branch. It opens the new-thread screen with that thread's project and environment already selected and the prompt focused. The item is in every thread menu, and you can pin it as a row quick action.New

More in Thread Content 113

Change what people see or do inside an open thread.

View all
Generative UITurns agent replies into charts, diagrams, maps, plans and forms you can use, right in the chat. Agents choose from 86 components on their own, with no setup: sliders and filters recompute in the page, and buttons, choices and forms put your answers in your message, which reaches the agent when you send it. Test reports, logs, lint errors and coverage files render as their own components instead of pasted text, and a thread's changes, commits, pull request and workers are read live from BB. Adds about 6,400 tokens of instructions to sessions whose replies you read, and looks up photos, places and map tiles on Wikimedia Commons, Wikipedia, Photon and OpenStreetMap unless you turn web lookups off. Relies on BB internals, so a BB update can show the blocks as code until the plugin catches up.ComicBit1.3K
Agent TracesSee where your agents' time goes, from every thread down to each command, tool call, and subagent of a turn. A turn opens as a timeline that splits the agent's time into waiting on you, tools, subagents, thinking, writing, and model time, and it grows live while the agent works. Select a call to see its exit code, output, and arguments, or jump to the reply that followed it in the chat. A Traces page in the sidebar compares your recent threads by active time, calls, and errors, and two turns can be compared phase by phase. Turns export as OpenTelemetry or an HTML snapshot, and the bb agent-traces command gives agents the same answers. Traces come from the thread history on your bb server; an OpenTelemetry collector is optional.Nicolas Charpentier525