Skip to main content
Glama

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)

  1. Download: task-handoff.mcpb (always the latest version).

  2. 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.

  3. 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

  • git and Python 3.9+ on PATH (python3; on Windows python). 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)

  1. Download task-handoff.mcpb (always the latest release).

  2. Double-click the file. Claude Desktop opens an install dialog. Alternatively, go to Settings → Extensions, then Advanced settings → Install Extension… and pick the file.

  3. Click Install.

  4. 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.

  5. 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-mcp
claude mcp add --scope user task-handoff -- python3 ~/.local/share/claude-task-handoff-mcp/run_server.py

Check it's connected:

claude mcp get task-handoff

To 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_task on /Users/me/code/shop with 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_task on /Users/me/code/shop with 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 new verify_task or 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

start_task(repo_path, task)

no

Record the baseline. Replaces any previous one.

inspect_task_state(repo_path)

no

Show changed files, categories, risk flags and the checks that would run

run_relevant_checks(repo_path, dry_run=false)

yes

Run just the selected checks

verify_task(repo_path, claims=[], notes="")

yes

Full verification plus claim cross-checking and the handoff report

summarize_handoff(repo_path)

no

Re-show the last report without re-running; marks it [STALE] if the repo changed since

find_repos(query="")

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

open_dashboard(limit=30)

no

All local projects with branch, uncommitted files and last verdict (interactive dashboard where supported)

check_setup(repo_path="")

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 .python-version → python3)

read-only syntax parse; pytest on tests matched by name (foo.py to test_foo.py). Full suite only if dependencies or conftest.py changed, or nothing matched (labelled as a fallback). ruff and mypy if configured.

JS/TS (nearest package.json)

typecheck script or tsc --noEmit, lint, vitest related / jest --findRelatedTests when possible, else test; build only when dependencies or config changed

Go

go vet and go test on the changed packages

Shell scripts

bash -n (parse only), plus shellcheck if installed

UI files or Playwright specs, when the repo already has playwright.config.*

playwright test on the changed specs and the specs whose names match changed components (specs are never handed to vitest/jest; a unit runner that finds no tests is NOT TESTED, not a pass)

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

pytest is not installed for … (python3 on PATH) (BLOCKED)

The tool looks for the project's interpreter in this order: an in-repo .venv//venv/; the Poetry env (via poetry env info, or Poetry's cache dir if poetry isn't on PATH; honours POETRY_VIRTUALENVS_PATH/POETRY_CACHE_DIR); the conda env named in environment.yml (via prefix:, ~/.conda/environments.txt, or the usual miniconda/anaconda/miniforge/mambaforge/micromamba envs/ dirs); the pdm interpreter in .pdm-python; the hatch env (via hatch env find); the conda/mamba env named in environment.yml (via prefix:, ~/.conda/environments.txt, MAMBA_ROOT_PREFIX, or the usual miniconda/anaconda/miniforge/mambaforge/micromamba envs/ dirs); the pyenv version in .python-version; then python3 on PATH. The check's why shows which one was used. Create the env (e.g. poetry install, conda env create) with your test dependencies.

dependencies not installed (no node_modules …)

Run npm install (or pnpm/yarn) yourself. The tool never installs.

timed out after 120s

Raise verification.timeout_seconds in .task-handoff.json

npm is not installed in Claude Desktop but it works in a terminal

GUI apps get a minimal PATH. The server adds /opt/homebrew/bin, /usr/local/bin, ~/.local/bin, ~/.cargo/bin, ~/go/bin, ~/.bun/bin and ~/.volta/bin; tools installed elsewhere (e.g. via nvm) may not be found.

Extension shows an error in Claude Desktop

Check the MCP logs in ~/Library/Logs/Claude/ (mcp.log and any mcp-server-*.log). A healthy start logs [task-handoff] v0.x.y starting; python 3.x. The most common cause is no python3 on the system: install the Xcode Command Line Tools (xcode-select --install).

Everything is attributed to the task

No baseline was recorded. Call start_task before the work begins.


Development

python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest -q
./scripts/build_mcpb.sh

The 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 tools
check_setupA
Read-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_reposA
Read-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_stateA
Read-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_dashboardB
Read-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_handoffA
Read-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

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers