Herdr Projects with Pi: Set Up Persistent Work, Assign Tasks, and Review Changes

A Project earns its place when decisions need to survive the session that produced them. The hard part is keeping dependent work consistent: which contract a worker implemented, which revision a reviewer tested, and which decisions the next session should inherit.
More agent sessions increase the cost of getting that wrong. A useful Project makes dependencies, ownership, and acceptance explicit before work starts.
This guide uses Herdr Projects v0.2.30 with Pi. Installation and product behavior refer to the pinned documentation. The working model below is an engineering recommendation, not a claim that the plugin enforces it.
Choose a Project for continuity, a session for contained work
Keep work in a session when its context, implementation, and review can stay together. Technical difficulty alone doesn't justify a Project. A difficult investigation with one decision owner may need uninterrupted reasoning more than coordination.
Use a Project when related tasks share decisions across sessions, have distinct review gates, or need a durable record of dependencies and accepted work. The deciding question: what must remain authoritative after this conversation ends?
In Herdr's design, the coordinator is an ordinary agent reading project state each turn. The plugin starts threads, copies reports, and handles cleanup. It doesn't decide whether a decomposition is sound or an implementation is correct.
That distinction matters when choosing concurrency. Launch independent work when its inputs are settled and its outputs have separate owners. Keep unresolved interface decisions on the critical path. Splitting a coupled change across workers can add negotiation and rework without shortening delivery.
Every thread is a full agent session. Coordinator context reads and nudges also consume tokens. Set concurrency against available independent work and review capacity, rather than treating the thread limit as a target.
Claude's cloud Projects are a separate product
Claude Code Projects coordinate cloud sessions with shared repositories, instructions, and memory. Their cloud environments, connectors, access settings, and memory behavior belong to Anthropic's product. They aren't configuration instructions for Herdr.
Here, Herdr supplies local workspace and plugin mechanics, with Pi running the coordinator and workers. The transferable practice is the context contract, not the settings UI or execution model.
Install the pinned version and select Pi for both roles
The relevant compatibility constraint is Herdr 0.9.1 or newer on both client and running server. Use herdr status to check that pair. Updating the client can leave an older server running, causing plugin_requires_newer_herdr during installation. Resolve the mismatch and restart the server before retrying.
Herdr's optional Pi integration provides lifecycle reporting and session references for restore. It's separate from Projects:
herdr integration install piBefore installing Projects, review the pinned manifest and installer. Install the version this guide covers:
herdr plugin install eliasstravik/herdr-projects --ref v0.2.30Confirm the interactive preview matches the reviewed repository, v0.2.30 ref, and scripts/install.sh. Plugins run as your user, inherit your environment, and aren't sandboxed by Herdr. A pinned release narrows what you're reviewing. It doesn't make third-party code safe.
The installer downloads a release binary and checks its checksum. If no suitable binary is available, the download fails, or the checksum doesn't match, it falls back to a source build. That path requires Rust/Cargo 1.89 or newer and a C compiler, according to the installation guide.
Preview and apply configuration:
herdr-projects configure --dry-run
herdr-projects configureconfigure changes Herdr's UI configuration, installs progress hooks for supported installed agents, and links the autoproject skill into its supported locations. It doesn't install all of those integrations into Pi. Review the dry run for the actual changes on your machine.
Create a Project with explicit coordinator and worker profiles. Here, ~/dev/api is the repository receiving the change:
herdr-projects new "Webhook delivery" \
--goal "Make webhook retries idempotent without changing payloads" \
--repo ~/dev/api \
--thread-profile pi \
--coordinator-profile pi
herdr-projects open webhook-deliveryThe two profile flags are independent. Omitting one can leave that role on a configured default or Claude. new creates the durable project folder and generated coordinator instructions. Inside a Herdr shell pane, open starts the coordinator there or focuses an existing one.
Inspect the installation and effective safety settings:
herdr-projects doctor
herdr-projects safety show webhook-deliveryUse start_threads = "propose" with yolo mode off when starts require named approval. Yolo overrides proposal-first behavior. Safety changes that affect launch flags don't alter already-running agents.
Herdr documents these controls as soft boundaries. Pi doesn't supply a per-tool approval gate, and worktrees don't isolate credentials or shell access. Use an actual sandbox for untrusted or unattended execution, with only the credentials that work requires.
Make the context contract explicit
Project context should distinguish accepted decisions from working assumptions. Otherwise, a coordinator can turn a plausible early answer into instructions for every later thread.
The contract needs enough detail to resolve a disagreement without replaying the conversation:
- Outcome and exclusions: the behavior being changed, the behavior that must remain stable, and adjacent work that's out of scope.
- Authoritative inputs: the accepted specification, relevant code paths, interface decisions, and base revision. Identify unresolved questions separately.
- Acceptance evidence: the checks required for implementation and integration, plus who accepts the result. A worker's completion report isn't acceptance.
- Authority: permitted edits and commands, actions requiring approval, and conditions that stop work. Include dependency changes, migrations, external services, pushes, and merges where relevant.
Keep standing rules in PROJECT.md. Keep task-specific decisions in task records and briefs. Use links to maintained sources instead of copying large documents into every prompt.
A correction to the contract also needs an impact decision: which queued briefs need revision, which running threads need a new instruction, and which completed results now require another review. Updating project memory alone doesn't establish that an active worker adopted the change.
Write briefs around dependencies and ownership
A useful thread brief describes an independently reviewable result. “Implement the backend” leaves too much room for conflicting assumptions. Name the contract it consumes, the area it owns, and the evidence it must return.
For each proposed thread, require:
- Inputs and dependencies: accepted decisions, base revision, upstream artifacts, and the condition that makes the task ready to start.
- Owned surface: files or subsystem it may change, shared files it must leave alone, and the owner of any necessary cross-boundary edit.
- Acceptance and report: required checks, changed files, tested revision, actual results, skipped checks, and unresolved decisions.
- Handoff: the output downstream work consumes and the gate that releases it.
The coordinator should distinguish proposed, approved, blocked, and accepted work. Starting a thread doesn't satisfy its dependency, and a report doesn't release downstream work until the required review passes.
Example: recheck the failure and the dependency
In one working Project, a fix thread targeted reported test failures. Another work thread's merge gate depended on that fix. The coordinator later reported that the failures didn't reproduce on current master, so it removed the dependency without a code change. This is the coordinator's account, not independently verified test output.
The same account records an idle notice while the worker process was still running. The coordinator checked the pane rather than treating the notice as proof that work had stopped.
The lesson: require a reproduction log from current master before starting a fix thread. If the failure doesn't reproduce, retain the evidence and reassess dependent gates instead of inventing a patch. Before closing or replacing an idle thread, recheck its process state. A dependency needs current evidence, and a status label needs confirmation.
Treat worktrees as ownership boundaries
Herdr's documented thread workflow gives code threads separate worktrees and branches. This prevents shared-working-copy collisions. It doesn't prevent two workers from changing the same interface in incompatible ways.
For dependency setup, keep worktree environments separate while sharing caches.
Assign one owner to each shared contract, migration sequence, and generated artifact. If threads need overlapping edits, sequence the work or put the shared change in an upstream task. Separate branches don't make that dependency disappear.
Record the base revision in the brief. Before integration, reconcile changes against the accepted upstream result rather than letting each worker reinterpret it. Passing tests in isolated worktrees don't establish that the combined change passes.
Keep approval to implement separate from approval to land. In the documented follow-up flow, a selected next action goes back to the thread, which performs it with its own tools. The plugin doesn't make the engineering decision to push or merge.
Review evidence, then retain decisions
Review against the accepted brief and tested revision. Require the actual checks and outcomes, including environmental blockers. “Ready for review” describes workflow state, not correctness.
Acceptance should settle three questions: did the change satisfy its contract, did integration preserve adjacent behavior, and did the worker stay within its authority? Missing evidence leaves the task open, even when the diff looks plausible.
Herdr stores reports under threads/ and produced files under library/. Its resolve operation copies those artifacts home before removing the worktree and retains the worktree if that final copy is partial. Don't substitute manual deletion: the thread's local report directory is excluded from Git, so a clean worktree can still contain uncopied evidence.
Maintain a clear division in the project record:
PROJECT.md: scope, settings, standing instructions, and approval rules.AGENTS.md: binary-generated coordinator instructions. Preserve its role rather than using it as another backlog.TASKS.md: the coordinator-maintained record of dependencies, accepted work, and remaining work.MEMORY.mdandmemory/: verified decisions future tasks need, with rationale and a source or verification location.
Test output belongs with the task and revision. Memory should retain the decision that constrains later work, including when it should be reconsidered. Replace stale decisions rather than appending contradictory guidance.
Memory is also an input-security concern: Herdr inlines it into later briefs. A speculative diagnosis or instruction copied from an untrusted report can propagate across threads. Review what gets promoted, and keep secrets, raw logs, and temporary workarounds out.
Recover from the failure, not the status label
The failures worth planning for are failures of coordination:
- Contract drift: workers produce individually plausible but incompatible changes. Pause dependent work, settle the contract, and revise affected briefs before resuming.
- Premature completion: a thread reports success without checks on the relevant revision. Reopen the evidence gap rather than treating the status as proof.
- Duplicate execution: a quiet thread triggers a replacement while the original is waiting on input. Inspect its pane and thread state first.
herdr-projects ticker statusdistinguishes ticker trouble from an agent waiting on a decision. - Lost continuity: a restarted session acts from an old plan. Reconcile task records, accepted decisions, and reports before assigning more work. Don't infer Pi recovery behavior from Claude or Codex instructions.
- Assumed background execution: a saved Project is mistaken for a running coordinator. Herdr's scheduled routines skip a due run when no coordinator is active and don't make it up later.
Those behaviors are covered in the operations reference. Recovery should preserve completed evidence and restart only the affected work.
Update without changing installation models accidentally
Before updating, reconcile unfinished threads and confirm their important reports are copied home. The update path depends on the installed version:
herdr-projects --versionVersion 0.2.3 and newer
Use the documented updater to identify the target release:
herdr-projects update --checkReview that release's notes, manifest, and installer changes before proceeding. The updater targets the newest release, not this guide's pinned v0.2.30. Consult the target release's documentation for changed behavior.
herdr-projects update
herdr-projects doctorThe updater supports managed installs and linked checkouts. A linked checkout must be on `main` with no uncommitted changes, or the updater stops. Preserve local work before updating, including untracked files you need.
A successful update installs the new binary, runs doctor --fix, and restarts the ticker. When already current, it changes nothing. If installation fails, the documented behavior is to retain the old version and restart the ticker.
Version 0.2.2 or older: managed install
These versions lack the updater. Review the v0.2.30 release, pinned manifest, and installer before using the documented reinstall sequence with an explicit version pin. Confirm the interactive preview matches those reviewed inputs. Continue only after each command succeeds:
herdr-projects ticker stop
herdr plugin install eliasstravik/herdr-projects --ref v0.2.30
herdr-projects doctor --fix
herdr-projects ticker startVersion 0.2.2 or older: linked checkout
Don't run the managed reinstall over a linked checkout. Unlinking can leave the old binary symlink in place, so subsequent doctor and ticker commands may still use the old binary. This is an update path, not a verified migration from linked to managed installation.
The documented linked-checkout sequence substitutes git pull and sh scripts/install.sh for the managed install command. Run those two commands in the linked checkout, after saving local changes and required untracked files, confirming a clean checkout, and reviewing the exact target revision:
herdr-projects ticker stop
git pullBefore executing the installer, confirm the resulting checkout matches the reviewed commit or tag. git pull follows the checkout's upstream, not the version pin used elsewhere in this guide. Stop on a mismatch or failed command. Don't discard local work to force an update.
sh scripts/install.sh
herdr-projects doctor --fix
herdr-projects ticker startHerdr's plugin interface doesn't provide a generic herdr plugin update command. pi install isn't the installer for this plugin either.
After updating, resolve relevant doctor findings and reopen the Project. Confirm its tasks, reports, and safety settings before releasing more work.
A well-run Project lets a new session determine what was accepted, what remains blocked, and what evidence supports the next action. If those answers still require reading the entire conversation, the coordination work isn't finished.