YAMTAM ENGINE Guide

Personal Agent OS for Claude Code — security gates, 2,353 skills, Rust runtime.

Installation

Three components, install what you need:

# Claude Code plugin (hooks, skills, agents wired automatically)
npm install yamtam-engine
npx yamtam-install        # wire hooks into .claude/

# Rust runtime (scan, hunt, watch, ci, map…)
cargo install yamtam-rt

# Python CLI (legacy commands)
pip install yamtam-engine
Tip: Run npx yamtam-install once after npm install — it wires the PreToolUse / PostToolUse hooks into your .claude/settings.json.

First Scan

Scan your project for agent security risks in 30 seconds:

cd your-project
yamtam-rt scan .

# JSON output
yamtam-rt scan . --json

# Only show critical/high findings
yamtam-rt scan . --fail-on high

# Scan only changed files since main
yamtam-rt scan . --diff origin/main

Scanner checks: hardcoded secrets, SSRF vectors, path traversal, supply chain, prompt injection, tool poisoning, and 40+ other categories.

Gate System

YAMTAM intercepts every Claude tool call through a layered gate pipeline:

GateLayerBlocks
L0Audit chainLog tampering, replay attacks
L1Anti-evasionbase64 decode→exec, pipe-to-shell, eval
L2SanitizeSubshell injection, LD_PRELOAD, env hijack
L2.5Overlay sandboxWrite to core/ without signature
L3Runtime isolationDocker/nsjail sandbox escape
L4Supply chainUnvetted package installs
L5UI qualityArbitrary hex colors, missing dark mode
Note: Gates run automatically when hooks are wired. No config needed beyond npx yamtam-install.

yamtam-rt scan

Full security audit of your .claude/ setup and source files.

yamtam-rt scan .                    # full scan
yamtam-rt scan . --only secrets     # secrets only
yamtam-rt scan . --markdown out.md  # write report
yamtam-rt scan . --sarif out.sarif  # SARIF for GitHub

yamtam-rt hunt

Active scanner — goes deeper into code vulnerabilities and supply chain.

yamtam-rt hunt run .         # full hunt
yamtam-rt hunt secrets .     # secrets only
yamtam-rt hunt deps .        # dependency audit

yamtam-rt ci

CI/CD workflow security check — unpinned actions, missing permissions, secret exposure.

yamtam-rt ci check .github/workflows/
yamtam-rt ci check .github/workflows/deploy.yml

yamtam-rt watch

Live file watcher — prints changes to skills, agents, rules as they happen.

yamtam-rt watch start                              # watch default dirs
yamtam-rt watch start --dirs core/skills,src       # custom dirs
yamtam-rt watch start --interval 5                 # poll every 5s

yamtam-rt init

Auto-setup YAMTAM in any project — creates hooks, config, and settings skeleton in one command.

yamtam-rt init run .          # setup current directory
yamtam-rt init run ~/my-app   # setup another project
yamtam-rt init dry .          # preview without writing files

Creates: .claude/settings.json, .claude/hooks/pre-tool-use.sh, .yamtam/config.toml. Skips files that already exist.

All Commands

CommandDescription
initAuto-setup YAMTAM in any project — hooks, config, settings
scanSecurity audit of agent setup + source
huntActive code vulnerability scanner
ciCI/CD workflow health check
mapAgent blast radius — what AI can reach
fixAuto-apply safe fixes for known finding IDs
scoreAudit score with deduction breakdown
doctorEnvironment and dependency health
watchLive file monitor for skills/agents/rules
graphKnowledge graph — build/search/diff
vaultVietnamese-first knowledge vault
busAgent message bus — emit/read/reply
memoryL3 shared memory across sessions
taskTask lifecycle with evidence
costToken usage and spend tracking

Using Skills

Skills are slash commands for Claude Code. With yamtam-engine installed, 2,353 skills are available.

# In Claude Code chat:
/security-review       # OWASP review of current diff
/tdd-cycle             # Red → Green → Refactor loop
/debug                 # Systematic debugging
/code-review           # Code quality review
/wrap-up               # End-of-session summary

Browse all skills at skills.html or search at search.html.

Agent Teams

93 specialized agents auto-routed by /agent-router. Key agents:

AgentWhen used
plannerBefore any 3+ file feature
code-reviewerAfter writing code
security-reviewerBefore merge on sensitive code
tdd-guideTest-driven development workflow
database-reviewerSchema changes, migrations
build-error-resolverWhen build fails