config.toml reference

~/.config/heed/config.toml, as Heed writes it the first time it opens: every key with its default and what it does. Saving the file applies it right away; a mistake is reported in the status bar and the last good config stays in use.

This page is generated from the code (mise run shots).

Toml
# Heed configuration. Saved changes apply right away; mistakes are reported in the status bar and the last good
# config stays in use. Settings (⌘,) edits this file too, except key bindings, which live only here.

[worktrees]
# Worktrees are created at <root>/<repo>/<name>.
root = "~/code/wt"
# Directories scanned (two levels deep) for repositories.
repo_roots = ["~/Projects", "~/code"]
# Repos outside the roots, added when you import one of their worktrees by path (I in Sessions, :import <path>).
repo_paths = []
# Branches get a prefix picked by the prompt's first word ("Fix broken anchors" → fix/broken-anchors), else this.
# "" means no prefix. The worktree folder uses - for /.
default_prefix = "feature"
# When heed first starts an agent in a repo, offer (once per repo) to trust it ahead of time: for Claude Code, so it
# does not ask in every new worktree, and for mise when the repo's config sets [env]. Local repos only.
offer_trust = true
# After Add or clone (a in Repos) adds or clones a repo: open Repo setup for it (get it merged, get it green),
# open Start work in it, or nothing more. The dialog's "then" starts on this.
after_add = "setup"

[worktrees.prefixes]
fix = ["fix", "bug", "broken", "crash", "repair", "resolve"]
bump = ["bump", "upgrade", "update"]
chore = ["chore", "cleanup", "tidy", "remove", "rename"]
refactor = ["refactor", "restructure", "simplify"]
docs = ["docs", "doc", "document", "readme"]
test = ["test", "tests", "cover"]
perf = ["perf", "speed", "optimize", "faster"]
feature = ["add", "implement", "support", "create", "introduce", "build", "feature"]
plan = ["plan", "spike", "investigate", "explore", "research"]

[start_work]
# Where the Mac has Apple's on-device model (Apple Intelligence, macOS 26): it suggests the repo when the prompt
# names none, the branch name's words, and the prefix when the first word picks none. On this Mac only, never sent
# anywhere; your own picks and typing always win. Elsewhere, or false: the rules above alone.
smart_guesses = true
# Size a longer prompt as you type (a decision first, then one cheap model call when it looks big): a task bigger
# than one session offers a goal, a session or a chat. Small tasks never see it. Uses [decisions] and [llm].
size_check = true

[sessions]
default_agent = "claude"
# On launch: ask which sessions to resume, resume them all, or none.
resume_on_launch = "ask"
# Typed into a resumed session that was mid-turn, once the agent is idle. "" turns it off.
continue_prompt = "Continue where you left off."
# Open a shell split beside the agent in new sessions (Start work can still toggle it per session).
shell_split = false
# Heed names each session from what it is doing: after its agent's first turn and when it opens a PR, on Apple's
# on-device model where the Mac has it, else a model call. A title you give it (session.rename) stays.
name_sessions = true
# What heed sends an agent (feedback, notes, the continue prompt, heed send) goes to a Claude session through its
# cross-session inbox instead of being typed into its pane: it queues there while the agent works, and can never
# approve a prompt. A session without one, or that refuses it, gets it typed as before.
claude_inbox = true
# The same for codex sessions, with `codex queue` (experimental: off until you turn it on).
codex_queue = false
# Keep every pane's terminal alive in a zmx session, so agents keep running when heed quits, restarts or updates,
# and come back as they were: auto (zmx when it is installed and works; Settings > General shows its check),
# zmx, or none (panes end with heed).
persist = "auto"

[cleanup]
# Automatic cleanup, off by default. When on, worktrees with no activity (agent output, keystrokes, commits, PR
# events) for idle_days are removed, wherever they live. Dirty or unpushed work is never removed, nor a pinned
# session's.
enabled = false
idle_days = 14
delete_branch = true
ask_before_sweep = false
# Removing a worktree saves its commits (and uncommitted changes) as refs/heed/archive/<branch> first, so R in
# History can bring it back. Cleanup drops those older than this many days; 0 keeps them.
keep_archive_days = 90

