Skip to content
github-actions[bot] edited this page Nov 18, 2026 · 7 revisions

tripcord

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.

What it is

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

Install

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@main

or build a checkout:

git clone https://github.com/vgmartinez/tripcord.git
cd tripcord
CGO_ENABLED=0 go build -trimpath -o tripcord ./cmd/tripcord

In GitHub Actions, use vgmartinez/tripcord@v0.1.0, or call the reusable workflow pinned by commit (GitHub Action). Both build tripcord from source.

60-second quickstart

  1. Scan a repository. Exit 1 means a finding at or above high:

    tripcord scan .
  2. Write a repository policy (.tripcord/policy.yaml) with tripcord init:

    tripcord init .

    init --embed also wires each harness's hooks to a pinned, checksum-verified bootstrap that runs tripcord hook. --embed is 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.

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

Pages

Clone this wiki locally