Skip to content

Settings

Beovulfo edited this page Nov 26, 2026 · 3 revisions

Project settings (herd.toml)

All optional. Without a herd.toml, Herd uses the defaults below. This repository's herd.toml is an annotated example.

Table Default What it does
[floor] high: migrations/**, auth/**, billing/**, herd.toml; medium: api/**; any other path is medium Path rules for the risk floor; a high floor means one approval question and no quick route
[models] design = "sonnet", build = "haiku" Which model designs (criteria, the "be specific" second look, the six attacks, the first verify) and which builds. Each is a tier (haiku, sonnet, opus) or a model name, matching any model id that contains it. Frozen at herd init; an unknown key or a blank value is refused
path_extensions (top level) ["py", "ts", "js", "sql", "toml", "json", "md"] File extensions herd triage reads as paths in a task description
[worktree] required = true off Every task must start in its own worktree (herd init --worktree)
[pr] open = true off herd pr may push the task branch and open its pull request without --yes; --draft and --milestone NAME are flags of herd pr, not settings
[guard] the built-in lists protected_paths (globs relative to the project root) and deny_commands (token prefixes such as "npm publish") add to the guard's lists; nothing can remove a built-in entry
[lint] off Per-file lint after each edit, see below

Lint feedback after each edit (opt-in). Add a [lint] table to your project's herd.toml:

[lint]
command = "ruff check {file}"
globs = ["**/*.py"]
timeout_s = 20

timeout_s is 20 by default and globs is ["**/*"]. While a Herd task is active, each Edit or Write runs the command on that file, and a failure is handed back to the agent as context (it does not block). Other editing tools such as MultiEdit and NotebookEdit are not covered. The command comes from the repository and runs with your permissions, the same trust as a check in task.toml.

Clone this wiki locally