Files
athena/README.md
T
Зарубин ФилиппandClaude Opus 4.8 a0d8ff814d docs: переработка витрины — светлый Apple-стиль, Athena-мотив, простой язык
- ВСЕ визуалы заменены: тёмный → светлый воздушный Apple (ivory/marble + soft blue/gold),
  единый стиль через hero-референс (мраморная Афина+сова сквозной мотив)
- 6 визуалов (nano_banana_pro): hero · three-planes · six-layers · merge · journey (новый:
  пустой Mac→система) · token-economy (новый: индекс→прямой путь)
- больше mermaid-диаграмм для новичка: journey (7 шагов), token-эконо (с картой vs без)
- текст переписан простым языком (humanizer): что это · кредит наработкам (Карпаты
  synthesis-on-write, chezmoi) · разворот-с-нуля · поддержка работы · экономия токенов
- EN + RU зеркала синхронны

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 19:40:39 +03:00

9.6 KiB

Athena — a portable agent operating system

Athena

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.

🇬🇧 English · 🇷🇺 Русский


git clone <repo> ~/Проекты/athena && cd ~/Проекты/athena
cp athena.config.example.sh athena.config.sh   # fill in your repos / values
./bootstrap.sh                                   # or --dry-run to preview

That's the whole setup. No long checklist, nothing to forget, no two machines that mysteriously behave differently.


What is this, really?

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.

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.

It isn't built from scratch on a hunch. Athena stands on proven ideas from people who do this seriously:

  • 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, 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.

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).


What happens when you run it

One command turns an empty Mac into a complete system

You start with an empty Mac and type one command. Athena does the rest, step by step:

flowchart LR
  A["🖥️ Empty Mac"] --> B["one command<br/>./bootstrap.sh"]
  B --> C["installs the tools"]
  C --> D["lays down the rules<br/>& habits"]
  D --> E["clones your projects"]
  E --> F["restores your knowledge"]
  F --> G["starts background helpers"]
  G --> H["✅ checks everything<br/>actually works"]
  H --> I["🚀 A working system"]

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

The three planes: Consciousness, Knowledge, Work

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.

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
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

Six layers stacking into one system

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.

flowchart LR
  L0["0 · Base<br/>core tools"] --> L0b["0b · Tools<br/>extras"]
  L0b --> L1["1 · Consciousness<br/>rules & habits"]
  L1 --> L2["2 · Registry<br/>the tool map"]
  L2 --> L3["3 · Work<br/>projects"]
  L3 --> L4["4 · Knowledge<br/>your library"]
  L4 --> L5["5 · Runtime<br/>secrets & helpers"]
  L5 --> L6["6 · Smoke<br/>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
./bootstrap.sh --only=1     # run a single layer
./bootstrap.sh --dry-run    # show everything, change nothing

Share the structure, keep your secrets

A public stream and a private stream merging into one

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.

flowchart LR
  G["🌍 Public skeleton<br/>this repo · safe to share"] --> M{{"blend"}}
  P["🔒 Your private layer<br/>secrets & personal config"] --> M
  M --> A["✨ Your real machine"]
  • 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.

This repository is the public skeleton. It contains zero personal data — no secrets, no private content, no hardcoded paths.


Why it saves you tokens

A tidy index lighting one direct path to the right answer

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.

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.


Why it's efficient (in short)

  • 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
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 = your filled-in config + your private layer, on top of this public skeleton.


Commands

shellcheck bootstrap.sh smoke/*.sh   # lint
./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 documents every function in detail. See specs/ for the plan, docs/decisions/ for architecture decisions, and CLAUDE.md for the map.


Athena — goddess of wisdom and strategy. Your system, made portable.