Repository navigation
Home
tripcord catches malicious coding-agent configuration before it runs: hooks, MCP servers, skills, and setup commands in Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, and more.
The project wiki is
generated from the repository's
docs/
directory by cmd/wikigen and pushed by the wiki-sync workflow when
main changes; nobody edits the wiki by hand. To change a page, edit the
matching file under docs/ and open a pull request.
Opening a repository in a coding agent can run code: a SessionStart hook,
a folder-open task, an MCP server launched through a shell, or a setup
step that pipes curl to sh. tripcord reads that configuration statically,
without running the agent, a hook, or a network call, and reports what
would run. It works on a checkout (scan), on a repository you
have not cloned yet (preopen), on a pull request in CI
(pr-context and the GitHub Action),
and before a commit (pre-commit).
brew install vgmartinez/tap/tripcord # macOS and Linux
npx tripcord scan . # npm
uvx tripcord scan . # PyPI (or: pip install tripcord)All three install the release binary and check it against the
release's SHA256SUMS (Installation). You can also
download a release archive from
Releases and verify
it yourself, or install from source with Go 1.27.3 or newer:
go install github.com/vgmartinez/tripcord/cmd/tripcord@mainor build a checkout:
git clone https://github.com/vgmartinez/tripcord.git
cd tripcord
CGO_ENABLED=0 go build -trimpath -o tripcord ./cmd/tripcordIn GitHub Actions, use vgmartinez/tripcord@v0.1.0, or call the
reusable workflow pinned by commit (GitHub Action).
Both build tripcord from source.
-
Scan a repository. Exit 1 means a finding at or above
high:tripcord scan . -
Write a repository policy (
.tripcord/policy.yaml) withtripcord init:tripcord init .init --embedalso wires each harness's hooks to a pinned, checksum-verified bootstrap that runstripcord hook.--embedis part of v0.1.0. Its limits: bash only, the cache is filled locally, and Windows is scan only (no Windows bootstrap platforms). Read Init before you embed. -
Run it on every pull request with the GitHub Action, or before every commit with the pre-commit hook.
Getting started walks through a scan with real output. Commands lists every command, flag, and exit code.
- Using tripcord: Getting started, Commands, FAQ and troubleshooting.
- Commands:
scan,initandinit --embed,preopen,pr-context, fingerprints, output and sinks, auto-run hook inventory, privacy and redaction. - CI and hooks: GitHub Action, badge, pre-commit.
- Configuration: Policy, Harness adapters, Rules catalog.
- Project: Roadmap, Release notes, Development.
This wiki is generated from docs/ on main by cmd/wikigen. Do not edit it here: change docs/ and open a pull request. Apache-2.0.
Start
Commands
CI and hooks
Configuration
Adapters
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- OpenCode
- Windsurf
- Devin
- Dev Container
- Shared Files
Project