ai-first-os 2.0.0 → 2.1.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/core/CLAUDE.md +2 -1
- package/core/VERSION +1 -1
- package/core/lib/build-indexes.sh +415 -59
- package/core/lib/common.sh +68 -4
- package/core/lib/focus-read.sh +59 -3
- package/core/lib/migrate-layout.sh +1 -1
- package/core/lib/migrate-root.sh +1 -1
- package/core/lib/session-read.sh +3 -3
- package/core/lib/session-start.sh +4 -7
- package/core/manual/COMO-FUNCIONA.md +26 -18
- package/core/manual/HOW-IT-WORKS.md +26 -18
- package/core/templates/operator.md +1 -1
- package/core/templates/strings.md +161 -9
- package/core/templates/voice.md +1 -1
- package/package.json +1 -1
package/core/lib/common.sh
CHANGED
|
@@ -14,6 +14,14 @@ OS_SYSTEM_DIR=".system"
|
|
|
14
14
|
OS_TREE_FILE="$OS_SYSTEM_DIR/tree.md"
|
|
15
15
|
OS_ROOT_RESOLVER_FILE="$OS_SYSTEM_DIR/resolver.md"
|
|
16
16
|
|
|
17
|
+
# The two lines of a generated node index that the focus read cuts at (spec 078, C4; spec 079, C4): what is
|
|
18
|
+
# between them is the part of the index the AI loads, everything outside is for the person. An index
|
|
19
|
+
# written by the spec 078 has only the end line, and the focus then prints from its first line to it. HTML
|
|
20
|
+
# comments, so no reader of Markdown shows them. Only statement of the text; `build-indexes.sh` writes them
|
|
21
|
+
# and `focus-read.sh` cuts at them.
|
|
22
|
+
OS_FOCUS_START='<!-- os:focus-start -->'
|
|
23
|
+
OS_FOCUS_END='<!-- os:focus-end -->'
|
|
24
|
+
|
|
17
25
|
# The account (spec 076, C8): who the operator is and how they write. Visible, edited by the person.
|
|
18
26
|
OS_ACCOUNT_DIR="account"
|
|
19
27
|
OS_OPERATOR_FILE="$OS_ACCOUNT_DIR/operator.md"
|
|
@@ -1044,6 +1052,37 @@ os_doc_title() {
|
|
|
1044
1052
|
printf '%s' "$t"
|
|
1045
1053
|
}
|
|
1046
1054
|
|
|
1055
|
+
# md_cell TEXT -> the text safe inside a table cell or a link label: backslash, `|`, `[` and `]` escaped.
|
|
1056
|
+
md_cell() {
|
|
1057
|
+
local t="$1"
|
|
1058
|
+
t="${t//\\/\\\\}"
|
|
1059
|
+
t="${t//|/\\|}"
|
|
1060
|
+
t="${t//[/\\[}"
|
|
1061
|
+
t="${t//]/\\]}"
|
|
1062
|
+
printf '%s' "$t"
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
# md_dest PATH -> the path as a link destination: `%`, `&`, `\`, tab, space, parentheses, `|`, `<`, `>`, `#` and `?`
|
|
1066
|
+
# encoded, and `./` before a first segment with a colon. The one place that knows it (spec 078, C6): every generated index line goes through it.
|
|
1067
|
+
md_dest() {
|
|
1068
|
+
local t="$1"
|
|
1069
|
+
t="${t//%/%25}"
|
|
1070
|
+
t="${t//&/%26}"
|
|
1071
|
+
t="${t//\\/%5C}"
|
|
1072
|
+
t="${t//$'\t'/%09}"
|
|
1073
|
+
t="${t// /%20}"
|
|
1074
|
+
t="${t//(/%28}"
|
|
1075
|
+
t="${t//)/%29}"
|
|
1076
|
+
t="${t//|/%7C}"
|
|
1077
|
+
t="${t//</%3C}"
|
|
1078
|
+
t="${t//>/%3E}"
|
|
1079
|
+
t="${t//#/%23}"
|
|
1080
|
+
t="${t//\?/%3F}"
|
|
1081
|
+
# A first segment with a colon would read as a URI scheme: `./` keeps it a relative path.
|
|
1082
|
+
case "${t%%/*}" in *:*) t="./$t" ;; esac
|
|
1083
|
+
printf '%s' "$t"
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1047
1086
|
# os_doc_index_line BRAIN REL FROM_DIR -> the index line of the document at REL (relative to the
|
|
1048
1087
|
# brain), with its links relative to FROM_DIR. Exit 1 when the file is not there.
|
|
1049
1088
|
os_doc_index_line() {
|
|
@@ -1055,11 +1094,11 @@ os_doc_index_line() {
|
|
|
1055
1094
|
line="-"
|
|
1056
1095
|
[ -n "$date" ] && line="$line $date ·"
|
|
1057
1096
|
os_doc_is_key "$key" && line="$line $S_INDEX_KEY_LABEL ·"
|
|
1058
|
-
line="$line [$title]($(os_rel_link "$from" "$rel"))"
|
|
1097
|
+
line="$line [$(md_cell "$title")]($(md_dest "$(os_rel_link "$from" "$rel")"))"
|
|
1059
1098
|
[ -n "$note" ] && line="$line — $note"
|
|
1060
1099
|
if [ -n "$sup" ]; then
|
|
1061
1100
|
if [ -f "$brain/$sup" ]; then sup_title=$(os_doc_title "$brain/$sup"); else sup_title="${sup##*/}"; fi
|
|
1062
|
-
line="$line — **$S_INDEX_SUPERSEDED_LABEL**: [$sup_title]($(os_rel_link "$from" "$sup"))"
|
|
1101
|
+
line="$line — **$S_INDEX_SUPERSEDED_LABEL**: [$(md_cell "$sup_title")]($(md_dest "$(os_rel_link "$from" "$sup")"))"
|
|
1063
1102
|
fi
|
|
1064
1103
|
printf '%s' "$line"
|
|
1065
1104
|
return 0
|
|
@@ -1073,6 +1112,19 @@ os_doc_superseded() {
|
|
|
1073
1112
|
return 1
|
|
1074
1113
|
}
|
|
1075
1114
|
|
|
1115
|
+
# os_doc_superseded_path -> the normalised path of the file that replaced the document `fm_read` just read, or
|
|
1116
|
+
# nothing (the one place outside the writer that reads the key for an index).
|
|
1117
|
+
os_doc_superseded_path() {
|
|
1118
|
+
case "$fm_superseded_by" in
|
|
1119
|
+
'') ;;
|
|
1120
|
+
*) os_rel_norm "$fm_superseded_by"; return 0 ;;
|
|
1121
|
+
esac
|
|
1122
|
+
# MADR's own form, `status: superseded by <path>` (spec 070), when the key is not there.
|
|
1123
|
+
case "$fm_status" in
|
|
1124
|
+
"superseded by "*) os_rel_norm "$(os_trim "${fm_status#superseded by }")" ;;
|
|
1125
|
+
esac
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1076
1128
|
# os_docs_sorted BRAIN DIR_REL -> the `.md` files of that folder (never its generated `index.md`),
|
|
1077
1129
|
# relative to the brain, newest `date:` first; same date, by path. An undated file goes last.
|
|
1078
1130
|
os_docs_sorted() {
|
|
@@ -1449,9 +1501,21 @@ FILES
|
|
|
1449
1501
|
# title comes from the strings catalog (`TASKS_TO_SORT_TITLE`), in the language of the brain.
|
|
1450
1502
|
OS_TASKS_TO_SORT_SLUG="tasks-to-sort"
|
|
1451
1503
|
|
|
1452
|
-
#
|
|
1504
|
+
# os_strip_emoji TEXT -> TEXT without the emoji the product itself writes at the start of a title and the space
|
|
1505
|
+
# after it (spec 079, C15): `👤 ` on the operator's heading and `✍️ ` on the voice's. Nothing else is touched, so a
|
|
1506
|
+
# name that begins with any other Unicode character comes out as it came in.
|
|
1507
|
+
os_strip_emoji() {
|
|
1508
|
+
case "$1" in
|
|
1509
|
+
"👤 "*) printf '%s' "${1#"👤 "}" ;;
|
|
1510
|
+
"✍️ "*) printf '%s' "${1#"✍️ "}" ;;
|
|
1511
|
+
*) printf '%s' "$1" ;;
|
|
1512
|
+
esac
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
# os_operator_name BRAIN -> the operator's name: the first `# Title` of `account/operator.md`, without the
|
|
1516
|
+
# emoji that opens it.
|
|
1453
1517
|
os_operator_name() {
|
|
1454
|
-
os_titulo "$1/$OS_OPERATOR_FILE"
|
|
1518
|
+
os_strip_emoji "$(os_titulo "$1/$OS_OPERATOR_FILE")"
|
|
1455
1519
|
}
|
|
1456
1520
|
|
|
1457
1521
|
# os_ini_render TITLE STATUS ABOUT OWNER DATE -> the text of the head of a new initiative, on stdout:
|
package/core/lib/focus-read.sh
CHANGED
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
# 1. the head named by `--focus`
|
|
17
17
|
# 2. its body: the files a `content:` line reaches **directly inside** that node's folder,
|
|
18
18
|
# `LC_ALL=C sort` by path — for an area node (a product, a course, a channel, an account) that is
|
|
19
|
-
# its generated `index.md` (spec 076, C20)
|
|
19
|
+
# its generated `index.md` (spec 076, C20), **printed only between the lines `<!-- os:focus-start -->`
|
|
20
|
+
# and `<!-- os:focus-end -->`** (neither included): the table of the initiatives in progress and
|
|
21
|
+
# nothing else, not the title, the warning or what comes below (spec 079, C4). An index written by
|
|
22
|
+
# spec 078 has only the end line and prints from its first line up to it; an index without the end
|
|
23
|
+
# line prints whole, and so does one written by a person. A generated index whose table has no
|
|
24
|
+
# initiative row prints nothing. An initiative has no generated index (spec 079, C10); a generated
|
|
25
|
+
# `index.md` in its folder is not printed at all
|
|
20
26
|
# 3. when the focus is an area node: its own `.resolver.md`, when a `glob:` line reaches it (spec
|
|
21
27
|
# 076, C15), and its key decisions (see 6)
|
|
22
28
|
# 4. only if that head declares `about:` — for each path it names, in the order of the list (spec
|
|
@@ -148,10 +154,57 @@ separar() {
|
|
|
148
154
|
if [ "$primera" = "1" ]; then primera=0; else printf '\n'; fi
|
|
149
155
|
}
|
|
150
156
|
|
|
151
|
-
#
|
|
157
|
+
# indice_generado ARCHIVO -> 0 when the file is a generated `index.md`. Reads its frontmatter.
|
|
158
|
+
indice_generado() {
|
|
159
|
+
[ "${1##*/}" = "index.md" ] || return 1
|
|
160
|
+
[ -f "$1" ] || return 1
|
|
161
|
+
fm_read "$1"
|
|
162
|
+
[ "$fm_generated" = "true" ]
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
# region_del_foco ARCHIVO -> the lines of a generated node index that the AI reads: those between `OS_FOCUS_START`
|
|
166
|
+
# and `OS_FOCUS_END`, or from the first line when the index has no start line (spec 078).
|
|
167
|
+
region_del_foco() {
|
|
168
|
+
local line buf="" dentro=0
|
|
169
|
+
grep -qxF -- "$OS_FOCUS_START" "$1" || dentro=1
|
|
170
|
+
while IFS= read -r line || [ -n "$line" ]; do
|
|
171
|
+
if [ "$line" = "$OS_FOCUS_END" ]; then break; fi
|
|
172
|
+
if [ "$dentro" = "1" ]; then
|
|
173
|
+
buf="$buf$line$nl"
|
|
174
|
+
elif [ "$line" = "$OS_FOCUS_START" ]; then
|
|
175
|
+
dentro=1
|
|
176
|
+
fi
|
|
177
|
+
done < "$1"
|
|
178
|
+
printf '%s' "$buf"
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
# indice_oculto RUTA -> 0 when the AI reads nothing from that file (spec 078, C4, C5; spec 079, C4, C9, C10): the
|
|
182
|
+
# generated index of an initiative left by spec 078, and the generated index of a node whose region holds no
|
|
183
|
+
# row of an initiative in progress. The one place that decides it; `cuerpo` is the one place that prints, so no
|
|
184
|
+
# route (the head, a jump, the body of the node) can print what this hides, or what the markers cut.
|
|
185
|
+
indice_oculto() {
|
|
186
|
+
local f="$brain/$1" region
|
|
187
|
+
indice_generado "$f" || return 1
|
|
188
|
+
case "$1" in */initiatives/*/index.md) return 0 ;; esac
|
|
189
|
+
grep -qxF -- "$OS_FOCUS_END" "$f" || return 1
|
|
190
|
+
region=$(region_del_foco "$f")
|
|
191
|
+
case "$nl$region" in *"$nl| ["*) return 1 ;; esac
|
|
192
|
+
return 0
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
# cuerpo ARCHIVO — the bytes of the file, plus the closing newline it may not have. A generated index with
|
|
196
|
+
# the end marker prints only its region; one that `indice_oculto` hides prints nothing.
|
|
152
197
|
cuerpo() {
|
|
153
|
-
local last
|
|
198
|
+
local last rel="${1#"$brain"/}" buf
|
|
154
199
|
[ -s "$1" ] || return 0
|
|
200
|
+
if indice_generado "$1"; then
|
|
201
|
+
indice_oculto "$rel" && return 0
|
|
202
|
+
if grep -qxF -- "$OS_FOCUS_END" "$1"; then
|
|
203
|
+
buf=$(region_del_foco "$1")
|
|
204
|
+
[ -z "$buf" ] || printf '%s\n' "$buf"
|
|
205
|
+
return 0
|
|
206
|
+
fi
|
|
207
|
+
fi
|
|
155
208
|
cat "$1"
|
|
156
209
|
last=$(tail -c 1 "$1")
|
|
157
210
|
if [ -n "$last" ]; then printf '\n'; fi
|
|
@@ -161,6 +214,7 @@ cuerpo() {
|
|
|
161
214
|
# emitir RUTA — one entry: its header and its body, or its `missing:` line.
|
|
162
215
|
impresos="$nl"
|
|
163
216
|
emitir() {
|
|
217
|
+
if [ -f "$brain/$1" ] && indice_oculto "$1"; then impresos="$impresos$1$nl"; return 0; fi
|
|
164
218
|
separar
|
|
165
219
|
impresos="$impresos$1$nl"
|
|
166
220
|
if [ -f "$brain/$1" ]; then
|
|
@@ -174,6 +228,7 @@ emitir() {
|
|
|
174
228
|
}
|
|
175
229
|
|
|
176
230
|
wsdir=$(os_ws_dir "$brain")
|
|
231
|
+
tipo_foco=""
|
|
177
232
|
|
|
178
233
|
# claves HEAD — step 6: the key decisions about one area node, read from the frontmatter of each
|
|
179
234
|
# decision of its workspace. Nothing for a head that is not an area node.
|
|
@@ -231,6 +286,7 @@ $contents
|
|
|
231
286
|
CONTENIDOS
|
|
232
287
|
# `sort -u`: two `content:` lines that reach the same file —two sessions declaring it at once
|
|
233
288
|
# (spec 072)— must not print its body twice.
|
|
289
|
+
# What a generated index prints is decided in `cuerpo` and `indice_oculto`, for every route.
|
|
234
290
|
while IFS= read -r f || [ -n "$f" ]; do
|
|
235
291
|
[ -n "$f" ] || continue
|
|
236
292
|
emitir "$f"
|
|
@@ -65,7 +65,7 @@ for f in "$brain/$OS_OPERATOR_FILE" "$brain/operator.md"; do
|
|
|
65
65
|
[ -f "$f" ] || continue
|
|
66
66
|
fm_read "$f"
|
|
67
67
|
if [ -n "$fm_language" ] && os_language_valido "$fm_language"; then lang="$fm_language"; fi
|
|
68
|
-
owner=$(os_titulo "$f")
|
|
68
|
+
owner=$(os_strip_emoji "$(os_titulo "$f")")
|
|
69
69
|
break
|
|
70
70
|
done
|
|
71
71
|
|
package/core/lib/migrate-root.sh
CHANGED
|
@@ -211,7 +211,7 @@ done
|
|
|
211
211
|
# ---------------------------------------------------------------- the destination workspace
|
|
212
212
|
if [ -n "$items" ] && [ ! -e "$brain/$dest" ]; then
|
|
213
213
|
printf 'created\t%s\n' "$dest" >> "$state"
|
|
214
|
-
owner=$(os_titulo "$brain/$OS_OPERATOR_FILE")
|
|
214
|
+
owner=$(os_strip_emoji "$(os_titulo "$brain/$OS_OPERATOR_FILE")")
|
|
215
215
|
[ -n "$owner" ] || owner="$S_PERSONAL_WORKSPACE_NAME"
|
|
216
216
|
"$here/new-workspace.sh" --brain "$brain" --name "$S_PERSONAL_WORKSPACE_NAME" --role "" \
|
|
217
217
|
--title "" --owner "$owner" --slug "$slug" > /dev/null \
|
package/core/lib/session-read.sh
CHANGED
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
# relative to that folder (`os_doc_index_line`, the shape every generated index uses). A scope with
|
|
49
49
|
# no key decision prints no marker and no lines.
|
|
50
50
|
# - Right after them, the indexes of the scope are generated (`build-indexes.sh`, spec 076 C18):
|
|
51
|
-
# `decisions/index.md`, `learnings/index.md` and the `index.md` of each area node
|
|
52
|
-
#
|
|
53
|
-
# entry, a `gitignore-declared: <path>` line per path written for the first time, which the
|
|
51
|
+
# `decisions/index.md`, `learnings/index.md` and the `index.md` of each area node that has
|
|
52
|
+
# something to list (spec 079, C13). Nothing of them is printed — the focus of a node prints its index — except, as one
|
|
53
|
+
# entry, a `gitignore-declared: <path>` line per path written for the first time or dropped because its index was retired, which the
|
|
54
54
|
# session contract tells the session to commit (`.gitignore`) in the same turn, and a
|
|
55
55
|
# `gitignore-declare-failed: <path>` line per index that could not be ignored and so was not written.
|
|
56
56
|
# - A file that is not there prints `── missing: <path>` and no body, and never stops the read.
|
|
@@ -303,7 +303,7 @@ if [ -f "$brain/$OS_OPERATOR_FILE" ]; then
|
|
|
303
303
|
marcar_leido
|
|
304
304
|
while IFS= read -r line || [ -n "$line" ]; do
|
|
305
305
|
case "$line" in
|
|
306
|
-
'# '*) operador=$(os_trim "${line#\# }"); break ;;
|
|
306
|
+
'# '*) operador=$(os_strip_emoji "$(os_trim "${line#\# }")"); break ;;
|
|
307
307
|
esac
|
|
308
308
|
done < "$brain/$OS_OPERATOR_FILE"
|
|
309
309
|
fi
|
|
@@ -688,16 +688,13 @@ $tree_files
|
|
|
688
688
|
RESOLVERS
|
|
689
689
|
|
|
690
690
|
# ---------------------------------------------------------------- an index written by hand (spec 076, C18)
|
|
691
|
-
# The startup read generates `decisions/index.md`, `learnings/index.md
|
|
692
|
-
#
|
|
693
|
-
# skips it. The scan names it — it reads that file's frontmatter and nothing else, and never writes.
|
|
691
|
+
# The startup read generates `decisions/index.md`, `learnings/index.md`, the `index.md` of each area
|
|
692
|
+
# node that has something to list (spec 079 no longer writes one per initiative, and deletes the generated ones); one that is there without `generated: true`
|
|
693
|
+
# was written by a person, and the generator skips it. The scan names it — it reads that file's frontmatter and nothing else, and never writes.
|
|
694
694
|
for idx in "$brain/$wsdir/$org/decisions/index.md" "$brain/$wsdir/$org/learnings/index.md" \
|
|
695
695
|
"$brain/$wsdir/$org"/*/*/index.md; do
|
|
696
696
|
[ -f "$idx" ] || continue
|
|
697
697
|
idx_rel="${idx#"$brain"/}"
|
|
698
|
-
case "$idx_rel" in
|
|
699
|
-
"$wsdir/$org/initiatives/"*) continue ;;
|
|
700
|
-
esac
|
|
701
698
|
fm_read "$idx"
|
|
702
699
|
[ "$fm_generated" = "true" ] && continue
|
|
703
700
|
push_chequeo "$(printf "$S_SESSION_CHECK_INDEX_BY_HAND" "$idx_rel")"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AI First OS — cómo funciona este sistema
|
|
1
|
+
# 📘 AI First OS — cómo funciona este sistema
|
|
2
2
|
|
|
3
3
|
> [!NOTE] Este archivo es el manual del sistema
|
|
4
4
|
> Es parte del producto y está enlazado desde él, así que se mantiene solo: cuando el sistema se
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
> archivo lo pisa la próxima actualización. Tus cosas viven en los otros archivos, y este manual dice
|
|
7
7
|
> cuáles son.
|
|
8
8
|
|
|
9
|
-
## La idea en una línea
|
|
9
|
+
## 💡 La idea en una línea
|
|
10
10
|
|
|
11
11
|
**Tu agente lee tu contexto de archivos, trabaja con vos en la sesión y lo que importa queda
|
|
12
12
|
escrito** — nunca adentro de la memoria de un chat.
|
|
@@ -14,7 +14,7 @@ escrito** — nunca adentro de la memoria de un chat.
|
|
|
14
14
|
Los archivos son tuyos: texto plano, en tu carpeta, legibles sin este sistema instalado. Lo que el
|
|
15
15
|
sistema agrega es dónde va cada cosa y quién la vuelve a leer.
|
|
16
16
|
|
|
17
|
-
## Dos nombres, dos cosas
|
|
17
|
+
## 🏷️ Dos nombres, dos cosas
|
|
18
18
|
|
|
19
19
|
- **AI First OS** es el software: los skills, el contrato de sesión, los agentes. Se instala y se
|
|
20
20
|
actualiza, y no guarda nada tuyo.
|
|
@@ -24,7 +24,7 @@ sistema agrega es dónde va cada cosa y quién la vuelve a leer.
|
|
|
24
24
|
La analogía es un sistema operativo y tu disco: el OS se actualiza; tu brain no se toca. Por eso
|
|
25
25
|
no se "instala un brain" — se instala el OS, y tu brain nace una sola vez, con la entrevista.
|
|
26
26
|
|
|
27
|
-
## Qué ves en esta carpeta
|
|
27
|
+
## 🗂️ Qué ves en esta carpeta
|
|
28
28
|
|
|
29
29
|
**En la raíz de esta carpeta se ven cuatro cosas. Todo lo demás está oculto, porque solo lo lee el
|
|
30
30
|
sistema.** La raíz tiene la maquinaria del sistema y tu cuenta — nunca trabajo. Tu trabajo propio es
|
|
@@ -84,11 +84,19 @@ permiso de escritura, para que el editor te frene antes de empezar.
|
|
|
84
84
|
### Archivos generados
|
|
85
85
|
|
|
86
86
|
Un **archivo generado** es uno que el sistema escribe por vos y reescribe solo. Su frontmatter dice
|
|
87
|
-
`generated: true`, y la cabecera de abajo dice de qué archivos sale.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
`generated: true`, y la cabecera de abajo dice de qué archivos sale. Todos empiezan con un título y
|
|
88
|
+
una línea debajo que dicen qué es y qué vas a encontrar adentro, por ejemplo «Índice de <nombre>». El
|
|
89
|
+
`index.md` de un producto, un curso, un canal o una cuenta es uno: después de ese título tiene una
|
|
90
|
+
tabla con sus iniciativas en curso, con su estado, su horizonte y una columna **Tareas**, las
|
|
91
|
+
iniciativas cerradas en una segunda tabla, y después tablas con las decisiones (las clave primero),
|
|
92
|
+
los aprendizajes y los documentos de sus carpetas `context/`, `research/` y `resources/`. El nombre
|
|
93
|
+
de cada iniciativa enlaza a su `README.md`, donde ves de qué trata, y la columna Tareas enlaza a su
|
|
94
|
+
`backlog.md` y dice cuántas tareas tiene abiertas. Para tildar una tarea, abrí el `index.md` del
|
|
95
|
+
producto, hacé clic en el número de la columna Tareas y tildá la tarea en `backlog.md`: ese archivo
|
|
96
|
+
sí lo editás vos, el índice no. Una iniciativa no tiene un índice propio: sus documentos están al
|
|
97
|
+
lado de su `README.md`. **No edites los archivos generados**: tu edición desaparece en el próximo
|
|
98
|
+
arranque de sesión. Editá la fuente —la iniciativa, la decisión, el aprendizaje o el documento— y el
|
|
99
|
+
índice la sigue. Un archivo generado no se sube a git: cada copia del brain arma el suyo.
|
|
92
100
|
|
|
93
101
|
### Cómo arranca una sesión
|
|
94
102
|
|
|
@@ -182,7 +190,7 @@ propia sección:
|
|
|
182
190
|
- **Equipo del espacio de trabajo** — una sección `## Team` en la cabeza del espacio de trabajo, para
|
|
183
191
|
quien es parte de él de forma permanente, sin atarse a ninguna iniciativa.
|
|
184
192
|
|
|
185
|
-
## El ciclo de una sesión
|
|
193
|
+
## 🔄 El ciclo de una sesión
|
|
186
194
|
|
|
187
195
|
> [!EXAMPLE] Una sesión de punta a punta
|
|
188
196
|
> 1. **Arranque.** Nombrás el espacio de trabajo —tu trabajo propio es `personal`, el que trae todo
|
|
@@ -197,7 +205,7 @@ propia sección:
|
|
|
197
205
|
> partes: qué se archivó, qué no, qué fila podría ganar el resolver y por dónde retomar. Nunca un
|
|
198
206
|
> "listo" a secas: un cierre que solo dice que terminó no se distingue de uno que perdió algo.
|
|
199
207
|
|
|
200
|
-
## Living Memory: encontrar lo que el foco no carga
|
|
208
|
+
## 🧠 Living Memory: encontrar lo que el foco no carga
|
|
201
209
|
|
|
202
210
|
El barrido y el foco solo cargan una lista fija de archivos, más un salto por `about:`. Una decisión
|
|
203
211
|
escrita meses atrás en otro espacio de trabajo es real, pero nada la saca a la luz sola — hasta que
|
|
@@ -214,7 +222,7 @@ contradicción para resolver, nunca elegidos en silencio. Y es descartable: lo q
|
|
|
214
222
|
archivo chico que se reconstruye solo desde tus propios archivos, nunca algo que vos escribís o
|
|
215
223
|
respaldás.
|
|
216
224
|
|
|
217
|
-
## Dónde vive la maquinaria
|
|
225
|
+
## ⚙️ Dónde vive la maquinaria
|
|
218
226
|
|
|
219
227
|
Las herramientas —skills, scripts, agentes— viven en `.os/`, `.claude/` y `.agents/`. Esas carpetas
|
|
220
228
|
están ocultas en Obsidian y se ven desde la terminal, y lo que el sistema pone adentro es un
|
|
@@ -236,7 +244,7 @@ Cualquier skill que escribas vos va al lado, como carpeta común en `.claude/ski
|
|
|
236
244
|
> manual apunta ahí en vez de contarlo de nuevo, porque dos versiones del mismo procedimiento se
|
|
237
245
|
> separan.
|
|
238
246
|
|
|
239
|
-
## Qué podés pedir, y cómo
|
|
247
|
+
## 💬 Qué podés pedir, y cómo
|
|
240
248
|
|
|
241
249
|
**El índice es el resolver, no tu memoria.** Pedís con tus palabras —"qué hay pendiente", "cerrá la
|
|
242
250
|
sesión", "capturá esto"— y el agente busca qué herramienta cubre esa capacidad. Dos archivos
|
|
@@ -286,7 +294,7 @@ sesión: **"instalá el pack `<nombre>`"**.
|
|
|
286
294
|
acordaba. Pedí lo que querés con tus palabras: la sesión lee el índice de lo que esté instalado y te
|
|
287
295
|
rutea, o te dice que nada de lo instalado lo cubre.
|
|
288
296
|
|
|
289
|
-
## Una orquestadora, si querés una
|
|
297
|
+
## 🎛️ Una orquestadora, si querés una
|
|
290
298
|
|
|
291
299
|
**Es opcional y está apagada hasta que la pidas.** Una orquestadora es una sesión donde decidís qué
|
|
292
300
|
importa y desde donde se reparte el trabajo a las demás sesiones, una por tema. Para que exista no
|
|
@@ -303,7 +311,7 @@ lleva cada tema, qué espera a qué) lo guarda en un archivo oculto que nunca te
|
|
|
303
311
|
no puede abrir sesiones nuevas ni ver cuánto contexto tiene cada una. Al prenderse te dice en cuál
|
|
304
312
|
estás.
|
|
305
313
|
|
|
306
|
-
## Trabajar con agentes: dos gates y un tramo autónomo
|
|
314
|
+
## 🚦 Trabajar con agentes: dos gates y un tramo autónomo
|
|
307
315
|
|
|
308
316
|
El trabajo pesado se delega a agentes que corren en segundo plano, mientras la sesión principal se
|
|
309
317
|
queda al timón — nunca se muda de carpeta ni pierde tu contexto.
|
|
@@ -319,7 +327,7 @@ queda al timón — nunca se muda de carpeta ni pierde tu contexto.
|
|
|
319
327
|
> principal y nunca con un push → una persona lee la rama y la mergea (**gate 2**). Autonomía en
|
|
320
328
|
> el medio, control humano en los bordes.
|
|
321
329
|
|
|
322
|
-
## Capacidades dormidas: la capa de construcción
|
|
330
|
+
## 🛠️ Capacidades dormidas: la capa de construcción
|
|
323
331
|
|
|
324
332
|
Este sistema no es solo para decidir: **también construye producto, y esa mitad queda dormida hasta
|
|
325
333
|
que la pidas.** No es un modo que se prende para todo el brain, ni algo que se instale de nuevo: se
|
|
@@ -340,7 +348,7 @@ Cuando eso pasa, se despiertan dos capacidades:
|
|
|
340
348
|
No hace falta que prepares nada hoy. Pedilo —"esta iniciativa se va a construir"— y las dos ya están
|
|
341
349
|
instaladas.
|
|
342
350
|
|
|
343
|
-
## Lo que el sistema nunca hace solo
|
|
351
|
+
## 🛑 Lo que el sistema nunca hace solo
|
|
344
352
|
|
|
345
353
|
- **Nada se activa por su cuenta.** La herramienta se elige por el resolver y se invoca explícito.
|
|
346
354
|
- **Ninguna acción irreversible corre sola.** Mandar, publicar, firmar y mergear se preparan y
|
|
@@ -349,7 +357,7 @@ instaladas.
|
|
|
349
357
|
inferencia · ❓ hueco. Lo que falta queda registrado como abierto, con quién lo cierra. Nunca se
|
|
350
358
|
inventa.
|
|
351
359
|
|
|
352
|
-
## Cómo leer los recuadros
|
|
360
|
+
## 🧭 Cómo leer los recuadros
|
|
353
361
|
|
|
354
362
|
Los archivos del sistema usan pocos recuadros, cada uno con un solo significado:
|
|
355
363
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AI First OS — how this system works
|
|
1
|
+
# 📘 AI First OS — how this system works
|
|
2
2
|
|
|
3
3
|
> [!NOTE] This file is the manual of the system
|
|
4
4
|
> It is part of the product and linked from it, so it keeps itself current: when the system is
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
> file is overwritten by the next update. Your things live in the other files, and this manual says
|
|
7
7
|
> which ones.
|
|
8
8
|
|
|
9
|
-
## The idea in one line
|
|
9
|
+
## 💡 The idea in one line
|
|
10
10
|
|
|
11
11
|
**Your agent reads your context from files, works with you in the session, and whatever matters
|
|
12
12
|
stays written down** — never inside the memory of a chat.
|
|
@@ -14,7 +14,7 @@ stays written down** — never inside the memory of a chat.
|
|
|
14
14
|
The files are yours: plain text, in your folder, readable without this system installed. What the
|
|
15
15
|
system adds is where each thing goes and who reads it back.
|
|
16
16
|
|
|
17
|
-
## Two names, two things
|
|
17
|
+
## 🏷️ Two names, two things
|
|
18
18
|
|
|
19
19
|
- **AI First OS** is the software: the skills, the session contract, the agents. It gets installed
|
|
20
20
|
and updated, and it stores nothing of yours.
|
|
@@ -25,7 +25,7 @@ The analogy is an operating system and your disk: the OS gets updated; your brai
|
|
|
25
25
|
touched. That is why you do not "install a brain" — you install the OS, and your brain is born
|
|
26
26
|
once, through the interview.
|
|
27
27
|
|
|
28
|
-
## What you see in this folder
|
|
28
|
+
## 🗂️ What you see in this folder
|
|
29
29
|
|
|
30
30
|
**Four things are visible at the root of this folder. Everything else is hidden, because only the
|
|
31
31
|
system reads it.** The root holds the machinery of the system and your account — never work. Your
|
|
@@ -77,11 +77,19 @@ the system also takes the write permission off it, so the editor stops you befor
|
|
|
77
77
|
### Generated files
|
|
78
78
|
|
|
79
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.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
`generated: true`, and the header under it says which files it is built from. Every one opens with a
|
|
81
|
+
title and a line under it that say what it is and what you will find in it, such as «Index of
|
|
82
|
+
<name>». The `index.md` of a product, a course, a channel or an account is one: after that title it
|
|
83
|
+
has a table of its initiatives in progress, with their status, their horizon and a **Tasks** column,
|
|
84
|
+
the closed initiatives in a second table, and then tables of the decisions (the key ones first), the
|
|
85
|
+
learnings and the documents in its `context/`, `research/` and `resources/` folders. The name of
|
|
86
|
+
each initiative links to its `README.md`, where you see what it is about, and the Tasks column links
|
|
87
|
+
to its `backlog.md` and says how many tasks are open. To tick a task, open the product's `index.md`,
|
|
88
|
+
click the number in the Tasks column and tick the task in `backlog.md`: that file is yours to edit,
|
|
89
|
+
the index is not. An initiative has no index of its own: its documents sit next to its `README.md`.
|
|
90
|
+
**Do not edit the generated files**: your edit disappears at the next session start. Edit the
|
|
91
|
+
source — the initiative, the decision, the learning or the document — and the index follows. A
|
|
92
|
+
generated file is not committed to git: every copy of the brain builds its own.
|
|
85
93
|
|
|
86
94
|
### How a session starts
|
|
87
95
|
|
|
@@ -171,7 +179,7 @@ the reason the scan stays fast — and it is written at three heights, each its
|
|
|
171
179
|
- **Team of the workspace** — a `## Team` section on the workspace's own head, for whoever is part of
|
|
172
180
|
it on a standing basis, tied to no initiative.
|
|
173
181
|
|
|
174
|
-
## The cycle of one session
|
|
182
|
+
## 🔄 The cycle of one session
|
|
175
183
|
|
|
176
184
|
> [!EXAMPLE] One session from start to end
|
|
177
185
|
> 1. **Start.** You name the workspace — your own work is `personal`, the one every brain is born with
|
|
@@ -187,7 +195,7 @@ the reason the scan stays fast — and it is written at three heights, each its
|
|
|
187
195
|
> Never a plain "done": a close that only says it finished cannot be told apart from one that lost
|
|
188
196
|
> something.
|
|
189
197
|
|
|
190
|
-
## Living Memory: finding what the focus does not load
|
|
198
|
+
## 🧠 Living Memory: finding what the focus does not load
|
|
191
199
|
|
|
192
200
|
The scan and the focus only ever load a fixed list of files, plus one jump through `about:`. A
|
|
193
201
|
decision written months ago in another workspace is real, but nothing surfaces it on its own — until
|
|
@@ -204,7 +212,7 @@ handed to you as a contradiction to resolve, never quietly picked between. And i
|
|
|
204
212
|
it searches is a small file it rebuilds from your own files on its own, never something you write to
|
|
205
213
|
or back up.
|
|
206
214
|
|
|
207
|
-
## Where the machinery lives
|
|
215
|
+
## ⚙️ Where the machinery lives
|
|
208
216
|
|
|
209
217
|
The tools —skills, scripts, agents— live in `.os/`, `.claude/` and `.agents/`. Those folders are
|
|
210
218
|
hidden in Obsidian and visible from the terminal, and what the system puts in them is a **link** to
|
|
@@ -225,7 +233,7 @@ them, as a plain folder in `.claude/skills/`.
|
|
|
225
233
|
> written once, in the `README.md` of the product's folder under **Update**; this manual points at
|
|
226
234
|
> it instead of telling it again, because two versions of the same procedure drift apart.
|
|
227
235
|
|
|
228
|
-
## What you can ask for, and how
|
|
236
|
+
## 💬 What you can ask for, and how
|
|
229
237
|
|
|
230
238
|
**The index is the resolver, not your memory.** You ask in your own words —"what is pending", "close
|
|
231
239
|
the session", "capture this"— and the agent looks up which tool covers that capability. Two files
|
|
@@ -275,7 +283,7 @@ that index arrives with it — so the list you read is always the list you have,
|
|
|
275
283
|
manual remembered. Ask for what you want in your own words: the session reads the index of whatever
|
|
276
284
|
is installed and routes you there, or tells you that nothing installed covers it.
|
|
277
285
|
|
|
278
|
-
## An orchestrator, if you want one
|
|
286
|
+
## 🎛️ An orchestrator, if you want one
|
|
279
287
|
|
|
280
288
|
**Optional, and off until you ask.** An orchestrator is one session where you decide what matters
|
|
281
289
|
and from which the work is handed to the other sessions, one per topic. Nothing in this folder
|
|
@@ -292,7 +300,7 @@ each topic, what is waiting for what) it keeps in a hidden file that you never h
|
|
|
292
300
|
cannot open new sessions or see how much context each one is using. It tells you which one you are
|
|
293
301
|
in when it turns on.
|
|
294
302
|
|
|
295
|
-
## Working with agents: two gates, one autonomous stretch
|
|
303
|
+
## 🚦 Working with agents: two gates, one autonomous stretch
|
|
296
304
|
|
|
297
305
|
Heavy work is delegated to agents that run in the background, while the main session stays at the
|
|
298
306
|
helm — it never changes folders and never loses your context.
|
|
@@ -308,7 +316,7 @@ helm — it never changes folders and never loses your context.
|
|
|
308
316
|
> branch and never with a push → a person reads the branch and merges it (**gate 2**). Autonomy in
|
|
309
317
|
> the middle, human control at the edges.
|
|
310
318
|
|
|
311
|
-
## Dormant capabilities: the building layer
|
|
319
|
+
## 🛠️ Dormant capabilities: the building layer
|
|
312
320
|
|
|
313
321
|
This system is not only for deciding: **it also builds product, and that half stays asleep until you
|
|
314
322
|
ask for it.** It is not a mode you turn on for the whole brain, nor something you install again: it
|
|
@@ -330,7 +338,7 @@ When that happens, two capabilities wake up:
|
|
|
330
338
|
You do not need to prepare anything today. Ask for it —"this initiative is going to be built"— and
|
|
331
339
|
the two are already installed.
|
|
332
340
|
|
|
333
|
-
## What the system never does on its own
|
|
341
|
+
## 🛑 What the system never does on its own
|
|
334
342
|
|
|
335
343
|
- **Nothing activates by itself.** The tool is chosen through the resolver and invoked explicitly.
|
|
336
344
|
- **No irreversible action runs alone.** Sending, publishing, signing and merging are prepared and
|
|
@@ -338,7 +346,7 @@ the two are already installed.
|
|
|
338
346
|
- **Whatever the AI writes is marked**: 📌 literal, with the file and the line it came from · 🔍
|
|
339
347
|
inference · ❓ gap. What is missing is recorded as open, with who closes it. It is never invented.
|
|
340
348
|
|
|
341
|
-
## How to read the callouts
|
|
349
|
+
## 🧭 How to read the callouts
|
|
342
350
|
|
|
343
351
|
The system's files use few callouts, each with one meaning only:
|
|
344
352
|
|