Task Handoff Verifier
Task Handoff Verifier independently checks an AI agent's work in a local git repository by inspecting what actually changed, running only the relevant checks, and cross-checking the agent's claims into an evidence-labelled report.
start_task — record a baseline (HEAD + fingerprints of files already dirty) before work begins, so later verification attributes only the task's own changes.
inspect_task_state — read-only snapshot of files changed since the baseline, impact categories, risk flags and which checks would run; runs nothing.
run_relevant_checks — run just the selected checks (syntax, lint, typecheck, targeted tests, build when deps/config changed, Playwright for UI);
dry_runonly lists them.verify_task — full pipeline: inspect, run checks, cross-check supplied claims, return a verdict, evidence labels and a ready-to-paste next prompt.
summarize_handoff — re-show the last report without re-running checks, marked stale if the repo changed since.
find_repos — find git repos on the machine by name or path, so a project can be named instead of given an absolute path.
open_dashboard — list all local projects with branch, uncommitted files and last verdict, with Verify/Summary buttons where the client supports it.
check_setup — diagnose git, Python, node/npm, go, poetry, conda, the repo's chosen interpreter and missing test deps, with exact fixes.
Every finding is labelled VERIFIED, CLAIMED, INFERRED, NOT TESTED or BLOCKED; failed, timed-out, blocked or empty checks are never reported as passes.
Output as markdown or full JSON (
format), optionalclaims/notesinput, read-only git only (never commits, pushes, resets or installs), secrets redacted.
Reads local git repositories to detect changed files, record baselines, and verify agent work without modifying the repository.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Task Handoff Verifier verify the work in ~/code/shop. claims: dark mode added, all tests pass"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Task Handoff Verifier (MCP)
Independently check an AI agent's work before you trust it. Task Handoff looks at what actually changed in a local git repository, runs only the checks that matter for those changes, cross-checks what the agent claimed, and gives you a short report you can read in under a minute.
Every statement in the report carries one label:
Label | Meaning |
VERIFIED | Observed directly: git state, or a check that ran and passed or failed |
CLAIMED | Said by the agent, not independently checked |
INFERRED | Follows from verified facts by a stated rule |
NOT TESTED | Relevant, but nothing exercised it |
BLOCKED | A check was needed but could not run (missing tool, missing deps, timeout) |
A failed, timed-out, blocked or empty ("no tests collected") check is never reported as a pass.
Example report (real output from a demo repo, path shortened):
## Cap discounts at 50% - FAILED
_~/code/demo-shop · baseline 2026-09-27T22:57:08+0530 @ dc8811b592e9_
**Changes** (1 files, +2/-1) [VERIFIED]
- `shop/pricing.py` modified +2/-1 (backend)
**Checks**
- PASS `python-syntax` - exit code 0 · why: 1 Python file(s) changed (read-only parse)
- FAIL `pytest` - 1 failed, 1 passed in 0.01s (0.1s) · why: tests mapped to changed files (1 test file(s))
> > assert apply_discount(100, 10) == 90
> E assert 100 == 90
> tests/test_pricing.py:5: AssertionError
> FAILED tests/test_pricing.py::test_ten_percent - assert 100 == 90
> 1 failed, 1 passed in 0.01s
**Evidence**
- [NOT TESTED] No passing test exercised: shop/pricing.py
- [CLAIMED] Capped discounts at 50% in pricing.py; all tests pass
- [INFERRED] 'pricing.py' from the claim was modified (shop/pricing.py).
- [INFERRED] Claim of passing tests is not supported by any test run here.
**Next prompt:** Fix the failing check(s): pytest. Run `~/code/demo-shop/.venv/bin/python -m pytest -q
--no-header -p no:cacheprovider tests/test_pricing.py` to reproduce - key output: ... assert 100 == 90 ...
Add or run tests covering shop/pricing.py. Then call verify_task again.Quick start for Mac (2 minutes, no terminal)
Download: task-handoff.mcpb (always the latest version).
Double-click it. Claude Desktop opens an install dialog. Click Install. If macOS or Claude warns that the extension is from an unverified developer, that's expected for extensions shared outside Anthropic's directory. The same file works on Windows and Linux.
Talk to Claude in a new chat. You don't need to know any paths:
"Check my task-handoff setup." confirms everything is ready and says exactly what to fix if not.
"Find my shop project and start a task-handoff baseline for 'add dark mode'."
(after the work is done) "Verify the work in my shop project. Claims: dark mode toggle added in settings.tsx, all tests pass."
Requirements: Claude Desktop on macOS with Apple's Command Line Tools, which you already have if git
works. If not, check_setup tells you to run xcode-select --install.
The first time Claude looks in Documents, Desktop or Downloads, macOS may ask whether Claude can
access that folder. Allow it if your projects live there.
Only works in the Claude Desktop app (it runs on your computer and checks your local code). It can't be used from claude.ai in a browser or the mobile apps.
Related MCP server: did-it
Requirements
macOS, Linux or Windows
gitand Python 3.9+ on PATH (python3; on Windowspython). On macOS both come with the Xcode Command Line Tools; on Windows install Git for Windows and Python from python.org (tick Add python.exe to PATH).Nothing else. The server has no third-party dependencies.
Why a desktop extension and not a remote "custom connector"? Custom connectors (Settings → Connectors → Add custom connector) are servers on the internet that Claude reaches by URL. This tool must read your local repositories, including uncommitted work, and run your local tests. A remote server can't see those, so it ships as a local extension for Claude Desktop and a local MCP server for Claude Code.
Install
Option A: Claude Desktop (one click)
Download task-handoff.mcpb (always the latest release).
Double-click the file. Claude Desktop opens an install dialog. Alternatively, go to Settings → Extensions, then Advanced settings → Install Extension… and pick the file.
Click Install.
Optional: in the extension's settings, set Allowed directories (for example
~/code). The tools then refuse any repository outside those folders. Leave it empty to allow all.Make sure the extension is enabled. In a chat, open the tools menu (the slider icon under the message box) and check that Task Handoff Verifier is toggled on.
Option B: Claude Code
git clone https://github.com/Harmantaj/claude-task-handoff-mcp ~/.local/share/claude-task-handoff-mcpclaude mcp add --scope user task-handoff -- python3 ~/.local/share/claude-task-handoff-mcp/run_server.pyCheck it's connected:
claude mcp get task-handoffTo restrict it to certain folders, append them as arguments, for example
... run_server.py ~/code ~/work.
Option C: any other MCP client
Run python3 /path/to/run_server.py [ALLOWED_DIR ...] as a stdio MCP server.
Alternatively, pip install git+https://github.com/Harmantaj/claude-task-handoff-mcp provides a
task-handoff-mcp command.
How to use it
Give the repository's absolute path, or just name the project and Claude will find it with find_repos.
1. Before the agent starts work, ask:
Use task-handoff
start_taskon/Users/me/code/shopwith task "Cap discounts at 50%".
This records a baseline (current commit plus a fingerprint of files you already had uncommitted), so
your own in-progress edits aren't blamed on the agent. The baseline is stored inside .git/ and never
appears as a change.
2. Let the agent do the work (in the same chat or anywhere else).
3. Verify:
Use task-handoff
verify_taskon/Users/me/code/shopwith claims ["Capped discounts at 50% in pricing.py", "All tests pass"].
Claude gets the report and should relay the verdict honestly. The Next prompt line is a ready-to-paste instruction for the agent's next round, such as fixing the failing test or adding the missing coverage.
Tip for Claude Code: add this to your project's CLAUDE.md so it happens automatically:
Before changing code, call task-handoff start_task for this repo. When done, call verify_task
with your claims and report its verdict verbatim. Do not claim success if it is not VERIFIED.Buttons and dashboard in the Claude app
One-click actions. In Claude Desktop, click + under the message box, then choose Task Handoff Verifier:
Menu item | What it does |
Verify my latest work | Checks the latest changes in a project (optionally named) and shows the report |
Show handoff summary | Shows the last report without re-running checks |
Projects dashboard | Lists all your projects with their last result |
Start a task | Records a baseline before new work |
Check setup | Makes sure git, Python and your project tools are ready |
In Claude Code the same items are slash commands, such as /mcp__task-handoff__verify-work.
Interactive report card. In apps that support interactive tool results (MCP Apps), verification results appear as a card instead of plain text. It shows:
the verdict as a coloured tag
an evidence bar splitting the findings into verified, failed, claimed, inferred, not tested and blocked
each check, with failure output expanded
the changed files
the suggested next step
It has three buttons: Ask Claude to fix (sends the next step to the chat), Re-run checks and Copy next step.
Projects dashboard. Ask "open my projects dashboard" or use the menu item. You get every repo with its branch, uncommitted files and last verdict, plus Summary and Verify buttons on each row. Clients without MCP Apps support get the same information as text.
Automatic mode for Claude Code (every repo, no prompting)
Two Claude Code hooks make verification automatic in every git repository you open, including new ones:
Session start: records the baseline, so work you had in progress isn't attributed to Claude.
When Claude finishes a turn that changed code, it runs targeted checks only (no full-suite fallback, 120 s cap per check).
Failed: Claude is sent back once with the failing output to fix it, or to tell you plainly if the failure isn't from its change.
Otherwise: you see a one-line verdict.
Skipped: turns that changed nothing, or only docs.
Each Claude Code session keeps its own baseline, so two sessions in the same repo don't claim each other's work. Old session baselines are pruned automatically.
Add this to ~/.claude/settings.json (merge into any existing hooks). The path should point at
your clone, and run_cli.py needs no install:
{
"hooks": {
"SessionStart": [{ "hooks": [{ "type": "command", "timeout": 30,
"command": "python3 ~/.local/share/claude-task-handoff-mcp/run_cli.py hook session-start" }] }],
"Stop": [{ "hooks": [{ "type": "command", "timeout": 600,
"command": "python3 ~/.local/share/claude-task-handoff-mcp/run_cli.py hook stop" }] }]
}
}Optionally, add this rule to ~/.claude/CLAUDE.md: "Before claiming a coding task is done, call
task-handoff verify_task with your claims and report its verdict verbatim. If the automatic check
flags a failure your change did not cause, tell the user instead of fixing unrelated code."
To switch it off:
For one repo: put
{"hooks": {"enabled": false}}in its.task-handoff.json.Report only, never send Claude back: use
{"hooks": {"block_on_failure": false}}instead.Everywhere: set
TASK_HANDOFF_HOOKS=0.
Claude Desktop chats have no hooks. There, Claude follows the extension's instructions when you ask it to verify.
Live Handoff pane in Claude Code
claude-mod/handoff-pane/ is a Claude Code mod that opens a Handoff pane beside every session
(the Code tab of the Claude desktop app, or a fullscreen terminal). It is short by default:
What this project is: two plain-English sentences written from the README and CLAUDE.md, cached until those files change.
This session so far: goal, decisions, what changed and the current status. It is regenerated after each finished turn by a fork of the session's own conversation.
Changes and verification: the last saved verdict and its checks, the files changed since the session's baseline, and an Out of date warning when the code changed after the last check. The pane never re-runs checks. It reads them through the read-only
task-handoff pane <repo>command and picks up newverify_taskor Stop-hook results within a few seconds.
More detail expands every section into a full explanation:
the project's parts and how it is tested
the session's history, decisions and reasons, and the open questions
every check, with its evidence labels, risks and suggested next step
the code diff
The mod needs the automatic-mode hooks above, because it finds the task-handoff command through
your Stop hook. It also needs function hooks, enabled with "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1"
under env in ~/.claude/settings.json. To load it in every session, add the folder there too:
{ "env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1",
"CLAUDE_CODE_PLUGIN_DIRS": "~/.local/share/claude-task-handoff-mcp/claude-mod/handoff-pane" } }Type /handoff to reopen the pane after closing it. The session summary is one extra model request
per turn, mostly served from the prompt cache. The project summary uses Haiku once per README change.
Tools
Tool | Runs checks? | What it does |
| no | Record the baseline. Replaces any previous one. |
| no | Show changed files, categories, risk flags and the checks that would run |
| yes | Run just the selected checks |
| yes | Full verification plus claim cross-checking and the handoff report |
| no | Re-show the last report without re-running; marks it |
| no | Find git repos on this computer (allowed directories or home folder), most recently active first, so people can name a project instead of giving a path |
| no | All local projects with branch, uncommitted files and last verdict (interactive dashboard where supported) |
| no | Diagnose git, Python, node/npm, go, poetry, conda, plus the repo's interpreter and test dependencies, with exact fixes |
All tools accept format: "json" for the full structured report.
Verdicts
VERIFIED · PARTIALLY VERIFIED (some evidence, gaps remain) · NOT VERIFIED · FAILED ·
NO CHANGES · NO EXECUTABLE CHANGES (docs or data only) · NOT VERIFIED (inspection only)
What gets checked
Only checks relevant to the changed files run. The full test suite is never run blindly.
Changed | Checks |
Python (interpreter: in-repo venv → Poetry → pdm → hatch → conda/mamba env → pyenv | read-only syntax parse; pytest on tests matched by name ( |
JS/TS (nearest |
|
Go |
|
Shell scripts |
|
UI files or Playwright specs, when the repo already has |
|
It also flags risky changes: auth code, schema or migrations, dependencies, CI and build config, deleted files, credential-like files, possible secrets in added lines (reported by file and pattern name only, never the value), large diffs, and pre-existing uncommitted work that disappeared during the task.
Configuration (optional)
Put a .task-handoff.json in the repository root:
{
"verification": { "timeout_seconds": 300, "max_parallel_checks": 3, "full_suite_fallback": true },
"playwright": { "enabled": true, "run_all_when_untargeted": false },
"report": { "max_files_listed": 25 }
}Safety
Uses only read-only git commands. It never commits, pushes, resets, deletes or installs anything.
It does run your project's own tests and build scripts. Those can have side effects (network calls, writing files) if your test suite has them. Use Allowed directories to limit which repositories it can touch.
Checks run with stdin closed,
CI=1, a timeout, and a process-group kill on timeout.Secrets are redacted from all output that reaches the model.
Troubleshooting
Symptom | Fix |
| The tool looks for the project's interpreter in this order: an in-repo |
| Run |
| Raise |
| GUI apps get a minimal PATH. The server adds |
Extension shows an error in Claude Desktop | Check the MCP logs in |
Everything is attributed to the task | No baseline was recorded. Call |
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]".venv/bin/python -m pytest -q./scripts/build_mcpb.shThe tests build real temporary git repositories for every scenario in
docs/TESTING_STRATEGY.md and drive the real server over stdio with the
official MCP client. The last command writes dist/task-handoff-<version>.mcpb and needs Node.
Layout: task_handoff/gitstate.py (baseline and attribution), impact.py (categories and risks),
checks.py + playwright_adapter.py (check selection), runner.py (execution),
handoff.py (evidence, verdict, report), protocol.py (stdlib MCP stdio server), server.py (tools).
The original design spec is in docs/.
License
MIT
Available Tools
8 toolscheck_setupARead-only
Diagnose the local setup: git, Python, node/npm, go, poetry, conda and other tools the checks use, plus (given repo_path) which interpreter that repo's checks would use and whether its test deps are installed. Returns exact fixes for anything missing.
Inputs: repo_path.
find_reposARead-only
Find git repositories on this computer (inside the allowed directories, or the home folder), most recently active first. Use it when the user names a project ('my shop app') instead of giving a path.
Inputs: limit, query.
inspect_task_stateARead-only
Read-only snapshot: files changed since the baseline (excluding pre-existing edits), impact categories, risk flags, and which checks would be selected. Runs nothing.
Inputs: repo_path (required), format.
open_dashboardBRead-only
Show all local git projects (allowed directories or home folder) with branch, uncommitted changes and the last verification verdict, as an interactive dashboard with Verify and Summary buttons.
Inputs: limit.
run_relevant_checksA
Select the cheapest meaningful checks for the changed files (syntax, lint, typecheck, targeted tests, build when deps/config changed, Playwright for UI changes if configured) and run them. Never installs anything. dry_run=true only lists the selection.
Inputs: repo_path (required), format, dry_run.
start_taskA
Record a baseline before starting work: HEAD plus fingerprints of files that are already dirty, so later verification attributes only the task's own changes. Overwrites any previous baseline for the repository. Writes only inside the .git directory.
Inputs: task (required), repo_path (required).
summarize_handoffARead-only
Return the last verification report without re-running checks. If the repository changed since then, the report is marked stale and a fresh inspection-only report is returned.
Inputs: repo_path (required), format.
verify_taskA
Full pipeline: inspect changes, run relevant checks, cross-check the agent's claims, and return a compact evidence-labelled handoff with a verdict and a suggested next prompt.
Inputs: repo_path (required), notes, claims, format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools target distinct phases (setup, discovery, baseline, inspection, verification reporting), but verify_task's full pipeline overlaps with the combined inspect_task_state + run_relevant_checks, and summarize_handoff vs inspect_task_state vs verify_task all touch reporting similarly. Descriptions do distinguish them, so an agent can usually choose correctly.
All eight tools use consistent snake_case with a leading verb (open_, check_, find_, inspect_, run_, start_, summarize_, verify_). No camelCase or style mixing, and the pattern is predictable.
Eight tools is well-scoped for a task-handoff verification workflow, with each tool earning its place across discovery, setup, baseline, inspection, checks, and reporting.
The surface covers the full lifecycle: discovery (find_repos), environment (check_setup), baseline (start_task), inspection (inspect_task_state), checks (run_relevant_checks), and verification/reporting (verify_task, summarize_handoff, open_dashboard). Minor gaps like explicit baseline reset or history beyond the last report are workable given start_task overwrites baselines.
Maintenance
Related MCP Connectors
Tests a model or prompt change on your own evals and says if it holds, before your agent ships it.
Git-native policy layer for AI agents: check_action verdicts against rules approved via PR.
Lets coding agents check their own code for leaked secrets, risky dependencies and AI-code mistakes
Verification for AI coding agents: runs the tests and checks a change affects, with a receipt.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables verification of AI coding agent self-reports against git diff truth and a deterministic gate, producing pass/regenerate/reject directives to ensure claimed work matches actual changes.6AGPL 3.0
- AlicenseAqualityCmaintenanceAudits coding agents' claimed actions against the actual Git working tree, blocking completion if any claimed changes are unverified.2MIT
- AlicenseAqualityCmaintenanceEnables AI coding agents to submit work for external review before declaring a task done, receiving evidence-backed fix lists and verdicts based on git-measured changes and calibrated quality scoring.3MIT
- AlicenseBqualityBmaintenanceChecks AI agents' claims against primary evidence, with no model; observes only what you grant.872 PyPIApache 2.0