[helpers]
# Helpers are agents heed starts on your behalf over ACP (the Agent Client Protocol), each in a worktree of its own,
# drawn in heed as they work: get it green, a conflict, a review of someone else's PR. Which agent they run:
# claude, codex, opencode or gemini; empty: your default agent when heed knows an ACP way to it, else claude.
# Claude and Codex need an adapter: npm install -g @agentclientprotocol/claude-agent-acp (or codex-acp).
agent = ""
# The adapter's command line, instead of the one heed knows (e.g. "npx -y @agentclientprotocol/claude-agent-acp").
command = ""
# Dollars one helper may spend before heed stops it, from what its agent reports; 0: no cap. An agent that reports
# no cost is stopped by [pilot] run_timeout only.
spend_cap = 0.5

[personas]
# Personas in sessions: quiet by default. Nothing while the agent works; heed offers a look by the personas whose
# scope covers the session's repo (and that join sessions, Settings › Personas) only when one of these happens,
# once each. They read the agent's plan or last message and the diff; they never type into the session.
# A lot got built: this many files, or lines, changed since the last look.
built = true
built_files = 10
built_lines = 300
# The agent says it's done ("done", "ready for review") at its turn's end.
says_done = true
# Before a PR opens: the agent's gh pr create is held (through its permission hook) for up to hold_seconds while
# the panel looks; with a concern you choose: let it open, send the concern first, or hold the PR. Then it goes
# on as it would have. At most 180.
before_pr = true
hold_seconds = 120
# The session starts changing another repo.
second_repo = false
# Hours of work since the panel last looked.
long = false
long_hours = 4
# At a milestone: "ask" (a line at the session's foot), "look" (without asking) or "never".
offers = "ask"
# The model that reads the work, for a look and for a chat with one persona: "cheap" (what heed's short model calls use:
# haiku for claude), "standard" (the next step up: sonnet for claude, the agent's own default for the others) or
# "strong" (claude's opus; the others' own default). strong also lets the personas read the code around the diff:
# it runs your default agent (claude or codex) headless and read-only in the session's worktree, as the goal wizard's
# plan does, instead of a call with tools off. Dearer and slower; the verdict shows the model and the cost.
look_model = "standard"

[github]
# How often the view on screen refreshes from GitHub; the others refresh five times less often.
poll_seconds = 60

