Repository navigation
What your agent reads can't decide what it does. cleimesh guard closes a gap a reader found: a tainted session could write a Makefile and then run make.
curl -fsSL https://github.com/cleitonaugusto/cleimesh/releases/latest/download/install.sh | sh
cleimesh guard installFixed
- A tainted session may edit code or run it, not both. Before, once a coding agent had read outside content, it could still write any file in the project and still run
make,cargo test,npm runorpytestfrom the allowed list. An injected issue could ask for a build target that sends.envout, then for the build, and each step passed on its own. Now, once a tainted session has written a file, list entries that run project code (builds, tests,make, and any you added) are refused until a person clears the session.git diff,git status,git addand the readers still run; a person commits after review.cleimesh guard statusshows which sessions wrote since they were tainted. Thanks to reidmarlow on dev.to. - git flags that escape the list are refused once tainted:
--output(writes a file anywhere),--ext-diff,--no-index(reads outside the repository),--exec-path. - More ways around the list, found reviewing the guard against itself, closed:
- flag values are checked as paths:
grep --file=~/.ssh/id_rsa,less --log-file=~/.bashrc; - symlinks are followed: a link in a cloned repository to
~/.ssh/id_rsacan't be read, and one to~/.bashrccan't be written; - unquoted globs are refused:
cat .e*is.envonce the shell expands it; - a recursive search (
grep -r,rg, the Grep tool) is refused over a directory with a secret under it; - a listed command given a file outside the project is refused:
make -f /tmp/x.mk,cargo test --manifest-path ...; - after a write,
git commit(hooks can live in the project throughcore.hooksPath) andcargo fmt(a project's.cargo/config.tomlcan alias it) are refused too.
- flag values are checked as paths:
New
- A receipt names the rule that allowed a call. An allowed guard decision carries
rule("allowed when tainted: cargo test","reader inside the project: cat"), so a surprising pass can be inspected like a refusal. A refusal after a write names that write's receipt (authority.edited_by). - Withholding a changed tool is a receipt. When a wrapped MCP server lists a tool whose definition no longer matches the one pinned at
mcp add, the tool is not offered and a signedcleimesh.tool_withheldreceipt records the approved and the current definition digests. It used to be only a line on stderr.audit viewand the OCSF export show it as blocked. - draft-sahu -01 conformance. The receipt verifier checks step_id repetition, the signed
seqprofile and the draft's head assertion, and agrees with all 18 vectors of the external suite (governex/agent-action-receipts-vectors): 16 log, 2 head. CleiMesh verifiesseqand the head assertion but does not emit them yet. - Guard: Codex sessions, and AgentHook
PreToolUseevents answered on stdout.
Dependencies
curve25519-dalek5.1.0 (RUSTSEC-2026-0620, AVX-512 backend). The 4.1.3 copy undered25519-dalekselects that backend only on nightly; releases are built on stable.
Verify a download
Each binary has a .sha256 and signed build provenance:
gh attestation verify cleimesh-x86_64-unknown-linux-musl --repo cleitonaugusto/cleimesh