ai-first-os 2.1.1 → 2.2.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 +14 -9
- package/assets/ai-first-os-logo.svg +15 -0
- package/core/CLAUDE.md +11 -2
- package/core/VERSION +1 -1
- package/core/lib/bootstrap.sh +12 -9
- package/core/lib/build-indexes.sh +27 -16
- package/core/lib/common.sh +44 -0
- package/core/lib/obsidian-look.sh +234 -0
- package/core/lib/pack-install.sh +10 -1
- package/core/lib/remote-backup.sh +60 -18
- 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 +76 -23
- 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 +129 -0
- package/core/templates/obsidian/snippets/note-margins.css +9 -0
- package/core/templates/obsidian/snippets/tables.css +121 -0
- package/core/templates/obsidian/snippets/tasks.css +78 -0
- package/core/templates/strings.md +80 -12
- package/package.json +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# La conduce core/skills/bootstrap.md al cerrar el bootstrap, y la puede volver a correr cualquier
|
|
4
4
|
# sesión posterior — que es lo que la tarea pendiente del backlog le pide al operador.
|
|
5
5
|
#
|
|
6
|
-
# Uso: remote-backup.sh --brain DIR [--note]
|
|
6
|
+
# Uso: remote-backup.sh --brain DIR [--service github|bitbucket|other|none] [--note]
|
|
7
7
|
#
|
|
8
8
|
# El script NUNCA crea el repo ni pushea: eso escapa del sistema —queda algo en la cuenta de una
|
|
9
9
|
# persona— y se hace con la confirmación del operador en la sesión. Acá se decide cuál de las dos
|
|
@@ -15,8 +15,17 @@
|
|
|
15
15
|
# spec 076): con el sí del operador en ese turno, la sesión lo vuelve a correr con `--note`, que
|
|
16
16
|
# deja la tarea guiada en el backlog de la iniciativa tasks-to-sort del workspace personal.
|
|
17
17
|
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
18
|
+
# Spec 081: sin `--service` y sin `origin`, el script pregunta DÓNDE va el respaldo (GitHub, Bitbucket,
|
|
19
|
+
# otro servicio o ninguno): imprime la pregunta y las cuatro opciones del catálogo, no escribe nada y
|
|
20
|
+
# sale con 8; la sesión pregunta y vuelve a correr con `--service <lo elegido>`.
|
|
21
|
+
# - github: lo de arriba, sin cambios (gh, o BACKUP_TASK y exit 7);
|
|
22
|
+
# - bitbucket | other: no miran `gh`; imprimen BACKUP_TASK_GENERIC y la pregunta, exit 7; con
|
|
23
|
+
# `--note` la tarea queda en el backlog, igual que la de GitHub;
|
|
24
|
+
# - none: imprime BACKUP_NONE, exit 0, no escribe nada.
|
|
25
|
+
#
|
|
26
|
+
# Exit: 0 decidió (o anotó con --note, o `none`) · 1 si el brain no está versionado · 7 sin gh (o en
|
|
27
|
+
# Bitbucket/otro) y sin --note: la pregunta quedó impresa y no se escribió nada · 8 sin
|
|
28
|
+
# `--service`: la pregunta de dónde quedó impresa y no se escribió nada.
|
|
20
29
|
|
|
21
30
|
set -eu
|
|
22
31
|
|
|
@@ -25,23 +34,31 @@ here=$(cd "$(dirname "$0")" && pwd)
|
|
|
25
34
|
|
|
26
35
|
brain=""
|
|
27
36
|
note=0
|
|
37
|
+
service=""
|
|
28
38
|
|
|
29
39
|
while [ $# -gt 0 ]; do
|
|
30
40
|
case "$1" in
|
|
31
41
|
--brain) brain="$2"; shift 2 ;;
|
|
32
42
|
--note) note=1; shift ;;
|
|
43
|
+
--service) [ $# -ge 2 ] || os_die "falta el valor de --service"; service="$2"; shift 2 ;;
|
|
33
44
|
*) os_die "argumento desconocido: $1" ;;
|
|
34
45
|
esac
|
|
35
46
|
done
|
|
36
47
|
|
|
37
48
|
[ -n "$brain" ] || os_die "falta --brain"
|
|
49
|
+
# Las banderas mal usadas frenan antes de tocar nada (spec 081, C8).
|
|
50
|
+
case "$service" in
|
|
51
|
+
''|github|bitbucket|other|none) ;;
|
|
52
|
+
*) os_die "--service acepta github, bitbucket, other o none: $service" ;;
|
|
53
|
+
esac
|
|
54
|
+
if [ "$note" = "1" ] && [ -z "$service" ]; then os_die "--note necesita --service: sin saber dónde va el respaldo no hay tarea que anotar"; fi
|
|
55
|
+
if [ "$note" = "1" ] && [ "$service" = "none" ]; then os_die "--service none no anota nada: --note no aplica"; fi
|
|
38
56
|
[ -d "$brain" ] || os_die "no existe el brain: $brain"
|
|
39
57
|
# Ruta física: ver el comentario de bootstrap.sh.
|
|
40
58
|
brain=$(cd "$brain" && pwd -P)
|
|
41
59
|
|
|
42
60
|
command -v git > /dev/null 2>&1 || os_die "git no está en el PATH: sin respaldo local no hay remoto que armar"
|
|
43
|
-
|
|
44
|
-
if [ "$top" != "$brain" ]; then
|
|
61
|
+
if [ "$(os_brain_repo_state "$brain")" != "root" ]; then
|
|
45
62
|
os_die "el brain no es un repo git: el respaldo remoto va después del local"
|
|
46
63
|
fi
|
|
47
64
|
|
|
@@ -52,20 +69,48 @@ if [ -n "$remoto" ]; then
|
|
|
52
69
|
exit 0
|
|
53
70
|
fi
|
|
54
71
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
language=$(os_language "$brain")
|
|
73
|
+
os_lang_load "$language"
|
|
74
|
+
|
|
75
|
+
# Sin `--service`: la pregunta de dónde va el respaldo. No corre `gh`, no escribe nada, sale con 8.
|
|
76
|
+
if [ -z "$service" ]; then
|
|
77
|
+
printf '%s\n' "$S_BACKUP_WHERE_QUESTION"
|
|
78
|
+
printf ' 1. %s\n' "$S_BACKUP_OPTION_GITHUB"
|
|
79
|
+
printf ' 2. %s\n' "$S_BACKUP_OPTION_BITBUCKET"
|
|
80
|
+
printf ' 3. %s\n' "$S_BACKUP_OPTION_OTHER"
|
|
81
|
+
printf ' 4. %s\n' "$S_BACKUP_OPTION_NONE"
|
|
82
|
+
printf '%s\n' "$S_CHOICE_REPLY_WITH_NUMBER"
|
|
83
|
+
exit 8
|
|
61
84
|
fi
|
|
62
85
|
|
|
63
|
-
if [ "$
|
|
64
|
-
printf '
|
|
65
|
-
printf ' comando: gh repo create %s --private --source %s --push\n' "$(basename "$brain")" "$brain"
|
|
86
|
+
if [ "$service" = "none" ]; then
|
|
87
|
+
printf '%s\n' "$S_BACKUP_NONE"
|
|
66
88
|
exit 0
|
|
67
89
|
fi
|
|
68
90
|
|
|
91
|
+
# `gh auth status` solo lee. Ningún otro comando de `gh` corre desde acá, y solo con GitHub elegido.
|
|
92
|
+
if [ "$service" = "github" ]; then
|
|
93
|
+
autenticado=0
|
|
94
|
+
if command -v gh > /dev/null 2>&1; then
|
|
95
|
+
if gh auth status > /dev/null 2>&1; then
|
|
96
|
+
autenticado=1
|
|
97
|
+
fi
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
if [ "$autenticado" = "1" ]; then
|
|
101
|
+
printf 'respaldo remoto: gh autenticado — el repo lo crea el operador con su sí, nunca este script\n'
|
|
102
|
+
printf ' comando: gh repo create %s --private --source %s --push\n' "$(basename "$brain")" "$brain"
|
|
103
|
+
exit 0
|
|
104
|
+
fi
|
|
105
|
+
tarea="$S_BACKUP_TASK"
|
|
106
|
+
causa="sin gh autenticado"
|
|
107
|
+
else
|
|
108
|
+
# Bitbucket u otro servicio: pasos genéricos, sin `gh` ni github.com.
|
|
109
|
+
if [ "$service" = "bitbucket" ]; then nombre="$S_BACKUP_OPTION_BITBUCKET"; else nombre="$S_BACKUP_SERVICE_OTHER"; fi
|
|
110
|
+
tarea=$(printf "$S_BACKUP_TASK_GENERIC" "$nombre")
|
|
111
|
+
causa="el repositorio remoto lo crea el operador"
|
|
112
|
+
fi
|
|
113
|
+
|
|
69
114
|
# Sin gh no se puede armar el remoto hoy: la tarea queda en el backlog del espacio de trabajo
|
|
70
115
|
# `personal` (spec 059: la raíz ya no tiene backlog propio), con la guía adentro, y el que la termina
|
|
71
116
|
# es cualquier sesión posterior. Un pendiente que nadie escribe es un pendiente que nadie completa.
|
|
@@ -73,9 +118,6 @@ fi
|
|
|
73
118
|
# que pueda nombrar una iniciativa — armar el remoto de respaldo no es trabajo de ninguna. Va al
|
|
74
119
|
# backlog de la iniciativa `tasks-to-sort` del workspace `personal` (spec 076, C29). La escritura vive
|
|
75
120
|
# en `os_personal_backlog_append`.
|
|
76
|
-
language=$(os_language "$brain")
|
|
77
|
-
os_lang_load "$language"
|
|
78
|
-
tarea="$S_BACKUP_TASK"
|
|
79
121
|
if [ "$note" = "0" ]; then
|
|
80
122
|
printf "$S_NOTE_FOR_LATER_STEP\n" "$tarea"
|
|
81
123
|
printf '%s\n' "$S_NOTE_FOR_LATER_QUESTION"
|
|
@@ -86,7 +128,7 @@ os_ws_check "$brain"
|
|
|
86
128
|
rc=0
|
|
87
129
|
os_personal_backlog_append "$brain" "$tarea" || rc=$?
|
|
88
130
|
case "$rc" in
|
|
89
|
-
0) printf 'respaldo remoto: pendiente —
|
|
131
|
+
0) printf 'respaldo remoto: pendiente — %s, la tarea guiada quedó en el backlog de la iniciativa tasks-to-sort del workspace personal\n' "$causa" ;;
|
|
90
132
|
1) printf 'respaldo remoto: la tarea pendiente ya estaba en el backlog de la iniciativa tasks-to-sort del workspace personal\n' ;;
|
|
91
133
|
3) printf 'respaldo remoto: pendiente y sin escribir — el slug tasks-to-sort del workspace personal lo usa una iniciativa que trata sobre un nodo\n' ;;
|
|
92
134
|
*) printf 'respaldo remoto: pendiente y sin escribir — el workspace personal no existe todavía; correr migrate-root.sh y repetir\n' ;;
|
package/core/lib/session-read.sh
CHANGED
|
@@ -121,7 +121,6 @@ fi
|
|
|
121
121
|
[ "$root_pedido" = "0" ] || os_root_gone "$brain"
|
|
122
122
|
|
|
123
123
|
[ -n "$brain" ] || os_die "missing --brain"
|
|
124
|
-
[ -n "$org" ] || os_die "missing --org or --workspace"
|
|
125
124
|
[ -d "$brain" ] || os_die "no such brain: $brain"
|
|
126
125
|
brain=$(cd "$brain" && pwd)
|
|
127
126
|
|
|
@@ -135,6 +134,25 @@ head=$(os_head_file "$brain") || true
|
|
|
135
134
|
lang=$(os_language "$brain")
|
|
136
135
|
os_lang_load "$lang"
|
|
137
136
|
|
|
137
|
+
# No workspace named (spec 089, part C): the same resolution as the scan, through the same function.
|
|
138
|
+
if [ -z "$org" ]; then
|
|
139
|
+
if org=$(os_ws_only "$brain"); then
|
|
140
|
+
:
|
|
141
|
+
else
|
|
142
|
+
listed=0
|
|
143
|
+
printf '%s\n' "$S_SESSION_ORG_NOT_NAMED" >&2
|
|
144
|
+
while IFS= read -r slug || [ -n "$slug" ]; do
|
|
145
|
+
[ -n "$slug" ] || continue
|
|
146
|
+
printf ' %s\n' "$slug" >&2
|
|
147
|
+
listed=1
|
|
148
|
+
done <<SLUGS
|
|
149
|
+
$(os_org_slugs "$brain")
|
|
150
|
+
SLUGS
|
|
151
|
+
[ "$listed" = "1" ] || printf ' %s\n' "$S_SESSION_NO_ORGS" >&2
|
|
152
|
+
exit 2
|
|
153
|
+
fi
|
|
154
|
+
fi
|
|
155
|
+
|
|
138
156
|
# ---------------------------------------------------------------- the scope is validated by listing
|
|
139
157
|
# Byte for byte against the real names under the workspaces folder, never with `-d`, and with the
|
|
140
158
|
# same keys the scan uses: a scope that does not exist has to read the same in both places.
|
|
@@ -86,7 +86,6 @@ fi
|
|
|
86
86
|
[ -n "$org" ] || org="$workspace"
|
|
87
87
|
|
|
88
88
|
[ -n "$brain" ] || os_die "falta --brain"
|
|
89
|
-
[ -n "$org" ] || os_die "falta --org o --workspace"
|
|
90
89
|
[ -d "$brain" ] || os_die "no existe el brain: $brain"
|
|
91
90
|
brain=$(cd "$brain" && pwd)
|
|
92
91
|
|
|
@@ -112,6 +111,27 @@ memory_types_org=$(os_memory_types "$brain" org) || memory_types_org=""
|
|
|
112
111
|
lang=$(os_language "$brain")
|
|
113
112
|
os_lang_load "$lang"
|
|
114
113
|
|
|
114
|
+
# No workspace named (spec 089, part C): with exactly one in the brain, it is that one, as if it had been
|
|
115
|
+
# passed with --workspace; with none or several, the scan stops and lists them. The rule is written once, in
|
|
116
|
+
# `core/CLAUDE.md`, and decided in one place, `os_ws_only` (common.sh).
|
|
117
|
+
if [ -z "$org" ]; then
|
|
118
|
+
if org=$(os_ws_only "$brain"); then
|
|
119
|
+
:
|
|
120
|
+
else
|
|
121
|
+
listed=0
|
|
122
|
+
printf '%s\n' "$S_SESSION_ORG_NOT_NAMED" >&2
|
|
123
|
+
while IFS= read -r slug || [ -n "$slug" ]; do
|
|
124
|
+
[ -n "$slug" ] || continue
|
|
125
|
+
printf ' %s\n' "$slug" >&2
|
|
126
|
+
listed=1
|
|
127
|
+
done <<SLUGS
|
|
128
|
+
$(os_org_slugs "$brain")
|
|
129
|
+
SLUGS
|
|
130
|
+
[ "$listed" = "1" ] || printf ' %s\n' "$S_SESSION_NO_ORGS" >&2
|
|
131
|
+
exit 2
|
|
132
|
+
fi
|
|
133
|
+
fi
|
|
134
|
+
|
|
115
135
|
# translate_fm_broken VALUE -> the same `fm_roto`/`bl_roto` value (always in Spanish: common.sh
|
|
116
136
|
# returns it, and it does not know the scan's language) translated with the catalog already loaded
|
|
117
137
|
# above. Does not touch `common.sh`: `sweep.sh` and `check-resolvable.sh` keep reading those values
|
|
@@ -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 — cómo funciona este sistema
|
|
2
6
|
|
|
3
7
|
> [!NOTE] Este archivo es el manual del sistema
|
|
@@ -100,7 +104,7 @@ arranque de sesión. Editá la fuente —la iniciativa, la decisión, el aprendi
|
|
|
100
104
|
|
|
101
105
|
### Cómo arranca una sesión
|
|
102
106
|
|
|
103
|
-
1. Nombrás el espacio de trabajo en el que vas a trabajar.
|
|
107
|
+
1. Nombrás el espacio de trabajo en el que vas a trabajar. Si tu brain tiene uno solo, no hace falta: el agente arranca en ese.
|
|
104
108
|
2. El agente corre el **barrido** y la **lectura de arranque** antes de contestar: primero
|
|
105
109
|
`account/operator.md`, después la cabeza del espacio de trabajo y su propia tabla de herramientas,
|
|
106
110
|
su glosario y su mapa de contextos si los tiene, sus decisiones clave, y las tablas de
|
|
@@ -194,7 +198,8 @@ propia sección:
|
|
|
194
198
|
|
|
195
199
|
> [!EXAMPLE] Una sesión de punta a punta
|
|
196
200
|
> 1. **Arranque.** Nombrás el espacio de trabajo —tu trabajo propio es `personal`, el que trae todo
|
|
197
|
-
> brain al nacer
|
|
201
|
+
> brain al nacer, y con uno solo el agente lo toma por su cuenta— y el agente corre el **barrido**
|
|
202
|
+
> antes de contestar nada: qué espera tu decisión,
|
|
198
203
|
> qué está en curso, qué está trabado y por quién, qué hay en cola y qué encontraron los chequeos.
|
|
199
204
|
> Después elegís foco, y recién ahí se carga el cuerpo de esa iniciativa.
|
|
200
205
|
> 2. **Trabajo.** Cada pedido se rutea a su herramienta por el resolver. Nada se activa solo, y
|
|
@@ -222,6 +227,11 @@ contradicción para resolver, nunca elegidos en silencio. Y es descartable: lo q
|
|
|
222
227
|
archivo chico que se reconstruye solo desde tus propios archivos, nunca algo que vos escribís o
|
|
223
228
|
respaldás.
|
|
224
229
|
|
|
230
|
+
**Lo que el agente abre por su cuenta.** El arranque y el foco deciden qué se carga al empezar. Después,
|
|
231
|
+
una nota que el agente lee puede mencionar otras: abre una solo cuando tu pedido necesita algo que está
|
|
232
|
+
ahí, y busca el fragmento con `recall` antes de abrir el archivo entero. Un enlace y una ruta cuestan
|
|
233
|
+
lo mismo: lo que gasta la ventana del agente es abrir el archivo, no cómo está escrita la mención.
|
|
234
|
+
|
|
225
235
|
## ⚙️ Dónde vive la maquinaria
|
|
226
236
|
|
|
227
237
|
Las herramientas —skills, scripts, agentes— viven en `.os/`, `.claude/` y `.agents/`. Esas carpetas
|
|
@@ -237,9 +247,15 @@ Los skills de un pack están en `.agents/skills/<nombre>/SKILL.md`, una carpeta
|
|
|
237
247
|
busca primero en `.agents/skills/` y cuenta una sola vez un skill que está en las dos carpetas.
|
|
238
248
|
Cualquier skill que escribas vos va al lado, como carpeta común en `.claude/skills/`.
|
|
239
249
|
|
|
250
|
+
**La apariencia de Obsidian.** Si leés tu cerebro en Obsidian, el agente te ofrece una sola vez, al terminar
|
|
251
|
+
de instalar o en tu próxima actualización, dejarlo con la apariencia de AI First OS: íconos, portadas,
|
|
252
|
+
colores y márgenes más anchos. Cambia cómo se ve en Obsidian y nada de lo que escribiste. Si dijiste que no,
|
|
253
|
+
pedila más adelante: "dejá mi cerebro con la apariencia de AI First OS". Con ella puesta, cada actualización
|
|
254
|
+
la mantiene al día.
|
|
255
|
+
|
|
240
256
|
> [!TIP] Para actualizar, pedile a cualquier sesión «actualizá el sistema»
|
|
241
257
|
> Para actualizar, pedile a cualquier sesión: **"actualizá el sistema"**. Con esa frase alcanza, y
|
|
242
|
-
> cubre
|
|
258
|
+
> cubre todo lo que está instalado — el sistema, los packs y la apariencia de Obsidian. Qué hace paso a paso
|
|
243
259
|
> está escrito una sola vez, en el `README.md` de la carpeta del producto bajo **Update**; este
|
|
244
260
|
> manual apunta ahí en vez de contarlo de nuevo, porque dos versiones del mismo procedimiento se
|
|
245
261
|
> separan.
|
|
@@ -323,6 +339,11 @@ lleva cada tema, qué espera a qué) lo guarda en un archivo oculto que nunca te
|
|
|
323
339
|
una y ve cuánto contexto usa cada una. **En la terminal** funciona reducida: reparte trabajo, pero
|
|
324
340
|
no puede abrir sesiones nuevas ni ver cuánto contexto tiene cada una. Al prenderse te dice en cuál
|
|
325
341
|
estás.
|
|
342
|
+
- **Un tema largo, en su propia sesión.** Si vas a ir y venir muchas veces sobre una sola cosa,
|
|
343
|
+
hacelo directo en la sesión de ese tema. La orquestadora es para pasar de un tema a otro, ver
|
|
344
|
+
prioridades y pendientes, aprobar el último paso que no se puede deshacer y abrir o reiniciar
|
|
345
|
+
sesiones. Cada pedido que pasa por ella se paga dos veces, tarda una vuelta más y pierde matices
|
|
346
|
+
en el camino. Cuando vuelvas, lee lo que la sesión del tema dejó escrito y se pone al día sola.
|
|
326
347
|
|
|
327
348
|
## 🚦 Trabajar con agentes: dos gates y un tramo autónomo
|
|
328
349
|
|
|
@@ -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
|
@@ -160,23 +160,43 @@ them. Adding a second workspace to a brain that already exists is `new-workspace
|
|
|
160
160
|
`git init` and the first commit. Nothing to ask; a brain with no history loses work silently. git is
|
|
161
161
|
guaranteed present by the preflight in Step 0 — there is no unversioned brain to describe here.
|
|
162
162
|
|
|
163
|
-
**Remote, right after**, and it never runs alone:
|
|
163
|
+
**Remote, right after**, and it never runs alone. First the script asks where it goes:
|
|
164
164
|
|
|
165
165
|
```
|
|
166
166
|
.os/core/lib/remote-backup.sh --brain .
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
169
|
+
With no `origin` declared it prints the question, four numbered options (GitHub, Bitbucket, another
|
|
170
|
+
service, none) and "Reply with the number", writes nothing and exits 8. With an `origin` it prints
|
|
171
|
+
where the backup already is and exits 0: nothing to ask.
|
|
172
|
+
|
|
173
|
+
**Ask it as a multiple-choice question**: with the harness's multiple-choice tool if it has one (in
|
|
174
|
+
Claude Code, `AskUserQuestion`), using the question, labels and descriptions the script printed; if
|
|
175
|
+
it has none, show the numbered list the script printed, and a number is enough as the answer. Then
|
|
176
|
+
run `.os/core/lib/remote-backup.sh --brain . --service <github|bitbucket|other|none>` and follow what
|
|
177
|
+
it prints:
|
|
178
|
+
|
|
179
|
+
- **GitHub.** With `gh` authenticated it prints the offer and the exact `gh repo create` command.
|
|
180
|
+
**Ask the operator and run it only with their yes in that turn**: it leaves a repository in their
|
|
181
|
+
account, which escapes the system. Without `gh`, it writes nothing: it prints the pending step
|
|
182
|
+
(create the account at github.com —**the operator creates it, never the agent**—, run
|
|
183
|
+
`gh auth login`, and any later session finishes the rest by running the same script) and the
|
|
184
|
+
question to ask, and exits 7. Ask the operator the question it printed, in the brain's language
|
|
185
|
+
("Should I note it down for later?", from `NOTE_FOR_LATER_QUESTION` in the strings catalog).
|
|
186
|
+
**Only with their yes in that turn** run
|
|
187
|
+
`.os/core/lib/remote-backup.sh --brain . --service github --note`: the guided task lands in the
|
|
188
|
+
`personal` workspace, in its "Tasks to sort" initiative, created the first time. No yes: nothing
|
|
189
|
+
is written, and say so plainly ("I did not note anything down").
|
|
190
|
+
- **Bitbucket or another service.** The script never looks at `gh`: it prints the generic pending
|
|
191
|
+
step (the operator creates an empty private repository there, never the agent; then
|
|
192
|
+
`git remote add origin <repository address>` and `git push -u origin HEAD`) and the same question,
|
|
193
|
+
and exits 7. If the person already has the repository address, run those two `git` commands with
|
|
194
|
+
that address **only with their yes in that turn**. If they do not have it yet, ask the question the
|
|
195
|
+
script printed and, **only with their yes in that turn**, run
|
|
196
|
+
`.os/core/lib/remote-backup.sh --brain . --service <bitbucket|other> --note`. No yes: nothing is
|
|
197
|
+
written, and say so plainly.
|
|
198
|
+
- **None.** Run `--service none`: it says `BACKUP_NONE` ("No remote backup for now...") and writes
|
|
199
|
+
nothing, not even a note in the backlog.
|
|
180
200
|
|
|
181
201
|
Synced folders (iCloud, Drive) are not offered as backup: the system runs on symlinks and those
|
|
182
202
|
folders break them.
|
|
@@ -197,17 +217,21 @@ got installed.** Whoever came in through `npx ai-first-os` has Node by construct
|
|
|
197
217
|
the git-clone prompt may or may not.
|
|
198
218
|
|
|
199
219
|
- **Node present: one question, not two.** There is nothing to defer when the download can run right
|
|
200
|
-
now
|
|
220
|
+
now. The offer prints the question, two numbered options (Install, Later) and "Reply with the
|
|
221
|
+
number". **Ask it as a multiple-choice question**: with the harness's multiple-choice tool if it has
|
|
222
|
+
one (in Claude Code, `AskUserQuestion`), with the labels and descriptions the offer printed; if it
|
|
223
|
+
has none, show the numbered list it printed, and a number is enough as the answer:
|
|
201
224
|
|
|
202
225
|
> The craft on top —discovery, the metric brief, the interview that writes a product's strategic
|
|
203
|
-
> layer— travels in a pack of skills. Install it now?
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
What lands: one folder per skill
|
|
208
|
-
(`<pack>-resolver`), which is what the session
|
|
209
|
-
|
|
210
|
-
|
|
226
|
+
> layer— travels in a pack of skills. Install it now?
|
|
227
|
+
|
|
228
|
+
Install: run the command the offer printed, from the brain folder, **only with their yes in that turn**
|
|
229
|
+
(choosing Install is the yes). The command carries its own confirmations (`npx --yes`, the CLI's `--yes`) and names
|
|
230
|
+
its destination, so nothing else asks anything in the terminal. What lands: one folder per skill
|
|
231
|
+
under `.claude/skills/`, plus the pack's own index (`<pack>-resolver`), which is what the session
|
|
232
|
+
contract reads to route a request to the pack. The harness also offers those skills natively,
|
|
233
|
+
because that is where it looks for them. Later: leave it as is —
|
|
234
|
+
**nothing gets written to the backlog**; the same offer comes back the day a session needs a
|
|
211
235
|
capability of the pack that is not installed.
|
|
212
236
|
- **Node missing: the only exit is later.** Point at the LTS installer on nodejs.org — you guide, the
|
|
213
237
|
operator installs, and a no is an answer, not an error. Whether they install it right now or not,
|
|
@@ -223,10 +247,37 @@ the git-clone prompt may or may not.
|
|
|
223
247
|
system already provides travels marked internal in the pack, and the CLI skips it on its own — there
|
|
224
248
|
is no list to keep here, and nothing is ever installed and then deleted.
|
|
225
249
|
|
|
226
|
-
**If it fails —no network, registry down, the operator says no— the flow does not stop.** Retry once
|
|
227
|
-
|
|
250
|
+
**If it fails —no network, registry down, the operator says no— the flow does not stop.** Retry once,
|
|
251
|
+
and only for a technical failure: the command no longer asks before downloading, so a no from the
|
|
252
|
+
operator is never retried — it takes the later exit right away. If the retry fails too, take the
|
|
253
|
+
later exit above —the same question, and the note only with a yes— and say it out loud. A
|
|
228
254
|
bootstrap aborted halfway because a download failed is the worse outcome of the two.
|
|
229
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
|
+
|
|
230
281
|
## When it finishes
|
|
231
282
|
|
|
232
283
|
- Show the tree created and what each file answers, in outcomes and not in canonical names.
|
|
@@ -242,6 +293,8 @@ bootstrap aborted halfway because a download failed is the worse outcome of the
|
|
|
242
293
|
- **Say whether the pack landed.** If it was installed, name what it added and that the harness
|
|
243
294
|
offers it directly. If it was left for later, say the pending line is in the `personal` workspace
|
|
244
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.
|
|
245
298
|
- **How the operator updates all of this is written once**, in the repository's `README.md` under
|
|
246
299
|
**Update**, and is not restated here. Point at it; do not retell it.
|
|
247
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
|
+
}
|