[pilot]
# Follow the PRs your sessions track: their review threads and failing checks, shown in Autopilot (gw).
# Read-only, so on; turn it off for an org or a repo under [orgs.<name>] or [repos."org/name"] (watch = false).
watch = true
# What happens to what a watched PR collects: off (shown only), ask (you queue it) or auto (sent to the agent
# once it is idle). Also per org and per repo.
green = "ask"
# Prompts sent without a new approval before get it green stops.
max_rounds = 3
# Where each round of get it green (or get it merged) goes: helper (an agent heed starts over ACP in its own worktree,
# heed/get-it-green/<branch>, drawn and steered in heed; it pushes and replies only once you approve, see
# [helpers]), background (an agent in its own tab, worktree and branch, all removed when it is done) or session (the
# session's own agent, once it is idle and you have not typed in it for five minutes). Also per org and per repo.
run_in = "helper"
# Which agent, model and reasoning effort background runs use; empty: the session's agent and that agent's
# defaults. Also per org and per repo.
agent = ""
model = ""
effort = ""
# Merge conflicts with the base are usually simple: background runs for them can use a cheaper agent and model.
# Empty: agent, model and effort above. Also per org and per repo.
merge_agent = ""
merge_model = ""
merge_effort = ""
# A run still working after this long is stopped.
run_timeout = "30m"
# How long zp pauses a PR: 30m, 1h, 4h, 1d, or forever.
pause = "1h"
# Get it merged: off; auto (heed turns on GitHub's auto-merge for a PR, and GitHub merges it once its own
# requirements are met); or heed (heed merges it itself once the rules below hold). Per org and per repo too, and M
# cycles one PR. Either way only yours, and PRs from a branch of the repo itself (not a fork) opened by someone who
# can write to it (the owner, a collaborator, or an org member gh says has write access) or by one of trusted_authors.
merge = "off"
trusted_authors = []      # e.g. ["dependabot[bot]", "renovate[bot]"]
# squash, merge or rebase; unset takes the first the repo allows, in that order.
# merge_method = "squash"
# How often a repo's merge queue runs (15m, 1h, ...), or manual (only :merge.run).
merge_schedule = "1h"
# Bring the queue's PRs that fell behind their base up to date on each run.
update_branches = true
# Hand work on a watched PR to GitHub's Copilot coding agent instead of your session's agent, sparing its tokens:
# merge conflicts, review comments, or both (one comment on the PR asks for both). Only where Copilot can work in
# the repo; elsewhere, and with these off, your agent gets them. Per org and per repo too.
copilot_conflicts = false
copilot_comments = false
# Who heed asks to review a PR once it is open and not a draft, once per PR: logins, "org/team", or "copilot".
reviewers = []
# merge = "heed" merges a PR when it is green, reviewed after its last push (an approval from someone who can write
# to the repo, or a trusted reviewer's), quiet for quiet_minutes, its gate_checks passed, without a hold label,
# and, with self_review set, approved by that command. Each per org and per repo too.
quiet_minutes = 5
# Reviewers (usually AI) whose review counts: an approval, a comment review with none of its threads open, or no
# review at all once its review check (named in gate_checks) passed on the head commit. "name[bot]" is only a bot.
trusted_reviewers = []    # e.g. ["copilot-pull-request-reviewer"]
# Checks by name, each from the app that reported it on the base branch (github-actions when none did), or named
# as "app:name", e.g. "github-actions:test". A check of the same name from another app does not count.
gate_checks = []
hold_labels = ["hold", "do-not-merge", "wip"]
# A command that reads the prompt and the PR's diff on stdin and answers APPROVE, or REQUEST_CHANGES: <why>. It runs
# with its tools off: claude or pi, after env, NAME=value or npx @anthropic-ai/claude-code. Anything else holds the PR.
# self_review = "claude -p"
# [repos."org/name"] admin_merge = true retries a refused merge with --admin, bypassing branch protection. Repo only,
# and only heed's own merges (merge = "heed"); merging now by hand follows force_merge below.
# Merging a PR now by hand (zM, or merge now on a PR that is ready to merge): ask shows the PR, the method and
# anything not met first; auto merges at once. Per org and per repo too.
merge_now = "ask"
# Merging now past what GitHub enforces (a required review, a required check), with --admin: offered only when you
# are an admin of the repo. off never offers it; ask lists exactly what is bypassed first; auto does not ask. Per
# org and per repo too.
force_merge = "ask"
# Extra instructions heed adds to its prompts, per org and per repo too (a repo's "" clears its org's): after get it
# green's feedback items, to the self-review's criteria, after the issue text Start work begins from, and to what
# heed asks its model calls ([llm]) for in a summary. They add to what heed sends, and the agent still reads the
# repo's own AGENTS.md or CLAUDE.md.
# green_instructions = "Resolve the review threads your changes addressed, and any that no longer apply."
# review_instructions = ""
# start_instructions = ""
# summary_instructions = ""
# Ask agents (claude, codex) to end their final message with a "heed-summary: ..." line, which then is the ledger's
# summary (History, L). Off by default; per org and per repo too.
summary_sign_off = false

[ui]
# A menu bar item: an owl that shows how many sessions need you, with those sessions, Start work and Open Heed.
menu_bar = true
# The Dock icon shows the same: a badge in the state's colour (blocked, else asking) with the count.
dock_state = true

