ai-first-os 1.10.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -31
- package/core/CLAUDE.md +48 -12
- package/core/VERSION +1 -1
- package/core/install.sh +173 -52
- package/core/lib/bootstrap.sh +41 -26
- package/core/lib/build-indexes.sh +283 -0
- package/core/lib/capture.sh +126 -55
- package/core/lib/check-resolvable.sh +13 -2
- package/core/lib/close-session.sh +172 -119
- package/core/lib/common.sh +505 -92
- package/core/lib/focus-read.sh +94 -58
- package/core/lib/manual-link.sh +10 -8
- package/core/lib/markdown.py +2 -2
- package/core/lib/migrate-layout.sh +92 -0
- package/core/lib/migrate-root.sh +497 -0
- package/core/lib/migrate_layout.py +2000 -0
- package/core/lib/new-memory.sh +33 -44
- package/core/lib/new-product.sh +11 -13
- package/core/lib/new-workspace.sh +18 -9
- package/core/lib/orchestrator-init.sh +80 -0
- package/core/lib/pack-install.sh +44 -30
- package/core/lib/recall.sh +1 -1
- package/core/lib/recall_index.py +48 -6
- package/core/lib/remote-backup.sh +30 -20
- package/core/lib/rename-heads.sh +8 -8
- package/core/lib/rename-workspaces.sh +3 -3
- package/core/lib/session-read.sh +133 -73
- package/core/lib/session-start.sh +238 -221
- package/core/lib/supersede.sh +199 -3
- package/core/lib/sweep.sh +5 -0
- package/core/manual/COMO-FUNCIONA.md +169 -58
- package/core/manual/HOW-IT-WORKS.md +158 -57
- package/core/resolver.md +4 -2
- package/core/skills/bootstrap.md +63 -44
- package/core/skills/capture.md +15 -8
- package/core/skills/check-resolvable.md +1 -1
- package/core/skills/close-session.md +9 -5
- package/core/skills/grill.md +3 -3
- package/core/skills/migrate-layout.md +48 -0
- package/core/skills/migrate-root.md +64 -0
- package/core/skills/mount-repo.md +6 -6
- package/core/skills/new-memory.md +20 -18
- package/core/skills/new-product.md +4 -3
- package/core/skills/new-spec.md +6 -0
- package/core/skills/new-workspace.md +7 -5
- package/core/skills/orchestrator.md +101 -0
- package/core/skills/supersede.md +14 -0
- package/core/templates/node-repo/context/open-questions.md +3 -0
- package/core/templates/strings.md +396 -271
- package/core/templates/tree.md +22 -27
- package/package.json +1 -1
- package/core/lib/my-wiki-gates.sh +0 -137
- package/core/lib/my-wiki.sh +0 -202
- package/core/lib/my_wiki_build.py +0 -548
- package/core/lib/my_wiki_graph.py +0 -137
- package/core/lib/my_wiki_overview.py +0 -392
- package/core/skills/my-wiki.md +0 -103
- package/core/templates/my-wiki-graph.js +0 -431
- package/core/templates/my-wiki-overview.js +0 -174
- package/core/templates/my-wiki.html +0 -1017
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# AI First OS — how this system works
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
> product
|
|
5
|
-
> it. Nothing you write
|
|
6
|
-
> update. Your things live in the other files, and this manual says
|
|
3
|
+
> [!NOTE] This file is the manual of the system
|
|
4
|
+
> It is part of the product and linked from it, so it keeps itself current: when the system is
|
|
5
|
+
> updated, this text is updated with it. Nothing you write lives here: whatever you edit in this
|
|
6
|
+
> file is overwritten by the next update. Your things live in the other files, and this manual says
|
|
7
|
+
> which ones.
|
|
7
8
|
|
|
8
9
|
## The idea in one line
|
|
9
10
|
|
|
@@ -24,32 +25,96 @@ The analogy is an operating system and your disk: the OS gets updated; your brai
|
|
|
24
25
|
touched. That is why you do not "install a brain" — you install the OS, and your brain is born
|
|
25
26
|
once, through the interview.
|
|
26
27
|
|
|
27
|
-
##
|
|
28
|
+
## What you see in this folder
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
**Four things are visible at the root of this folder. Everything else is hidden, because only the
|
|
31
|
+
system reads it.** The root holds the machinery of the system and your account — never work. Your
|
|
32
|
+
own work is a workspace.
|
|
33
|
+
|
|
34
|
+
| In the folder | What it is | Who edits it |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `AGENTS.md` | The rule book every session follows before it answers. It is a link to the product | Nobody: it is read-only on purpose |
|
|
37
|
+
| `HOW-IT-WORKS.md` | This manual, in your language. Also a link to the product | Nobody |
|
|
38
|
+
| `account/` | You: who you are, how you want to be answered and how you write | You |
|
|
39
|
+
| `workspaces/` | Your work: one folder per workspace — your own, a company, a client | You and the agent, together |
|
|
40
|
+
|
|
41
|
+
Inside `account/`:
|
|
42
|
+
|
|
43
|
+
| File | What it answers |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `account/operator.md` | Who you are and how you want to be answered. **Your own rules for the agent go here** |
|
|
46
|
+
| `account/voice/voice.md` | How you write when you write well. The agent reads it when it is about to write something in your name, not at the start of every session |
|
|
47
|
+
|
|
48
|
+
### The rule book, and the warning at its top
|
|
49
|
+
|
|
50
|
+
`AGENTS.md` and `.claude/CLAUDE.md` are two links to the same file, so every agent harness (Claude
|
|
51
|
+
Code, Codex, Cursor, OpenCode) finds the rule book where it looks for it. The file opens with a
|
|
52
|
+
`[!WARNING]` block: it says the file is not edited, why, and that your rules go in
|
|
53
|
+
`account/operator.md`. The reason is simple: that file is the same for everyone who uses the system,
|
|
54
|
+
so editing it in your copy means your changes are lost with the next update. On an installed copy
|
|
55
|
+
the system also takes the write permission off it, so the editor stops you before you start.
|
|
56
|
+
|
|
57
|
+
> [!TIP] Your own rules go in account/operator.md
|
|
58
|
+
> **Your own rules never go in the rule book.** They go in `account/operator.md`. If this folder
|
|
59
|
+
> already had a rules file of your own when the system was installed, installing with `--adopt`
|
|
60
|
+
> appends its content to the end of `account/operator.md`, under a heading that says where it came
|
|
61
|
+
> from, and puts the system's link in its place. Nothing you wrote is lost.
|
|
62
|
+
|
|
63
|
+
### What is yours to edit, and what is not
|
|
64
|
+
|
|
65
|
+
- **Yours:** `account/` (both files), everything inside `workspaces/` — the heads of your
|
|
66
|
+
workspaces, initiatives and products, their `resources/`, `context/` and `research/` — and any
|
|
67
|
+
skill you write yourself.
|
|
68
|
+
- **Not yours:** `AGENTS.md`, `HOW-IT-WORKS.md` and `.claude/CLAUDE.md` (links to the product),
|
|
69
|
+
`.os/` (links to the product's tools) and every **generated file**.
|
|
70
|
+
- **Edited rarely, and with care:** `.system/`. It is the machinery the root needs to work:
|
|
71
|
+
`tree.md` (the map of the paths a scan walks), `resolver.md` (the table of capabilities and the
|
|
72
|
+
tool that resolves each one; your rows win over the product's) and, on a machine that mounts repos,
|
|
73
|
+
`mounts.md` (the environment table: which repos are mounted, and where). It is hidden because
|
|
74
|
+
nobody needs to open it in a normal day: the system reads it, and the commands that create
|
|
75
|
+
something (a workspace, a product) add their own lines to it.
|
|
76
|
+
|
|
77
|
+
### Generated files
|
|
78
|
+
|
|
79
|
+
A **generated file** is one the system writes for you and rewrites on its own. Its frontmatter says
|
|
80
|
+
`generated: true`, and the header under it says which files it is built from. The `index.md` of a
|
|
81
|
+
product, an account or a channel is one: a table of the initiatives, and the lists of decisions and learnings,
|
|
82
|
+
that are about that product. **Do not edit it**: your edit disappears at the next session start. Edit the
|
|
83
|
+
source — the initiative, the decision or the learning — and the index follows. A generated file is
|
|
84
|
+
not committed to git: every copy of the brain builds its own.
|
|
85
|
+
|
|
86
|
+
### How a session starts
|
|
87
|
+
|
|
88
|
+
1. You name the workspace you are working on.
|
|
89
|
+
2. The agent runs the **scan** and the **startup read** before answering: first `account/operator.md`,
|
|
90
|
+
then the head of the workspace and its own table of tools, its glossary and its map of contexts
|
|
91
|
+
if it has them, its key decisions, and the tables of tools of the system and of the root. It does
|
|
92
|
+
not load your voice: it reads it when it writes something in your name.
|
|
93
|
+
3. You pick a focus, and only then is the body of that initiative or product loaded.
|
|
94
|
+
|
|
95
|
+
The details of each step are in the cycle of one session, further down.
|
|
96
|
+
|
|
97
|
+
**Your own work is a workspace, `personal`** — the one every brain is born with, alongside any
|
|
98
|
+
company or client you add later. There is one single building block, repeated at every height for
|
|
99
|
+
every workspace: the **node**. Every node answers the same questions, and each question is a file:
|
|
33
100
|
|
|
34
101
|
| File | What it answers |
|
|
35
102
|
|---|---|
|
|
36
|
-
| `operator.md` | Who you are and how you want to be answered |
|
|
37
|
-
| `voice.md` | How you write when you write well |
|
|
38
|
-
| `resolver.md` | Capability → tool: which skill resolves which request |
|
|
39
|
-
| `tree.md` | Which paths a scan walks — the map of the system |
|
|
40
103
|
| `workspaces/<name>/README.md` | What that workspace is and which standing craft it activates |
|
|
41
104
|
| `workspaces/<name>/<type>/<slug>/README.md` | What a memory node is, for whom, and what is known about it — `products/` is the one type this system ships with its own tool |
|
|
42
105
|
| `workspaces/<name>/people/<slug>.md` | Who a person is, their organization and title, their contact and how it is best to deal with them — content of the workspace, never a node: the scan never reads it |
|
|
43
|
-
| `initiatives/<slug>/README.md` | The work: one head per initiative, with its state, its horizon, and `about:` naming the
|
|
44
|
-
| `initiatives/<slug>/backlog.md` | That initiative's own tasks, and only that initiative's —
|
|
45
|
-
| `decisions
|
|
46
|
-
| `learnings
|
|
47
|
-
| `inbox.md` | What could not be classified — it is never dropped in silence |
|
|
106
|
+
| `workspaces/<name>/initiatives/<slug>/README.md` | The work: one head per initiative, with its state, its horizon, and optionally `about:` naming the product, course, channel or account it is about — one, or several as `[<path>, <path>]` |
|
|
107
|
+
| `workspaces/<name>/initiatives/<slug>/backlog.md` | That initiative's own tasks, and only that initiative's — every task lives in an initiative; the tasks of a product with no project of its own go to its standing initiative |
|
|
108
|
+
| `workspaces/<name>/decisions/<date>-<slug>.md` | One decision per file, with why and what would make it false, and `about:` when it is about a product, a course, a channel or an account; `decisions/index.md` lists them all, generated |
|
|
109
|
+
| `workspaces/<name>/learnings/<slug>.md` | One learning per file, including what was tried and did not close; `learnings/index.md` lists them all, generated |
|
|
48
110
|
|
|
49
111
|
**Every node has the same shape: a folder with the name of the thing, and `README.md` inside.** The
|
|
50
112
|
name shows up once —the folder—, the head is always called the same, and anyone who opens the folder
|
|
51
|
-
knows where to start.
|
|
52
|
-
|
|
113
|
+
knows where to start.
|
|
114
|
+
|
|
115
|
+
**A brain that predates this shape can still have work written directly at its root.**
|
|
116
|
+
`migrate-root.sh` moves it into `workspaces/personal`, creating that workspace first if it is not
|
|
117
|
+
there yet — run once, at your request, never on its own.
|
|
53
118
|
|
|
54
119
|
**A memory node is memory, an initiative is push.** A memory node holds what it is, who it is for
|
|
55
120
|
and what is known about it; an initiative holds its state, its horizon and when it closes. A memory
|
|
@@ -67,23 +132,23 @@ same way: `accounts/` for client accounts, `channels/` for the channels you publ
|
|
|
67
132
|
name you invent.
|
|
68
133
|
|
|
69
134
|
`new-memory --type <type>` creates a type the first time you use it — the folder plus the five lines
|
|
70
|
-
it needs in
|
|
135
|
+
it needs in `.system/tree.md` — and adds its first node. The same command with the same `--type` and a new
|
|
71
136
|
`--slug` adds another node to a type that already exists — sibling accounts, sibling channels — no
|
|
72
|
-
new tree lines, nothing duplicated.
|
|
73
|
-
|
|
137
|
+
new tree lines, nothing duplicated. A type that is yours, not a client's, lives inside your own
|
|
138
|
+
workspace (`personal`) — the root itself never holds one, since it is machinery only.
|
|
74
139
|
|
|
75
140
|
A type this system ships is named in English — today, only `products`. A type you invent is named
|
|
76
141
|
however you like: it is content of your brain, not a component of the system. Three names to start
|
|
77
142
|
from, if you want a catalog instead of inventing one: `products` (what you build, for whom),
|
|
78
143
|
`accounts` (a client or company relationship), `channels` (where you publish). Inventing your own —
|
|
79
144
|
anything that is memory and not push — is exactly as legitimate: the folder plus its lines in
|
|
80
|
-
|
|
145
|
+
`.system/tree.md`, and a `context/` you fill by hand until a purpose-built tool like `prd` exists for it, if
|
|
81
146
|
one ever does.
|
|
82
147
|
|
|
83
148
|
### People, and the relationship that mentions them
|
|
84
149
|
|
|
85
150
|
A person is never a node. `workspaces/<name>/people/<slug>.md` is content, the same class as a
|
|
86
|
-
workspace's `voice.md` or a product's `research/`: the tree reaches it and counts it, and neither the
|
|
151
|
+
workspace's `resources/voice.md` or a product's `research/`: the tree reaches it and counts it, and neither the
|
|
87
152
|
scan nor a focus opens it unless the session names it by path. Who someone is, who they work for and
|
|
88
153
|
their title, how to reach them, and how it is best to deal with them all live in that one file, written by
|
|
89
154
|
hand from `core/templates/person.md` — no command creates it, and a person's frontmatter is never
|
|
@@ -108,18 +173,19 @@ the reason the scan stays fast — and it is written at three heights, each its
|
|
|
108
173
|
|
|
109
174
|
## The cycle of one session
|
|
110
175
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
176
|
+
> [!EXAMPLE] One session from start to end
|
|
177
|
+
> 1. **Start.** You name the workspace — your own work is `personal`, the one every brain is born with
|
|
178
|
+
> — and the agent runs the **scan** before answering anything: what is waiting on your decision,
|
|
179
|
+
> what is in progress, what is blocked and by whom, what is queued, and what the checks found. Then
|
|
180
|
+
> you pick a focus, and only then is the body of that initiative loaded.
|
|
181
|
+
> 2. **Work.** Every request is routed to its tool through the resolver. Nothing activates on its own,
|
|
182
|
+
> and no irreversible action —sending, publishing, signing, merging— runs without your yes.
|
|
183
|
+
> 3. **Capture.** Whatever shows up mid-conversation is filed where it belongs without cutting the
|
|
184
|
+
> thread, and the answer says where it went.
|
|
185
|
+
> 4. **Close.** Two questions —what cannot be lost, and what almost worked— and a verdict in four
|
|
186
|
+
> parts: what was filed, what was not, which row the resolver could gain, and where to resume.
|
|
187
|
+
> Never a plain "done": a close that only says it finished cannot be told apart from one that lost
|
|
188
|
+
> something.
|
|
123
189
|
|
|
124
190
|
## Living Memory: finding what the focus does not load
|
|
125
191
|
|
|
@@ -140,30 +206,33 @@ or back up.
|
|
|
140
206
|
|
|
141
207
|
## Where the machinery lives
|
|
142
208
|
|
|
143
|
-
The tools —skills, scripts, agents— live in `.os/` and `.
|
|
144
|
-
Obsidian and visible from the terminal, and
|
|
145
|
-
the system never touches your data, and your data never travels
|
|
209
|
+
The tools —skills, scripts, agents— live in `.os/`, `.claude/` and `.agents/`. Those folders are
|
|
210
|
+
hidden in Obsidian and visible from the terminal, and what the system puts in them is a **link** to
|
|
211
|
+
the installed product: updating the system never touches your data, and your data never travels
|
|
212
|
+
inside the product.
|
|
146
213
|
|
|
147
214
|
**Where the skills live**, since it is the first thing everyone asks: the
|
|
148
|
-
<!--count-->
|
|
215
|
+
<!--count-->twenty<!--/count--> skills of the system are in `.os/core/skills/`, one file each,
|
|
149
216
|
reached through the resolver — not copied into this folder, linked to the product. The skills of a
|
|
150
|
-
pack are in `.
|
|
151
|
-
|
|
152
|
-
|
|
217
|
+
pack are in `.agents/skills/<name>/SKILL.md`, one folder per skill, and `.claude/skills/` holds a
|
|
218
|
+
link to each one, which is where Claude Code reads skills from; the system looks in `.agents/skills/`
|
|
219
|
+
first and counts a skill that is in both folders once. Any skill you write yourself goes next to
|
|
220
|
+
them, as a plain folder in `.claude/skills/`.
|
|
153
221
|
|
|
154
|
-
To update, ask any session
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
222
|
+
> [!TIP] To update, ask any session to "update the system"
|
|
223
|
+
> To update, ask any session: **"update the system"**. That sentence is all you need, and it
|
|
224
|
+
> covers both halves of what is installed — the system and the packs. What it does step by step is
|
|
225
|
+
> written once, in the `README.md` of the product's folder under **Update**; this manual points at
|
|
226
|
+
> it instead of telling it again, because two versions of the same procedure drift apart.
|
|
158
227
|
|
|
159
228
|
## What you can ask for, and how
|
|
160
229
|
|
|
161
230
|
**The index is the resolver, not your memory.** You ask in your own words —"what is pending", "close
|
|
162
231
|
the session", "capture this"— and the agent looks up which tool covers that capability. Two files
|
|
163
|
-
answer that: the product's, which travels with the system, and yours (
|
|
232
|
+
answer that: the product's, which travels with the system, and yours (`.system/resolver.md`), where you add
|
|
164
233
|
a row when the agent would have chosen wrong without it. Your rows win.
|
|
165
234
|
|
|
166
|
-
The catalog below is the system itself — the <!--count-->
|
|
235
|
+
The catalog below is the system itself — the <!--count-->twenty<!--/count--> tools that come with
|
|
167
236
|
it. You can also invoke any of them by name.
|
|
168
237
|
|
|
169
238
|
<!-- catalog: generated by scripts/manual-catalog.sh — do not edit by hand -->
|
|
@@ -176,12 +245,14 @@ it. You can also invoke any of them by name.
|
|
|
176
245
|
- **`check-resolvable`** — Audit the root's capability-to-tool graph and report the three failures it can have — a tool nothing routes to, a handoff no row provides, and a row pointing at a tool that does not exist.
|
|
177
246
|
- **`close-session`** — Close a session by distributing what it produced —decisions, learnings, pending items, what stayed waiting, where to resume— into the loaded node's canonical files, and end with a four-part verdict that names what was not captured.
|
|
178
247
|
- **`grill`** — Pressure the facts behind a claim before a decision closes — counter-question with a concrete example, capped attempts, escape hatches, evidence hierarchy — and route what comes out to the loaded node's decisions or backlog.
|
|
248
|
+
- **`migrate-layout`** — Move a brain with the old layout to the new one — the account in `account/`, the machinery in `.system/`, the session contract at `AGENTS.md` and `.claude/CLAUDE.md`, roles as skills, the hand-written decision and learning indexes into the frontmatter of the files they link, every backlog into an initiative, hidden resolvers, `resources/` and `context/` — printing the whole plan first and writing nothing until it runs with `--apply`.
|
|
249
|
+
- **`migrate-root`** — Move the operator's own work from a brain still carrying it directly at the root — initiatives, a memory-node type, backlog, decisions, learnings — into the `personal` workspace every brain is born with today, creating that workspace first if it does not exist yet, rewriting the prefix everywhere the system reads it as structure or routing, and listing what it leaves untouched for the operator to review.
|
|
179
250
|
- **`mount-repo`** — Give an initiative a body: write the remote into the head's frontmatter, clone the checkout outside the brain —or, with --new, give birth to the repo from the product's scaffold when it does not exist yet— and record the remote-to-local-path row in the machine's environment table.
|
|
180
|
-
- **`my-wiki`** — Project the brain as one navigable page — a workspace selector, a shelf per entity type the tree declares, the initiatives hanging from the entity each one is about, the people, and a search that runs inside the page.
|
|
181
251
|
- **`new-memory`** — Create a memory-node type the first time it is used —a folder plus its five lines in `tree.md`— and add a node to it.
|
|
182
252
|
- **`new-product`** — Add a product to a workspace that already exists.
|
|
183
253
|
- **`new-spec`** — Turn concrete build work that came out of a conversation into a spec file under the target repo's specs/, with runnable evals per criterion, decisions split by who closes them, and effects that escape the system declared.
|
|
184
254
|
- **`new-workspace`** — Add a workspace to an existing brain.
|
|
255
|
+
- **`orchestrator`** — Turn on, or resume, an orchestrator — one session that hands each topic's work to that topic's session and keeps what it needs to remember in a hidden file.
|
|
185
256
|
- **`recall`** — Search over every file `tree.md` reaches — not only what the startup scan and the focus load — and return the entries that match, with file, line, date and whether each is current or replaced.
|
|
186
257
|
- **`rename-heads`** — Move a brain born before the single node shape to it — every node becomes a folder with its `README.md` inside, every initiative gets its own folder, and each product's dated documents move to `research/` — rewriting the head paths everywhere the system reads them as routing and listing what it leaves untouched.
|
|
187
258
|
- **`rename-workspaces`** — Move a brain still using the previous name of the workspaces folder to the current one, rewriting the prefix everywhere the system reads it as structure or routing, and listing what it leaves untouched for the operator to review.
|
|
@@ -192,9 +263,9 @@ it. You can also invoke any of them by name.
|
|
|
192
263
|
|
|
193
264
|
### Packs: the craft on top
|
|
194
265
|
|
|
195
|
-
Those <!--count-->
|
|
266
|
+
Those <!--count-->twenty<!--/count--> run the system. **The craft —building product, and whatever
|
|
196
267
|
comes next— arrives in packs**, and a pack is installed separately, with its own command, into
|
|
197
|
-
`.
|
|
268
|
+
`.agents/skills/` of this folder. **A pack is offered, never required**: the install ended by asking
|
|
198
269
|
whether you wanted one now or later, and if you said later the task is in your backlog with the
|
|
199
270
|
command in it. Adding another one, putting one back, or taking the one you postponed is a single
|
|
200
271
|
request to any session: **"install the pack called `<name>`"**.
|
|
@@ -204,6 +275,23 @@ that index arrives with it — so the list you read is always the list you have,
|
|
|
204
275
|
manual remembered. Ask for what you want in your own words: the session reads the index of whatever
|
|
205
276
|
is installed and routes you there, or tells you that nothing installed covers it.
|
|
206
277
|
|
|
278
|
+
## An orchestrator, if you want one
|
|
279
|
+
|
|
280
|
+
**Optional, and off until you ask.** An orchestrator is one session where you decide what matters
|
|
281
|
+
and from which the work is handed to the other sessions, one per topic. Nothing in this folder
|
|
282
|
+
changes for it to exist: no new file shows up. What it needs to remember (which session carries
|
|
283
|
+
each topic, what is waiting for what) it keeps in a hidden file that you never have to open.
|
|
284
|
+
|
|
285
|
+
- **To turn it on**, say "I want to work with an orchestrator". It tells you what it will set up
|
|
286
|
+
and waits for your yes before doing it.
|
|
287
|
+
- **To turn it off**, ask for it. It deletes that hidden file and nothing else changes.
|
|
288
|
+
- **How you want it to work** goes in `account/operator.md`, in your own words: what you write there
|
|
289
|
+
wins over the orchestrator's default rules.
|
|
290
|
+
- **In the desktop app** it works fully: it opens one session per topic, sends work to each and sees
|
|
291
|
+
how much context each is using. **In the terminal** it works reduced: it hands work out, but it
|
|
292
|
+
cannot open new sessions or see how much context each one is using. It tells you which one you are
|
|
293
|
+
in when it turns on.
|
|
294
|
+
|
|
207
295
|
## Working with agents: two gates, one autonomous stretch
|
|
208
296
|
|
|
209
297
|
Heavy work is delegated to agents that run in the background, while the main session stays at the
|
|
@@ -214,10 +302,11 @@ helm — it never changes folders and never loses your context.
|
|
|
214
302
|
- **`complete-spec`** — implements a spec where every criterion has its runnable check.
|
|
215
303
|
- **`ambiguous-spec`** — implements a spec with open decisions, where judgment is needed.
|
|
216
304
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
305
|
+
> [!EXAMPLE] One spec from start to end: two approvals and one autonomous stretch
|
|
306
|
+
> The supervision pattern has **two human gates and one autonomous stretch in the middle**: a
|
|
307
|
+
> person approves the spec (**gate 1**) → the agent implements it on a branch, never on the main
|
|
308
|
+
> branch and never with a push → a person reads the branch and merges it (**gate 2**). Autonomy in
|
|
309
|
+
> the middle, human control at the edges.
|
|
221
310
|
|
|
222
311
|
## Dormant capabilities: the building layer
|
|
223
312
|
|
|
@@ -248,3 +337,15 @@ the two are already installed.
|
|
|
248
337
|
then asked for.
|
|
249
338
|
- **Whatever the AI writes is marked**: 📌 literal, with the file and the line it came from · 🔍
|
|
250
339
|
inference · ❓ gap. What is missing is recorded as open, with who closes it. It is never invented.
|
|
340
|
+
|
|
341
|
+
## How to read the callouts
|
|
342
|
+
|
|
343
|
+
The system's files use few callouts, each with one meaning only:
|
|
344
|
+
|
|
345
|
+
- **Blue (note):** what this file is.
|
|
346
|
+
- **Tip:** how to do something with one sentence.
|
|
347
|
+
- **Yellow (warning):** something that gets lost or must not be edited, like a generated file or a
|
|
348
|
+
document another one replaced.
|
|
349
|
+
- **Question:** a decision that is still open.
|
|
350
|
+
- **Example:** one case from start to end.
|
|
351
|
+
- **Red (danger):** errors only.
|
package/core/resolver.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Root resolver — origin: product
|
|
2
2
|
|
|
3
3
|
Capability → tool. One row per capability. This file travels with the product and is not edited
|
|
4
|
-
from the brain: the operator's rows go in
|
|
4
|
+
from the brain: the operator's rows go in `.system/resolver.md`, at the root of the brain.
|
|
5
5
|
|
|
6
6
|
| Capability | Tool | Path |
|
|
7
7
|
|---|---|---|
|
|
@@ -15,6 +15,8 @@ from the brain: the operator's rows go in `resolver.md`, at the root of the brai
|
|
|
15
15
|
| Add a memory node of any type (accounts, channels, or one you invent) | `new-memory` | `.os/core/skills/new-memory.md` |
|
|
16
16
|
| Rename the workspaces folder of an existing brain | `rename-workspaces` | `.os/core/skills/rename-workspaces.md` |
|
|
17
17
|
| Adopt the single node shape in an existing brain | `rename-heads` | `.os/core/skills/rename-heads.md` |
|
|
18
|
+
| Move a brain's own root work into its personal workspace | `migrate-root` | `.os/core/skills/migrate-root.md` |
|
|
19
|
+
| Bring an existing brain to the new layout, plan first | `migrate-layout` | `.os/core/skills/migrate-layout.md` |
|
|
18
20
|
| See what is pending | `sweep` | `.os/core/skills/sweep.md` |
|
|
19
21
|
| See what is blocked and why | `sweep` | `.os/core/skills/sweep.md` |
|
|
20
22
|
| See how the roadmap is going | `sweep` | `.os/core/skills/sweep.md` |
|
|
@@ -27,4 +29,4 @@ from the brain: the operator's rows go in `resolver.md`, at the root of the brai
|
|
|
27
29
|
| Write a new spec | `new-spec` | `.os/core/skills/new-spec.md` |
|
|
28
30
|
| Move a document out of what a focus loads, without losing it | `archive` | `.os/core/skills/archive.md` |
|
|
29
31
|
| Search everything the tree reaches for a lateral question | `recall` | `.os/core/skills/recall.md` |
|
|
30
|
-
|
|
|
32
|
+
| Work from one session that hands work to the others | `orchestrator` | `.os/core/skills/orchestrator.md` |
|
package/core/skills/bootstrap.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
command: bootstrap
|
|
3
3
|
capability: Create the brain from scratch
|
|
4
4
|
handoff: Add a workspace
|
|
5
|
-
description: Create the brain from scratch — the gateway skill. If AI First OS is not present it installs the complete system first, then runs a
|
|
6
|
-
description_es: Crea el brain desde cero — la skill de entrada. Si AI First OS no está, instala el sistema completo primero, después conduce una entrevista de
|
|
5
|
+
description: Create the brain from scratch — the gateway skill. If AI First OS is not present it installs the complete system first, then runs a four-question interview —language first, then name, role and voice— writes the minimum node structure (the root's own machinery plus the `personal` workspace every brain is born with), and leaves the brain versioned with its first commit and its remote backup resolved or pending. Manually triggered, once per brain, before any other tool.
|
|
6
|
+
description_es: Crea el brain desde cero — la skill de entrada. Si AI First OS no está, instala el sistema completo primero, después conduce una entrevista de cuatro preguntas —idioma primero, y después nombre, rol y voz—, escribe la estructura mínima de nodos (la maquinaria de la raíz más el espacio de trabajo `personal` con el que todo brain nace) y deja el brain versionado con su primer commit y su respaldo remoto resuelto o pendiente. Se dispara a mano, una vez por brain, antes que cualquier otra herramienta.
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# bootstrap — create the brain
|
|
@@ -58,10 +58,18 @@ it is there, `npx ai-first-os` already brought the product down and there is not
|
|
|
58
58
|
resolvers, the subagents and the nine skills of the system by symlink. The packs are not in that
|
|
59
59
|
repository: each one is published as its own set of skills, and the step at the close of this
|
|
60
60
|
bootstrap offers one.
|
|
61
|
-
3.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
3. **If `install.sh` stops because the brain already has a rules file that is not this product's**
|
|
62
|
+
(`CLAUDE.md`, `AGENTS.md` or `.claude/CLAUDE.md`), nothing was changed and the installer says so.
|
|
63
|
+
Do not force it: the rules are adopted into `account/operator.md`, and that file does not exist
|
|
64
|
+
until the interview is written. So the order for this brain is: the interview, then
|
|
65
|
+
`<product>/core/lib/bootstrap.sh --brain <brain-path> --answers <file>` run from the product folder
|
|
66
|
+
(it does not need the install), and only then `<product>/core/install.sh <brain-path> --adopt`,
|
|
67
|
+
which appends the foreign rules to the end of `account/operator.md`, removes the foreign files and
|
|
68
|
+
links the product's contract in their place. Tell the operator that their rules were kept and where.
|
|
69
|
+
4. Otherwise, continue with the interview.
|
|
70
|
+
|
|
71
|
+
**Never reimplement either step by hand.** Writing `account/operator.md`, `account/voice/voice.md`,
|
|
72
|
+
`.system/resolver.md` and `.system/tree.md` yourself instead of running `install.sh` and this skill's own script leaves a brain with
|
|
65
73
|
no symlinks and no `.os/core` — a install that looks done and is not. The script is the deliverable;
|
|
66
74
|
running it is always cheaper and safer than replicating what it does.
|
|
67
75
|
|
|
@@ -71,30 +79,26 @@ skip this step entirely.
|
|
|
71
79
|
|
|
72
80
|
## The interview
|
|
73
81
|
|
|
74
|
-
**
|
|
82
|
+
**Four questions, in this order. One at a time.** They are configuration, not a profile: each one
|
|
75
83
|
is answered in a line. Whatever the system can learn with use is not asked.
|
|
76
84
|
|
|
85
|
+
**The workspace is not asked here**: every brain is born with one, `personal` ("My workspace"),
|
|
86
|
+
created without a question — the day a company or a client appears, `new-workspace` adds a second
|
|
87
|
+
one, deliberately.
|
|
88
|
+
|
|
77
89
|
1. **Language.** The only question asked in two languages, because it is the one that decides the
|
|
78
90
|
rest:
|
|
79
91
|
> What language do you want to work in — English or Spanish? / ¿En qué idioma querés trabajar
|
|
80
92
|
> — inglés o español?
|
|
81
93
|
|
|
82
|
-
**Everything after this comes out in the language chosen**: the
|
|
94
|
+
**Everything after this comes out in the language chosen**: the three questions that follow, the
|
|
83
95
|
files that get written, and the session from here on. Today the system writes `en` and `es`.
|
|
84
96
|
2. **Your name.**
|
|
85
97
|
3. **Your role**, in one line (example: "Senior PM at a fintech").
|
|
86
98
|
4. **Your voice**: tone, and words you would never use. **Optional** — say so when asking: if the
|
|
87
99
|
operator does not know, "later" is an answer and the file says it is pending.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
asking: someone who works alone, or who is between jobs, has none, and "none" is an answer. Say
|
|
91
|
-
what it means before they answer: their own work lives at the root of the brain, which is a node
|
|
92
|
-
like any other, and the day a company or a client appears, `new-workspace` adds it. Ask **what it
|
|
93
|
-
does** and **what you do there**. What you do there is a title — identity, written to the body of
|
|
94
|
-
the head, never to `role:`. `role:` activates an oficio from the pack (today: `cpo`) and is
|
|
95
|
-
born empty; filling it in is a separate, deliberate step, not part of this interview.
|
|
96
|
-
|
|
97
|
-
**"How do you want to be answered" is not asked.** `operator.md` is born with a default —the answer
|
|
100
|
+
|
|
101
|
+
**"How do you want to be answered" is not asked.** `account/operator.md` is born with a default —the answer
|
|
98
102
|
first, short, no process narration— marked as a section that is learned with use. It gets corrected
|
|
99
103
|
the first time an answer misses.
|
|
100
104
|
|
|
@@ -116,28 +120,34 @@ name: <name>
|
|
|
116
120
|
profile: <the role, one line>
|
|
117
121
|
voice: <one item>
|
|
118
122
|
workspace: <Name> | <title> | <owner> | <identity file>
|
|
119
|
-
skipped: voice
|
|
123
|
+
skipped: voice
|
|
120
124
|
```
|
|
121
125
|
|
|
122
126
|
`voice`, `workspace` and `skipped` repeat. `language` first: with no `language` the brain is written
|
|
123
|
-
in English and the script declares the gap.
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
in English and the script declares the gap. A workspace is declared with `workspace:` (spec 052) —
|
|
128
|
+
the older key that used the same shape is gone.
|
|
129
|
+
|
|
130
|
+
**`workspace:` is not part of the interview anymore (spec 059), but the script still reads it** —
|
|
131
|
+
it is how the answers file adds one or more named workspaces in the same run that creates `personal`
|
|
132
|
+
automatically, below. The owner and the identity file are optional: with no owner the operator is
|
|
133
|
+
used, and with no identity a placeholder text is left. The title is identity —"what you do there"—
|
|
134
|
+
written to the body of the head, never to `role:` (spec 020): that field activates an oficio from
|
|
135
|
+
the pack and is born empty; filling it in is a separate, deliberate step. The same separation applies
|
|
136
|
+
to `personal`: its title is always empty, since the interview that used to ask it is gone.
|
|
126
137
|
|
|
127
138
|
**`skipped:` is what the operator answered, not what they left out.** One line per optional question
|
|
128
|
-
the operator deliberately left empty
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
the operator deliberately left empty — today, only `skipped: voice` — and never together with a line
|
|
140
|
+
of the same key. Without it the script cannot tell "did not answer" from "answered they have none",
|
|
141
|
+
and it asks again for something already answered.
|
|
131
142
|
|
|
132
|
-
The result is `operator.md`, `voice.md`,
|
|
133
|
-
the brain —`HOW-IT-WORKS.md
|
|
134
|
-
workspace
|
|
135
|
-
`voice.md` is the operator's voice — one identity, two questions, never the same sentence in both.
|
|
136
|
-
Nothing else: the
|
|
137
|
-
environment table are born with their first piece of data, like any node.
|
|
143
|
+
The result is `account/operator.md`, `account/voice/voice.md`, `.system/resolver.md`, `.system/tree.md`, the system manual at the root of
|
|
144
|
+
the brain —`HOW-IT-WORKS.md`, linked to the manual of the chosen language—, the `personal` workspace
|
|
145
|
+
("My workspace"), created by the script without a question, and one folder per named `workspace:`.
|
|
146
|
+
`account/voice/voice.md` is the operator's voice — one identity, two questions, never the same sentence in both.
|
|
147
|
+
Nothing else: the environment table is born with its first piece of data, like any node.
|
|
138
148
|
|
|
139
149
|
**It runs once per brain.** If the root pieces already exist, the script stops instead of rewriting
|
|
140
|
-
them. Adding a workspace to a brain that already exists is `new-workspace`'s job.
|
|
150
|
+
them. Adding a second workspace to a brain that already exists is `new-workspace`'s job.
|
|
141
151
|
|
|
142
152
|
## The backup, in two halves
|
|
143
153
|
|
|
@@ -154,9 +164,14 @@ guaranteed present by the preflight in Step 0 — there is no unversioned brain
|
|
|
154
164
|
- With `gh` authenticated it prints the offer and the exact `gh repo create` command. **Ask the
|
|
155
165
|
operator and run it only with their yes**: it leaves a repository in their account, which escapes
|
|
156
166
|
the system.
|
|
157
|
-
- Without `gh`, it
|
|
158
|
-
—**the operator creates it, never the agent**—, run `gh auth login`, and any later session
|
|
159
|
-
|
|
167
|
+
- Without `gh`, it writes nothing: it prints the pending step (create the account at github.com
|
|
168
|
+
—**the operator creates it, never the agent**—, run `gh auth login`, and any later session finishes
|
|
169
|
+
the rest by running the same script) and the question to ask, and exits 7. Ask the operator the
|
|
170
|
+
question it printed, in the brain's language ("Should I note it down for later?", from
|
|
171
|
+
`NOTE_FOR_LATER_QUESTION` in the strings catalog).
|
|
172
|
+
**Only with their yes in that turn** run `.os/core/lib/remote-backup.sh --brain . --note`: the guided
|
|
173
|
+
task lands in the `personal` workspace, in its "Tasks to sort" initiative, created the first
|
|
174
|
+
time. No yes: nothing is written, and say so plainly ("I did not note anything down").
|
|
160
175
|
|
|
161
176
|
Synced folders (iCloud, Drive) are not offered as backup: the system runs on symlinks and those
|
|
162
177
|
folders break them.
|
|
@@ -191,8 +206,12 @@ the git-clone prompt may or may not.
|
|
|
191
206
|
capability of the pack that is not installed.
|
|
192
207
|
- **Node missing: the only exit is later.** Point at the LTS installer on nodejs.org — you guide, the
|
|
193
208
|
operator installs, and a no is an answer, not an error. Whether they install it right now or not,
|
|
194
|
-
run `.os/core/lib/pack-install.sh --brain . --defer`:
|
|
195
|
-
|
|
209
|
+
run `.os/core/lib/pack-install.sh --brain . --defer`: it writes nothing, prints the pending step and
|
|
210
|
+
the question, and exits 7. Ask the operator the question it printed, in the brain's language
|
|
211
|
+
("Should I note it down for later?"). **Only with their yes in that turn** run
|
|
212
|
+
`.os/core/lib/pack-install.sh --brain . --defer --note`: the task lands in the `personal` workspace,
|
|
213
|
+
in its "Tasks to sort" initiative, with the exact command inside it, and any later session can
|
|
214
|
+
run it. No yes: nothing is written, and say so plainly. This is the same offer any session makes
|
|
196
215
|
when something asks for a capability of the pack that is not installed.
|
|
197
216
|
|
|
198
217
|
**The command brings down only what is missing, and nobody has to name what that is.** What the
|
|
@@ -200,7 +219,7 @@ system already provides travels marked internal in the pack, and the CLI skips i
|
|
|
200
219
|
is no list to keep here, and nothing is ever installed and then deleted.
|
|
201
220
|
|
|
202
221
|
**If it fails —no network, registry down, the operator says no— the flow does not stop.** Retry once;
|
|
203
|
-
if it fails again, take the later exit above
|
|
222
|
+
if it fails again, take the later exit above —the same question, and the note only with a yes— and say it out loud. A
|
|
204
223
|
bootstrap aborted halfway because a download failed is the worse outcome of the two.
|
|
205
224
|
|
|
206
225
|
## When it finishes
|
|
@@ -214,13 +233,13 @@ bootstrap aborted halfway because a download failed is the worse outcome of the
|
|
|
214
233
|
- If the script reports `sin dato:` or `sin crear:`, pass it through whole and ask again for what is
|
|
215
234
|
missing. A gap nobody names is a gap nobody fills.
|
|
216
235
|
- If it reports `declarado vacío:`, that gap was answered: pass it through and **do not ask again**.
|
|
217
|
-
When it names `workspace`, say the work lives at the root of the brain and that `new-workspace`
|
|
218
|
-
adds one the day a company or a client appears.
|
|
219
236
|
- Say whether the brain is versioned and whether the remote is resolved or pending.
|
|
220
237
|
- **Say whether the pack landed.** If it was installed, name what it added and that the harness
|
|
221
|
-
offers it directly. If it was left for later, say the pending line is in the
|
|
222
|
-
command inside it, and that everything else works without it.
|
|
238
|
+
offers it directly. If it was left for later, say the pending line is in the `personal` workspace
|
|
239
|
+
backlog with the command inside it, and that everything else works without it.
|
|
223
240
|
- **How the operator updates all of this is written once**, in the repository's `README.md` under
|
|
224
241
|
**Update**, and is not restated here. Point at it; do not retell it.
|
|
225
|
-
-
|
|
226
|
-
|
|
242
|
+
- Say the brain is ready with its `personal` workspace ("My workspace") — the operator's own work
|
|
243
|
+
lives there from now on, not at the root of the brain.
|
|
244
|
+
- Handoff: if the operator wants to add a second workspace — a company, a client — the **add a
|
|
245
|
+
workspace** capability is needed. If it is not available, say so and continue.
|
package/core/skills/capture.md
CHANGED
|
@@ -24,29 +24,36 @@ without asking, it is not asked in the middle of something else and it is not fi
|
|
|
24
24
|
propose the initiative you would use —or the entity under which it is missing and would need to be
|
|
25
25
|
opened first— and run `capture` with `--initiative` once the operator confirms it, never before. No
|
|
26
26
|
command creates an initiative: if the one that fits does not exist yet, its head is written first at
|
|
27
|
-
|
|
27
|
+
`<workspace>/initiatives/<slug>/README.md` — the root holds no initiatives (spec 059).
|
|
28
28
|
|
|
29
29
|
## How it is run
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
.os/core/lib/capture.sh --brain . --session-org <session-slug> --text "<text>" --initiative <slug> \
|
|
33
33
|
[--org <target-slug>] [--blocked-by <ref>] [--hold "<reason>"] [--hold-until <YYYY-MM-DD>]
|
|
34
|
-
.os/core/lib/capture.sh --brain . --root --text "<text>" --initiative <slug> \
|
|
35
|
-
[--blocked-by <ref>] [--hold "<reason>"] [--hold-until <YYYY-MM-DD>]
|
|
36
34
|
```
|
|
37
35
|
|
|
38
36
|
`--initiative` names the initiative by its slug, relative to the scope — the same shape every other
|
|
39
|
-
flag already uses (`--workspace <slug>`), never a full path.
|
|
37
|
+
flag already uses (`--workspace <slug>`), never a full path.
|
|
38
|
+
|
|
39
|
+
**A task of a product, a course, a channel or an account with no project of its own** goes to that
|
|
40
|
+
node's standing initiative: run `capture` with `--about <path of the node's head>` instead of
|
|
41
|
+
`--initiative`. If the node has one, the task is filed there. If it has none, nothing is written and
|
|
42
|
+
the script prints, in the operator's language, the question to ask — ask it exactly as printed, and
|
|
43
|
+
run the same command again with `--create` only after the operator says yes in that turn. If it has
|
|
44
|
+
two, the script names them: ask which one and use `--initiative`. Without it the script writes nothing,
|
|
40
45
|
anywhere, and says the initiative is missing: that is not an error to work around, it is the
|
|
41
46
|
contract (decision 2, spec 057).
|
|
42
47
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
The operator's own work is the `personal` workspace every brain is born with — `--org personal` —
|
|
49
|
+
never the root: `--root` no longer exists (spec 059).
|
|
50
|
+
|
|
51
|
+
To write into a workspace that is not the session's: load its `README.md` and its `.resolver.md`,
|
|
52
|
+
and repeat with `--load-context`.
|
|
46
53
|
|
|
47
54
|
## How the destination is decided
|
|
48
55
|
|
|
49
|
-
1. **Which
|
|
56
|
+
1. **Which workspace is it from?** The operator's own work is `personal`. If that cannot be answered
|
|
50
57
|
without asking, it is not asked in the middle of something else — say the same thing you would say
|
|
51
58
|
for a missing initiative: it is not filed, and it waits for the operator.
|
|
52
59
|
2. **Which initiative does it belong to?** Its slug is `--initiative`. If more than one initiative
|
|
@@ -30,7 +30,7 @@ reading the output.
|
|
|
30
30
|
## What to do with the output
|
|
31
31
|
|
|
32
32
|
Every finding carries `file:line`. It is fixed by editing markdown, never code: the rows live in
|
|
33
|
-
`.os/core/resolver.md` —product origin, changed by PR in the repo— and in
|
|
33
|
+
`.os/core/resolver.md` —product origin, changed by PR in the repo— and in `.system/resolver.md` —personal
|
|
34
34
|
origin, edited by the operator—.
|
|
35
35
|
|
|
36
36
|
**A dark capability of the product is not fixed in the brain.** If the missing row belongs to the
|