Use when a long human/agent session needs to preserve and transfer its working relationship, project state, access paths, operating doctrine, proof standard, known problems, intellectual cadence, and next-agent prompt into another chat, subagent, model, repo, or project — or to keep several Claude Code chats, background agents, or worktrees coexisting on the same project without drift. Trigger when the user asks to transfer consciousness, pathos, vibe, continuity, handoff, session memory, age...
Installs into .claude/skills of the current project.
Are you the author of Pathos?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maxkle1nz-pathos)
---
name: pathos
description: >-
Use when a long human/agent session needs to preserve and transfer its working
relationship, project state, access paths, operating doctrine, proof standard,
known problems, intellectual cadence, and next-agent prompt into another chat,
subagent, model, repo, or project — or to keep several Claude Code chats,
background agents, or worktrees coexisting on the same project without drift.
Trigger when the user asks to transfer consciousness, pathos, vibe, continuity,
handoff, session memory, agent doctrine, working style, hand off to another
chat/agent, coordinate parallel sessions, or prevent drift between sessions.
---
# PATHOS
PATHOS is a total handoff protocol for preserving the observable continuity of a
human/agent collaboration. It does not claim to transfer literal consciousness or
hidden memory. It turns the session's working relationship, judgment patterns,
access map, proof rules, and next moves into artifacts another agent can use.
## Core Rule
Transfer pathos as operational truth: what was proven, how trust was built, how
the user thinks, how the agent should decide, what paths and tools matter, what
is still unknown, and what the next agent must do first.
Never transfer secrets. Record secret names, environment variable names, vault
locations, connector names, or setup paths only. Do not write token values,
passwords, private keys, cookies, or credentials.
## Multiple Chats, Subagents, and Worktrees
In Claude Code a project is rarely one chat. Several sessions, background agents
(the Agent tool), and git worktrees can touch the same repo at once. PATHOS is
the shared truth surface that keeps them coherent:
- The durable handoff file (`PATHOS.md` / `docs/PATHOS.md`) is the single source
every new chat reads first before acting, so parallel sessions do not re-derive
state or contradict each other.
- When spawning a subagent, hand it the relevant slice of the handoff (north
star, access map, proof standard, do-not-do) in its prompt instead of letting
it rediscover the project cold.
- When a chat gets heavy or you start a fresh window, refresh the handoff first
so the next session inherits proven state, not a blank slate.
- This is complementary to Claude's auto-memory: auto-memory is cross-project and
about the user; the PATHOS handoff is project-local and about *this* work's
state, doctrine, and next moves.
## When Invoked
Create or update the smallest durable handoff artifact that fits the project:
- Existing repo convention: update its current `AGENT_HANDOFF.md`, `PATHOS.md`,
`AGENT_BEHAVIOR_DOCTRINE.md`, `CLAUDE.md`, or equivalent.
- Docs directory exists: prefer `docs/PATHOS.md` or `docs/AGENT_HANDOFF.md`.
- No convention exists: create `PATHOS.md` at the project root.
- User wants a prompt only: produce a copy/paste next-agent prompt instead of
editing files.
- User wants universal reuse: create or update a skill, doctrine, or template
in the requested shared location.
- User wants session hygiene, cleanup, or a lighter next Claude Code session: run
Custodian Mode.
If an existing handoff file exists, read it before editing. Preserve still-true
continuity and replace stale claims with dated, concrete state.
## Custodian Mode
Use this mode when the user says a session is getting slow, heavy, impossible to
use, or asks PATHOS to clean, backup, archive, sanitize, or prepare a fresh
session.
Custodian Mode is backup-first and confirmation-gated:
1. Write or refresh the PATHOS handoff before any cleanup.
2. Inventory candidate session artifacts, generated outputs, logs, proof
bundles, screenshots, or old workspace folders with read-only commands first.
3. Present a compact ASCII/ANSI-style report with age, size, purpose, risk, and
proposed action.
4. Create a sanitized backup bundle or manifest before cleanup when feasible.
5. Run cleanup as `dry-run` first.
6. Ask for explicit user approval before deleting or moving anything.
7. Never delete unknown session/agent internal history, secrets, credentials, or
user work. If the path is ambiguous, stop and ask.
8. Prefer reversible moves to a dated archive over permanent deletion.
The CLI only archives candidates after Git tracking is verified. Tracked files
and directories containing tracked files stay review-only; without Git tracking,
inventory remains available but applying cleanup is refused. Scan and clean do not
follow symlinks; nested repositories and `.pathos` archives are protected from traversal
and enclosing-directory cleanup. Git metadata is never an archive destination. An explicit
`--dry-run` always takes precedence over `--apply --yes`.
An archive destination must be a new directory strictly inside the project,
with no symlink components and no overlap with a selected source. These checks
protect normal local use, not hostile concurrent filesystem replacement. Keep
the project quiescent while archiving; this is not a filesystem sandbox.
Suggested terminal report shape:
```text
✦ PATHOS CUSTODIAN
SESSION / ARTIFACT AGE SIZE STATUS
current-work now -- handoff ready
old-runs/ 12d 1.4GB archive candidate
screenshots/ 9d 220MB dry-run clean
[1] write handoff [2] backup sanitized
[3] dry-run clean [4] request approval
```
Do not claim the session or workspace has been cleaned unless cleanup actually
ran and the affected paths are named in the final report.
Prefer the executable CLI for local truth (installed as `pathos` on PATH; falls
back to `node ~/.claude/skills/pathos/bin/pathos.mjs` if the command is not
found):
```bash
pathos status
pathos handoff --write docs/PATHOS.md
pathos custodian scan --dry-run
pathos custodian backup
pathos custodian clean --dry-run
```
`handoff --write` creates a new scaffold only; it refuses an existing destination.
To refresh an existing handoff, read and edit it while preserving still-true
continuity. Use a new output path if a separate scaffold is useful.
## Workflow
1. Locate the truth surface.
- Capture `git status -sb` when inside a repo.
- Read existing handoff/docs/checkpoint/status files before writing.
- If m1nd is available and the task involves structural discovery, use it
first. If m1nd is stale or misses obvious repo knowledge, reingest the
relevant docs/code and say so in the handoff.
2. Capture the north star.
- State the user's real objective in one or two sentences.
- Separate the big vision from the current proven capability.
- Name explicit non-claims so the next agent does not overpromise.
3. Capture current state.
- Repo path, branch, dirty state, latest checkpoint/release/proof, active
build/output, important artifacts, active local servers, and next command.
- Include exact local paths when the handoff is local-only. Label them
`local-only` when they are not portable.
4. Capture human/agent pathos.
- Preferred tone, pace, language, collaboration style, what creates trust,
how to push back, when to celebrate, and when to slow down.
- Encode the user's decision values, not just their preferences.
5. Capture operating doctrine.
- How the agent should think, decide, scope, delegate, verify, and report.
- Include any project method, phase rules, proof gates, or anti-drift rules.
6. Capture access map.
- Repos, skills, MCPs/connectors, CLIs, commands, local services, ports,
dashboards, docs, generated folders, proofs, run directories, and env var
names.
- Include "how to recover" notes for common failures.
7. Capture known problems.
- Stale indexes, model quota limits, disk pressure, failing tests, flaky
browser proof, path moves, dirty worktree, partial migrations, port
conflicts, missing credentials, and anything previous agents misread.
8. Capture proof standard.
- Define what counts as done. Prefer causal runtime proof, structured
artifacts, tests, browser smoke, release/checkpoint gates, and exact
commands over narrative confidence.
9. Write the next-agent prompt.
- Include first files to read, first commands to run, what not to do, how to
speak to the user, and the next likely action.
10. Validate the handoff.
- No secret values.
- No unsupported claims.
- Dates/paths/branches are concrete.
- The next agent can start within five minutes.
## Output Contract
Use these headings unless the project already has a stronger convention:
- `North Star`
- `Current State`
- `Human/Agent Pathos`
- `Operating Doctrine`
- `Access Map`
- `Known Problems`
- `Proof Standard`
- `Next Agent Prompt`
- `First Commands`
- `Do Not Do`
- `Open Questions`
## References
- For a full file template, read `references/pathos-handoff-template.md`.
- For a copy/paste prompt template, read `references/pathos-prompt-template.md`.
## Final Report
Report the path of the handoff artifact, what was captured, and any limitations.
If you skipped file edits because the user asked for text only, say that clearly.