[notifications]
# A macOS notification when a session starts needing you (its agent, a helper tab, or a PR the pilot cannot send
# feedback for), unless Heed is in front showing that session. Several within a few seconds come as one. Open brings
# Heed forward on the session; a Claude permission prompt also gets Allow. Per state: asking (questions, a plan to
# approve) and blocked (a permission prompt).
enabled = true
asking = true
blocked = true
# Attention items a rule says to notify about (notify, or boost 3), several from one sync as one notification.
attention = true
# Only once it has needed you this long, so a prompt that clears itself stays quiet; 0 notifies at once.
grace_seconds = 30
# One reminder if it still needs you this long after the notification, then nothing until it comes back; 0: none.
reminder_minutes = 15

[approvals]
# How long an agent's permission hook (Claude Code, Codex) waits for your answer in heed (gy) before the agent
# asks in its own pane, as it would without heed; 0 lets them always ask there. At most 240.
wait_seconds = 120

[attention]
# Quiet hours: no notifications from start to end, local time, 24-hour ("22:00-07:00"); "" for none. What needed
# you meanwhile is not notified when they end: Needs you and the Dock badge show it. macOS Focus applies as well.
quiet = ""
# What matters in Attention, one rule a line, first match wins: what to match, then boost 1-3, lower, ignore, pin
# or notify. Inputs: mention, review, assigned, ci, mine, agent, user:me, team:org/slug (team:? when unknown),
# requested:me|team, author (a login, me, bot, bot:name, human), label, repo, branch, kind, draft, ready,
# size >n, age >7d, turn mine|theirs, reason, any. Globs (*, ?) and a|b work in values. Ignored items stay
# under Muted for 30 days. Settings › Attention edits them and shows what an edit would change.
# rules = [
#   "mention user:me             boost 3",
#   "review requested:me         boost 2",
#   "mention team:acme/docs-eng  boost 2",
#   "mention team:acme/everyone  ignore",
#   "author bot:dependabot       ignore",
#   "label "blocker"             pin",
#   "agent blocked|asking        boost 3",
#   "ci branch:main              lower",
# ]
# Catch-up summaries in the reader: what is new in a thread since you last looked (the whole thread when you never
# did), written by heed's model calls ([llm]). "ahead": for every thread in For you's New, newest first, within
# the daily cap, and on open for the rest; "open": only when you open a thread; "off": none.
summaries = "ahead"
# GitHub items (PRs, issues, notifications) not updated within this many days are left out of Attention, and not
# asked of GitHub either. 0 shows everything. Sessions' PRs and issues, goals' and the ones the pilot watches stay.
max_age_days = 60

[browse]
# Browse searches GitHub for the issues and PRs of an org or a repo, and leaves out the ones not
# updated within this many days ("Show older" lifts it for the view you are in). 0 shows everything.
max_age_days = 90
# An org with more repos than this is offered a view of its own (one language, without the archived repos) before the whole
# org is browsed. 0 never asks.
many_repos = 200
# heed reads items with a cheap model call (class, size, how ready an agent is to take it, a TL;DR), kept on this Mac
# and never written to GitHub. "ahead" reads the top rows of the view and the item under the cursor, "open" only the
# item under the cursor, "off" only when you ask (U). Reads count against [llm]'s daily cap.
reads = "ahead"
# How many rows from the top of the view are read ahead of time. 0 reads none ahead.
read_ahead = 20
# How many agent runs (Fix, Implement, Chat, Review on an item) may work at once. Each runs in a temporary worktree and
# counts against [helpers] spend_cap. 0 sets no limit.
max_runs = 3
# What an agent run in Browse may do. "chat" (the default): Chat is the only agent action: it reads, searches and
# answers, and Fix, Implement, Review and Get it green are off. "full" turns them on: they edit files, push
# branches and comment through gh. Browse's permission policy is a best-effort filter over what the agent asks
# for, not a sandbox: turn "full" on only for repos and authors you would let an agent work on unsupervised.
runs = "chat"
# Coming back to Browse (switching to it, the app coming forward, the window regaining focus) asks GitHub for the
# view you are on again, when the last answer is older than refresh_after seconds. Changes to rows you can see
# land at once; new, gone and reordered rows wait behind a banner while an item is selected (r applies it).
auto_refresh = true
refresh_after = 60
# The agent Browse's runs use: claude, codex, opencode or gemini. Unset, it is [helpers] agent.
# agent = "claude"

