ai-first-os 2.1.2 → 2.2.1
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 +10 -3
- package/assets/ai-first-os-logo.svg +15 -0
- package/core/CLAUDE.md +11 -2
- package/core/VERSION +1 -1
- package/core/lib/build-indexes.sh +27 -16
- package/core/lib/common.sh +16 -0
- package/core/lib/obsidian-look.sh +234 -0
- package/core/lib/session-read.sh +19 -1
- package/core/lib/session-start.sh +21 -1
- package/core/manual/COMO-FUNCIONA.md +24 -3
- package/core/manual/HOW-IT-WORKS.md +25 -4
- package/core/resolver.md +1 -0
- package/core/skills/bootstrap.md +27 -0
- package/core/skills/orchestrator.md +7 -0
- package/core/templates/obsidian/app.json +5 -0
- package/core/templates/obsidian/appearance.json +13 -0
- package/core/templates/obsidian/es/snippets/callouts.css +73 -0
- package/core/templates/obsidian/snippets/callouts.css +73 -0
- package/core/templates/obsidian/snippets/heading-icons.css +355 -0
- package/core/templates/obsidian/snippets/kanban.css +127 -0
- package/core/templates/obsidian/snippets/note-covers.css +155 -0
- package/core/templates/obsidian/snippets/note-margins.css +9 -0
- package/core/templates/obsidian/snippets/tables.css +136 -0
- package/core/templates/obsidian/snippets/tasks.css +78 -0
- package/core/templates/strings.md +32 -12
- package/package.json +2 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/pedroromeroluna/ai-first-os/main/assets/ai-first-os-logo.svg" alt="AI First OS" width="640">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# 📘 AI First OS — how this system works
|
|
2
6
|
|
|
3
7
|
> [!NOTE] This file is the manual of the system
|
|
@@ -93,7 +97,7 @@ generated file is not committed to git: every copy of the brain builds its own.
|
|
|
93
97
|
|
|
94
98
|
### How a session starts
|
|
95
99
|
|
|
96
|
-
1. You name the workspace you are working on.
|
|
100
|
+
1. You name the workspace you are working on. If your brain has only one, you do not need to: the agent starts in it.
|
|
97
101
|
2. The agent runs the **scan** and the **startup read** before answering: first `account/operator.md`,
|
|
98
102
|
then the head of the workspace and its own table of tools, its glossary and its map of contexts
|
|
99
103
|
if it has them, its key decisions, and the tables of tools of the system and of the root. It does
|
|
@@ -182,8 +186,9 @@ the reason the scan stays fast — and it is written at three heights, each its
|
|
|
182
186
|
## 🔄 The cycle of one session
|
|
183
187
|
|
|
184
188
|
> [!EXAMPLE] One session from start to end
|
|
185
|
-
> 1. **Start.** You name the workspace — your own work is `personal`, the one every brain is born with
|
|
186
|
-
> — and the agent runs the **scan** before
|
|
189
|
+
> 1. **Start.** You name the workspace — your own work is `personal`, the one every brain is born with,
|
|
190
|
+
> and with a single workspace the agent takes it on its own — and the agent runs the **scan** before
|
|
191
|
+
> answering anything: what is waiting on your decision,
|
|
187
192
|
> what is in progress, what is blocked and by whom, what is queued, and what the checks found. Then
|
|
188
193
|
> you pick a focus, and only then is the body of that initiative loaded.
|
|
189
194
|
> 2. **Work.** Every request is routed to its tool through the resolver. Nothing activates on its own,
|
|
@@ -212,6 +217,11 @@ handed to you as a contradiction to resolve, never quietly picked between. And i
|
|
|
212
217
|
it searches is a small file it rebuilds from your own files on its own, never something you write to
|
|
213
218
|
or back up.
|
|
214
219
|
|
|
220
|
+
**What the agent opens on its own.** The scan and the focus decide what is loaded at the start. After
|
|
221
|
+
that, a note the agent reads may mention others: it opens one only when your request needs something
|
|
222
|
+
in it, and it looks for the fragment with `recall` before opening the whole file. A link and a path
|
|
223
|
+
cost the same: what spends the agent's context is opening the file, not how the mention is written.
|
|
224
|
+
|
|
215
225
|
## ⚙️ Where the machinery lives
|
|
216
226
|
|
|
217
227
|
The tools —skills, scripts, agents— live in `.os/`, `.claude/` and `.agents/`. Those folders are
|
|
@@ -227,9 +237,14 @@ link to each one, which is where Claude Code reads skills from; the system looks
|
|
|
227
237
|
first and counts a skill that is in both folders once. Any skill you write yourself goes next to
|
|
228
238
|
them, as a plain folder in `.claude/skills/`.
|
|
229
239
|
|
|
240
|
+
**The Obsidian look.** If you read your brain in Obsidian, the agent offers you once, when it finishes
|
|
241
|
+
installing or at your next update, to give it the AI First OS look: icons, covers, colors and wider
|
|
242
|
+
margins. It changes how things look in Obsidian and nothing you wrote. If you said no, ask for it
|
|
243
|
+
later: "give my brain the AI First OS look". Once you have it, each update keeps it current.
|
|
244
|
+
|
|
230
245
|
> [!TIP] To update, ask any session to "update the system"
|
|
231
246
|
> To update, ask any session: **"update the system"**. That sentence is all you need, and it
|
|
232
|
-
> covers
|
|
247
|
+
> covers everything that is installed — the system, the packs and the Obsidian look. What it does step by step is
|
|
233
248
|
> written once, in the `README.md` of the product's folder under **Update**; this manual points at
|
|
234
249
|
> it instead of telling it again, because two versions of the same procedure drift apart.
|
|
235
250
|
|
|
@@ -312,6 +327,12 @@ each topic, what is waiting for what) it keeps in a hidden file that you never h
|
|
|
312
327
|
how much context each is using. **In the terminal** it works reduced: it hands work out, but it
|
|
313
328
|
cannot open new sessions or see how much context each one is using. It tells you which one you are
|
|
314
329
|
in when it turns on.
|
|
330
|
+
- **A long topic, in its own session.** If you are going to go back and forth many times on one
|
|
331
|
+
thing, do it directly in that topic's session. The orchestrator is for moving between topics,
|
|
332
|
+
seeing priorities and pending items, approving the last step that cannot be undone, and opening
|
|
333
|
+
or restarting sessions. Every request that goes through it is paid twice, takes one more round
|
|
334
|
+
trip and loses nuance on the way. When you come back, it reads what the topic's session left
|
|
335
|
+
written and catches up on its own.
|
|
315
336
|
|
|
316
337
|
## 🚦 Working with agents: two gates, one autonomous stretch
|
|
317
338
|
|
package/core/resolver.md
CHANGED
|
@@ -10,6 +10,7 @@ from the brain: the operator's rows go in `.system/resolver.md`, at the root of
|
|
|
10
10
|
| Finish the brain's remote backup (private repo + push) | `remote-backup.sh` | `.os/core/lib/remote-backup.sh` |
|
|
11
11
|
| Leave the system manual linked at the root of the brain | `manual-link.sh` | `.os/core/lib/manual-link.sh` |
|
|
12
12
|
| Install the Product Builder pack | `pack-install.sh` | `.os/core/lib/pack-install.sh` |
|
|
13
|
+
| Give the brain the AI First OS look in Obsidian | `obsidian-look.sh` | `.os/core/lib/obsidian-look.sh` |
|
|
13
14
|
| Add a workspace | `new-workspace` | `.os/core/skills/new-workspace.md` |
|
|
14
15
|
| Add a product | `new-product` | `.os/core/skills/new-product.md` |
|
|
15
16
|
| Add a memory node of any type (accounts, channels, or one you invent) | `new-memory` | `.os/core/skills/new-memory.md` |
|
package/core/skills/bootstrap.md
CHANGED
|
@@ -253,6 +253,31 @@ operator is never retried — it takes the later exit right away. If the retry f
|
|
|
253
253
|
later exit above —the same question, and the note only with a yes— and say it out loud. A
|
|
254
254
|
bootstrap aborted halfway because a download failed is the worse outcome of the two.
|
|
255
255
|
|
|
256
|
+
## The Obsidian look — offered at the close
|
|
257
|
+
|
|
258
|
+
**This step runs after the pack, with the brain already born.** Whichever way it goes, the bootstrap already
|
|
259
|
+
succeeded; neither answer stops the install.
|
|
260
|
+
|
|
261
|
+
Run the offer, which prints the question, two numbered options (Apply it, No, thanks) and "Reply with the
|
|
262
|
+
number":
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
.os/core/lib/obsidian-look.sh --brain .
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
**Ask it as a multiple-choice question**, the same way as the pack's: with the harness's multiple-choice tool
|
|
269
|
+
if it has one (in Claude Code, `AskUserQuestion`), with the labels the offer printed; if it has none, show the
|
|
270
|
+
numbered list it printed, and a number is enough as the answer.
|
|
271
|
+
|
|
272
|
+
- **Apply it**: run `.os/core/lib/obsidian-look.sh --brain . --apply`, **only with their yes in that turn**
|
|
273
|
+
(choosing Apply it is the yes). Pass through any `not touched:` line it prints.
|
|
274
|
+
- **No, thanks**: run `.os/core/lib/obsidian-look.sh --brain . --decline`. It is not asked again. Whoever
|
|
275
|
+
changes their mind asks for it later (the capability is in `core/resolver.md`).
|
|
276
|
+
|
|
277
|
+
Confirm, and commit and push in that same turn what the command wrote (`.obsidian/`, `.system/obsidian-look`
|
|
278
|
+
and `.gitignore`). **Never install Obsidian** and never ask whether it is installed: the look changes how the
|
|
279
|
+
brain is seen there and nothing the operator wrote.
|
|
280
|
+
|
|
256
281
|
## When it finishes
|
|
257
282
|
|
|
258
283
|
- Show the tree created and what each file answers, in outcomes and not in canonical names.
|
|
@@ -268,6 +293,8 @@ bootstrap aborted halfway because a download failed is the worse outcome of the
|
|
|
268
293
|
- **Say whether the pack landed.** If it was installed, name what it added and that the harness
|
|
269
294
|
offers it directly. If it was left for later, say the pending line is in the `personal` workspace
|
|
270
295
|
backlog with the command inside it, and that everything else works without it.
|
|
296
|
+
- **Say what happened with the Obsidian look.** If it was applied, tell the operator to open this folder in
|
|
297
|
+
Obsidian, with its exact path. If not, say it can be asked for later.
|
|
271
298
|
- **How the operator updates all of this is written once**, in the repository's `README.md` under
|
|
272
299
|
**Update**, and is not restated here. Point at it; do not retell it.
|
|
273
300
|
- Say the brain is ready with its `personal` workspace ("My workspace") — the operator's own work
|
|
@@ -72,6 +72,13 @@ file, in the language of the brain, so the person finds it among their sessions.
|
|
|
72
72
|
7. Only if it can read a session's context usage: it checks it before handing work over, and above
|
|
73
73
|
70% it proposes to the person starting a fresh session for that topic, with the resume message
|
|
74
74
|
already written.
|
|
75
|
+
8. A long back-and-forth on one topic belongs in that topic's session, not here: every request
|
|
76
|
+
relayed through the orchestrator is paid twice in tokens, adds a round trip and loses nuance
|
|
77
|
+
in translation. When the person starts iterating on one topic here, it says so in one line and
|
|
78
|
+
points to that topic's session — with a link only if it can link sessions, by name otherwise.
|
|
79
|
+
When the person comes back after working there directly, it reads what that session wrote in
|
|
80
|
+
the brain (the initiative's backlog and its resume line) and updates the state file and the
|
|
81
|
+
pending items without asking the person to retell it.
|
|
75
82
|
|
|
76
83
|
**The person's own preferences win.** What the person writes about their orchestrator in
|
|
77
84
|
`account/operator.md` takes precedence over these rules when they conflict, and never over the
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* ai-first-os-look: generated, do not edit */
|
|
2
|
+
/* ============================================
|
|
3
|
+
Own icons for the callouts
|
|
4
|
+
They replace the icons Obsidian ships with,
|
|
5
|
+
in the color of each callout type
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
.callout[data-callout="note"] .callout-icon svg,
|
|
9
|
+
.callout[data-callout="tip"] .callout-icon svg {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.callout[data-callout="note"] .callout-icon::before,
|
|
14
|
+
.callout[data-callout="tip"] .callout-icon::before {
|
|
15
|
+
color: rgb(var(--callout-color));
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
font-size: 1.1em;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Info note: ⓘ */
|
|
22
|
+
.callout[data-callout="note"] .callout-icon::before {
|
|
23
|
+
content: "\24D8";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Recommendation: ✓ */
|
|
27
|
+
.callout[data-callout="tip"] .callout-icon::before {
|
|
28
|
+
content: "\2713\FE0E";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ============================================
|
|
32
|
+
Next to the icon, which type of callout it is
|
|
33
|
+
(Spanish labels: this file replaces the English one in a brain written in Spanish)
|
|
34
|
+
============================================ */
|
|
35
|
+
|
|
36
|
+
.callout[data-callout="note"] .callout-title-inner::before { content: "Nota informativa · "; }
|
|
37
|
+
.callout[data-callout="tip"] .callout-title-inner::before { content: "Recomendación · "; }
|
|
38
|
+
.callout[data-callout="example"] .callout-title-inner::before { content: "Ejemplo · "; }
|
|
39
|
+
.callout[data-callout="warning"] .callout-title-inner::before { content: "Advertencia · "; }
|
|
40
|
+
.callout[data-callout="question"] .callout-title-inner::before { content: "Pregunta abierta · "; }
|
|
41
|
+
|
|
42
|
+
/* ============================================
|
|
43
|
+
Notion-style heading hierarchy
|
|
44
|
+
The note title (H1) big and heavy;
|
|
45
|
+
the sections (H2, H3) clearly smaller
|
|
46
|
+
Notion proportions: title 40 px, section 24 px, subsection 20 px, text 16 px
|
|
47
|
+
============================================ */
|
|
48
|
+
|
|
49
|
+
body {
|
|
50
|
+
--h1-size: 2.5em;
|
|
51
|
+
--h1-weight: 700;
|
|
52
|
+
--h1-line-height: 1.2;
|
|
53
|
+
--h2-size: 1.5em;
|
|
54
|
+
--h2-weight: 600;
|
|
55
|
+
--h3-size: 1.25em;
|
|
56
|
+
--h3-weight: 600;
|
|
57
|
+
--h4-size: 1.1em;
|
|
58
|
+
--h4-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.markdown-rendered h1,
|
|
62
|
+
.HyperMD-header-1 {
|
|
63
|
+
letter-spacing: -0.02em;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.markdown-rendered h1 {
|
|
67
|
+
margin-bottom: 0.5em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.markdown-rendered h2 {
|
|
71
|
+
margin-top: 1.8em;
|
|
72
|
+
margin-bottom: 0.6em;
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* ai-first-os-look: generated, do not edit */
|
|
2
|
+
/* ============================================
|
|
3
|
+
Own icons for the callouts
|
|
4
|
+
They replace the icons Obsidian ships with,
|
|
5
|
+
in the color of each callout type
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
.callout[data-callout="note"] .callout-icon svg,
|
|
9
|
+
.callout[data-callout="tip"] .callout-icon svg {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.callout[data-callout="note"] .callout-icon::before,
|
|
14
|
+
.callout[data-callout="tip"] .callout-icon::before {
|
|
15
|
+
color: rgb(var(--callout-color));
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
font-size: 1.1em;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Info note: ⓘ */
|
|
22
|
+
.callout[data-callout="note"] .callout-icon::before {
|
|
23
|
+
content: "\24D8";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Recommendation: ✓ */
|
|
27
|
+
.callout[data-callout="tip"] .callout-icon::before {
|
|
28
|
+
content: "\2713\FE0E";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ============================================
|
|
32
|
+
Next to the icon, which type of callout it is
|
|
33
|
+
(English labels; a brain written in Spanish gets es/snippets/callouts.css instead)
|
|
34
|
+
============================================ */
|
|
35
|
+
|
|
36
|
+
.callout[data-callout="note"] .callout-title-inner::before { content: "Note · "; }
|
|
37
|
+
.callout[data-callout="tip"] .callout-title-inner::before { content: "Tip · "; }
|
|
38
|
+
.callout[data-callout="example"] .callout-title-inner::before { content: "Example · "; }
|
|
39
|
+
.callout[data-callout="warning"] .callout-title-inner::before { content: "Warning · "; }
|
|
40
|
+
.callout[data-callout="question"] .callout-title-inner::before { content: "Open question · "; }
|
|
41
|
+
|
|
42
|
+
/* ============================================
|
|
43
|
+
Notion-style heading hierarchy
|
|
44
|
+
The note title (H1) big and heavy;
|
|
45
|
+
the sections (H2, H3) clearly smaller
|
|
46
|
+
Notion proportions: title 40 px, section 24 px, subsection 20 px, text 16 px
|
|
47
|
+
============================================ */
|
|
48
|
+
|
|
49
|
+
body {
|
|
50
|
+
--h1-size: 2.5em;
|
|
51
|
+
--h1-weight: 700;
|
|
52
|
+
--h1-line-height: 1.2;
|
|
53
|
+
--h2-size: 1.5em;
|
|
54
|
+
--h2-weight: 600;
|
|
55
|
+
--h3-size: 1.25em;
|
|
56
|
+
--h3-weight: 600;
|
|
57
|
+
--h4-size: 1.1em;
|
|
58
|
+
--h4-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.markdown-rendered h1,
|
|
62
|
+
.HyperMD-header-1 {
|
|
63
|
+
letter-spacing: -0.02em;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.markdown-rendered h1 {
|
|
67
|
+
margin-bottom: 0.5em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.markdown-rendered h2 {
|
|
71
|
+
margin-top: 1.8em;
|
|
72
|
+
margin-bottom: 0.6em;
|
|
73
|
+
}
|