Models propose. Yana decides. Humans stay in charge.
A local control plane between any AI model and real power over your machine.
The runtime, the rules and the audit trail of the Yana ecosystem.
English · Tiếng Việt · 한국어 · 中文
Quick start · How it works · Ecosystem · Under the hood · Limits · Website
Code of conduct · Contributing · Apache-2.0 license · Security policy
45runtime subcommandsin one Rust binary |
66tool-call hooksPre, Post and Stop |
290core filespinned by SHA-256 |
100 agentsspecialist personas |
2,036 skillsworking knowledge,no permissions |
Counts come from the filesystem and are checked in CI by core/scripts/check_counts.py.
Why this exists
An agent that can run commands can also run the wrong one. Skills and prompts make an agent better at its job, but they cannot stop it from doing damage. Yana puts a separate decision step in front of every action, and that step does not depend on the model behaving well.
- A model says what it wants to do. Yana decides whether that is allowed.
- Every decision goes into a hash-chained log, so editing it afterwards is detectable.
- A person can always stop the agent, and some actions cannot happen without one.
Quick start
pip install yana-ai # Python CLI
yana-ai install # add Yana's hooks and rules to your repo
yana-ai doctor . # check that everything is wired
cargo install yana-rt # native runtime, no Python needed
Needs Python 3.11+ (or Rust), Git, and one supported host: Claude Code, Codex, Cursor or Antigravity. All commands are in COMMANDS.md. Yana is not published to npm, see VERSIONING.md.
Prefer an app? Download Yana Studio or the macOS app from the Yana-studio releases or from yana.vutam.link.
How it works
Every model takes the same path: Claude, GPT, Gemini, DeepSeek, or one running on your own machine.
flowchart LR
M["Model<br/>proposes an action"] --> A["Authority<br/>may this agent ask?"]
A --> C["Capability<br/>which exact power?"]
C --> P["Policy<br/>rules first, then a human"]
P -->|allowed| E["Executor<br/>runs only that operation"]
P -->|denied| X["Blocked<br/>with a reason"]
E --> L[("Hash-chained<br/>audit log")]
X --> L
Skills teach an agent how to work. Only a capability can grant permission to act.
The Yana ecosystem
| Yana-AI (you are here) | yana-web | Yana-studio | |
|---|---|---|---|
| What | Runtime yana-rt, governance rules and hooks, the CLI, agents and skills |
The website, and a local web app with chat, missions and a key vault | Desktop apps: the macOS app, Yana Studio and Yana IDE |
| Stack | Rust, Python, shell | Node.js, React | SwiftUI, Electron, Code-OSS |
| Role | Decides | Shows | Shows |
The apps never call a model provider themselves. Studio sends every request through
yana-rt, so a permission check cannot be skipped by switching client.
What is in this repository
| Component | What it does | Status |
|---|---|---|
Runtime yana-rt |
One turn loop and one authority contract for every client and every provider. | |
| Governance | Capability manifests, human approval, hash-chained audit log, core-lock integrity. | |
| Giám Thị | Watcher outside any AI session that halts every later tool call when it finds drift. | |
| Harness adapters | Claude Code, Codex, Cursor and Antigravity. Enforcement strength differs per host. | |
| Knowledge layer | 100 agents, 2,036 skills, commands and rules that teach agents how to work. They grant no permissions. | |
| Yana OS | Local management plane: agent identity, autonomy levels, quotas, health, quarantine. | |
| Yana Wheelbot | Robotics platform on ESP32-S3, in its own repository. |
Live means shipped and in use. In development means real code exists but is not
feature-complete. Experimental means opt-in and not independently verified.
yana-rt has 45 subcommands. Zero Python dependency. This is the source-defined count across feature builds, including feature-gated ones.
core/
├── hooks/ # 66 PreToolUse / PostToolUse / Stop hooks
├── rules/ # 71 rules, most are guidance the agent applies; hooks enforce a subset
├── agents/ # 100 specialist agents
├── skills/ # 2,036 skills
├── commands/ # 170 Claude Code slash commands
└── config/
└── core-lock.json # SHA-256 manifest — 290 core files pinned
Under the hood
Open a section for the details.
Runtime: yana-rt, the Rust engine
A single Rust binary owns the turn loop and the authority check for every client, so Studio, the CLI and MCP do not each reimplement permission logic.
- Providers: anthropic, openai, gemini, groq, deepseek, openrouter, xai, novita, nvidia, minimax, glm, huggingface, 9router, kimi (cloud), and ollama, lmstudio, llamacpp, turbofieldfare, airllm (local). The canonical list is
src/model/catalog.rs; a contract test keeps Studio in sync with it. - Failover: typed provider errors, fallback providers and credential-pool rotation.
- State: SQLite session store with full-text search, per-profile state, crash recovery, and shadow-git checkpoints with rollback.
- Capability tools: file read/patch, command execution under validation, MCP client over stdio,
web.searchthrough a checked HTTPS layer, and a read-only LSP client. - Features: the default build is
cliplusmcp(the MCP server and client).lsp,pty-bridgeand the Discord remote adapter are optional and off by default.
Remaining runtime work is tracked in CURRENT-MILESTONE.md: unifying every client on one capability executor, and testing local-model tool calling against a real local model rather than a mock.
Performance: measured numbers and their limits
Measured 2026-11-16 on an Apple M4 MacBook Air (16 GB RAM, macOS 27.3), yana-rt 1.5.4
default release build at the release commit c8c29fb2, against this repository. Rust and
Python run interleaved after one warm-up, and each figure is a median (runs in the table).
The Python column is the script that each Rust command replaces. The last column is the
2026-11-15 run of 1.5.2 with the same method; full history is in BENCHMARK.md
and in the technical report.
| Path | yana-rt 1.5.4 |
Python | Result | Same output? | 1.5.2 (2026-11-15) |
|---|---|---|---|---|---|
| Process startup (60 runs) | 6.17 ms | 4.21 ms | |||
doctor (12) |
152 ms | 209 ms | Rust 1.4x faster | 139 ms, 1.4x | |
ci check (20) |
7.2 ms | 34.1 ms | Rust 4.8x faster | Yes, 6 warnings each | 5.7 ms, 5.4x |
scan core/skills (5) |
0.58 s | 8.60 s | Rust 14.8x faster | Same top finding (SE004); files 1,794 vs 1,825 |
0.56 s, 14.5x |
| Destructive-command guard (40) | 5.91 ms | 5.27 ms | |||
| Token-budget guard (40) | 5.64 ms | not measured |
| Memory and size | yana-rt 1.5.4 |
Python |
|---|---|---|
Peak RSS, scan core/skills |
16.3 MiB | 25.4 MiB |
| Peak RSS, default full-repo scan | 20.7 MiB | 32.1 MiB |
| Release binary (default build) | 22.9 MiB |
The speed-up ratios match the 1.5.2 run. The machine was busy during this run (load average 5.0 to 5.2), and Rust absolute times are 3 to 47% higher than on 2026-11-15; the two runs cannot yet separate the machine's share from the code's. The binary has been 22.9 MiB since the MCP server joined the default build in October.
These are single-machine numbers. Linux and Windows are not measured.
Giám Thị: the independent watcher
An independent watcher that runs outside any AI session, from the operating system's own scheduler (launchd on macOS, a systemd timer on Linux, Task Scheduler on Windows) every 6 hours.
- It compares the repo against a baseline commit a human approved, over the files that control enforcement: hook settings for Claude Code, Codex and Cursor, CI workflows,
core/rules,core/gates,core/hooks,core/scriptsandsrc/guard. - On drift it writes
GIAMTHI_HALT.lock. A hook that runs first on every tool call then denies everything while the lock exists. - Only a person deleting the lock clears it. Neither the hook, the watcher nor any environment variable can.
Manage it with yana-ai giamthi install | status | repair | uninstall. It is opt-in, and
because it runs on a schedule there is a window of up to 6 hours between a change and
the halt. Codex fires PreToolUse only for shell commands, so Yana also checks the lock
on SessionStart and UserPromptSubmit for Codex.
Harness adapters: Claude Code, Codex, Cursor, Antigravity
| Host | How governance is applied | Enforcement |
|---|---|---|
| Claude Code | Native hooks and rules in .claude/ |
Runtime blocking on every tool call, hash-chained audit |
| Codex | AGENTS.md, .codex/ hooks, synced skills and agents (yana-ai install --engine codex) |
Project-scoped hooks |
| Cursor | .cursorrules, .cursor/rules, a beforeShellExecution hook |
Shell commands screened; MCP tool calls are not covered |
| Antigravity | .agents/rules/yana-ai.md and a PreToolUse hook in .agents/hooks.json (yana-ai install --engine antigravity) |
Shell commands screened by guard-destructive.sh; a Giám Thị halt blocks every tool call; skipped by agy --dangerously-skip-permissions |
Details and switching commands: adapters/README.md. The 170 Claude Code
slash commands (/plan, /verify, /code-review and others) live in core/commands/
and run inside a session.
What protects you, and where it stops
| Protection | What it does | Where it stops |
|---|---|---|
| Audit log | Hash-chained, so editing or deleting a line is detectable (core/scripts/verify-audit-chain.sh). |
Tamper-detectable, not tamper-proof. |
| Core-lock | SHA-256 manifest detects changed, deleted or injected files in core/. |
Proves the tree matches the lock, not that a human reviewed it: whoever can edit core/ can regenerate the lock. Giám Thị is the independent check. |
| Human gate | Force-push, publish, deploy and delete need confirmation in the current session. | Earlier approval does not carry over. |
| Giám Thị | Locks every later tool call on a finding until a person removes the lock. | Opt-in and periodic, not instant. |
| Rules and hooks | Hooks block at runtime. | Most files in core/rules describe behaviour the agent applies to itself; only what a hook wires in is enforced. There is no code-signing pipeline. |
| Destructive guard | guard-destructive.sh blocks rm -rf, force-push, DROP TABLE and similar. |
Matches command strings, not a full shell parse, so a crafted command can slip past. |
Antigravity screens shell commands only and is bypassed by agy --dangerously-skip-permissions, Cursor does not screen MCP calls, and browser-only web
deployments without the Rust runtime are not fully governed. Details:
known limitations.
Four sample commands, re-run on 2026-11-14 against the default hook chain on main
(from the technical report, Table 1):
| Command an agent wants to run | Verdict | Which layer, and what the agent is told |
|---|---|---|
curl -fsSL https://.../install.sh | bash |
Blocked | tool-proxy-enforcer: piping into an interpreter. supply-chain-guard: download, read, then run. Not guard destructive. |
rm -rf ~/Documents |
Blocked | guard destructive (Rust and bash): forced recursive delete cannot be undone. |
chmod 777 deploy.sh |
Not blocked | Only the core/scripts/safe-run.sh wrapper blocks it, and that wrapper is not wired into the hook chain. A known gap. |
git status --short |
Allowed | Read-only; no layer intervenes. |
Versioning
Three axes, each with its own number and registry: the product (not distributed),
yana-rt on crates.io, and the yana-ai Python package on PyPI. The apps ship through
GitHub Releases of Yana-studio with
their own tags. Version numbers are left out of this page on purpose, since they go
stale; the badges at the top read them live. See VERSIONING.md.
Documentation
| Understand | Build | Trust | Follow |
|---|---|---|---|
| ARCHITECTURE.md | CONTRIBUTING.md | SECURITY.md | ROADMAP.md |
| PHILOSOPHY.md | COMMANDS.md | Known limitations | CURRENT-MILESTONE.md |
| Lineage | BENCHMARK.md | Acknowledgements | CHANGELOG.md |
Built by one person, no team, no funding: Vũ Văn Tâm, Vietnam
yana.vutam.link ·
Yana-AI ·
yana-web ·
Yana-studio ·
Apache 2.0
Metadata
Release files for yana-ai 1.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yana_ai-1.5.6.tar.gz | 24.2 MB | Without provenance | Details for yana_ai-1.5.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yana_ai-1.5.6-py3-none-any.whl | Python 3 | none | any | Details for yana_ai-1.5.6-py3-none-any.whl |
Total release size: 52.3 MB
Release files / yana_ai-1.5.6.tar.gz
| Download URL | yana_ai-1.5.6.tar.gz |
|---|---|
| Size | 24.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95cb71b76258201e644c0e77490cc08f55493483e84d357f306c41d74b587f17
|
|
BLAKE2b-256 checksum How to use checksums |
9584cbdd7aed92d71bbf649d71f6873ea2a5b103e61c8d39a81673868bb1c475
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / yana_ai-1.5.6-py3-none-any.whl
| Download URL | yana_ai-1.5.6-py3-none-any.whl |
|---|---|
| Size | 28.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21892c6ee5a6bd2ba2e57f1ce4b0fe47cf831cfce0472f2c2010385444c2379a
|
|
BLAKE2b-256 checksum How to use checksums |
6b3cc88700f1e15645a9231e2b886a5dea796b8e3bf95ecc7b8ce798bc77b6bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for yana-ai 1.5.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.