[summary]
# While you were away: what still waits on you, then what merged, how background runs ended, which agents
# finished, the reviews that arrived and the sessions that closed, by day. It opens on its own when you come back
# after this many hours away from the Mac or with heed quit (0: never on its own); gZ opens it any time.
away_hours = 8
# History's ledger (L in History): a short summary of each piece of work, kept after its worktree is gone, written
# by a cheap model through heed's model calls ([llm]). When: "pr_opened", "pr_merged", "worktree_removed" (the
# removal waits for it, 30 s at most), "idle" (no activity for idle_hours), "chat_closed". ledger.summarize writes
# one any time. Include: "summary", "decisions", "follow_ups", "files" (from git, no model).
when = ["pr_opened", "pr_merged", "worktree_removed", "idle"]
idle_hours = 24
include = ["summary", "decisions", "follow_ups", "files"]

[updates]
# Look for a new version of heed once a day (on GitHub, heed's releases). Each update is signed; heed installs
# only what its key signed, and Apple has notarized.
check = true
# ask: show what is new and install when you say so. auto: download in the background and install on quit.
install = "ask"

[nudges]
# After an update, once: what is new since the version you last opened, with the new settings. :whatsnew.show
# opens it any time.
whats_new = true
# How often heed may point at the settings that add the most and are still at their default (Configure… goes
# through them): "3d", "weekly" or "off". Only when heed is in front and idle in NORMAL mode, never over a dialog.
gaps = "3d"

[usage]
# The inspector shows each session's model and tokens, as its agent's hooks report them, and a cost marked ≈: what
# the agent reported (opencode), else an estimate from the prices below. false leaves the cost out.
show_cost = true
# USD per million tokens, by model name prefix (the longest match wins): "input / output", or
# "input / output / cache read / cache write" (cache defaults: a tenth of input to read, 1.25× to write). None are
# built in, so with none set only reported costs show.
[usage.prices]
# "model-a" = "3 / 15"

[log]
# The call log (:log): every command heed runs, its GitHub calls and its model calls, with how long each
# took and how it ended. Kept this many days per kind, and at most max_rows rows of each kind; pruned hourly.
shell_days = 7
github_read_days = 3
github_write_days = 90
llm_days = 30
decide_days = 30
max_rows = 50000

[telemetry]
# The agents' own OpenTelemetry (Insights › OpenTelemetry, :trace): heed listens for OTLP/HTTP (JSON or protobuf)
# on 127.0.0.1 only, and starts claude and codex with their exporters pointed there. false: no receiver, no
# exporters, every agent as you set it up.
enabled = true
# An agent you already send telemetry from (OTEL_ variables in your shell, [otel] exporters in Codex's config) is
# pointed at heed too, and heed forwards every export unchanged to your collector, with your headers, which it never
# keeps. false: heed leaves such an agent alone. gRPC and Claude Code's settings env are always left alone.
proxy = true
port = 4318
# Kept this many days, and at most max_rows spans; pruned hourly.
days = 7
max_rows = 200000
# Ask Claude Code for each tool's details (the bash command, the file), so a span says what ran.
tool_details = true
# Ask the agents to include your prompts' text, so a turn reads by what you asked. It stays on this Mac.
prompts = false

