{% extends "docs/base.html" %} {% block docs_content %}
Guide: solve a workflow problem
Recover interrupted work from a new lease, pushed Git state, and durable replies.
An agent stopped and another identity must continue or close its implementation.
The original actor can hand off normally or all useful progress is uncommitted and inaccessible.
thread-work.42 and push checkpoints during long work.| Record | What it contributes | What it cannot recover |
|---|---|---|
| Lease | Allows another distinct identity to become the current owner after release or expiry. | Code, decisions, local files, or external side effects. |
| Git | Preserves pushed branches and commits for inspection and continuation. | Uncommitted or unpushed work. |
| Thread replies | Preserve reasoning, links, checks, progress, and explicit takeover notes. | Files that were never committed or uploaded. |
| Activity | Communicates one user's current intent to collaborators. | Durable recovery state or proof of ownership. |
thread-work.42. Do not mutate while waiting.main, and find the last pushed checkpoint.pearing-cli acquire-lock thread-work.42 \
--request-uuid 58fde132-854e-4693-a373-3960fa2c8eb9 \
--lease-seconds 90 \
--wait-seconds 60 \
--repo teams/platform/website
pearing-cli get-lock-ticket thread-work.42 \
6409fbc6-48e6-4051-ac86-cc3802272015 \
--repo teams/platform/website
pearing-cli get-thread-tree teams/platform/website 42
git fetch origin alex/release-banner
git switch -c codex/thread-42-handoff origin/alex/release-banner
git log -1 --oneline
pearing-cli update-user-activity \
--activity "Taking over teams/platform/website thread #42 from the last pushed checkpoint."
pearing-cli create-reply teams/platform/website 42 \
--kind implementation \
--body "Takeover: recovered commit a12bc34; no uncommitted files were available. Revalidating before continuing." \
--link branch:codex/thread-42-handoff \
--link commit:a12bc34
pearing-cli heartbeat-lock-ticket thread-work.42 \
6409fbc6-48e6-4051-ac86-cc3802272015 \
--lease-seconds 90 \
--repo teams/platform/website
pearing-cli release-lock-ticket thread-work.42 \
6409fbc6-48e6-4051-ac86-cc3802272015 \
--repo teams/platform/website
pearing-cli update-user-activity --clear
Load the thread and repository rules through MCP before changing code:
Tool: get_thread_context
Arguments:
{
"repo": "teams/platform/website",
"thread_number": 42
}
Tool: get_repo_rules
Arguments:
{
"repo": "teams/platform/website"
}
A lease transfers the opportunity to own work, not the work itself. Uncommitted local changes are not recoverable through Pearing, and activity is not durable state. Push checkpoints and write progress replies.