Trustline — AI skill for Claude Code
Trusted baseline + auto-rollback for AI agent config files (.claude/, AGENTS.md, .mcp.json).
How to install Trustline
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open LuckTerence/trustline and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Trustline does
Trusted baseline + auto-rollback for AI agent config files (.claude/, AGENTS.md, .mcp.json). Detects prompt-injection / supply-chain tampering and rolls back to a trusted snapshot via Claude Code hooks.
Alternatives in AI
- Prismor — Self-hosted runtime control plane for AI agents 334 ★
- MuseAI Skills — muse.ai (Muse AI) skills and runtime snapshot: 68 skills, workflow guides, connector manifests 261 ★
- Hazmat — Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback 167 ★
README
Trustline
**Trusted baseline + auto-rollback for AI agent configuration files.**
AI coding agents (Claude Code, Cursor, Codex, ...) load rules from files such as `.claude/`, `AGENTS.md`, `.cursorrules` and `.mcp.json`. Those files are now a supply-chain attack surface: cloning a repository or installing a third-party MCP can silently inject instructions that tell your agent to exfiltrate secrets, tamper with your shell, or hide its own actions.
Existing scanners (medusa, Snyk agent-scan, Cisco mcp-scanner, ...) **detect** such tampering. Trustline is the missing **recovery layer**: it keeps a trusted baseline of your agent configuration files and can roll them back — and, through Claude Code hooks, block suspicious loads *before* they reach the model.
What it does
trustline init— establish a trusted baseline (SHA-256 snapshot) of managed agent files.trustline status— diff the working tree against the baseline (added / modified / deleted).trustline scan— static heuristic scan for prompt-injection / exfiltration / privilege-tampering signals (15 rules in v0.1).trustline rollback [files...]— restore files to the baseline (git HEAD first, then local snapshots; soft rollback keeps.bak).trustline export-sarif— emit scan findings as SARIF for CI / DefectDojo.trustline hook install— wire Claude Code hooks (SessionStart / file-load / PreToolUse) to verify before the agent trusts a rules file.
Install
pip install trustline # or: uv tool install trustline
Quick start
cd ~/some-repo-you-cloned
trustline init # review listed files, press enter -> baseline saved
trustline status # nothing changed yet
trustline scan --sarif # heuristic scan of managed files
# ... after a suspicious change ...
trustline status # shows: MODIFIED .claude/settings.json
trustline scan .claude/settings.json
trustline rollback .claude/settings.json # back to trusted s
Related Skills
Agent Supply Chain Auditor
Zero-dependency auditor for self-hosted AI agents (Claude Code, Codex, Cursor, Hermes, MCP): unpinned skills &
Bekci
The night watchman for your AI agent: offline scanner for skills, MCP servers, hooks and permissions (prompt i
Piton
Piton — The package-lock.json & supply-chain firewall for AI coding agents (split-hash MCP pinning, Claude/Cur
Undo Ticket
Agent skill: before an AI agent runs anything it can't take back, sort it GO/TICKET/BLIND/ONE-WAY, snapshot an
AI Component Vetting
Vets third-party AI tooling components (MCP servers, hooks, agents, plugins, skills) for supply-chain risk, us
China Supply Chain Skills
中国供应链场景 AI 技能包:采购到付款(P2P)+ 订单到收款(O2C)两个技能、14 份参考手册,含价格库/供应商档案/客户信用档案记忆飞轮 China supply-chain AI skills for agen
Related Agents
Code Audit GitHub Workflows
Audits GitHub Actions workflow YAML and composite-action YAML for supply-chain, injection, permission, and sec
Critic Security
Review code for OWASP-style security issues (injection, authn/authz, secrets, supply chain, LLM-specific) in p
Snr Security Auditor
Application security reviewer. Use for a focused security pass over a codebase or a change — secrets, object-l