[llm]
# heed's own short model calls (summaries, typed decisions), made headless through the agent CLIs you are logged
# in to (claude, codex, gemini, opencode, pi, cursor), each with a cheap model, taking turns. No API keys: your
# logins are used as they are. Each call runs in an empty temporary directory with tools off and nothing saved, and
# shows in :log with which agent took it and why others were skipped. false: heed makes no model calls at all.
enabled = true
# A call still running after this long is stopped; this many run at once (more wait, the ones you asked for first).
timeout_seconds = 120
concurrency = 2
# An agent whose call failed is skipped for this long; one rate limited in a session, until its limit resets.
backoff_minutes = 10
# Per agent per day: background calls stop until tomorrow at this many calls, or once this many dollars were spent
# (counted where a cost is known: reported by the agent, or estimated from [usage.prices]). 0: no cap.
daily_calls = 100
daily_dollars = 1.0
# Which agent takes the calls: "auto" (every usable one, taking turns) or one name ("claude"). Unset: not chosen
# yet; calls take turns, and the title bar reminds you to set it up (Settings › Model calls).
# agent = "auto"
# false: no reminder on launch while model calls or decisions are not set up, or their last test failed.
setup_reminder = true

[decisions]
# Who answers heed's typed questions (Attention's suggested weights, goal items, quality profiles): "local"
# (Apple's on-device model, free and on this Mac only, macOS 26 with Apple Intelligence), "hunch" (a Laya
# checkpoint on this Mac, see [hunch]), "model" (a model call through [llm]) or "off". Unset: a model call, and the
# title bar reminds you to choose.
# decider = "local"

[hunch]
# The Laya checkpoint Hunch runs, downloaded from Settings › Decisions & Hunch: "english" (the default) or
# "multilingual".
# checkpoint = "english"
# Learn from your corrections (Attention actions, goal attach answers, labelled screen snapshots): a head trained
# on this Mac, adopted only when it does no worse on examples it never saw. Unset: on once a model is downloaded.
# learn = true

[mindmap]
# Group finished work into History's Mindmap: one per GitHub org, and one for your personal work, never mixed.
# A cheap model names campaigns for work that fits none ([llm]); Hunch, or whichever decider is set, places new
# work into them; ✓ and ↦ on a card heed placed say it is right or move it (y and m do the same), and that is what
# it learns from. Settings › Decisions & Hunch shows how often heed had it right. With shadow on, every
# placement waits for y or m instead of standing.
# enabled = true
# shadow = false

[standup]
# A standup report on the days you choose: one per Mindmap (each org, and personal, never mixed), each of your
# questions answered by a cheap model from that Mindmap's work since the last report ([llm]). History › Standup
# shows them; y copies an answer, Y the whole report. Missed while the Mac slept, it runs once when heed looks.
# enabled = false
# days = ["mon", "tue", "wed", "thu", "fri"]
# at = "08:40"
# range_days = 1
# questions = ["What did I finish since the last standup?", "What am I working on next?", "What is blocked?"]
# Questions of one org's own: standup_questions under [orgs.<name>]; your personal work's: personal_questions here.
# personal_questions = ["What did I learn?"]

[memory]
# What a session is told at launch from the Mindmap: the decisions that still stand in its campaign, what was
# tried and dropped, what is still open, and its PRs, from that org's Mindmap only. "node_and_goal": sessions
# started from a Mindmap node (s) and sessions on a goal whose work sits in a campaign; "off": none.
# brief = "node_and_goal"

[local]
# Screen snapshots for a local decision model to learn from: at each state an agent's hooks report (working,
# asking, blocked, idle, done), the cleaned last 30 lines of its pane, the agent and the state; now and then one
# while it works; and, unlabelled, states read from the screen. Kept in heed.sqlite on this Mac only, never sent
# anywhere and never in the call log; dropped after keep_days, the oldest first past 64 MB. Off by default.
record_screens = false
keep_days = 30

