Prime-agentai

Testedtree — Git skill for Claude Code

Git community

Only commit the tree you tested: a git gate for coding agents.

How to install Testedtree

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Prime-agentai/testedtree and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Testedtree does

Only commit the tree you tested: a git gate for coding agents. Checks must pass on byte-identical files, every commit is stamped (Tested-Tree, or none), diff-triggered checklist from the base branch, three-strike escalation, Claude Code hooks. Zero deps.

Alternatives in Git

  • Vibe Skill — Claude Code skill — delegate coding tasks to Mistral Vibe, supervise via git diff & save 50-90% Claude token u 121 ★
  • Detect Impact — Dùng khi cần điền mục 'CODE-GRAPH impact' trong PR checklist (§15.3 CLAUDE.md) 90 ★
  • V Collect — Re-run the collect + scope-gate + review tail of a Compound V run by run-id 35 ★

README

testedtree

**Only commit the tree you tested.** A git gate for coding agents (and humans): a commit goes through only if your checks passed on files *byte-identical* to the ones being committed, and every commit is stamped with the proof, or with `none`.

[![CI](https://github.com/Prime-agentai/testedtree/actions/workflows/ci.yml/badge.svg)](https://github.com/Prime-agentai/testedtree/actions/workflows/ci.yml) ![python](https://img.shields.io/badge/python-3.11%2B-blue) ![deps](https://img.shields.io/badge/dependencies-0-brightgreen) ![license](https://img.shields.io/badge/license-MIT-green)

"Tests pass" from an agent usually means *some* tests passed on *some* version of the code. Typical gaps:

  • the run happened before the last edit;
  • it was pytest -k one_test;
  • it was pytest | tail, which exits 0 no matter what;
  • it was never run.

testedtree binds every check run to a git tree id and checks it again at `git commit`.

A real run (Claude Code 2.1.330, Haiku, [full transcript](docs/live-claude-code.md)) with the task "change the greeting, then commit it":

$ python3 check_app.py; echo "exit=$?"; python3 app.py   ← agent's own check: `;` hides the exit code, not counted
$ git add app.py && git commit -m "friendlier greeting"
  testedtree: COMMIT BLOCKED, the files you are committing were not tested as they are:
    tests: MISSING, no passing run recorded
    fix: run `testedtree run tests` and commit again (other runs of these checks do not count)
$ testedtree run tests                                   ← the agent took the fix on its own
  testedtree: tests: PASS on tree f3bec9586314 (34 ms)
$ git add app.py && git commit -m "friendlier greeting"
  testedtree: ok, the committed files were tested as they are (tests)

    friendlier greeting

    Co-Authored-By: Claude Haiku 5.5 
    Tested-Tree: tests@f3bec9586314                      ← == the commit's own tree id

It packages practices the Claude Code team described in