hermes

Write an agent handoff

Writes a self-contained handoff note so a fresh agent or a teammate can continue the current task without the conversation history. Use before ending a long session, switching tools or delegating.

context

The next reader has none of this session's context: not the conversation, not the files you read, not the dead ends you already ruled out. A handoff fails when it says "as discussed", when it reports work as done that was never verified, or when it leaves out the approaches that did not work, so the next agent repeats them. It should let start working within a minute.

task

Write a handoff for the task in this session. Only if [FOCUS] is given: Stress this:

  1. Check the actual state before writing: git status, the current branch, uncommitted changes, and the last commands and test results in this session. Do not rely on memory of what you intended to do.
  2. Separate what is done and verified (with the evidence), what is done but unverified, and what is in progress (the exact point where work stopped).
  3. Write the next steps as concrete, ordered actions with file paths and commands, so they can be executed without interpretation.
  4. Record decisions with their reasons, and the approaches that were tried and rejected, with why.
  5. Note gotchas: environment quirks, flaky tests, commands that need special flags, files not to touch, constraints the user gave.
constraints
  • Self-contained: no "as discussed", "the earlier approach" or references to messages the reader cannot see. Name files, functions, branches and commands explicitly.
  • Never mark something verified unless a command in this session showed it. Say "not verified" plainly.
  • Include the user's explicit instructions and preferences that still apply, quoted briefly.
  • Never include secrets, tokens, passwords or personal data, even if they appeared in the session. Refer to where they are stored instead.
  • Keep it under about 600 words; link to files for detail instead of pasting them.
output format

A Markdown note with a one-line title, then:

Goal

What the task is and what done looks like.

State

Three lists: Done and verified (with evidence) / Done, not verified / In progress (where it stopped).

Next steps

Numbered, concrete actions.

Decisions

Decision and reason; rejected approaches and why.

Gotchas

Bullets.

Verify

Commands that prove the task is complete.

Open questions

For the user, or "None".

Every required value is filled in. Copy gives the finished prompt.

details

kind
Prompt: a task you run by name to get one finished thing back
domain
Software engineering
category
Coding-agent operations
level
Beginner
made for
Software engineer
needs
repo-read
risk
read-only
version
v1.0.0 · experimental
reviewed
2026-10-02
works in
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md

Edit on GitHubReport a problem

use in

Hodios CLI
npx @hermes-hq/hodios install write-agent-handoff --target claude-code
Agent Skills
npx skills add hermes-hq/hodios-dist --skill write-agent-handoff -a claude-code
Add the Hodios marketplace (once)
claude plugin marketplace add hermes-hq/hodios-dist
Install the software-engineering plugin
claude plugin install hodios-software-engineering@hodios

The plugin brings every entry in this domain at once.

PromptCoding-agent operations

Write a subagent brief

Turns a task into a self-contained brief for a subagent or parallel agent, with the goal, context, scope, constraints, return format and definition of done. Use before delegating to another agent.

write-subagent-brief
PromptCoding-agent operations

Review a coding agent transcript

Reviews a coding agent session transcript for where it went wrong (bad assumptions, skipped verification, scope creep, looping) and turns each failure into an instruction-file or prompt change.

review-agent-transcript
PromptCoding-agent operations

Write an agent skill

Writes a reusable agent skill (SKILL.md with frontmatter, steps, scripts and references) from a repeated task, with a trigger description models can match and a test plan. Use to package a workflow.

write-agent-skill
PromptCoding-agent operations

Write an AGENTS.md

Writes or updates a repository's AGENTS.md with the verified commands, layout, conventions and boundaries a coding agent needs, and nothing generic. Use when setting up a repo for coding agents.

write-agents-md
PromptCoding-agent operations

Audit a coding agent's permissions

Reviews a coding agent's tool, permission and sandbox configuration for shell, network, secrets and write-scope risk, and proposes least privilege. Use before giving an agent more autonomy.

audit-agent-permissions