[goals]
# Sessions and chats on a goal are told so when they start or resume (claude, codex): which goal, and to read its
# GOAL.md first and keep to its Not the goal list. Claude gets heed's plugin (--plugin-dir) with the heed-goal
# skill, codex the same guidance in its instructions: keep the goal with the heed goal command. false: agents are
# not told.
tell_agents = true
# New sessions and chats find their goal on their own: from free signals (worktree and branch family, files, PRs,
# the prompt against GOAL.md, repo, recency), and a cheap model call when those are unsure. At attach_auto or
# more heed attaches (u undoes); from attach_ask it asks with one key in Attention; below, the work stays in
# Unassigned. Your corrections become lines in goals/attach.rules. attach_model = false: signals only.
attach = true
attach_auto = 0.85
attach_ask = 0.5
attach_model = true
# Reviewers look at a goal's work on their own when it changes (a PR opened, updated or merged, a new GOAL.md
# version) and nightly, only for the lenses the goal requires, and go quiet once at their bar until something
# new. This many runs per goal per day; past it heed asks in Attention. false: only when you press re-check.
auto_review = true
reviewer_runs_per_day = 6
# The agent reviewers run as. Empty: the agent of the goal's session the run's tab opens in.
reviewer_agent = ""
# heed goal item spawn: sessions (or background runs) an agent may start on a goal's items, at once and per day.
# Past either, heed asks in Attention (y starts them, n drops them).
spawn_concurrent = 2
spawn_per_day = 6
# Make it a goal (gP) asks the session's agent for a handoff first (what is done, decided, open and next), so the
# goal's plan starts from it instead of the session's first prompt, and waits this many seconds for it. Without
# one in time the goal starts as it always did, with a note. 0: never ask.
handoff_timeout = 180
# The GitHub mirror (docs: goals/github): a goal can follow along as a meta issue with a sub-issue per item, in a
# tracker repo of its own (any repo you can triage, not necessarily one the work is in). heed writes there on its
# own once a goal's mirror is on (one key, M); colleagues' changes come back as asks and proposals. tracker: the
# repo a new goal gets ("org/name"); per org or repo: goals_tracker under [orgs.<name>] or [repos."org/name"].
# mirror: new goals mirror from the start (goals_mirror per org or repo). mirror_label: put on heed's issues.
tracker = ""
mirror = false
mirror_label = ""

[goals.bars]
# The lenses each kind of goal requires and the bar (0-10) each must reach before heed calls the goal done. A
# goal's profile is its stakes plus the flags that apply; it gets the highest bar of every row that applies. A row
# here replaces the built-in one. Per goal, pins in the Reviewers pane override these.
spike = "plan 5, code 6"
internal = "plan 6, code 7, tests 6"
product = "plan 7, code 7.5, tests 7, docs 6"
public-api = "plan 7, code 8, tests 7.5, docs 7, dx 8, security 7"
user-facing = "ux 7"
perf-sensitive = "perf 7"
security-sensitive = "security 8"

[goals.reviewers]
# The model each reviewer kind runs on: "best" (the agent's default) or "cheap" (its cheap model).
plan-critic = "best"
implementation = "best"
security = "best"
perf-prober = "cheap"
test-architect = "cheap"
docs-reader = "cheap"

[tools]
# Where git and gh are. Empty means detect: your login shell's PATH (fish, zsh, bash, nu), then the usual places
# (Homebrew, mise, nix, ~/.local/bin), then /usr/bin. Set a path when detection picks the wrong one.
git = ""                           # e.g. "/opt/homebrew/bin/git"
gh = ""
# The tailscale CLI, for hosts on your tailnet. Empty: the search path, then the Tailscale app's own binary.
tailscale = ""
# Directories searched first, for git, gh and agent commands alike.
path = []

