diff --git a/README.md b/README.md
index a85d916..14a0a0c 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
Athena
- A portable agent operating system.
- A clean Mac → one command → your entire system: from the CLAUDE.md cascade to the live runtime.
+ Set up your entire AI workspace on a brand-new Mac with one command.
+ From the rules your assistant follows to the live tools it runs — rebuilt in minutes, identically, every time.
@@ -18,91 +18,115 @@
```bash
git clone ~/Проекты/athena && cd ~/Проекты/athena
cp athena.config.example.sh athena.config.sh # fill in your repos / values
-./bootstrap.sh # or --dry-run
+./bootstrap.sh # or --dry-run to preview
```
-That is the whole onboarding. No manual setup, no checklist to forget, no drift between machines.
+That's the whole setup. No long checklist, nothing to forget, no two machines that mysteriously behave differently.
---
-## Why this exists
+## What is this, really?
-An AI agent is only as good as the system around it — its constitution, rules, hooks, capability registry, the projects it can see, the knowledge it can recall. Over months that system grows into hundreds of files spread across `~/.claude`, `~/.codex`, `~/.agents`, project folders, a knowledge vault, launch agents, and secrets.
+A modern AI assistant is only as good as the workspace around it — the rules it follows, the habits it has, the projects it can see, the notes it can recall, the tools it can reach. Build that workspace by hand and it slowly sprawls into hundreds of small files scattered across your machine. Then you buy a new Mac, and you get to rebuild all of it from memory. It never comes out quite the same.
-That growth creates three quiet failures:
+**Athena packs that whole workspace into a single, repeatable recipe.** Run one command and it lays everything back down in the right order: the tools, the rules, the projects, the knowledge, the background helpers. Like restoring a phone from a backup — but for your entire way of working with AI.
-1. **Non-portability.** A new Mac means days of manual re-setup, and the result never quite matches the old machine.
-2. **Drift.** Two machines slowly diverge; what works on one breaks on the other.
-3. **Leak risk.** Personal data and secrets get tangled into the same tree you would otherwise want to share or open-source.
+It isn't built from scratch on a hunch. Athena stands on proven ideas from people who do this seriously:
-Athena turns that entire system into **one reproducible artifact**. The public scaffold lives here. Your personal layer lives in a private overlay. One idempotent script reassembles both into a working machine — every time, identically.
+- The **Knowledge** part follows the *synthesis-on-write* approach popularized by **Andrej Karpathy** — you don't just dump notes, you distill them as you save, so what you keep is genuinely useful later.
+- The **setup** is driven by [**chezmoi**](https://www.chezmoi.io/), the well-known dotfile manager, so your configuration is versioned and portable instead of hand-copied.
+- The whole thing is **idempotent** — a fancy word for *safe to run again and again*. It converges to the same result; it never piles up duplicates.
-> This repository is the **generic, public scaffold**. It contains zero personal data: no `/Users/...` hardcodes, no secrets, no private content. Everything personal is injected at deploy time from a private overlay (see [Generic ⊕ private](#generic--private)).
+The payoff is simple: a correct system, stood up from zero in minutes, that keeps supporting your work — and quietly **saves you tokens** every day (more on that below).
---
-## Three planes — never mixed
+## What happens when you run it
-
+
-Everything you own falls into exactly one of three planes. Keeping them separate is what makes the system legible as it grows — runtime junk never pollutes canon, secrets never touch code, knowledge never scatters into project folders.
-
-```mermaid
-flowchart TB
- subgraph P1["🧠 Consciousness — the agent OS"]
- C["~/.claude · ~/.codex · ~/.agents
constitution · rules · hooks · agents · capability registry (SSOT)"]
- end
- subgraph P2["📚 Knowledge"]
- K["~/Мозг (vault)
durable knowledge · Karpathy method · graph links"]
- end
- subgraph P3["⚙️ Work"]
- W["~/Проекты · ~/Хранилище · ~/Архив
code projects · documents · media · cold archive"]
- end
- P1 -.governs.-> P3
- P2 -.feeds.-> P1
-```
-
-| Plane | Home | What lives there | Managed by |
-|---|---|---|---|
-| **Consciousness** | `~/.claude` · `~/.codex` · `~/.agents` | constitution, rules, hooks, agents, registry SSOT | chezmoi |
-| **Knowledge** | `~/Мозг` | durable knowledge (Karpathy method), private repo | private vault repo |
-| **Work** | `~/Проекты` · `~/Хранилище` · `~/Архив` | projects, documents, media | per-project git |
-
-The layout rules live **inside** the system: [`rules/structure.md`](rules/structure.md) (the declarative source of truth), the `organize` skill (the procedure), and a PreToolUse hook (the hard invariant). The system grows along them instead of into chaos.
-
----
-
-## Six layers of deployment
-
-
-
-
-
-`bootstrap.sh` is an orchestrator. It builds the machine bottom-up in ordered, independently runnable layers. Each layer is idempotent: run it once or a hundred times, the result is the same.
+You start with an empty Mac and type one command. Athena does the rest, step by step:
```mermaid
flowchart LR
- L0["0 · Base
Homebrew + CLI"] --> L0b["0b · Tools
~/tools"]
- L0b --> L1["1 · Consciousness
chezmoi merged-source"]
- L1 --> L2["2 · Registry
capability SSOT"]
- L2 --> L3["3 · Work
projects"]
- L3 --> L4["4 · Knowledge
vault"]
- L4 --> L5["5 · Runtime
secrets · MCP · launchd"]
- L5 --> L6["6 · Smoke
parity + lint"]
+ A["🖥️ Empty Mac"] --> B["one command
./bootstrap.sh"]
+ B --> C["installs the tools"]
+ C --> D["lays down the rules
& habits"]
+ D --> E["clones your projects"]
+ E --> F["restores your knowledge"]
+ F --> G["starts background helpers"]
+ G --> H["✅ checks everything
actually works"]
+ H --> I["🚀 A working system"]
```
-| Layer | Name | What it does |
+Every step is automatic, ordered, and checked. If anything fails to start, the run stops and tells you — you never end up with a half-built machine that pretends it's fine.
+
+---
+
+## The big idea: three planes, never mixed
+
+
+
+
+
+Everything you own lives in exactly one of three "planes." Keeping them apart is what stops the mess: temporary clutter never pollutes your rules, secrets never touch your code, and notes never get lost inside project folders.
+
+```mermaid
+flowchart TB
+ subgraph P1["🧠 Consciousness — how your assistant thinks"]
+ C["rules · habits · helpers · a map of every tool it can use"]
+ end
+ subgraph P2["📚 Knowledge — what you know"]
+ K["a personal library of distilled notes (the Karpathy method)"]
+ end
+ subgraph P3["⚙️ Work — what you do"]
+ W["your projects · documents · media"]
+ end
+ P1 -.guides.-> P3
+ P2 -.feeds.-> P1
+```
+
+| Plane | In plain terms | Where it lives |
|---|---|---|
-| **0** | Base | Homebrew + CLI (`claude`, `codex`, `gh`, `node`, `python`, `uv`, `ffmpeg`) — from `Brewfile` |
-| **0b** | Tools | external tools → `~/tools` (bots etc.), cloned **before** Consciousness |
-| **1** | Consciousness | chezmoi deploys `~/.claude` · `~/.codex` · `~/.agents` from the merged source |
-| **2** | Registry | `build_registry` → `capability-plan` SSOT |
-| **3** | Work | clone + install projects from `projects.manifest` |
-| **4** | Knowledge | clone the private vault repo |
-| **5** | Runtime | `~/.secrets` (Keychain) · MCP reauth · launchd agents |
-| **6** | Smoke | Claude = Codex parity + structure lint |
+| **Consciousness** | how your assistant thinks and behaves | `~/.claude` · `~/.codex` · `~/.agents` |
+| **Knowledge** | your personal, distilled library | `~/Мозг` |
+| **Work** | your actual projects and files | `~/Проекты` · `~/Хранилище` · `~/Архив` |
+
+The rules for *what goes where* live inside the system itself, so it grows tidily instead of turning into a junk drawer.
+
+---
+
+## How it builds: six calm layers
+
+
+
+
+
+The setup script builds your machine from the ground up in ordered layers — like assembling floors of a building. Each layer is safe to repeat, and you can run just one if you want.
+
+```mermaid
+flowchart LR
+ L0["0 · Base
core tools"] --> L0b["0b · Tools
extras"]
+ L0b --> L1["1 · Consciousness
rules & habits"]
+ L1 --> L2["2 · Registry
the tool map"]
+ L2 --> L3["3 · Work
projects"]
+ L3 --> L4["4 · Knowledge
your library"]
+ L4 --> L5["5 · Runtime
secrets & helpers"]
+ L5 --> L6["6 · Smoke
final checks"]
+```
+
+| Layer | What it sets up |
+|---|---|
+| **0 · Base** | the core command-line tools (`claude`, `codex`, `git`, `node`, `python`…) |
+| **0b · Tools** | extra tools like bots, placed before the rules so they can wire themselves up |
+| **1 · Consciousness** | your assistant's rules, habits, and helpers |
+| **2 · Registry** | a searchable map of every skill and tool, so the right one is found fast |
+| **3 · Work** | clones and installs your projects |
+| **4 · Knowledge** | restores your personal library |
+| **5 · Runtime** | secrets (kept in the macOS Keychain) and background helpers |
+| **6 · Smoke** | runs final checks to prove the whole thing actually works |
```bash
./bootstrap.sh --only=1 # run a single layer
@@ -111,48 +135,72 @@ flowchart LR
---
-## Generic ⊕ private
+## Share the structure, keep your secrets
-
+
-The hardest problem in sharing a personal system is the boundary: the structure is worth open-sourcing, the contents are not. Athena solves it with a **merged source**. Layer 1 rsyncs the generic base, lays the private overlay on top (overlay wins on conflict), then runs a single `chezmoi apply`.
+Here's the tricky part of sharing a personal setup: the *structure* is worth opening up, but the *contents* — your secrets, your private notes — are not. Athena solves it by blending two sources at setup time: a **public** skeleton (this repo) and your own **private** layer. They merge into one, and your private layer always wins.
```mermaid
flowchart LR
- G["Generic source
./chezmoi · public"] --> M{{"merged-source"}}
- P["Private overlay
$ATHENA_PRIVATE_REPO · personal"] --> M
- M --> A["chezmoi apply
~/.claude · ~/.codex · ~/.agents"]
+ G["🌍 Public skeleton
this repo · safe to share"] --> M{{"blend"}}
+ P["🔒 Your private layer
secrets & personal config"] --> M
+ M --> A["✨ Your real machine"]
```
-- Leave `ATHENA_PRIVATE_REPO` empty → a valid **generic-only** deploy.
-- Set it → your `references/`, active launch agents, and secret generators are layered in.
-- A `PERSONAL_RE` smoke gate fails the build if personal data ever lands in a tracked public file. The boundary is enforced, not hoped for.
+- Skip the private layer → you still get a complete, working **public-only** setup.
+- Add it → your personal details are layered in on top.
+- A built-in guard **fails the build** if any personal data ever slips into a public file. The boundary is enforced, not just hoped for.
-See the architecture decision: [`docs/decisions/0001-merged-source-generic-private.md`](docs/decisions/0001-merged-source-generic-private.md).
+This repository is the **public skeleton**. It contains zero personal data — no secrets, no private content, no hardcoded paths.
---
-## Why it's efficient
+## Why it saves you tokens
-- **One command, idempotent.** No manual steps to skip or misremember. Re-running converges instead of duplicating; launch agents are only reloaded when their plist actually changed (no flicker).
-- **Fail-closed runtime.** Layer 5 counts loaded vs. failed launch agents and exits non-zero on any failure — a half-deployed machine never reports success.
-- **Provable parity.** Layer 6 smoke verifies Claude and Codex see the same registry, every plist is valid, every guard hook actually blocks secrets, and no personal data is tracked.
-- **Token economy by design.** A capability registry (SSOT) routes the right skill/agent/MCP quality-first, so the agent spends reasoning on the task, not on rediscovering its own tools.
-- **Self-describing growth.** Layout rules, the `organize` skill, and a hard hook keep expansion legible; the constitution stays a lean router, not a junk drawer.
+
+
+
+
+Every time an AI assistant has to rediscover its own tools, re-read scattered instructions, or wander around looking for the right skill, it burns tokens — and tokens are money and time. Athena gives the assistant a **tidy index of everything it can do**, so it walks straight to the right tool instead of searching.
+
+```mermaid
+flowchart LR
+ subgraph Without["😵 Without a map"]
+ direction TB
+ Q1["task"] --> S1["search…"] --> S2["re-read…"] --> S3["guess…"] --> R1["maybe right"]
+ end
+ subgraph With["🦉 With Athena's registry"]
+ direction TB
+ Q2["task"] --> IDX["look it up in the index"] --> R2["right tool, first try"]
+ end
+```
+
+Less wandering means fewer tokens spent on overhead and more spent on your actual problem. The structure does the remembering, so the assistant doesn't have to.
---
-## Generic vs personal
+## Why it's efficient (in short)
-| In the repo (publishable) | **Not** in the repo |
+- **One command, idempotent.** Nothing to skip or misremember; re-running converges instead of duplicating.
+- **Fail-closed.** A half-finished setup never reports success — if something doesn't start, the run fails loudly.
+- **Provable.** Built-in checks confirm both assistants see the same tools, every helper is valid, and no personal data leaked.
+- **Token-aware by design.** The tool map routes to the right capability first, so reasoning goes to the task, not to overhead.
+- **Tidy as it grows.** Clear rules for what-goes-where keep the system legible for years.
+
+---
+
+## What's in the repo (and what isn't)
+
+| In the repo (safe to share) | **Not** in the repo |
|---|---|
-| `bootstrap.sh`, `Brewfile`, `smoke/` | secret **values** (Keychain / `~/.secrets`) |
-| `rules/structure.md`, skills, `launchd/` | vault content (your private repo) |
-| `chezmoi/` templates, `claude-starter/` | `athena.config.sh`, `projects.manifest` |
+| the setup script, tool list, checks | secret **values** (Keychain / `~/.secrets`) |
+| layout rules, skills, helpers | your private notes (your own repo) |
+| config templates, a project starter | your personal config & project list |
-A personal instance = a filled-in `athena.config.sh` + a private chezmoi overlay on top of this generic scaffold.
+A personal instance = your filled-in config + your private layer, on top of this public skeleton.
---
@@ -160,13 +208,12 @@ A personal instance = a filled-in `athena.config.sh` + a private chezmoi overlay
```bash
shellcheck bootstrap.sh smoke/*.sh # lint
-./bootstrap.sh --dry-run # dry run
-./bootstrap.sh --only=<0|0b|1..6> # single layer
-smoke/smoke.sh # parity + structure smoke
-smoke/dry-validate.sh # template render validation (no chezmoi)
+./bootstrap.sh --dry-run # dry run (preview, change nothing)
+./bootstrap.sh --only=<0|0b|1..6> # run a single layer
+smoke/smoke.sh # final checks
```
-**Go deeper:** [`docs/FEATURES.en.md`](docs/FEATURES.en.md) documents every function in detail. Read [`specs/`](specs/) for the phased plan, [`docs/decisions/`](docs/decisions/) for architecture decisions, and the project [`CLAUDE.md`](CLAUDE.md) for the map.
+**Go deeper:** [`docs/FEATURES.en.md`](docs/FEATURES.en.md) documents every function in detail. See [`specs/`](specs/) for the plan, [`docs/decisions/`](docs/decisions/) for architecture decisions, and [`CLAUDE.md`](CLAUDE.md) for the map.
---
diff --git a/README.ru.md b/README.ru.md
index b1d3f76..c0f8434 100644
--- a/README.ru.md
+++ b/README.ru.md
@@ -5,8 +5,8 @@
Athena
- Переносимая агентная операционная система.
- Чистый Mac → одна команда → вся твоя система: от каскада CLAUDE.md до боевого рантайма.
+ Развернуть всё AI-окружение на новом Mac одной командой.
+ От правил, которым следует твой ассистент, до живых инструментов, которые он запускает — пересобирается за минуты, идентично, каждый раз.
@@ -18,91 +18,115 @@
```bash
git clone ~/Проекты/athena && cd ~/Проекты/athena
cp athena.config.example.sh athena.config.sh # впиши свои репо / значения
-./bootstrap.sh # или --dry-run
+./bootstrap.sh # или --dry-run для предпросмотра
```
-Это весь онбординг. Никакой ручной настройки, никакого чеклиста, который забудешь, никакого дрейфа между машинами.
+Это вся настройка. Никакого длинного чеклиста, нечего забыть, и нет двух машин, которые загадочно ведут себя по-разному.
---
-## Зачем это нужно
+## Что это, простыми словами?
-AI-агент хорош ровно настолько, насколько хороша система вокруг него — конституция, правила, хуки, реестр способностей, видимые проекты, доступные знания. За месяцы эта система разрастается в сотни файлов по `~/.claude`, `~/.codex`, `~/.agents`, папкам проектов, vault знаний, launch-агентам и секретам.
+Современный AI-ассистент хорош ровно настолько, насколько хорошо окружение вокруг него — правила, которым он следует, привычки, проекты, которые он видит, заметки, которые помнит, инструменты, до которых дотягивается. Собери это окружение руками — и оно постепенно расползётся в сотни мелких файлов по всей машине. А потом ты покупаешь новый Mac и получаешь удовольствие собрать всё заново по памяти. И оно никогда не выходит точно таким же.
-Этот рост порождает три тихих отказа:
+**Athena упаковывает всё это окружение в один повторяемый рецепт.** Запускаешь одну команду — и она раскладывает всё обратно в правильном порядке: инструменты, правила, проекты, знания, фоновые помощники. Как восстановить телефон из бэкапа — только это весь твой способ работать с AI.
-1. **Непереносимость.** Новый Mac = дни ручной пересборки, и результат всё равно не совпадает со старой машиной.
-2. **Дрейф.** Две машины медленно расходятся; что работает на одной — ломается на другой.
-3. **Риск утечки.** Личные данные и секреты сплетаются с тем же деревом, которым иначе хотелось бы делиться или открыть в open-source.
+Это собрано не на удачу. Athena опирается на проверенные наработки людей, которые делают это серьёзно:
-Athena превращает всю эту систему в **один воспроизводимый артефакт**. Публичный каркас живёт здесь. Личный слой — в приватном overlay. Один идемпотентный скрипт пересобирает оба в рабочую машину — каждый раз идентично.
+- Часть **«Знания»** следует методу *синтеза-при-записи*, который популяризировал **Андрей Карпаты** — ты не сваливаешь заметки в кучу, а отжимаешь суть в момент сохранения, поэтому то, что остаётся, реально пригодится потом.
+- **Настройку** ведёт [**chezmoi**](https://www.chezmoi.io/) — известный менеджер дотфайлов, поэтому конфигурация версионируется и переносится, а не копируется руками.
+- Всё это **идемпотентно** — умное слово для *«можно запускать снова и снова без вреда»*. Оно сходится к одному результату и никогда не плодит дубли.
-> Этот репозиторий — **generic, публичный каркас**. Ноль личных данных: ни хардкода `/Users/...`, ни секретов, ни приватного контента. Всё личное вливается на этапе разворота из приватного overlay (см. [Generic ⊕ private](#generic--private)).
+Выгода простая: правильная система, поднятая с нуля за минуты, которая дальше поддерживает твою работу — и тихо **экономит токены** каждый день (об этом ниже).
---
-## Три плоскости — не смешивать
+## Что происходит, когда ты запускаешь
-
+
-Всё, чем ты владеешь, попадает ровно в одну из трёх плоскостей. Их разделение и делает систему читаемой по мере роста — рантайм-мусор не загрязняет канон, секреты не касаются кода, знания не растекаются по папкам проектов.
-
-```mermaid
-flowchart TB
- subgraph P1["🧠 Сознание — агент-ОС"]
- C["~/.claude · ~/.codex · ~/.agents
конституция · правила · хуки · агенты · реестр способностей (SSOT)"]
- end
- subgraph P2["📚 Знания"]
- K["~/Мозг (vault)
durable-знание · метод Карпаты · граф-связи"]
- end
- subgraph P3["⚙️ Работа"]
- W["~/Проекты · ~/Хранилище · ~/Архив
код-проекты · документы · медиа · холодный архив"]
- end
- P1 -.управляет.-> P3
- P2 -.питает.-> P1
-```
-
-| Плоскость | Дом | Что внутри | Чем управляется |
-|---|---|---|---|
-| **Сознание** | `~/.claude` · `~/.codex` · `~/.agents` | конституция, правила, хуки, агенты, реестр SSOT | chezmoi |
-| **Знания** | `~/Мозг` | durable-знание (метод Карпаты), приватный репо | приватный vault-репо |
-| **Работа** | `~/Проекты` · `~/Хранилище` · `~/Архив` | проекты, документы, медиа | per-project git |
-
-Правила раскладки живут **внутри** системы: [`rules/structure.md`](rules/structure.md) (декларативный источник истины), skill `organize` (процедура) и PreToolUse-хук (жёсткий инвариант). Система растёт по ним, а не в хаос.
-
----
-
-## Шесть слоёв разворота
-
-
-
-
-
-`bootstrap.sh` — оркестратор. Он собирает машину снизу вверх упорядоченными, независимо запускаемыми слоями. Каждый слой идемпотентен: запусти раз или сто — результат тот же.
+Ты начинаешь с пустого Mac и набираешь одну команду. Дальше Athena делает всё сама, шаг за шагом:
```mermaid
flowchart LR
- L0["0 · База
Homebrew + CLI"] --> L0b["0b · Инструменты
~/tools"]
- L0b --> L1["1 · Сознание
chezmoi merged-source"]
- L1 --> L2["2 · Реестр
capability SSOT"]
- L2 --> L3["3 · Работа
проекты"]
- L3 --> L4["4 · Знания
vault"]
- L4 --> L5["5 · Рантайм
секреты · MCP · launchd"]
- L5 --> L6["6 · Smoke
паритет + линт"]
+ A["🖥️ Пустой Mac"] --> B["одна команда
./bootstrap.sh"]
+ B --> C["ставит инструменты"]
+ C --> D["раскладывает правила
и привычки"]
+ D --> E["клонирует проекты"]
+ E --> F["восстанавливает знания"]
+ F --> G["запускает помощников"]
+ G --> H["✅ проверяет, что всё
реально работает"]
+ H --> I["🚀 Готовая система"]
```
-| Слой | Имя | Что делает |
+Каждый шаг автоматический, по порядку и с проверкой. Если что-то не поднялось — прогон останавливается и говорит об этом. Ты никогда не остаёшься с полусобранной машиной, которая делает вид, что всё в порядке.
+
+---
+
+## Главная идея: три плоскости, не смешивать
+
+
+
+
+
+Всё, чем ты владеешь, лежит ровно в одной из трёх «плоскостей». Их разделение и спасает от каши: временный мусор не пачкает правила, секреты не касаются кода, а заметки не теряются внутри папок проектов.
+
+```mermaid
+flowchart TB
+ subgraph P1["🧠 Сознание — как ассистент думает"]
+ C["правила · привычки · помощники · карта всех доступных инструментов"]
+ end
+ subgraph P2["📚 Знания — что ты знаешь"]
+ K["личная библиотека отжатых заметок (метод Карпаты)"]
+ end
+ subgraph P3["⚙️ Работа — что ты делаешь"]
+ W["твои проекты · документы · медиа"]
+ end
+ P1 -.направляет.-> P3
+ P2 -.питает.-> P1
+```
+
+| Плоскость | Простыми словами | Где живёт |
|---|---|---|
-| **0** | База | Homebrew + CLI (`claude`, `codex`, `gh`, `node`, `python`, `uv`, `ffmpeg`) — из `Brewfile` |
-| **0b** | Инструменты | внешние инструменты → `~/tools` (боты и т.п.), клонятся **до** Сознания |
-| **1** | Сознание | chezmoi разворачивает `~/.claude` · `~/.codex` · `~/.agents` из merged-source |
-| **2** | Реестр | `build_registry` → `capability-plan` SSOT |
-| **3** | Работа | clone + install проектов по `projects.manifest` |
-| **4** | Знания | clone приватного vault-репо |
-| **5** | Рантайм | `~/.secrets` (Keychain) · MCP reauth · launchd-агенты |
-| **6** | Smoke | паритет Claude = Codex + линт структуры |
+| **Сознание** | как ассистент думает и ведёт себя | `~/.claude` · `~/.codex` · `~/.agents` |
+| **Знания** | твоя личная отжатая библиотека | `~/Мозг` |
+| **Работа** | твои настоящие проекты и файлы | `~/Проекты` · `~/Хранилище` · `~/Архив` |
+
+Правила *что куда класть* живут внутри самой системы — поэтому она растёт аккуратно, а не превращается в свалку.
+
+---
+
+## Как собирается: шесть спокойных слоёв
+
+
+
+
+
+Скрипт настройки собирает машину снизу вверх упорядоченными слоями — как этажи здания. Каждый слой можно безопасно повторить, и при желании запустить только один.
+
+```mermaid
+flowchart LR
+ L0["0 · База
ядро инструментов"] --> L0b["0b · Инструменты
дополнения"]
+ L0b --> L1["1 · Сознание
правила и привычки"]
+ L1 --> L2["2 · Реестр
карта инструментов"]
+ L2 --> L3["3 · Работа
проекты"]
+ L3 --> L4["4 · Знания
твоя библиотека"]
+ L4 --> L5["5 · Рантайм
секреты и помощники"]
+ L5 --> L6["6 · Smoke
финальные проверки"]
+```
+
+| Слой | Что настраивает |
+|---|---|
+| **0 · База** | базовые CLI-инструменты (`claude`, `codex`, `git`, `node`, `python`…) |
+| **0b · Инструменты** | дополнения вроде ботов, ставятся до правил, чтобы успеть подключиться |
+| **1 · Сознание** | правила, привычки и помощники ассистента |
+| **2 · Реестр** | поисковая карта всех навыков и инструментов — нужный находится быстро |
+| **3 · Работа** | клонирует и ставит твои проекты |
+| **4 · Знания** | восстанавливает личную библиотеку |
+| **5 · Рантайм** | секреты (в Keychain macOS) и фоновые помощники |
+| **6 · Smoke** | гоняет финальные проверки, что всё реально работает |
```bash
./bootstrap.sh --only=1 # один слой
@@ -111,48 +135,72 @@ flowchart LR
---
-## Generic ⊕ private
+## Делись структурой, храни секреты
-
+
-Самая трудная задача при шеринге личной системы — граница: структуру открыть стоит, содержимое — нет. Athena решает её **merged-source**. Слой 1 rsync-ит generic-базу, накладывает приватный overlay сверху (overlay побеждает на конфликте), затем делает один `chezmoi apply`.
+Вот в чём хитрость шеринга личной настройки: *структуру* открыть стоит, а *содержимое* — секреты, личные заметки — нет. Athena решает это, смешивая два источника при настройке: **публичный** скелет (этот репо) и твой **приватный** слой. Они сливаются в один, и приватный слой всегда побеждает.
```mermaid
flowchart LR
- G["Generic source
./chezmoi · публичный"] --> M{{"merged-source"}}
- P["Приватный overlay
$ATHENA_PRIVATE_REPO · личный"] --> M
- M --> A["chezmoi apply
~/.claude · ~/.codex · ~/.agents"]
+ G["🌍 Публичный скелет
этот репо · безопасно делиться"] --> M{{"смешать"}}
+ P["🔒 Твой приватный слой
секреты и личный конфиг"] --> M
+ M --> A["✨ Твоя реальная машина"]
```
-- Пусто `ATHENA_PRIVATE_REPO` → валидный **generic-only** разворот.
-- Задан → твои `references/`, активные launch-агенты и генераторы секретов вливаются сверху.
-- Smoke-гейт `PERSONAL_RE` валит сборку, если личные данные попадут в tracked публичный файл. Граница обеспечена, а не «на авось».
+- Пропусти приватный слой → всё равно получишь полноценную **публичную** настройку.
+- Добавь → твои личные детали лягут сверху.
+- Встроенный страж **валит сборку**, если личные данные хоть раз просочатся в публичный файл. Граница обеспечена, а не «на авось».
-Архитектурное решение: [`docs/decisions/0001-merged-source-generic-private.md`](docs/decisions/0001-merged-source-generic-private.md).
+Этот репозиторий — **публичный скелет**. Ноль личных данных: ни секретов, ни приватного контента, ни захардкоженных путей.
---
-## Почему это эффективно
+## Почему это экономит токены
-- **Одна команда, идемпотентно.** Нет ручных шагов, которые пропустишь или забудешь. Повтор сходится, а не дублирует; launch-агенты перезагружаются только когда их plist реально изменился (без мигания).
-- **Fail-closed рантайм.** Слой 5 считает загруженные vs упавшие launch-агенты и выходит с ненулевым кодом при любом сбое — полу-развёрнутая машина никогда не отрапортует «успех».
-- **Доказуемый паритет.** Smoke слоя 6 сверяет, что Claude и Codex видят один реестр, каждый plist валиден, каждый guard-хук реально блокирует секреты, и ни одного личного данного в tracked.
-- **Токен-экономия by design.** Реестр способностей (SSOT) роутит нужный skill/agent/MCP quality-first — агент тратит рассуждение на задачу, а не на переоткрытие собственных инструментов.
-- **Самоописываемый рост.** Правила раскладки, skill `organize` и жёсткий хук держат расширение читаемым; конституция остаётся лин-роутером, а не свалкой.
+
+
+
+
+Каждый раз, когда ассистент заново ищет свои же инструменты, перечитывает разбросанные инструкции или бродит в поисках нужного навыка — он жжёт токены. А токены — это деньги и время. Athena даёт ассистенту **аккуратный индекс всего, что он умеет**, и он идёт прямо к нужному инструменту, а не ищет.
+
+```mermaid
+flowchart LR
+ subgraph Without["😵 Без карты"]
+ direction TB
+ Q1["задача"] --> S1["поиск…"] --> S2["перечитать…"] --> S3["угадать…"] --> R1["может, верно"]
+ end
+ subgraph With["🦉 С реестром Athena"]
+ direction TB
+ Q2["задача"] --> IDX["заглянуть в индекс"] --> R2["верный инструмент сразу"]
+ end
+```
+
+Меньше блужданий — меньше токенов на накладные расходы и больше на твою настоящую задачу. Структура запоминает за ассистента, чтобы ему не приходилось.
---
-## Generic vs личное
+## Почему это эффективно (коротко)
-| В репо (публикуемо) | **НЕ** в репо |
+- **Одна команда, идемпотентно.** Нечего пропустить или забыть; повтор сходится, а не дублирует.
+- **Fail-closed.** Полусобранная настройка никогда не отрапортует «успех» — если что-то не поднялось, прогон падает громко.
+- **Доказуемо.** Встроенные проверки подтверждают: оба ассистента видят одни инструменты, каждый помощник валиден, личное не утекло.
+- **Учитывает токены by design.** Карта инструментов ведёт к нужной способности сразу — рассуждение идёт на задачу, а не на накладные расходы.
+- **Аккуратно растёт.** Чёткие правила «что куда» держат систему читаемой годами.
+
+---
+
+## Что в репо (и чего нет)
+
+| В репо (безопасно делиться) | **Нет** в репо |
|---|---|
-| `bootstrap.sh`, `Brewfile`, `smoke/` | **значения** секретов (Keychain / `~/.secrets`) |
-| `rules/structure.md`, skills, `launchd/` | контент vault (твой приватный репо) |
-| шаблоны `chezmoi/`, `claude-starter/` | `athena.config.sh`, `projects.manifest` |
+| скрипт настройки, список инструментов, проверки | **значения** секретов (Keychain / `~/.secrets`) |
+| правила раскладки, навыки, помощники | твои личные заметки (твой репо) |
+| шаблоны конфига, стартер проекта | твой личный конфиг и список проектов |
-Личная инстанция = заполненный `athena.config.sh` + приватный chezmoi-overlay поверх этого generic-каркаса.
+Личная инстанция = твой заполненный конфиг + твой приватный слой поверх этого публичного скелета.
---
@@ -160,13 +208,12 @@ flowchart LR
```bash
shellcheck bootstrap.sh smoke/*.sh # линт
-./bootstrap.sh --dry-run # сухой прогон
+./bootstrap.sh --dry-run # сухой прогон (предпросмотр, ничего не меняет)
./bootstrap.sh --only=<0|0b|1..6> # один слой
-smoke/smoke.sh # паритет + структура
-smoke/dry-validate.sh # валидация рендера шаблонов (без chezmoi)
+smoke/smoke.sh # финальные проверки
```
-**Глубже:** [`docs/FEATURES.ru.md`](docs/FEATURES.ru.md) описывает каждую функцию детально. Читай [`specs/`](specs/) (фазовый план), [`docs/decisions/`](docs/decisions/) для архитектурных решений, и проектный [`CLAUDE.md`](CLAUDE.md) как карту.
+**Глубже:** [`docs/FEATURES.ru.md`](docs/FEATURES.ru.md) описывает каждую функцию детально. Смотри [`specs/`](specs/) для плана, [`docs/decisions/`](docs/decisions/) для архитектурных решений, и [`CLAUDE.md`](CLAUDE.md) как карту.
---
diff --git a/docs/assets/hero.png b/docs/assets/hero.png
index daf05c9..0f91071 100644
Binary files a/docs/assets/hero.png and b/docs/assets/hero.png differ
diff --git a/docs/assets/journey.png b/docs/assets/journey.png
new file mode 100644
index 0000000..0af73c6
Binary files /dev/null and b/docs/assets/journey.png differ
diff --git a/docs/assets/merge.png b/docs/assets/merge.png
index ea33b92..1fc7564 100644
Binary files a/docs/assets/merge.png and b/docs/assets/merge.png differ
diff --git a/docs/assets/six-layers.png b/docs/assets/six-layers.png
index 1fbea58..9ed5979 100644
Binary files a/docs/assets/six-layers.png and b/docs/assets/six-layers.png differ
diff --git a/docs/assets/three-planes.png b/docs/assets/three-planes.png
index 16fb48d..f65284d 100644
Binary files a/docs/assets/three-planes.png and b/docs/assets/three-planes.png differ
diff --git a/docs/assets/token-economy.png b/docs/assets/token-economy.png
new file mode 100644
index 0000000..0aeaefe
Binary files /dev/null and b/docs/assets/token-economy.png differ