Yana AI — Sovereign Safety OS
Yana AI is an agent operating system layered on top of Claude Code (and other AI coding agents). It intercepts dangerous commands, enforces safety rules, manages persistent memory, and provides 2,025+ reusable skills.
What Yana AI does
When loaded, Yana AI automatically:
- Blocks 40+ attack vectors via 60 pre/post hooks —
rm -rf, force push, pipe-to-shell, path traversal, supply chain attacks, and more
- Enforces rules across all agent actions using a 9-layer middleware pipeline (injection scan → blast radius → permission check → egress → sanitize → PII scrub → size cap → audit log)
- Persists memory in a 2-tier system: L1 Atomic (permanent, hash-chained) and L2 session facts
- Provides 2,035 skills covering frontend, backend, IaC, AI/LLM, security, multi-agent, K8s, WebAssembly, and more
Install
# Install via skills CLI
npx skills add yanacuti1121/yana-ai
# Or install directly into .claude/
curl -L https://github.com/yanacuti1121/yana-ai/releases/latest/download/yana-ai-latest.zip -o yana-ai.zip
unzip yana-ai.zip -d .claude/
Quick commands
| Command |
What it does |
/status |
Show hooks, memory, and gate status |
/audit |
Run full security audit on repo |
/quick-commit |
Safe commit with gate checks |
/session-wrap |
Persist session state to L1 memory |
/smart-fix |
Auto-fix with feedback loop |
/code-review |
Multi-agent code review |
Safety hooks overview
Yana AI hooks fire on every tool call:
PreToolUse:
- safe-run.sh — blocks 40+ dangerous command patterns
- scope-guard.sh — enforces declared file scope
- risk-scorer.sh — rates action risk 0–100
- token-budget-guard — prevents runaway token usage
PostToolUse:
- session-checkpoint — saves state every 5 tool calls
- audit-logger — appends to Merkle hash-chain log
Stop:
- truth-gate.sh — warns on completion claims without evidence
Memory system
# Save a fact to L1 (persists across sessions)
bash core/scripts/add-fact.sh "tag" "fact content" "high"
# Search L1 memory
bash core/scripts/search-facts.sh "tag"
# View session memory
bash core/scripts/list-session-facts.sh
Hard-blocked commands
Yana AI will always block these regardless of context:
rm -rf git push --force eval "$user_input"
curl ... | bash DROP TABLE chmod 777 core/
Cross-engine enforcement
Yana AI enforces safety on all AI coding agents via a shared safe-run.sh proxy:
- Claude Code — native hooks
- Codex —
CODEX_SHELL_EXEC_HOOK → safe-run.sh
- Cursor —
.cursor/rules/ enforcement
- Aider —
--before-exec hook
1---2name: yana-ai3version: "0.40.0"4description: "Sovereign-grade safety OS for AI coding agents. 66 hooks, 2,035 skills, L1 memory, circuit breakers, and cross-engine enforcement — blocks rm -rf, force push, pipe-to-shell, and 40+ attack vectors before they reach your repo."5argument-hint: "yana-ai status | yana-ai audit | yana-ai hooks | yana-ai memory"6allowed-tools: Bash, Read, Write7homepage: https://yanacuti1121.github.io/yana-ai/8repository: https://github.com/yanacuti1121/yana-ai9author: yanacuti112110license: Apache-2.011user-invocable: true12metadata:13 source: https://skillmd.com/skills/yanacuti1121/yana-ai14 openclaw:15 emoji: "🛡️"16 requires:17 env: []18 optionalEnv: []19 bins:20 - bash21 - python322 - jq23 - openssl24 homepage: https://yanacuti1121.github.io/yana-ai/25 tags:26 - safety27 - hooks28 - memory29 - agents30 - gates31 - guards32 - circuit-breaker33 - sovereign34 - claude-code35 - codex36 - cursor37 - audit38 - ai-agent39 - agent-os40---4142# Yana AI — Sovereign Safety OS4344Yana AI is an agent operating system layered on top of Claude Code (and other AI coding agents). It intercepts dangerous commands, enforces safety rules, manages persistent memory, and provides 2,025+ reusable skills.4546## What Yana AI does4748When loaded, Yana AI automatically:4950- **Blocks 40+ attack vectors** via 60 pre/post hooks — `rm -rf`, force push, pipe-to-shell, path traversal, supply chain attacks, and more51- **Enforces rules** across all agent actions using a 9-layer middleware pipeline (injection scan → blast radius → permission check → egress → sanitize → PII scrub → size cap → audit log)52- **Persists memory** in a 2-tier system: L1 Atomic (permanent, hash-chained) and L2 session facts53- **Provides 2,035 skills** covering frontend, backend, IaC, AI/LLM, security, multi-agent, K8s, WebAssembly, and more5455## Install5657```bash58# Install via skills CLI59npx skills add yanacuti1121/yana-ai6061# Or install directly into .claude/62curl -L https://github.com/yanacuti1121/yana-ai/releases/latest/download/yana-ai-latest.zip -o yana-ai.zip63unzip yana-ai.zip -d .claude/64```6566## Quick commands6768| Command | What it does |69|---------|-------------|70| `/status` | Show hooks, memory, and gate status |71| `/audit` | Run full security audit on repo |72| `/quick-commit` | Safe commit with gate checks |73| `/session-wrap` | Persist session state to L1 memory |74| `/smart-fix` | Auto-fix with feedback loop |75| `/code-review` | Multi-agent code review |7677## Safety hooks overview7879Yana AI hooks fire on every tool call:8081```82PreToolUse:83 - safe-run.sh — blocks 40+ dangerous command patterns84 - scope-guard.sh — enforces declared file scope85 - risk-scorer.sh — rates action risk 0–10086 - token-budget-guard — prevents runaway token usage8788PostToolUse:89 - session-checkpoint — saves state every 5 tool calls90 - audit-logger — appends to Merkle hash-chain log9192Stop:93 - truth-gate.sh — warns on completion claims without evidence94```9596## Memory system9798```bash99# Save a fact to L1 (persists across sessions)100bash core/scripts/add-fact.sh "tag" "fact content" "high"101102# Search L1 memory103bash core/scripts/search-facts.sh "tag"104105# View session memory106bash core/scripts/list-session-facts.sh107```108109## Hard-blocked commands110111Yana AI will always block these regardless of context:112113```114rm -rf git push --force eval "$user_input"115curl ... | bash DROP TABLE chmod 777 core/116```117118## Cross-engine enforcement119120Yana AI enforces safety on all AI coding agents via a shared `safe-run.sh` proxy:121122- **Claude Code** — native hooks123- **Codex** — `CODEX_SHELL_EXEC_HOOK` → safe-run.sh124- **Cursor** — `.cursor/rules/` enforcement125- **Aider** — `--before-exec` hook