# Agents. Built-ins (claude, codex, cursor, pi, opencode, gemini) can be overridden field by field; any other name
# is a custom agent. Fields: command, prompt (argument | stdin | paste | file), plan, resume ("{id}" is the
# agent's session id), and [agents.<name>.profiles] of name = command line. model and effort are what its sessions
# start on when nothing picks one (empty: the agent's own default); model_flag and effort_flag are how it takes them
# ("--effort", or with {level}: "-c model_reasoning_effort={level}"). For heed's own model calls ([llm]):
# llm = false leaves an agent out, and llm_model picks its model (empty: a cheap one heed detects, haiku for claude).
[agents.claude]
command = "claude"
plan = "--permission-mode plan"
resume = "--resume {id}"
# model = "opus"
# effort = "high"
# llm = true
# llm_model = "haiku"

# [agents.mytool]
# command = "mytool"
# prompt = "argument"
# Agents without hooks get their state read from the screen; patterns per state refine it (regex):
# [agents.mytool.patterns]
# blocked = "Allow this\?"
# working = "Thinking"

# Org and repo colors: teal, pink, lime, orange, periwinkle, sky. Repos inherit their org's.
# [orgs.acme]
# color = "teal"

# Setup per repo (or per org): commands each new worktree runs before its agent starts, joined with &&. Unset, heed
# proposes what it detects (mise install when the repo uses mise, else its lockfiles' installs) and runs nothing
# until you approve it in Repos (S); [] runs nothing and stops the proposal. Files .worktreeinclude names (gitignored
# ones only) are copied from the main checkout into each new worktree either way.
# [repos."acme/docs-toolkit"]
# setup = ["pnpm install"]

# Pinned tasks per repo, each run in its own pane; the exit code sets the tab's glyph. New sessions open them as
# tabs; ! picks one to run, from these and what the worktree offers (mise tasks, make targets, package.json scripts).
# [repos."acme/docs-toolkit".tasks]
# test = "dotnet test"

# Hosts: machines heed drives over your own ssh (gH adds them from ~/.ssh/config or your tailnet). A host whose
# machine is on your tailnet goes over it, its ssh alias pointed at the machine's MagicDNS name; a machine running
# Tailscale SSH needs no key of yours. transport = "ssh" keeps a host off the tailnet.
# [hosts.devbox]
# ssh = "devbox"
# tailscale = "devbox"
# transport = "ssh"
# user = "you"
# repo_roots = ["~/code"]
# worktree_root = "~/code/wt"
# color = "teal"

[keys]
# Leaves INSERT. It is also the terminal's quit signal, so pick something else if you need that.
insert_escape = "<C-\\>"
# Opens Start work in a floating panel over any app, wherever you are; "" turns it off. The panel's window title is
# "Heed Start Work", for window manager rules (yabai: app="^Heed$" title="^Heed Start Work$" manage=off).
global_start_work = "<C-M-Space>"
# Brings Heed to the front from any app; "" turns it off.
global_activate = "<C-M-h>"
# Shift+Escape leaves INSERT too; a plain Escape always goes to the terminal. [keys.insert] "<S-Esc>" = "" unbinds.

# Bindings per mode ([keys.normal], [keys.visual], ...) or per view ([keys.repos], [keys.attention], [keys.history],
# [keys.diff], [keys.pr]), in vim notation, each naming a command (the same names : completes). "" unbinds.
# [keys.normal]
# "gC" = ""
# "<C-j>" = "row.next"
  1. setup | start_work | add
  2. ask | always | never
  3. the local branch; the remote is left alone
  4. true: cleanup runs only when you press Clean up worktrees (gC)
  5. ask | auto
  6. 3d | weekly | off
  7. unset: since the last report
  8. an alias from ~/.ssh/config, or user@address; the name by default
  9. the machine on your tailnet, when its name differs
  10. ssh | tailscale; unset prefers the tailnet
  11. who to log in as over the tailnet, without an ssh alias
  12. where its repos are, two levels deep; unset, heed asks after the first check
  13. where its worktrees go; :host.roots (ctrl-r in gH) asks again
  14. teal, periwinkle, pink or sky