docs: beginner-first README on the shared family anatomy

Rebuild both READMEs on the packaging patterns the most downloaded
vibe-coding repositories use, in the same order across the whole family:
one-line promise, badges, wide hero at full width, table of contents, and
ten fixed beginner headings.

- How It Works now carries an ASCII workflow diagram, a stage table, and one
  step per stage, each ending with a plain "you get" line;
- Quickstart offers three real install or download paths;
- honest four-column comparison, glossary, safety, limits, star ask, and the
  fork -> branch -> commit -> push -> Pull Request path;
- workflow stages are declared in .github/pantheon.json (schema 3) with short
  diagram labels; the wide stage image series is still pending;
- CLAUDE.md, GEMINI.md, .github/copilot-instructions.md and .cursor/rules
  point every coding agent at AGENTS.md;
- the previous long README is preserved as docs/DETAILS.md and DETAILS.ru.md.

public-repo-gate check --release-intent public: PASS 100/80.
This commit is contained in:
Зарубин Филипп
2026-08-29 18:53:20 +03:00
parent 1e15eba17c
commit 8ef776ae2d
9 changed files with 685 additions and 257 deletions
+6
View File
@@ -0,0 +1,6 @@
---
description: Repository rules for every coding agent
alwaysApply: true
---
Read AGENTS.md in the repository root before changing anything. It holds the build, test, style, and publication rules for this project.
+3
View File
@@ -0,0 +1,3 @@
# Agent Instructions
The rules for this repository live in [AGENTS.md](AGENTS.md). Read that file first, follow it exactly, and do not duplicate its rules here.
+50 -1
View File
@@ -1,5 +1,5 @@
{
"schema_version": 2,
"schema_version": 3,
"family_id": "zarubinvibe-pantheon",
"catalog_version": "2026-08-26",
"project": {
@@ -10,6 +10,11 @@
"visuals": {
"style_anchor_sha256": "ce524f9d22cb0092cb17aa280832e1b2ab2a77a0e01602065ec502232a3bb2d2",
"column_reference_sha256": "9d32edd56ac55c4dd6d0425a28a2ac35035e9ab09073fc8ce0c1414b2edfb1bd",
"presentation": {
"min_width": 1600,
"aspect_ratio": "16:9",
"readme_width": "100%"
},
"hero": {
"source_path": "docs/assets/pantheon/hero.png",
"source_sha256": "b683878e127c07c09d141b1f4461a1c6169a19cb882ab2936d2241d54b35b934",
@@ -21,7 +26,51 @@
"source_sha256": "15413c49301607754a667b30ce85115aeca5db946a63b49f5912f34ab42df295",
"published_path": "docs/assets/pantheon/emblem.png",
"published_sha256": "15413c49301607754a667b30ce85115aeca5db946a63b49f5912f34ab42df295"
},
"stages": [
{
"id": "prepare-mac",
"title_en": "Prepare the Mac",
"title_ru": "Подготовьте Mac",
"diagram_en": "Prepare",
"diagram_ru": "Подготовка"
},
{
"id": "choose-setup",
"title_en": "Choose what you want",
"title_ru": "Выберите, что вам нужно",
"diagram_en": "Choose",
"diagram_ru": "Выбор"
},
{
"id": "dry-run",
"title_en": "Preview every layer",
"title_ru": "Посмотрите план целиком",
"diagram_en": "Dry run",
"diagram_ru": "Прогон"
},
{
"id": "build-layers",
"title_en": "Build the layers",
"title_ru": "Соберите слои",
"diagram_en": "Build",
"diagram_ru": "Сборка"
},
{
"id": "smoke-checks",
"title_en": "Run the checks",
"title_ru": "Прогоните проверки",
"diagram_en": "Checks",
"diagram_ru": "Проверки"
},
{
"id": "daily-report",
"title_en": "Watch the daily state",
"title_ru": "Следите за состоянием",
"diagram_en": "Report",
"diagram_ru": "Отчёт"
}
]
},
"receipts": {
"generation_path": ".github/pantheon/generation-receipt.json",
+9
View File
@@ -25,3 +25,12 @@ git diff --check
```
The smoke suite must finish with `SMOKE OK`. Do not describe work as complete when a required check fails.
## Public packaging
- `README.md` and `README.ru.md` follow the shared family anatomy: promise, badges, wide hero, table of
contents, and the ten beginner headings with the ASCII workflow diagram inside `How It Works`.
- Workflow stages live in `.github/pantheon.json`. Change the stages there first, then the two READMEs.
- `AGENTS.md` holds the rules; `CLAUDE.md`, `GEMINI.md`, `.github/copilot-instructions.md`, and
`.cursor/rules/*.mdc` only point here.
- Run `public-repo-gate check --repo . --release-intent public` before any push, and fix every blocker.
+3
View File
@@ -0,0 +1,3 @@
# Agent Instructions
The rules for this repository live in [AGENTS.md](AGENTS.md). Read that file first, follow it exactly, and do not duplicate its rules here.
+137 -128
View File
@@ -1,24 +1,108 @@
# Athena
Athena is a portable agent OS for macOS that rebuilds a Claude Code and Codex workspace from versioned templates, manifests, and checks.
Athena rebuilds a full Claude Code and Codex workspace on a fresh Mac from versioned templates and checks.
[Russian](README.ru.md) | [Feature reference](docs/FEATURES.en.md) | [Quickstart](#quickstart) | [Security](#security-and-privacy) | [Contributing](CONTRIBUTING.md)
[Русский](README.ru.md)
<p align="center">
<img src="docs/assets/pantheon/emblem.png" width="144" alt="Athena marble emblem with an owl, round shield, knowledge lines, and classical column">
</p>
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/athena?style=flat&color=C9A87A)](https://github.com/zarubinvibe/athena/stargazers) [![Status](https://img.shields.io/badge/status-reference-brightgreen.svg)](https://github.com/zarubinvibe/athena) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
![Athena marble hero with an owl, round shield, layered knowledge planes, and classical column](docs/assets/pantheon/hero.png)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Athena in white marble with an owl, a round shield, and layered knowledge planes beside the classical column" width="100%"></p>
Status: public macOS reference implementation. Automated checks cover shell syntax, templates, repository hygiene, agent contracts, and generic clean-room rendering. A complete first install on a fresh Mac still needs the manual acceptance checklist.
## Contents
- [What This Is](#what-this-is)
- [Why It Helps](#why-it-helps)
- [The Main Advantage](#the-main-advantage)
- [How It Works](#how-it-works)
- [Quickstart](#quickstart)
- [Simple Comparison](#simple-comparison)
- [Simple Words](#simple-words)
- [Safety And Privacy](#safety-and-privacy)
- [Limits](#limits)
- [Star And Contribute](#star-and-contribute)
<!-- beginner-readme:start -->
## What This Is
Athena is a portable agent operating system for macOS. It keeps your agent setup as tracked templates, manifests, and checks, then rebuilds that setup on a new machine layer by layer. Rules, skills, projects, and knowledge come back where they belong.
## Why It Helps
A working agent setup grows for months: configs, skills, hooks, registries, cloned projects. A new laptop or a broken profile wipes it. Athena turns that setup into something you can rebuild in one evening instead of remembering it by hand.
## The Main Advantage
**Main advantage:** the setup is a repeatable program, not a memory.
**Why this is better:** every layer can run again without breaking what already exists, and `--dry-run` shows the whole plan before a single file is written.
## How It Works
Bootstrap runs ordered layers. You can preview them, run one slice, or run the whole chain.
<!-- workflow-diagram:start -->
```text
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Prepare │ ▶ │ Choose │ ▶ │ Dry run │
└─────────┘ └─────────┘ └─────────┘
▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Build │ ▶ │ Checks │ ▶ │ Report │
└─────────┘ └─────────┘ └─────────┘
```
<!-- workflow-diagram:end -->
| Stage | What happens |
|---|---|
| 1. Prepare | Base tools land first: Xcode CLT, Homebrew, chezmoi, Node, Git |
| 2. Choose | An interview picks integrations and personal layers |
| 3. Dry run | The full plan is printed before anything is written |
| 4. Build | Tools, dotfiles, plugins, registry, projects, vault, launchd |
| 5. Checks | Shell syntax, templates, contracts, clean-room render |
| 6. Report | Local routing status and a weekly HTML report |
### Step 1: Prepare the Mac
`preinstall.sh` installs the base tools and a pinned Claude Code CLI, then leaves the repository at `~/athena`. You can read the script before running it.
**You get:** a Mac that can run the rest of the setup.
### Step 2: Choose what you want
Start Claude Code in the repository and type `/setup-os`. It asks which integrations and personal layers you want and writes the chosen configuration. Anything skipped can be added later.
**You get:** a configuration file that describes your machine, not someone else's.
### Step 3: Preview every layer
`./bootstrap.sh --dry-run` prints what each layer would do. Nothing is installed, cloned, or overwritten during the preview.
**You get:** a readable plan you can accept or edit before the real run.
### Step 4: Build the layers
Layers run in order: Homebrew baseline, optional tools, merged chezmoi templates, Claude Code plugins, the capability registry, project clones, an optional knowledge vault, secret storage and scheduled jobs.
**You get:** a workspace where agents, skills, and projects are back in place.
### Step 5: Run the checks
The same checks the repository workflow runs are available locally: shellcheck, the smoke suite, and a clean-room render into a temporary directory.
**You get:** green checks, or a named file and line to fix.
### Step 6: Watch the daily state
After the agent layer is installed, a status command reads local records and exits red when a job failed without a retry. A weekly command builds an HTML report from the same data.
**You get:** a short answer to the question "did anything quietly break this week".
## Quickstart
Athena targets macOS. The setup needs an administrator account and network access for Homebrew, npm, and Git repositories.
### Reviewable install
Clone the repository, inspect the installer, then run it:
Athena targets macOS. You need an administrator account and network access for Homebrew, npm, and Git.
```bash
git clone https://github.com/zarubinvibe/athena.git "$HOME/athena"
@@ -27,139 +111,64 @@ less preinstall.sh
./preinstall.sh
```
The installer sets up Xcode Command Line Tools, Homebrew, chezmoi, Node.js, Git, and a pinned Claude Code CLI. It leaves the repository at `~/athena`.
In a hurry on a fresh Mac? Run the same tracked script directly: `curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash`. No Git at all? Take [the ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) and unpack it. Then open Claude Code in the folder and type `/setup-os`.
Start Claude Code from the repository and enter `/setup-os`:
**You get:** the base tools are installed, the repository sits at `~/athena`, and `/setup-os` is ready to ask what you want.
```bash
cd "$HOME/athena"
claude
```
## Simple Comparison
`/setup-os` asks which integrations and personal layers you want, writes the selected configuration, and runs the bootstrap layers. Choices can be skipped and added later.
| Choice | Best when | What you get | Trade-off |
|---|---|---|---|
| **Athena** | You want the whole agent workspace back, not just dotfiles | Ordered layers, dry run, registry, projects, checks | macOS only |
| Setting it up by hand | One machine, once | Full control and nothing extra | A day of work and no way to repeat it |
| A dotfiles repository alone | You mainly need shell and editor configs | Simple and portable | It does not restore agent skills, registries, or projects |
| A cloud dev environment | Work happens in a container | Identical environment for a team | Your local machine and local agents stay unconfigured |
For a fresh Mac, the direct installer runs the same tracked script without a local review step:
## Simple Words
```bash
curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash
```
If the required tools already exist, preview the engine before applying anything:
```bash
cd "$HOME/athena"
cp athena.config.example.sh athena.config.sh
./bootstrap.sh --dry-run
```
## What Athena builds
`bootstrap.sh` runs ordered, repeatable layers. Use `--only=<layer>` to run one slice.
| Layer | Responsibility |
| Word | Simple meaning |
|---|---|
| `0` | Install the Homebrew tool baseline from `Brewfile`. |
| `0b` | Clone optional tools from `tools.manifest`. |
| `1` | Merge public chezmoi templates with an optional private overlay, then apply the result. |
| `1b` | Reinstall declared Claude Code marketplaces and plugins. |
| `2` | Rebuild and validate the local capability registry. |
| `3` | Clone projects listed in `projects.manifest`. |
| `4` | Restore an optional knowledge vault. |
| `5` | Prepare secret storage, show MCP reauthentication work, and register launchd jobs. |
| `6` | Run repository and installed-state smoke checks. |
| Repository | The project folder that Git stores and versions |
| Terminal | The window where you type commands |
| Command | One instruction you give the computer |
| Branch | A separate line of changes that does not touch `main` |
| Pull Request | A request to review your change and accept it |
| Layer | One ordered step of the setup that can run again safely |
| Dry run | A preview that prints the plan and changes nothing |
The layout keeps three kinds of state apart:
## Safety And Privacy
| Plane | Contents | Default location |
|---|---|---|
| Consciousness | Agent rules, skills, hooks, and registries | `~/.claude`, `~/.codex`, `~/.agents` |
| Knowledge | Personal notes and synthesized reference material | `~/Мозг` |
| Work | Projects, active files, and archives | Configured under `$HOME` |
- File access: layers write under your home folder and the paths named in your own configuration.
- Shell and network: setup runs Homebrew, npm, Git, chezmoi, and launchd commands and fetches configured repositories.
- Secrets: values belong in the macOS Keychain or `~/.secrets`, never in tracked manifests or templates.
- Approvals: `/setup-os` asks about optional parts; a direct bootstrap run follows your configuration without prompts.
- Guardrails: bundled hooks block known risky patterns, but they are not a system sandbox.
- Telemetry: Athena's own scripts send nothing. Installed third-party tools keep their own policies.
- Recovery: `athena-update` takes a backup and shows a diff before applying live changes.
The public repository contains generic templates and examples. Personal repositories, filled manifests, credentials, and knowledge content stay in an optional private overlay. Generic-only setup remains a supported path.
Read [SECURITY.md](SECURITY.md) before running Athena on a machine that holds important data.
## Examples
## Limits
Preview every layer or run one layer:
Status: public macOS reference implementation. Automated checks cover shell syntax, templates, hygiene, agent contracts, and a clean-room render.
```bash
./bootstrap.sh --dry-run
./bootstrap.sh --only=1
./bootstrap.sh --only=6
```
- macOS only: Homebrew prompts, Xcode dialogs, and launchd behaviour are platform specific.
- A first install on a fresh Mac still needs the manual acceptance checklist.
- The clean-room test renders into temporary folders and does not replace a real install.
- Private repositories, credentials, and personal knowledge are yours and cannot be validated by the public clone.
- Third-party versions and login flows change on their own schedule.
Run the same checks used by the repository workflow:
Deeper reading: [the full reference](docs/DETAILS.md), [feature reference](docs/FEATURES.en.md), [filesystem contract](rules/structure.md), [roadmap](specs/00-roadmap.md), and [live acceptance](smoke/live-acceptance.md).
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
./bootstrap.sh --dry-run
bash smoke/smoke.sh
ATHENA_PRIVATE_DIR="$(mktemp -d)" bash smoke/dry-validate.sh
```
## Star And Contribute
After the agent layer is installed, inspect routing activity or build a weekly report:
Useful? Give Athena a star: [https://github.com/zarubinvibe/athena](https://github.com/zarubinvibe/athena). It takes a second and it decides whether other people ever find the project.
```bash
node "$HOME/.agents/registry/scripts/athena-status.mjs" --days=7
node "$HOME/.agents/registry/scripts/athena-weekly-report.mjs" --format=html
```
Want to change something? The path is short: fork the repository, create a branch, commit your change, push the branch, then open a Pull Request. Do not push directly to `main`; the release gate rejects it.
The status command reads local JSONL records and exits with code `1` when it finds failed jobs without a retry. The weekly command writes reports under `~/.agents/reports`.
Found a problem instead? Open an issue at [https://github.com/zarubinvibe/athena/issues](https://github.com/zarubinvibe/athena/issues) and say what you ran and what happened.
## How it works
Athena first copies the public `chezmoi/` tree into a local merged source. If `ATHENA_PRIVATE_REPO` is configured, its overlay is applied on top. One `chezmoi init --apply` then renders the selected result. The remaining layers build registries, clone configured work, prepare runtime files, and run checks.
The scripts are designed to converge when run again. Guards stop common secret-path writes and force pushes to protected branches, while smoke tests check tracked files, templates, role contracts, and Claude/Codex parity.
Dotfile deployment uses [chezmoi](https://www.chezmoi.io/). The knowledge layout follows the synthesis-on-write approach described in [the bundled method reference](skills/setup-os/references/karpathy-method.md), popularized by Andrej Karpathy. The project name refers to Athena, the Greek goddess of wisdom and strategy.
The optional thin-session path hides most installed skills from the initial model prompt and routes a short relevant list per task. The measured example in [docs/thin-session.md](docs/thin-session.md) compares about 1,400 listed skills with a small allowlist; token savings depend on the actual skill inventory.
## Security and privacy
- File access: bootstrap layers write under `$HOME` and any paths named in your local configuration.
- Shell and network: setup can run Homebrew, npm, Git, chezmoi, and launchd commands and can fetch configured repositories.
- Secrets: values belong in macOS Keychain or `~/.secrets`, never in tracked manifests or templates.
- Approvals: `/setup-os` asks about optional integrations. Direct `bootstrap.sh` follows the supplied configuration without per-command prompts.
- Guardrails: included hooks block known risky patterns, but they are not an operating-system sandbox.
- Telemetry: Athena's own scripts add no telemetry. Installed third-party tools have separate policies.
- Recovery: `athena-update` takes a backup and shows a chezmoi diff before applying live configuration changes. Direct bootstrap runs rely on idempotency, Git history, and your normal system backups.
Read [SECURITY.md](SECURITY.md) before using Athena on a machine with important data.
## Documentation
- [Feature reference](docs/FEATURES.en.md): implemented layers and agent contracts.
- [Configuration example](athena.config.example.sh): public/private source and manifest paths.
- [Filesystem contract](rules/structure.md): canonical directory ownership.
- [Roadmap](specs/00-roadmap.md): completed phases and remaining acceptance work.
- [Architecture decisions](docs/decisions/): design records, including generic/private merge behavior.
- [Clean-room protocol](specs/05-clean-room-protocol.md): what the automated render test proves.
- [Live acceptance](smoke/live-acceptance.md): fresh-Mac and update checklist.
- [Contributing](CONTRIBUTING.md): setup and required checks.
## Status and known limits
The repository implements phases 1 through 8 in [the roadmap](specs/00-roadmap.md), including the layered bootstrap, onboarding, local agent contract, parity checks, status snapshot, and weekly report.
Known limits:
- Athena supports macOS. Homebrew password prompts, Xcode dialogs, and launchd behavior are platform-specific.
- The clean-room test renders into temporary directories. It does not replace a full install and real launchd registration on a fresh Mac or VM.
- Private repositories, credentials, MCP accounts, and personal knowledge are user-supplied and cannot be validated by the public clone.
- Shell guards reduce common mistakes. They do not provide process isolation or a kernel sandbox.
- Third-party package versions and authentication flows can change independently of this repository.
## Contributing
Read [CONTRIBUTING.md](CONTRIBUTING.md). The short check path is:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
bash smoke/smoke.sh
git diff --check
```
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Olympuz family
@@ -177,4 +186,4 @@ This is one of the public [Olympuz projects](https://github.com/zarubinvibe/athe
## License
Athena is available under the [MIT License](LICENSE). Copyright remains with the Athena authors and contributors.
MIT. See [LICENSE](LICENSE).
+136 -127
View File
@@ -1,24 +1,108 @@
# Athena
Athena - переносимая агентная ОС для macOS: собирает окружение Claude Code и Codex из версионируемых шаблонов, манифестов и проверок.
Athena заново собирает рабочую среду Claude Code и Codex на чистом Mac из версионных шаблонов и проверок.
[English](README.md) | [Справочник функций](docs/FEATURES.ru.md) | [Быстрый старт](#быстрый-старт) | [Безопасность](#безопасность-и-приватность) | [Участие](CONTRIBUTING.md)
[English](README.md)
<p align="center">
<img src="docs/assets/pantheon/emblem.png" width="144" alt="Мраморная эмблема Athena с совой, круглым щитом, схемой знаний и классической колонной">
</p>
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/athena?style=flat&color=C9A87A)](https://github.com/zarubinvibe/athena/stargazers) [![Status](https://img.shields.io/badge/status-reference-brightgreen.svg)](https://github.com/zarubinvibe/athena) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
![Мраморная Athena с совой, круглым щитом, слоями знаний и классической колонной](docs/assets/pantheon/hero.png)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Афина из белого мрамора с совой, круглым щитом и слоями знания у классической колонны" width="100%"></p>
Статус: публичная рабочая реализация для macOS. Автотесты проверяют shell-синтаксис, шаблоны, чистоту репозитория, агентные контракты и generic clean-room рендер. Полную установку на свежий Mac по-прежнему принимают вручную по чеклисту.
## Оглавление
- [Что это](#что-это)
- [Зачем это нужно](#зачем-это-нужно)
- [Главное преимущество](#главное-преимущество)
- [Как это работает](#как-это-работает)
- [Быстрый старт](#быстрый-старт)
- [Простое сравнение](#простое-сравнение)
- [Простые слова](#простые-слова)
- [Безопасность и приватность](#безопасность-и-приватность)
- [Ограничения](#ограничения)
- [Звезда и вклад](#звезда-и-вклад)
<!-- beginner-readme:start -->
## Что это
Athena это переносимая агентная ОС для macOS. Она держит вашу настройку в виде версионных шаблонов, манифестов и проверок, а потом слой за слоем собирает её на новой машине. Правила, скиллы, проекты и знания возвращаются на свои места.
## Зачем это нужно
Рабочая агентная настройка растёт месяцами: конфиги, скиллы, хуки, реестры, клонированные проекты. Новый ноутбук или сломанный профиль стирает всё. Athena превращает эту настройку в то, что собирается за вечер, а не вспоминается руками.
## Главное преимущество
**Главное преимущество:** настройка это повторяемая программа, а не память.
**Почему это лучше:** любой слой можно прогнать повторно, не ломая уже собранное, а `--dry-run` показывает весь план до записи первого файла.
## Как это работает
Bootstrap идёт упорядоченными слоями. Их можно посмотреть заранее, запустить один кусок или прогнать всю цепочку.
<!-- workflow-diagram:start -->
```text
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Подготовка │ ▶ │ Выбор │ ▶ │ Прогон │
└────────────┘ └────────────┘ └────────────┘
▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Сборка │ ▶ │ Проверки │ ▶ │ Отчёт │
└────────────┘ └────────────┘ └────────────┘
```
<!-- workflow-diagram:end -->
| Этап | Что происходит |
|---|---|
| 1. Подготовка | Сначала базовые инструменты: Xcode CLT, Homebrew, chezmoi, Node, Git |
| 2. Выбор | Интервью выбирает интеграции и личные слои |
| 3. Прогон | Полный план печатается до того, как что-то запишется |
| 4. Сборка | Инструменты, dotfiles, плагины, реестр, проекты, база знаний, launchd |
| 5. Проверки | Синтаксис shell, шаблоны, контракты, чистый рендер |
| 6. Отчёт | Локальный статус маршрутизации и недельный HTML-отчёт |
### Шаг 1: Подготовьте Mac
`preinstall.sh` ставит базовые инструменты и закреплённую версию Claude Code CLI, а репозиторий оставляет в `~/athena`. Скрипт можно прочитать до запуска.
**Что получится:** Mac, на котором может пойти вся остальная настройка.
### Шаг 2: Выберите, что вам нужно
Запустите Claude Code в репозитории и введите `/setup-os`. Он спросит, какие интеграции и личные слои нужны, и запишет выбранную конфигурацию. Пропущенное добавляется позже.
**Что получится:** файл конфигурации, который описывает вашу машину, а не чужую.
### Шаг 3: Посмотрите план целиком
`./bootstrap.sh --dry-run` печатает, что сделал бы каждый слой. Во время просмотра ничего не ставится, не клонируется и не перезаписывается.
**Что получится:** читаемый план, который можно принять или поправить до настоящего запуска.
### Шаг 4: Соберите слои
Слои идут по порядку: базовый Homebrew, необязательные инструменты, слитые шаблоны chezmoi, плагины Claude Code, реестр возможностей, клоны проектов, необязательная база знаний, хранилище секретов и фоновые задания.
**Что получится:** рабочая среда, где агенты, скиллы и проекты снова на месте.
### Шаг 5: Прогоните проверки
Те же проверки, что гоняет workflow репозитория, доступны локально: shellcheck, набор smoke и чистый рендер во временный каталог.
**Что получится:** зелёные проверки или названные файл и строка, которые надо починить.
### Шаг 6: Следите за состоянием
После установки агентского слоя команда статуса читает локальные записи и краснеет, если задание упало и не было повторено. Недельная команда собирает из тех же данных HTML-отчёт.
**Что получится:** короткий ответ на вопрос «не сломалось ли что-то тихо за неделю».
## Быстрый старт
Нужен Mac, учётная запись администратора и сеть для Homebrew, npm и Git-репозиториев.
### Установка с просмотром кода
Склонируй репозиторий, прочитай installer и запусти его:
Athena рассчитана на macOS. Нужны учётная запись администратора и сеть для Homebrew, npm и Git.
```bash
git clone https://github.com/zarubinvibe/athena.git "$HOME/athena"
@@ -27,139 +111,64 @@ less preinstall.sh
./preinstall.sh
```
Скрипт ставит Xcode Command Line Tools, Homebrew, chezmoi, Node.js, Git и закреплённую версию Claude Code CLI. Репозиторий остаётся в `~/athena`.
Спешите на чистом Mac? Запустите тот же версионный скрипт напрямую: `curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash`. Совсем нет Git? Возьмите [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) и распакуйте. Дальше откройте Claude Code в этой папке и введите `/setup-os`.
Запусти Claude Code из каталога Athena, затем введи `/setup-os`:
**Что получится:** базовые инструменты установлены, репозиторий лежит в `~/athena`, а `/setup-os` готов спросить, что вам нужно.
```bash
cd "$HOME/athena"
claude
```
## Простое сравнение
`/setup-os` спрашивает про интеграции и личные слои, записывает выбранную конфигурацию и запускает bootstrap. Любой необязательный пункт можно пропустить и добавить позже.
| Вариант | Когда подходит | Что получаете | Минус |
|---|---|---|---|
| **Athena** | Нужна вся агентная среда, а не только dotfiles | Упорядоченные слои, сухой прогон, реестр, проекты, проверки | Только macOS |
| Настройка руками | Одна машина и один раз | Полный контроль и ничего лишнего | День работы и никакой повторяемости |
| Только репозиторий dotfiles | Нужны в основном конфиги shell и редактора | Просто и переносимо | Не возвращает агентские скиллы, реестры и проекты |
| Облачная среда разработки | Работа идёт в контейнере | Одинаковая среда для команды | Локальная машина и локальные агенты остаются ненастроенными |
На свежем Mac доступен прямой запуск того же tracked-скрипта, но без локального просмотра:
## Простые слова
```bash
curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash
```
Если нужные инструменты уже стоят, сначала посмотри dry-run:
```bash
cd "$HOME/athena"
cp athena.config.example.sh athena.config.sh
./bootstrap.sh --dry-run
```
## Что собирает Athena
`bootstrap.sh` идёт по упорядоченным повторяемым слоям. Флаг `--only=<слой>` запускает один срез.
| Слой | Что происходит |
| Слово | Простое значение |
|---|---|
| `0` | Ставится базовый набор Homebrew из `Brewfile`. |
| `0b` | Клонируются необязательные инструменты из `tools.manifest`. |
| `1` | Публичные chezmoi-шаблоны смешиваются с необязательным приватным overlay и применяются. |
| `1b` | Восстанавливаются объявленные marketplaces и плагины Claude Code. |
| `2` | Пересобирается и проверяется локальный реестр способностей. |
| `3` | Клонируются проекты из `projects.manifest`. |
| `4` | Восстанавливается необязательный vault знаний. |
| `5` | Готовится хранилище секретов, показываются шаги MCP-авторизации, регистрируются launchd-задачи. |
| `6` | Запускаются smoke-проверки репозитория и установленного состояния. |
Три плоскости не смешиваются:
| Плоскость | Что хранит | Базовое место |
|---|---|---|
| Сознание | Правила агентов, skills, hooks и реестры | `~/.claude`, `~/.codex`, `~/.agents` |
| Знания | Личные заметки и синтезированные справочные материалы | `~/Мозг` |
| Работа | Проекты, активные файлы и архивы | Настраиваемые каталоги внутри `$HOME` |
В публичном репозитории лежат generic-шаблоны и примеры. Личные репозитории, заполненные манифесты, учётные данные и содержимое vault остаются в необязательном приватном overlay. Публичный generic-вариант работает и без него.
## Примеры
Посмотреть все слои или запустить один:
```bash
./bootstrap.sh --dry-run
./bootstrap.sh --only=1
./bootstrap.sh --only=6
```
Прогнать тот же набор, который использует workflow репозитория:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
./bootstrap.sh --dry-run
bash smoke/smoke.sh
ATHENA_PRIVATE_DIR="$(mktemp -d)" bash smoke/dry-validate.sh
```
После установки агентного слоя можно посмотреть routing-активность или собрать недельный отчёт:
```bash
node "$HOME/.agents/registry/scripts/athena-status.mjs" --days=7
node "$HOME/.agents/registry/scripts/athena-weekly-report.mjs" --format=html
```
Первая команда читает локальные JSONL-записи и возвращает код `1`, если видит упавшие задачи без retry. Вторая пишет отчёты в `~/.agents/reports`.
## Как это работает
Athena копирует публичное дерево `chezmoi/` в локальный merged source. Если настроен `ATHENA_PRIVATE_REPO`, его overlay ложится сверху. Затем один `chezmoi init --apply` рендерит выбранный вариант. Остальные слои собирают реестры, клонируют настроенные проекты, готовят runtime и запускают проверки.
Повторный запуск сходится к тому же состоянию. Guards режут типичные записи в секретные пути и force push в защищённые ветки. Smoke проверяет tracked-файлы, шаблоны, паспорта ролей и паритет Claude/Codex.
Дотфайлы раскладывает [chezmoi](https://www.chezmoi.io/). Слой знаний использует synthesis-on-write из [встроенного описания метода](skills/setup-os/references/karpathy-method.md), который популяризировал Андрей Карпаты. Название проекта отсылает к Афине, древнегреческой богине мудрости и стратегии.
Необязательный thin-session режим скрывает большую часть skills из стартового prompt и подбирает короткий список под задачу. Замер в [docs/thin-session.md](docs/thin-session.md) сравнивает около 1400 видимых skills с малым allowlist. Экономия токенов зависит от реального набора.
| Repository | Папка проекта, которую хранит и версионирует Git |
| Terminal | Окно, куда вы вводите команды |
| Command | Одна инструкция компьютеру |
| Branch | Отдельная линия изменений, которая не трогает `main` |
| Pull Request | Просьба проверить ваше изменение и принять его |
| Layer | Один упорядоченный шаг настройки, который можно безопасно повторить |
| Dry run | Просмотр плана без единого изменения на диске |
## Безопасность и приватность
- Файлы: bootstrap пишет внутрь `$HOME` и в пути из локальной конфигурации.
- Shell и сеть: установка запускает Homebrew, npm, Git, chezmoi и launchd, а также скачивает настроенные репозитории.
- Секреты: значения хранятся в Keychain macOS или `~/.secrets`, но не в tracked-манифестах и шаблонах.
- Подтверждения: `/setup-os` спрашивает про необязательные интеграции. Прямой `bootstrap.sh` выполняет конфигурацию без вопроса перед каждой командой.
- Защита: встроенные hooks блокируют известные опасные паттерны, но не заменяют системный sandbox.
- Телеметрия: собственные shell- и Node.js-скрипты Athena её не добавляют. У сторонних инструментов свои правила.
- Восстановление: `athena-update` снимает бэкап и показывает chezmoi diff до правок живой конфигурации. Прямой bootstrap опирается на идемпотентность, историю Git и обычные системные бэкапы.
- Доступ к файлам: слои пишут в домашнюю папку и в пути, названные в вашей конфигурации.
- Shell и сеть: установка запускает Homebrew, npm, Git, chezmoi и launchd и тянет указанные репозитории.
- Секреты: значения живут в Keychain macOS или `~/.secrets`, но не в версионных манифестах и шаблонах.
- Подтверждения: `/setup-os` спрашивает про необязательные части, прямой запуск bootstrap идёт по конфигурации без вопросов.
- Ограждения: встроенные хуки блокируют известные опасные шаблоны, но это не системный sandbox.
- Телеметрия: собственные скрипты Athena ничего не отправляют. У сторонних инструментов свои правила.
- Восстановление: `athena-update` делает резервную копию и показывает diff до применения изменений.
Перед установкой на важную машину прочитай [SECURITY.md](SECURITY.md).
Прочитайте [SECURITY.md](SECURITY.md), прежде чем запускать Athena на машине с важными данными.
## Документация
## Ограничения
- [Справочник функций](docs/FEATURES.ru.md): реализованные слои и агентные контракты.
- [Пример конфигурации](athena.config.example.sh): public/private source и пути манифестов.
- [Контракт файловой системы](rules/structure.md): кому принадлежат каталоги.
- [Roadmap](specs/00-roadmap.md): завершённые фазы и оставшаяся приёмка.
- [Архитектурные решения](docs/decisions/): в том числе generic/private merge.
- [Clean-room протокол](specs/05-clean-room-protocol.md): что именно доказывает автоматический рендер.
- [Live acceptance](smoke/live-acceptance.md): чеклист свежего Mac и обновления.
- [Участие](CONTRIBUTING.md): окружение и обязательные проверки.
Статус: публичная эталонная реализация для macOS. Автопроверки закрывают синтаксис shell, шаблоны, гигиену, агентские контракты и чистый рендер.
## Статус и ограничения
- Только macOS: запросы Homebrew, окна Xcode и поведение launchd зависят от платформы.
- Первая установка на чистом Mac всё ещё требует ручного чек-листа приёмки.
- Тест чистой комнаты рендерит во временные папки и не заменяет настоящую установку.
- Приватные репозитории, доступы и личные знания ваши, публичный клон их не проверяет.
- Версии сторонних инструментов и способы входа меняются по своему расписанию.
В репозитории реализованы фазы 1-8 из [roadmap](specs/00-roadmap.md): слоистый bootstrap, onboarding, local agent contract, parity checks, status snapshot и недельный отчёт.
Глубже: [полный разбор](docs/DETAILS.ru.md), [описание возможностей](docs/FEATURES.en.md), [контракт файловой системы](rules/structure.md), [дорожная карта](specs/00-roadmap.md) и [живая приёмка](smoke/live-acceptance.md).
Ограничения:
## Звезда и вклад
- Athena работает на macOS. Пароль Homebrew, диалоги Xcode и launchd привязаны к платформе.
- Clean-room тест рендерит шаблоны во временные каталоги. Он не заменяет полную установку и реальную регистрацию launchd на свежем Mac или VM.
- Приватные репозитории, credentials, MCP-аккаунты и личные знания добавляет пользователь. Публичный клон их не проверяет.
- Shell guards ловят типовые ошибки, но не изолируют процессы на уровне ядра.
- Версии сторонних пакетов и их авторизация меняются независимо от Athena.
Пригодилось? Поставьте Athena звезду: [https://github.com/zarubinvibe/athena](https://github.com/zarubinvibe/athena). Это секунда, а от неё зависит, найдут ли проект другие люди.
## Как помочь проекту
Хотите что-то поправить? Путь короткий: сделайте fork, заведите ветку, оформите commit, отправьте push и откройте Pull Request. Не отправляйте push прямо в `main`: релизный gate его отклонит.
Правила лежат в [CONTRIBUTING.md](CONTRIBUTING.md). Короткий набор проверок:
Нашли ошибку? Заведите issue на [https://github.com/zarubinvibe/athena/issues](https://github.com/zarubinvibe/athena/issues) и напишите, что запускали и что получилось.
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
bash smoke/smoke.sh
git diff --check
```
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Семья Olympuz
@@ -177,4 +186,4 @@ git diff --check
## Лицензия
Athena распространяется по [лицензии MIT](LICENSE). Права сохраняются за авторами и участниками проекта.
MIT. Текст в файле [LICENSE](LICENSE).
+170
View File
@@ -0,0 +1,170 @@
> Long-form reference kept from the previous README. The short beginner page lives in [README.md](../README.md).
# Athena
Athena is a portable agent OS for macOS that rebuilds a Claude Code and Codex workspace from versioned templates, manifests, and checks.
[Russian](README.ru.md) | [Feature reference](docs/FEATURES.en.md) | [Quickstart](#quickstart) | [Security](#security-and-privacy) | [Contributing](CONTRIBUTING.md)
<p align="center">
<img src="docs/assets/pantheon/emblem.png" width="144" alt="Athena marble emblem with an owl, round shield, knowledge lines, and classical column">
</p>
![Athena marble hero with an owl, round shield, layered knowledge planes, and classical column](docs/assets/pantheon/hero.png)
Status: public macOS reference implementation. Automated checks cover shell syntax, templates, repository hygiene, agent contracts, and generic clean-room rendering. A complete first install on a fresh Mac still needs the manual acceptance checklist.
## Quickstart
Athena targets macOS. The setup needs an administrator account and network access for Homebrew, npm, and Git repositories.
### Reviewable install
Clone the repository, inspect the installer, then run it:
```bash
git clone https://github.com/zarubinvibe/athena.git "$HOME/athena"
cd "$HOME/athena"
less preinstall.sh
./preinstall.sh
```
The installer sets up Xcode Command Line Tools, Homebrew, chezmoi, Node.js, Git, and a pinned Claude Code CLI. It leaves the repository at `~/athena`.
Start Claude Code from the repository and enter `/setup-os`:
```bash
cd "$HOME/athena"
claude
```
`/setup-os` asks which integrations and personal layers you want, writes the selected configuration, and runs the bootstrap layers. Choices can be skipped and added later.
For a fresh Mac, the direct installer runs the same tracked script without a local review step:
```bash
curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash
```
If the required tools already exist, preview the engine before applying anything:
```bash
cd "$HOME/athena"
cp athena.config.example.sh athena.config.sh
./bootstrap.sh --dry-run
```
## What Athena builds
`bootstrap.sh` runs ordered, repeatable layers. Use `--only=<layer>` to run one slice.
| Layer | Responsibility |
|---|---|
| `0` | Install the Homebrew tool baseline from `Brewfile`. |
| `0b` | Clone optional tools from `tools.manifest`. |
| `1` | Merge public chezmoi templates with an optional private overlay, then apply the result. |
| `1b` | Reinstall declared Claude Code marketplaces and plugins. |
| `2` | Rebuild and validate the local capability registry. |
| `3` | Clone projects listed in `projects.manifest`. |
| `4` | Restore an optional knowledge vault. |
| `5` | Prepare secret storage, show MCP reauthentication work, and register launchd jobs. |
| `6` | Run repository and installed-state smoke checks. |
The layout keeps three kinds of state apart:
| Plane | Contents | Default location |
|---|---|---|
| Consciousness | Agent rules, skills, hooks, and registries | `~/.claude`, `~/.codex`, `~/.agents` |
| Knowledge | Personal notes and synthesized reference material | `~/Мозг` |
| Work | Projects, active files, and archives | Configured under `$HOME` |
The public repository contains generic templates and examples. Personal repositories, filled manifests, credentials, and knowledge content stay in an optional private overlay. Generic-only setup remains a supported path.
## Examples
Preview every layer or run one layer:
```bash
./bootstrap.sh --dry-run
./bootstrap.sh --only=1
./bootstrap.sh --only=6
```
Run the same checks used by the repository workflow:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
./bootstrap.sh --dry-run
bash smoke/smoke.sh
ATHENA_PRIVATE_DIR="$(mktemp -d)" bash smoke/dry-validate.sh
```
After the agent layer is installed, inspect routing activity or build a weekly report:
```bash
node "$HOME/.agents/registry/scripts/athena-status.mjs" --days=7
node "$HOME/.agents/registry/scripts/athena-weekly-report.mjs" --format=html
```
The status command reads local JSONL records and exits with code `1` when it finds failed jobs without a retry. The weekly command writes reports under `~/.agents/reports`.
## How it works
Athena first copies the public `chezmoi/` tree into a local merged source. If `ATHENA_PRIVATE_REPO` is configured, its overlay is applied on top. One `chezmoi init --apply` then renders the selected result. The remaining layers build registries, clone configured work, prepare runtime files, and run checks.
The scripts are designed to converge when run again. Guards stop common secret-path writes and force pushes to protected branches, while smoke tests check tracked files, templates, role contracts, and Claude/Codex parity.
Dotfile deployment uses [chezmoi](https://www.chezmoi.io/). The knowledge layout follows the synthesis-on-write approach described in [the bundled method reference](skills/setup-os/references/karpathy-method.md), popularized by Andrej Karpathy. The project name refers to Athena, the Greek goddess of wisdom and strategy.
The optional thin-session path hides most installed skills from the initial model prompt and routes a short relevant list per task. The measured example in [docs/thin-session.md](docs/thin-session.md) compares about 1,400 listed skills with a small allowlist; token savings depend on the actual skill inventory.
## Security and privacy
- File access: bootstrap layers write under `$HOME` and any paths named in your local configuration.
- Shell and network: setup can run Homebrew, npm, Git, chezmoi, and launchd commands and can fetch configured repositories.
- Secrets: values belong in macOS Keychain or `~/.secrets`, never in tracked manifests or templates.
- Approvals: `/setup-os` asks about optional integrations. Direct `bootstrap.sh` follows the supplied configuration without per-command prompts.
- Guardrails: included hooks block known risky patterns, but they are not an operating-system sandbox.
- Telemetry: Athena's own scripts add no telemetry. Installed third-party tools have separate policies.
- Recovery: `athena-update` takes a backup and shows a chezmoi diff before applying live configuration changes. Direct bootstrap runs rely on idempotency, Git history, and your normal system backups.
Read [SECURITY.md](SECURITY.md) before using Athena on a machine with important data.
## Documentation
- [Feature reference](docs/FEATURES.en.md): implemented layers and agent contracts.
- [Configuration example](athena.config.example.sh): public/private source and manifest paths.
- [Filesystem contract](rules/structure.md): canonical directory ownership.
- [Roadmap](specs/00-roadmap.md): completed phases and remaining acceptance work.
- [Architecture decisions](docs/decisions/): design records, including generic/private merge behavior.
- [Clean-room protocol](specs/05-clean-room-protocol.md): what the automated render test proves.
- [Live acceptance](smoke/live-acceptance.md): fresh-Mac and update checklist.
- [Contributing](CONTRIBUTING.md): setup and required checks.
## Status and known limits
The repository implements phases 1 through 8 in [the roadmap](specs/00-roadmap.md), including the layered bootstrap, onboarding, local agent contract, parity checks, status snapshot, and weekly report.
Known limits:
- Athena supports macOS. Homebrew password prompts, Xcode dialogs, and launchd behavior are platform-specific.
- The clean-room test renders into temporary directories. It does not replace a full install and real launchd registration on a fresh Mac or VM.
- Private repositories, credentials, MCP accounts, and personal knowledge are user-supplied and cannot be validated by the public clone.
- Shell guards reduce common mistakes. They do not provide process isolation or a kernel sandbox.
- Third-party package versions and authentication flows can change independently of this repository.
## Contributing
Read [CONTRIBUTING.md](CONTRIBUTING.md). The short check path is:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
bash smoke/smoke.sh
git diff --check
```
## License
Athena is available under the [MIT License](LICENSE). Copyright remains with the Athena authors and contributors.
+170
View File
@@ -0,0 +1,170 @@
> Long-form reference kept from the previous README. The short beginner page lives in [README.md](../README.md).
# Athena
Athena - переносимая агентная ОС для macOS: собирает окружение Claude Code и Codex из версионируемых шаблонов, манифестов и проверок.
[English](README.md) | [Справочник функций](docs/FEATURES.ru.md) | [Быстрый старт](#быстрый-старт) | [Безопасность](#безопасность-и-приватность) | [Участие](CONTRIBUTING.md)
<p align="center">
<img src="docs/assets/pantheon/emblem.png" width="144" alt="Мраморная эмблема Athena с совой, круглым щитом, схемой знаний и классической колонной">
</p>
![Мраморная Athena с совой, круглым щитом, слоями знаний и классической колонной](docs/assets/pantheon/hero.png)
Статус: публичная рабочая реализация для macOS. Автотесты проверяют shell-синтаксис, шаблоны, чистоту репозитория, агентные контракты и generic clean-room рендер. Полную установку на свежий Mac по-прежнему принимают вручную по чеклисту.
## Быстрый старт
Нужен Mac, учётная запись администратора и сеть для Homebrew, npm и Git-репозиториев.
### Установка с просмотром кода
Склонируй репозиторий, прочитай installer и запусти его:
```bash
git clone https://github.com/zarubinvibe/athena.git "$HOME/athena"
cd "$HOME/athena"
less preinstall.sh
./preinstall.sh
```
Скрипт ставит Xcode Command Line Tools, Homebrew, chezmoi, Node.js, Git и закреплённую версию Claude Code CLI. Репозиторий остаётся в `~/athena`.
Запусти Claude Code из каталога Athena, затем введи `/setup-os`:
```bash
cd "$HOME/athena"
claude
```
`/setup-os` спрашивает про интеграции и личные слои, записывает выбранную конфигурацию и запускает bootstrap. Любой необязательный пункт можно пропустить и добавить позже.
На свежем Mac доступен прямой запуск того же tracked-скрипта, но без локального просмотра:
```bash
curl -fsSL https://raw.githubusercontent.com/zarubinvibe/athena/main/preinstall.sh | bash
```
Если нужные инструменты уже стоят, сначала посмотри dry-run:
```bash
cd "$HOME/athena"
cp athena.config.example.sh athena.config.sh
./bootstrap.sh --dry-run
```
## Что собирает Athena
`bootstrap.sh` идёт по упорядоченным повторяемым слоям. Флаг `--only=<слой>` запускает один срез.
| Слой | Что происходит |
|---|---|
| `0` | Ставится базовый набор Homebrew из `Brewfile`. |
| `0b` | Клонируются необязательные инструменты из `tools.manifest`. |
| `1` | Публичные chezmoi-шаблоны смешиваются с необязательным приватным overlay и применяются. |
| `1b` | Восстанавливаются объявленные marketplaces и плагины Claude Code. |
| `2` | Пересобирается и проверяется локальный реестр способностей. |
| `3` | Клонируются проекты из `projects.manifest`. |
| `4` | Восстанавливается необязательный vault знаний. |
| `5` | Готовится хранилище секретов, показываются шаги MCP-авторизации, регистрируются launchd-задачи. |
| `6` | Запускаются smoke-проверки репозитория и установленного состояния. |
Три плоскости не смешиваются:
| Плоскость | Что хранит | Базовое место |
|---|---|---|
| Сознание | Правила агентов, skills, hooks и реестры | `~/.claude`, `~/.codex`, `~/.agents` |
| Знания | Личные заметки и синтезированные справочные материалы | `~/Мозг` |
| Работа | Проекты, активные файлы и архивы | Настраиваемые каталоги внутри `$HOME` |
В публичном репозитории лежат generic-шаблоны и примеры. Личные репозитории, заполненные манифесты, учётные данные и содержимое vault остаются в необязательном приватном overlay. Публичный generic-вариант работает и без него.
## Примеры
Посмотреть все слои или запустить один:
```bash
./bootstrap.sh --dry-run
./bootstrap.sh --only=1
./bootstrap.sh --only=6
```
Прогнать тот же набор, который использует workflow репозитория:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
./bootstrap.sh --dry-run
bash smoke/smoke.sh
ATHENA_PRIVATE_DIR="$(mktemp -d)" bash smoke/dry-validate.sh
```
После установки агентного слоя можно посмотреть routing-активность или собрать недельный отчёт:
```bash
node "$HOME/.agents/registry/scripts/athena-status.mjs" --days=7
node "$HOME/.agents/registry/scripts/athena-weekly-report.mjs" --format=html
```
Первая команда читает локальные JSONL-записи и возвращает код `1`, если видит упавшие задачи без retry. Вторая пишет отчёты в `~/.agents/reports`.
## Как это работает
Athena копирует публичное дерево `chezmoi/` в локальный merged source. Если настроен `ATHENA_PRIVATE_REPO`, его overlay ложится сверху. Затем один `chezmoi init --apply` рендерит выбранный вариант. Остальные слои собирают реестры, клонируют настроенные проекты, готовят runtime и запускают проверки.
Повторный запуск сходится к тому же состоянию. Guards режут типичные записи в секретные пути и force push в защищённые ветки. Smoke проверяет tracked-файлы, шаблоны, паспорта ролей и паритет Claude/Codex.
Дотфайлы раскладывает [chezmoi](https://www.chezmoi.io/). Слой знаний использует synthesis-on-write из [встроенного описания метода](skills/setup-os/references/karpathy-method.md), который популяризировал Андрей Карпаты. Название проекта отсылает к Афине, древнегреческой богине мудрости и стратегии.
Необязательный thin-session режим скрывает большую часть skills из стартового prompt и подбирает короткий список под задачу. Замер в [docs/thin-session.md](docs/thin-session.md) сравнивает около 1400 видимых skills с малым allowlist. Экономия токенов зависит от реального набора.
## Безопасность и приватность
- Файлы: bootstrap пишет внутрь `$HOME` и в пути из локальной конфигурации.
- Shell и сеть: установка запускает Homebrew, npm, Git, chezmoi и launchd, а также скачивает настроенные репозитории.
- Секреты: значения хранятся в Keychain macOS или `~/.secrets`, но не в tracked-манифестах и шаблонах.
- Подтверждения: `/setup-os` спрашивает про необязательные интеграции. Прямой `bootstrap.sh` выполняет конфигурацию без вопроса перед каждой командой.
- Защита: встроенные hooks блокируют известные опасные паттерны, но не заменяют системный sandbox.
- Телеметрия: собственные shell- и Node.js-скрипты Athena её не добавляют. У сторонних инструментов свои правила.
- Восстановление: `athena-update` снимает бэкап и показывает chezmoi diff до правок живой конфигурации. Прямой bootstrap опирается на идемпотентность, историю Git и обычные системные бэкапы.
Перед установкой на важную машину прочитай [SECURITY.md](SECURITY.md).
## Документация
- [Справочник функций](docs/FEATURES.ru.md): реализованные слои и агентные контракты.
- [Пример конфигурации](athena.config.example.sh): public/private source и пути манифестов.
- [Контракт файловой системы](rules/structure.md): кому принадлежат каталоги.
- [Roadmap](specs/00-roadmap.md): завершённые фазы и оставшаяся приёмка.
- [Архитектурные решения](docs/decisions/): в том числе generic/private merge.
- [Clean-room протокол](specs/05-clean-room-protocol.md): что именно доказывает автоматический рендер.
- [Live acceptance](smoke/live-acceptance.md): чеклист свежего Mac и обновления.
- [Участие](CONTRIBUTING.md): окружение и обязательные проверки.
## Статус и ограничения
В репозитории реализованы фазы 1-8 из [roadmap](specs/00-roadmap.md): слоистый bootstrap, onboarding, local agent contract, parity checks, status snapshot и недельный отчёт.
Ограничения:
- Athena работает на macOS. Пароль Homebrew, диалоги Xcode и launchd привязаны к платформе.
- Clean-room тест рендерит шаблоны во временные каталоги. Он не заменяет полную установку и реальную регистрацию launchd на свежем Mac или VM.
- Приватные репозитории, credentials, MCP-аккаунты и личные знания добавляет пользователь. Публичный клон их не проверяет.
- Shell guards ловят типовые ошибки, но не изолируют процессы на уровне ядра.
- Версии сторонних пакетов и их авторизация меняются независимо от Athena.
## Как помочь проекту
Правила лежат в [CONTRIBUTING.md](CONTRIBUTING.md). Короткий набор проверок:
```bash
shellcheck -S error bootstrap.sh preinstall.sh smoke/*.sh
bash smoke/smoke.sh
git diff --check
```
## Лицензия
Athena распространяется по [лицензии MIT](LICENSE). Права сохраняются за авторами и участниками проекта.