@jaimevalasek/aioson 1.6.0 → 1.7.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.
Files changed (252) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +729 -232
  3. package/docs/design-previews/pt.squarespace.com-homepage.html +889 -0
  4. package/docs/integrations/sdlc-genius-boundary.md +76 -0
  5. package/docs/integrations/sdlc-genius-eval-matrix.md +75 -0
  6. package/docs/integrations/sdlc-genius-install-checklist.md +93 -0
  7. package/docs/integrations/sdlc-genius-review-samples.md +86 -0
  8. package/docs/pt/README.md +3 -0
  9. package/docs/pt/agentes.md +1 -0
  10. package/docs/pt/comandos-cli.md +888 -2
  11. package/docs/pt/design-hybrid-forge.md +255 -6
  12. package/docs/pt/devlog-pipeline.md +270 -0
  13. package/docs/pt/fluxo-artefatos.md +178 -0
  14. package/docs/pt/hooks-session-guard.md +454 -0
  15. package/docs/pt/monitor-de-contexto.md +59 -5
  16. package/docs/pt/sdd-automation-scripts.md +557 -0
  17. package/docs/pt/site-forge.md +309 -0
  18. package/docs/pt/spec-learnings-pipeline.md +265 -0
  19. package/package.json +1 -1
  20. package/src/a2a/client.js +165 -0
  21. package/src/a2a/server.js +223 -0
  22. package/src/cli.js +235 -1
  23. package/src/commands/agent-audit.js +397 -0
  24. package/src/commands/agent-export-skill.js +229 -0
  25. package/src/commands/artifact-validate.js +189 -0
  26. package/src/commands/brief-gen.js +405 -0
  27. package/src/commands/brief-validate.js +65 -0
  28. package/src/commands/classify.js +256 -0
  29. package/src/commands/context-compact.js +49 -0
  30. package/src/commands/context-health.js +175 -0
  31. package/src/commands/context-monitor.js +71 -0
  32. package/src/commands/context-trim.js +177 -0
  33. package/src/commands/detect-test-runner.js +55 -0
  34. package/src/commands/devlog-export-brains.js +27 -0
  35. package/src/commands/devlog-process.js +292 -0
  36. package/src/commands/devlog-watch.js +131 -0
  37. package/src/commands/feature-close.js +165 -0
  38. package/src/commands/gate-check.js +228 -0
  39. package/src/commands/hooks-emit.js +253 -0
  40. package/src/commands/hooks-install.js +347 -0
  41. package/src/commands/learning-auto-promote.js +195 -0
  42. package/src/commands/learning-evolve.js +18 -9
  43. package/src/commands/learning-export.js +103 -0
  44. package/src/commands/learning-rollback.js +164 -0
  45. package/src/commands/live.js +25 -1
  46. package/src/commands/pattern-detect.js +33 -0
  47. package/src/commands/preflight-context.js +30 -0
  48. package/src/commands/preflight.js +208 -0
  49. package/src/commands/pulse-update.js +130 -0
  50. package/src/commands/runner-daemon.js +274 -0
  51. package/src/commands/runner-plan.js +70 -0
  52. package/src/commands/runner-queue-from-plan.js +166 -0
  53. package/src/commands/runner-queue.js +189 -0
  54. package/src/commands/runner-run.js +129 -0
  55. package/src/commands/runtime.js +47 -1
  56. package/src/commands/self-implement-loop.js +256 -0
  57. package/src/commands/session-guard.js +218 -0
  58. package/src/commands/sizing.js +165 -0
  59. package/src/commands/skill.js +65 -0
  60. package/src/commands/spec-checkpoint.js +177 -0
  61. package/src/commands/spec-status.js +79 -0
  62. package/src/commands/spec-sync.js +190 -0
  63. package/src/commands/spec-tasks.js +288 -0
  64. package/src/commands/squad-autorun.js +1220 -0
  65. package/src/commands/squad-bus.js +217 -0
  66. package/src/commands/squad-card.js +149 -0
  67. package/src/commands/squad-daemon.js +134 -0
  68. package/src/commands/squad-dependency-graph.js +164 -0
  69. package/src/commands/squad-review.js +106 -0
  70. package/src/commands/squad-scaffold.js +55 -0
  71. package/src/commands/squad-tool-register.js +157 -0
  72. package/src/commands/state-save.js +122 -0
  73. package/src/commands/update.js +2 -0
  74. package/src/commands/verify-gate.js +572 -0
  75. package/src/commands/workflow-execute.js +241 -0
  76. package/src/constants.js +9 -0
  77. package/src/install-profile.js +2 -2
  78. package/src/install-wizard.js +3 -2
  79. package/src/installer.js +6 -0
  80. package/src/lib/health-check.js +158 -0
  81. package/src/lib/hook-protocol.js +76 -0
  82. package/src/mcp/apps/squad-dashboard/app.js +163 -0
  83. package/src/mcp/apps/squad-dashboard/index.html +261 -0
  84. package/src/mcp/apps/squad-dashboard/mcp-manifest.json +23 -0
  85. package/src/mcp/resources/squad-state.js +130 -0
  86. package/src/preflight-engine.js +443 -0
  87. package/src/runner/cascade.js +97 -0
  88. package/src/runner/cli-launcher.js +109 -0
  89. package/src/runner/plan-importer.js +63 -0
  90. package/src/runner/queue-store.js +159 -0
  91. package/src/runtime-store.js +61 -3
  92. package/src/squad/agent-teams-adapter.js +264 -0
  93. package/src/squad/brief-validator.js +350 -0
  94. package/src/squad/bus-bridge.js +140 -0
  95. package/src/squad/context-compactor.js +265 -0
  96. package/src/squad/cross-ai-synthesizer.js +250 -0
  97. package/src/squad/hooks-generator.js +196 -0
  98. package/src/squad/inter-squad-events.js +175 -0
  99. package/src/squad/intra-bus.js +345 -0
  100. package/src/squad/learning-extractor.js +213 -0
  101. package/src/squad/pattern-detector.js +365 -0
  102. package/src/squad/preflight-context.js +296 -0
  103. package/src/squad/recovery-context.js +242 -71
  104. package/src/squad/reflection.js +365 -0
  105. package/src/squad/squad-scaffold.js +177 -0
  106. package/src/squad/state-manager.js +310 -0
  107. package/src/squad/task-decomposer.js +652 -0
  108. package/src/squad/verify-gate.js +303 -0
  109. package/src/updater.js +4 -5
  110. package/src/worker-runner.js +186 -1
  111. package/template/.aioson/agents/analyst.md +62 -1
  112. package/template/.aioson/agents/architect.md +61 -1
  113. package/template/.aioson/agents/design-hybrid-forge.md +14 -0
  114. package/template/.aioson/agents/dev.md +242 -24
  115. package/template/.aioson/agents/deyvin.md +66 -8
  116. package/template/.aioson/agents/discovery-design-doc.md +44 -0
  117. package/template/.aioson/agents/genome.md +14 -0
  118. package/template/.aioson/agents/neo.md +78 -1
  119. package/template/.aioson/agents/orache.md +50 -4
  120. package/template/.aioson/agents/orchestrator.md +197 -1
  121. package/template/.aioson/agents/pm.md +35 -0
  122. package/template/.aioson/agents/product.md +50 -5
  123. package/template/.aioson/agents/profiler-enricher.md +14 -0
  124. package/template/.aioson/agents/profiler-forge.md +14 -0
  125. package/template/.aioson/agents/profiler-researcher.md +14 -0
  126. package/template/.aioson/agents/qa.md +172 -21
  127. package/template/.aioson/agents/setup.md +79 -9
  128. package/template/.aioson/agents/sheldon.md +131 -6
  129. package/template/.aioson/agents/site-forge.md +1753 -0
  130. package/template/.aioson/agents/squad.md +162 -0
  131. package/template/.aioson/agents/tester.md +53 -0
  132. package/template/.aioson/agents/ux-ui.md +34 -1
  133. package/template/.aioson/brains/README.md +128 -0
  134. package/template/.aioson/brains/_index.json +16 -0
  135. package/template/.aioson/brains/scripts/query.js +103 -0
  136. package/template/.aioson/brains/site-forge/visual-patterns.brain.json +205 -0
  137. package/template/.aioson/config.md +143 -13
  138. package/template/.aioson/constitution.md +33 -0
  139. package/template/.aioson/context/project-pulse.md +34 -0
  140. package/template/.aioson/docs/LAYERS.md +79 -0
  141. package/template/.aioson/docs/README.md +76 -0
  142. package/template/.aioson/docs/example-external-api-context.md +72 -0
  143. package/template/.aioson/locales/en/agents/architect.md +17 -0
  144. package/template/.aioson/locales/en/agents/dev.md +79 -13
  145. package/template/.aioson/locales/en/agents/orache.md +6 -0
  146. package/template/.aioson/locales/en/agents/orchestrator.md +24 -0
  147. package/template/.aioson/locales/en/agents/product.md +50 -0
  148. package/template/.aioson/locales/en/agents/sheldon.md +115 -0
  149. package/template/.aioson/locales/en/agents/squad.md +14 -0
  150. package/template/.aioson/locales/en/agents/tester.md +6 -0
  151. package/template/.aioson/locales/es/agents/analyst.md +2 -0
  152. package/template/.aioson/locales/es/agents/architect.md +19 -0
  153. package/template/.aioson/locales/es/agents/dev.md +64 -4
  154. package/template/.aioson/locales/es/agents/deyvin.md +2 -0
  155. package/template/.aioson/locales/es/agents/discovery-design-doc.md +2 -0
  156. package/template/.aioson/locales/es/agents/genome.md +2 -0
  157. package/template/.aioson/locales/es/agents/neo.md +2 -0
  158. package/template/.aioson/locales/es/agents/orache.md +2 -0
  159. package/template/.aioson/locales/es/agents/orchestrator.md +26 -0
  160. package/template/.aioson/locales/es/agents/pair.md +2 -0
  161. package/template/.aioson/locales/es/agents/pm.md +2 -0
  162. package/template/.aioson/locales/es/agents/product.md +52 -0
  163. package/template/.aioson/locales/es/agents/profiler-enricher.md +2 -0
  164. package/template/.aioson/locales/es/agents/profiler-forge.md +2 -0
  165. package/template/.aioson/locales/es/agents/profiler-researcher.md +2 -0
  166. package/template/.aioson/locales/es/agents/qa.md +2 -0
  167. package/template/.aioson/locales/es/agents/setup.md +2 -0
  168. package/template/.aioson/locales/es/agents/sheldon.md +117 -0
  169. package/template/.aioson/locales/es/agents/squad.md +16 -0
  170. package/template/.aioson/locales/es/agents/tester.md +9 -0
  171. package/template/.aioson/locales/es/agents/ux-ui.md +2 -0
  172. package/template/.aioson/locales/fr/agents/analyst.md +2 -0
  173. package/template/.aioson/locales/fr/agents/architect.md +19 -0
  174. package/template/.aioson/locales/fr/agents/dev.md +64 -4
  175. package/template/.aioson/locales/fr/agents/deyvin.md +2 -0
  176. package/template/.aioson/locales/fr/agents/discovery-design-doc.md +2 -0
  177. package/template/.aioson/locales/fr/agents/genome.md +2 -0
  178. package/template/.aioson/locales/fr/agents/neo.md +2 -0
  179. package/template/.aioson/locales/fr/agents/orache.md +2 -0
  180. package/template/.aioson/locales/fr/agents/orchestrator.md +26 -0
  181. package/template/.aioson/locales/fr/agents/pair.md +2 -0
  182. package/template/.aioson/locales/fr/agents/pm.md +2 -0
  183. package/template/.aioson/locales/fr/agents/product.md +52 -0
  184. package/template/.aioson/locales/fr/agents/profiler-enricher.md +2 -0
  185. package/template/.aioson/locales/fr/agents/profiler-forge.md +2 -0
  186. package/template/.aioson/locales/fr/agents/profiler-researcher.md +2 -0
  187. package/template/.aioson/locales/fr/agents/qa.md +2 -0
  188. package/template/.aioson/locales/fr/agents/setup.md +2 -0
  189. package/template/.aioson/locales/fr/agents/sheldon.md +117 -0
  190. package/template/.aioson/locales/fr/agents/squad.md +16 -0
  191. package/template/.aioson/locales/fr/agents/tester.md +9 -0
  192. package/template/.aioson/locales/fr/agents/ux-ui.md +2 -0
  193. package/template/.aioson/locales/pt-BR/agents/analyst.md +64 -3
  194. package/template/.aioson/locales/pt-BR/agents/architect.md +42 -0
  195. package/template/.aioson/locales/pt-BR/agents/dev.md +147 -14
  196. package/template/.aioson/locales/pt-BR/agents/deyvin.md +47 -0
  197. package/template/.aioson/locales/pt-BR/agents/neo.md +62 -1
  198. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +158 -2
  199. package/template/.aioson/locales/pt-BR/agents/pm.md +95 -1
  200. package/template/.aioson/locales/pt-BR/agents/product.md +145 -18
  201. package/template/.aioson/locales/pt-BR/agents/qa.md +16 -0
  202. package/template/.aioson/locales/pt-BR/agents/setup.md +101 -18
  203. package/template/.aioson/locales/pt-BR/agents/sheldon.md +132 -1
  204. package/template/.aioson/locales/pt-BR/agents/squad.md +14 -0
  205. package/template/.aioson/locales/pt-BR/agents/tester.md +449 -0
  206. package/template/.aioson/rules/README.md +69 -0
  207. package/template/.aioson/rules/data-format-convention.md +136 -0
  208. package/template/.aioson/rules/example-monetary-values.md +30 -0
  209. package/template/.aioson/schemas/squad-manifest.schema.json +124 -3
  210. package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -0
  211. package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +66 -0
  212. package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +368 -0
  213. package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -0
  214. package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -0
  215. package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -0
  216. package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +165 -0
  217. package/template/.aioson/skills/process/aioson-spec-driven/SKILL.md +1 -0
  218. package/template/.aioson/skills/process/aioson-spec-driven/references/analyst.md +30 -0
  219. package/template/.aioson/skills/process/aioson-spec-driven/references/architect.md +23 -0
  220. package/template/.aioson/skills/process/aioson-spec-driven/references/dev.md +47 -0
  221. package/template/.aioson/skills/process/aioson-spec-driven/references/deyvin.md +27 -0
  222. package/template/.aioson/skills/process/aioson-spec-driven/references/maintenance-and-state.md +35 -0
  223. package/template/.aioson/skills/process/aioson-spec-driven/references/product.md +25 -0
  224. package/template/.aioson/skills/process/aioson-spec-driven/references/qa.md +30 -0
  225. package/template/.aioson/skills/process/aioson-spec-driven/references/sheldon.md +25 -0
  226. package/template/.aioson/skills/process/design-hybrid-forge/SKILL.md +4 -1
  227. package/template/.aioson/skills/process/design-hybrid-forge/references/output-contract.md +15 -0
  228. package/template/.aioson/skills/process/design-hybrid-forge/references/pair-compatibility.md +32 -0
  229. package/template/.aioson/skills/process/design-hybrid-forge/references/quality-gates.md +20 -0
  230. package/template/.aioson/skills/process/simplify/SKILL.md +173 -0
  231. package/template/.aioson/skills/static/context-budget-guide.md +46 -0
  232. package/template/.aioson/skills/static/harness-sensors.md +74 -0
  233. package/template/.aioson/skills/static/multi-agent-patterns.md +43 -0
  234. package/template/.aioson/skills/static/react-motion-patterns.md +22 -0
  235. package/template/.aioson/skills/static/static-html-patterns/checklists.md +43 -0
  236. package/template/.aioson/skills/static/static-html-patterns/css-tokens.md +609 -0
  237. package/template/.aioson/skills/static/static-html-patterns/motion.md +193 -0
  238. package/template/.aioson/skills/static/static-html-patterns/premium.md +711 -0
  239. package/template/.aioson/skills/static/static-html-patterns/structure.md +209 -0
  240. package/template/.aioson/skills/static/static-html-patterns/utilities.md +190 -0
  241. package/template/.aioson/skills/static/static-html-patterns.md +58 -1913
  242. package/template/.aioson/skills/static/threejs-patterns.md +929 -0
  243. package/template/.aioson/skills/static/web-research-cache.md +112 -0
  244. package/template/.aioson/tasks/implementation-plan.md +21 -1
  245. package/template/.claude/commands/aioson/agent/design-hybrid-forge.md +5 -0
  246. package/template/.claude/commands/aioson/agent/orache.md +5 -0
  247. package/template/.claude/commands/aioson/agent/sheldon.md +5 -0
  248. package/template/.claude/commands/aioson/agent/site-forge.md +5 -0
  249. package/template/AGENTS.md +55 -3
  250. package/template/CLAUDE.md +30 -0
  251. package/template/OPENCODE.md +4 -0
  252. package/template/researchs/.gitkeep +0 -0
package/README.md CHANGED
@@ -1,6 +1,565 @@
1
+ <div align="center">
2
+
1
3
  # AIOSON
2
4
 
3
- AI operating framework for hyper-personalized software.
5
+ **AI operating framework for hyper-personalized software.**
6
+
7
+ *Structure your AI sessions. Orchestrate specialized agents. Ship with confidence.*
8
+
9
+ *Works in any IDE with a terminal — VS Code, Google Antigravity, Cursor, Windsurf, JetBrains IDEs, Zed, and more.*
10
+
11
+ [![npm version](https://img.shields.io/npm/v/@jaimevalasek/aioson?color=6c47ff&style=flat-square)](https://www.npmjs.com/package/@jaimevalasek/aioson)
12
+ [![npm downloads](https://img.shields.io/npm/dm/@jaimevalasek/aioson?style=flat-square&color=6c47ff)](https://www.npmjs.com/package/@jaimevalasek/aioson)
13
+ [![License: AGPL-3.0](https://img.shields.io/badge/license-AGPL--3.0-blue?style=flat-square)](LICENSE)
14
+ [![Node.js ≥18](https://img.shields.io/badge/node-%E2%89%A518.0.0-brightgreen?style=flat-square)](https://nodejs.org)
15
+
16
+ [![Claude Code](https://img.shields.io/badge/Claude_Code-supported-6c47ff?style=flat-square)](https://claude.ai/code)
17
+ [![Codex CLI](https://img.shields.io/badge/Codex_CLI-supported-black?style=flat-square)](https://github.com/openai/codex)
18
+ [![Gemini CLI](https://img.shields.io/badge/Gemini_CLI-supported-4285F4?style=flat-square)](https://github.com/google-gemini/gemini-cli)
19
+ [![OpenCode](https://img.shields.io/badge/OpenCode-supported-orange?style=flat-square)](https://opencode.ai)
20
+
21
+ </div>
22
+
23
+ ---
24
+
25
+ <div align="center">
26
+
27
+ AIOSON gives every AI session a **role**, a **protocol**, and a **lifecycle**.
28
+ Instead of one massive prompt doing everything, each agent owns a well-defined slice — from discovery to deployment — and hands off cleanly to the next.
29
+
30
+ </div>
31
+
32
+ ---
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ # New project
38
+ npx @jaimevalasek/aioson init my-project
39
+
40
+ # Existing project
41
+ cd my-project
42
+ npx @jaimevalasek/aioson install
43
+ ```
44
+
45
+ Running `init` or `install` launches an **interactive wizard** to configure:
46
+
47
+ 1. Which AI tools to enable (Claude Code, Codex CLI, Gemini CLI, OpenCode)
48
+ 2. Mode — Development or Development + Squads
49
+ 3. Design system (optional) — Clean SaaS UI, Aurora Command UI, Cognitive Core UI, etc.
50
+ 4. Agent language — English, Português, Español, Français
51
+
52
+ Only the relevant files are copied. No extra dependencies are installed.
53
+
54
+ **Skip the wizard** — install everything at once with `--all`:
55
+
56
+ ```bash
57
+ npx @jaimevalasek/aioson init my-project --all
58
+ npx @jaimevalasek/aioson install --all
59
+ ```
60
+
61
+ **Reconfigure** — add tools or activate Squads after the initial install:
62
+
63
+ ```bash
64
+ npx @jaimevalasek/aioson install --reconfigure
65
+ ```
66
+
67
+ **CI / automation** — install without prompts:
68
+
69
+ ```bash
70
+ npx @jaimevalasek/aioson install --no-interactive
71
+ ```
72
+
73
+ **Update** to a new version (respects your saved profile):
74
+
75
+ ```bash
76
+ npx @jaimevalasek/aioson update
77
+ ```
78
+
79
+ ---
80
+
81
+ ## How it works
82
+
83
+ ```
84
+ New project Existing project
85
+ │ │
86
+ ▼ ▼
87
+ aioson init aioson install .
88
+ │ aioson scan:project
89
+ └──────────────┬──────────────────────────┘
90
+
91
+
92
+ ┌───────────────┐
93
+ │ /setup │ ← Project context & onboarding
94
+ └───────┬───────┘
95
+
96
+ ┌───────────┼───────────┐
97
+ ▼ ▼ ▼
98
+ /analyst /architect /product ← Discovery & planning
99
+ │ │ │
100
+ └───────────┼───────────┘
101
+
102
+ ┌───────────────┐
103
+ │ /sheldon │ ← PRD enrichment & deep technical reasoning
104
+ └───────┬───────┘
105
+
106
+ ┌───────────────┐
107
+ │ /ux-ui │ ← Design system & UI specs
108
+ └───────┬───────┘
109
+
110
+ ┌───────────┼───────────┐
111
+ ▼ ▼ ▼
112
+ /deyvin /dev /pm ← Implementation
113
+ │ │ │
114
+ └───────────┼───────────┘
115
+
116
+ ┌───────────────┐
117
+ │ /qa │ ← Review, tests, browser QA
118
+ └───────────────┘
119
+ ```
120
+
121
+ Each agent runs as a tracked live session with full runtime observability — milestones, handoffs, and context snapshots recorded in the AIOSON dashboard.
122
+
123
+ ---
124
+
125
+ ## Why AIOSON
126
+
127
+ Most AI sessions are conversations. AIOSON is a **protocol**.
128
+
129
+ Every feature goes through a defined lifecycle — spec, gate, build, verify — and every agent knows exactly where it is in that lifecycle. The result: AI that doesn't guess, doesn't drift, and doesn't lose track when the context window fills up.
130
+
131
+ ### Spec-Driven Development
132
+
133
+ Vague prompt → unambiguous spec → gated execution. No skipping phases, no silent assumptions.
134
+
135
+ ```
136
+ "add a stock management feature"
137
+
138
+ ▼ @product
139
+ prd-stock-management.md
140
+ ┌──────────────────────────────────────┐
141
+ │ objectives, out-of-scope, open items │
142
+ └──────────────────────────────────────┘
143
+
144
+ ▼ @sheldon ← PRD enrichment
145
+ sheldon-enrichment-stock.md
146
+ ┌──────────────────────────────────────┐
147
+ │ gray areas decided, readiness score │
148
+ │ RF-GA extraction, AC hardening │
149
+ └──────────────────────────────────────┘
150
+
151
+ ▼ Gate A ← requirements approved?
152
+ requirements-stock.md ← REQ-stock-001, AC-stock-001 …
153
+
154
+ ▼ Gate B ← design approved?
155
+ architecture.md + design-doc-stock.md
156
+
157
+ ▼ Gate C ← implementation plan reviewed?
158
+ implementation-plan-stock.md
159
+
160
+ ▼ @dev / @deyvin ← code, commits, spec updates
161
+
162
+ ▼ Gate D ← 4-tier verification
163
+ @qa forensics: Exists → Substantive → Wired → Functional
164
+ ```
165
+
166
+ **Gates are blocking in MEDIUM projects, informational in SMALL.** Each gate is enforced by a checklist in `spec-{slug}.md` — agents can't advance without explicit approval signals. No more AI that starts coding before the requirements are clear.
167
+
168
+ **What you get in the spec file:**
169
+
170
+ | Field | What it tracks |
171
+ |-------|----------------|
172
+ | `phase_gates` | `requirements: approved`, `design: approved`, `plan: approved` |
173
+ | `last_checkpoint` | Exactly where the agent stopped — resume without re-reading everything |
174
+ | `gray_areas_decided` | Every ambiguity that was surfaced and decided, with rationale |
175
+ | `must_haves` | Triplet contract: truths, artifacts, key links |
176
+ | `readiness` / `readiness_notes` | @sheldon's go/no-go signal before implementation starts |
177
+
178
+ ---
179
+
180
+ ### Context intelligence
181
+
182
+ AI sessions fail silently. Context fills up, the model forgets, the agent reinvents what was already decided. AIOSON ships a full context management layer so this never happens quietly.
183
+
184
+ **5-phase context optimization system:**
185
+
186
+ **Session Recovery** — when Claude compacts or a session crashes, one command restores the full working state:
187
+ ```bash
188
+ aioson recovery:generate # snapshot current state, < 2 000 tokens
189
+ aioson recovery:show # paste this into the new session — agent picks up exactly where it left
190
+ ```
191
+
192
+ **Context Monitor** — real-time usage bars with adaptive thresholds per project size:
193
+ ```bash
194
+ aioson context:monitor # ASCII bars, warning/critical detection
195
+ ```
196
+ ```
197
+ Context usage ████████████░░░░ 73% ⚠ approaching threshold (SMALL: 65%)
198
+ Agents recommend /clear before next phase
199
+ ```
200
+
201
+ **FTS5 Search Index** — find anything across all your project artifacts in milliseconds:
202
+ ```bash
203
+ aioson context:search "payment webhook retry logic"
204
+ # BM25 ranking + recency reranking — surfaces the right doc, not just keyword matches
205
+ ```
206
+
207
+ **Context Cache** — save and restore session snapshots without losing what the AI already knows:
208
+ ```bash
209
+ aioson context:cache save --label="before-refactor"
210
+ aioson context:cache restore --label="before-refactor"
211
+ ```
212
+
213
+ **Agent Sharding** — agents load only the instructions relevant to the current goal. Irrelevant sections are stripped before the context window fills:
214
+ ```bash
215
+ aioson agent:load deyvin --goal="fix stock modal validation"
216
+ # 68% token reduction — agent arrives focused, not bloated
217
+ ```
218
+
219
+ **Adaptive learning** — AIOSON tracks what worked and evolves agent behavior over time:
220
+ ```bash
221
+ aioson learning:evolve # distill patterns from completed sessions
222
+ aioson learning:apply # push improvements back into the agent chain
223
+ ```
224
+
225
+ **Context budget thresholds by project size:**
226
+
227
+ | Classification | Warning threshold | Why |
228
+ |----------------|-------------------|-----|
229
+ | MICRO | 75% | Short phases — ok to run higher |
230
+ | SMALL | 65% | Default — balanced warning |
231
+ | MEDIUM | 55% | Long phases — warn early, write artifacts first |
232
+
233
+ When an agent approaches its threshold it writes all in-progress artifacts to disk, emits a warning, and records `last_checkpoint` — so the next session can start from state, not from memory.
234
+
235
+ ---
236
+
237
+ ## AIOSON Squads
238
+
239
+ Squads are the part of AIOSON that most people don't expect.
240
+
241
+ You can build a specialized, multi-agent team for **any domain** — software development, content creation, legal review, gastronomy, YouTube, music production, marketing, or anything you can describe. A squad is a fully packaged, versioned, invocable team of AI agents that lives inside your project and gets smarter over time.
242
+
243
+ ```
244
+ ┌─────────────────────────────────────────────┐
245
+ │ AIOSON Squad │
246
+ │ │
247
+ │ @orchestrator ─── coordinates the team │
248
+ │ │ │
249
+ │ ┌────┴──────────────────────────┐ │
250
+ │ │ Executors │ │
251
+ │ │ @scriptwriter @copywriter │ │
252
+ │ │ @analyst @reviewer │ │
253
+ │ └───────────────────────────────┘ │
254
+ │ │ │
255
+ │ ┌────┴──────────────────────────┐ │
256
+ │ │ Genome (cognitive layer) │ │
257
+ │ │ "how this team thinks" │ │
258
+ │ │ domain · function · persona │ │
259
+ │ └───────────────────────────────┘ │
260
+ │ │ │
261
+ │ ┌────┴──────────────────────────┐ │
262
+ │ │ Skills (operational layer) │ │
263
+ │ │ "what this team knows how to do" │
264
+ │ └───────────────────────────────┘ │
265
+ └─────────────────────────────────────────────┘
266
+ ```
267
+
268
+ ### Create a squad for any domain
269
+
270
+ ```bash
271
+ # Software squad
272
+ @squad
273
+ > domain: SaaS product development
274
+ > goal: ship features end-to-end
275
+ > roles: product, architect, dev, qa
276
+
277
+ # YouTube content squad
278
+ @squad
279
+ > domain: YouTube content creation
280
+ > goal: scriptwriting, hooks, retention
281
+ > roles: scriptwriter, hook-analyst, thumbnail-strategist, orchestrator
282
+
283
+ # Legal review squad
284
+ @squad
285
+ > domain: contract review — Brazilian corporate law
286
+ > goal: flag risks, suggest amendments
287
+ > roles: risk-analyst, clause-reviewer, summarizer
288
+ ```
289
+
290
+ Each squad gets its own package under `.aioson/squads/{slug}/` — agents, manifest, output folder, execution logs. Every agent is directly invocable by the user: `@scriptwriter`, `@risk-analyst`, `@hook-analyst`.
291
+
292
+ ---
293
+
294
+ ### Genome — the cognitive layer
295
+
296
+ Skills tell an agent what to do. A genome tells it **how to think**.
297
+
298
+ ```
299
+ @genome
300
+ > type: domain
301
+ > domain: viral content strategy
302
+ > depth: expert
303
+
304
+ → generates: .aioson/genomes/viral-content-strategy.md
305
+ - mental models and decision frameworks
306
+ - quality lenses and judgment heuristics
307
+ - anti-patterns and known failure modes
308
+ - vocabulary and reference benchmarks
309
+ ```
310
+
311
+ Four genome types:
312
+
313
+ | Type | What it encodes |
314
+ |------|----------------|
315
+ | `domain` | Deep knowledge of a field — editorial, legal, financial, technical |
316
+ | `function` | Operational expertise — retention analysis, risk review, architecture |
317
+ | `persona` | Cognitive profile of a real person — their mental models, blindspots, style |
318
+ | `hybrid` | Combination of domain + persona with weighted influence |
319
+
320
+ Apply a genome to any squad executor and the agent thinks with those lenses — not just follows instructions.
321
+
322
+ ---
323
+
324
+ ### Persona genomes and the Profiler pipeline
325
+
326
+ When a squad revolves around a specific person's methodology — a creator, strategist, or thought leader — AIOSON can profile them and inject their cognitive fingerprint into the squad.
327
+
328
+ ```
329
+ @genome --type=persona --person="Alex Hormozi"
330
+
331
+ ▼ @profiler-researcher
332
+ Web research, books, interviews, frameworks collected
333
+
334
+ ▼ @profiler-enricher
335
+ Cognitive analysis, psychometric profiling
336
+ DISC profile, Enneagram, Big Five, MBTI mapped
337
+
338
+ ▼ @profiler-forge
339
+ .aioson/profiler-reports/alex-hormozi/enriched-profile.md
340
+ genome-alex-hormozi.md (Genome 3.0)
341
+
342
+ ▼ applied to @copywriter in your squad
343
+ @copywriter now reasons with Hormozi's offer-framing mental models
344
+ ```
345
+
346
+ Genome 3.0 fields include `disc`, `enneagram`, `big_five`, `mbti`, `confidence`, and `hybrid_mode` — so you know exactly how confident the profiling is and where it was inferred vs. evidence-based.
347
+
348
+ ---
349
+
350
+ ### DISC behavioral profiles
351
+
352
+ Every squad executor can be assigned a behavioral profile so its communication style, decision speed, and conflict resolution match the squad's dynamics:
353
+
354
+ | Profile | Traits | Best for |
355
+ |---------|--------|----------|
356
+ | `dominant-driver` | Direct, fast, results-first | Execution agents, sprint leads |
357
+ | `influential-expressive` | Persuasive, creative, high energy | Content creators, copywriters |
358
+ | `steady-amiable` | Patient, empathetic, consensus-driven | Reviewers, QA, support agents |
359
+ | `compliant-analytical` | Precise, systematic, risk-aware | Analysts, architects, legal review |
360
+ | + 4 hybrid combinations | — | — |
361
+
362
+ ---
363
+
364
+ ### Ephemeral squads
365
+
366
+ Need a quick throwaway team for a one-off task?
367
+
368
+ ```bash
369
+ @squad --ephemeral
370
+ > domain: competitive analysis for this pitch
371
+ > ttl: 24h
372
+ ```
373
+
374
+ Ephemeral squads skip the full design-doc flow, use a timestamped slug, and self-expire after the TTL. They never pollute `CLAUDE.md` or `AGENTS.md`. Use them for research sessions, quick drafts, or exploratory tasks.
375
+
376
+ ---
377
+
378
+ ### Cross-squad orchestration
379
+
380
+ Multiple squads can run in parallel in the same project. When an executor from one squad encounters a task outside its domain, it routes to the right sibling squad automatically — no manual handoff needed.
381
+
382
+ ```
383
+ project/
384
+ .aioson/squads/
385
+ content-squad/ @scriptwriter, @hook-analyst, @orchestrator
386
+ dev-squad/ @architect, @dev, @qa, @orchestrator
387
+ legal-squad/ @risk-analyst, @clause-reviewer, @orchestrator
388
+
389
+ # @scriptwriter receives a question about the privacy policy clause in a script
390
+ → cross-squad router detects: legal domain
391
+ → hands off to @clause-reviewer in legal-squad
392
+ → returns answer to content-squad session
393
+ ```
394
+
395
+ The orchestrator of each squad knows its siblings, reads their manifests, and routes out-of-domain requests rather than silently absorbing them or hallucinating an answer.
396
+
397
+ ---
398
+
399
+ ### Webhook integration — trigger squads from anywhere
400
+
401
+ AIOSON ships a built-in HTTP webhook server. External systems — WhatsApp, Telegram, Slack, ERPs — can trigger any squad and receive async responses via callback.
402
+
403
+ ```bash
404
+ aioson squad:webhook start --squad=content-squad --port=3100
405
+ ```
406
+
407
+ ```
408
+ [WhatsApp message] → POST /trigger → squad executes
409
+
410
+ [user receives reply] ← POST callback_url ← async response
411
+ ```
412
+
413
+ **Endpoints:**
414
+
415
+ | Method | Path | Description |
416
+ |--------|------|-------------|
417
+ | `POST` | `/trigger` | Async execution with callback URL + exponential backoff retry |
418
+ | `GET` | `/status/:run_id` | Poll run status |
419
+ | `POST` | `/query` | Sync execution (10s timeout) |
420
+ | `GET` | `/health` | Server health check |
421
+
422
+ Bearer token auth and rate limiting (60 req/min/IP) ship out of the box. No extra dependencies — pure `node:http`.
423
+
424
+ ---
425
+
426
+ ### Squad Dashboard
427
+
428
+ Real-time web panel for monitoring all your squads. Ships with AIOSON, zero extra install.
429
+
430
+ ```bash
431
+ aioson squad:dashboard # → http://localhost:4180
432
+ aioson squad:dashboard --squad=content-squad # jump to a specific squad
433
+ aioson squad:dashboard --port=4200 # custom port
434
+ ```
435
+
436
+ **What the dashboard shows:**
437
+ - Active agents and their current task
438
+ - Context usage per agent with warning indicators
439
+ - Token consumption over time
440
+ - Execution logs and milestone history
441
+ - Squad health score and ROI metrics
442
+ - Cross-squad pipeline status
443
+
444
+ Run multiple projects simultaneously on different ports — one dashboard per project.
445
+
446
+ ---
447
+
448
+ ### Squad commands reference
449
+
450
+ <details>
451
+ <summary><strong>Lifecycle — create, validate, maintain</strong></summary>
452
+
453
+ ```bash
454
+ aioson squad:create <slug> # create a new squad
455
+ aioson squad:validate <slug> # validate manifest, agents, and output config
456
+ aioson squad:analyze <slug> # deep analysis of squad health and coverage
457
+ aioson squad:extend <slug> # add executors or skills to existing squad
458
+ aioson squad:repair <slug> # fix broken genomes, missing agents, schema drift
459
+ aioson squad:export <slug> # export squad as portable package
460
+ aioson squad:deploy <slug> # deploy squad to target environment
461
+ ```
462
+
463
+ </details>
464
+
465
+ <details>
466
+ <summary><strong>Execution — run, plan, orchestrate</strong></summary>
467
+
468
+ ```bash
469
+ aioson squad:plan <slug> # generate execution plan before running
470
+ aioson squad:worker <slug> # start a squad worker process
471
+ aioson squad:daemon <slug> # run squad as background daemon
472
+ aioson squad:processes <slug> # list running squad processes
473
+ aioson squad:worktrees <slug> # parallel git worktrees per worker
474
+ aioson squad:merge <slug> # merge worktree branches back
475
+ ```
476
+
477
+ </details>
478
+
479
+ <details>
480
+ <summary><strong>Intelligence — genome, learning, profiling</strong></summary>
481
+
482
+ ```bash
483
+ aioson squad:mcp <slug> # MCP connector registry for squad
484
+ aioson squad:learning <slug> # review and apply learning from past sessions
485
+ aioson squad:score <slug> # quality and coverage score
486
+ aioson squad:roi <slug> # ROI metrics from session history
487
+ aioson squad:investigate <domain> # domain investigation before squad design
488
+ aioson squad:agent-create <slug> # create a custom agent inside a squad
489
+ ```
490
+
491
+ </details>
492
+
493
+ <details>
494
+ <summary><strong>Integration — pipelines, webhooks, recovery</strong></summary>
495
+
496
+ ```bash
497
+ aioson squad:pipeline <slug> # inter-squad DAG pipeline with ports
498
+ aioson squad:webhook start # HTTP webhook server for external triggers
499
+ aioson squad:recovery <slug> # recover interrupted squad session
500
+ aioson squad:dashboard # real-time web monitoring panel
501
+ ```
502
+
503
+ </details>
504
+
505
+ ---
506
+
507
+ ## Agents
508
+
509
+ | Agent | Role | Best for |
510
+ |-------|------|----------|
511
+ | `/setup` | Project onboarding & context | First step on any project |
512
+ | `/analyst` | Domain discovery & entity mapping | Understanding the problem space |
513
+ | `/architect` | Project structure & technical decisions | Architecture, stack choices |
514
+ | `/product` | Product decisions & PRD | Feature scope, user stories |
515
+ | `/ux-ui` | UI/UX design system & component specs | Dashboards, flows, components |
516
+ | `/pm` | Backlog & user stories | Sprint planning, task breakdown |
517
+ | `/deyvin` / `/pair` | Feature implementation | Coding — greenfield or brownfield |
518
+ | `/dev` | Feature implementation (any stack) | Focused dev tasks |
519
+ | `/qa` | Risk-first review & test generation | Quality gates before ship |
520
+ | `/orchestrator` | Session protocol & parallel execution | Multi-agent coordination |
521
+ | `/squad` | Parallel agent squads | Large feature sets in parallel |
522
+ | `/genome` | Agent knowledge & learning | Adaptive squad intelligence |
523
+ | `/sheldon` | Deep technical reasoning | Hard engineering problems |
524
+ | `/orache` | Orchestration & routing | Complex multi-step pipelines |
525
+ | `/profiler-researcher` | Research & profiling | External data gathering |
526
+ | `/profiler-enricher` | Profile enrichment | Data augmentation |
527
+ | `/profiler-forge` | Profile generation | Structured output creation |
528
+ | `/site-forge` | Site cloning & design extraction | Clone, harvest, blend, or forge skills from any URL |
529
+
530
+ ---
531
+
532
+ ## Quick start
533
+
534
+ ```bash
535
+ # Install globally
536
+ npm install -g @jaimevalasek/aioson
537
+
538
+ # New project
539
+ aioson init my-project
540
+
541
+ # Existing project
542
+ cd my-project
543
+ aioson install .
544
+
545
+ # One-off (no global install)
546
+ npx @jaimevalasek/aioson init my-project
547
+ ```
548
+
549
+ Then open your AI client and activate an agent:
550
+
551
+ ```bash
552
+ # See all agents and their activation prompts
553
+ aioson agents
554
+
555
+ # Get the activation prompt for any agent
556
+ aioson agent:prompt setup --tool=claude
557
+
558
+ # See the recommended agent sequence for your project size
559
+ aioson workflow:plan --classification=SMALL
560
+ ```
561
+
562
+ ---
4
563
 
5
564
  ## Requirements
6
565
 
@@ -8,239 +567,191 @@ AI operating framework for hyper-personalized software.
8
567
 
9
568
  | Requirement | Version | Notes |
10
569
  |-------------|---------|-------|
11
- | Node.js | ≥ 18.0.0 | Required by the CLI itself |
12
- | An AI CLI tool | — | At least one: [Claude Code](https://claude.ai/code), [Codex CLI](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli), or [OpenCode](https://opencode.ai) |
570
+ | Node.js | ≥ 18.0.0 | Required by the CLI |
571
+ | An AI CLI tool | — | Claude Code, Codex CLI, Gemini CLI, or OpenCode |
13
572
 
14
573
  **Optional — by feature**
15
574
 
16
- | Feature | Extra requirement |
17
- |---------|-------------------|
18
- | `scan:project` (brownfield scanner) | `aioson-models.json` with a cheap LLM API key (DeepSeek, OpenAI, Gemini, Groq, Together, Mistral, or Anthropic) |
19
- | `qa:run` / `qa:scan` (browser QA) | Playwright + Chromium: `npm install -g playwright && npx playwright install chromium` |
20
- | `mcp:init` / `mcp:doctor` | MCP-compatible tool (Claude Code, Gemini CLI, OpenCode, or Codex CLI with MCP support) |
21
- | Web3 support | Project must use a supported chain toolchain (Hardhat, Foundry, Anchor, etc.) |
575
+ | Feature | Requirement |
576
+ |---------|-------------|
577
+ | `scan:project` brownfield scanner | `aioson-models.json` with a cheap LLM API key (DeepSeek, OpenAI, Gemini, Groq, Together, Mistral, or Anthropic) |
578
+ | `qa:run` / `qa:scan` browser QA | `npm install -g playwright && npx playwright install chromium` |
579
+ | `mcp:init` / `mcp:doctor` | MCP-compatible tool (Claude Code, Gemini CLI, OpenCode, or Codex CLI) |
580
+ | Web3 support | Hardhat, Foundry, Anchor, or other supported chain toolchain |
581
+
582
+ ---
583
+
584
+ ## Tracked live sessions
22
585
 
23
- ## Install
586
+ AIOSON can track every AI session with full runtime observability — useful when working from external clients like Claude Code, Codex CLI, or Gemini CLI.
24
587
 
25
588
  ```bash
26
- npm install -g @jaimevalasek/aioson
27
- # then use:
28
- aioson init my-project
589
+ # Open a tracked session before the AI client starts
590
+ aioson live:start . --tool=claude --agent=deyvin --plan=plan.md --no-launch
29
591
 
30
- # one-off execution without global install
31
- npx @jaimevalasek/aioson init my-project
32
- # or
33
- npx @jaimevalasek/aioson install
592
+ # Emit milestones as work progresses
593
+ aioson runtime:emit . --agent=deyvin --type=task_started --title="Fix stock modal"
594
+ aioson runtime:emit . --agent=deyvin --type=task_completed --summary="Stock modal fixed" --refs="src/app.js"
595
+
596
+ # Hand off the session to another agent (keeps the same session envelope)
597
+ aioson live:handoff . --agent=deyvin --to=qa --reason="Ready for review"
598
+
599
+ # Monitor in real-time
600
+ aioson live:status . --watch=2
601
+
602
+ # Close and generate summary.md
603
+ aioson live:close . --agent=qa --summary="QA complete, shipped"
34
604
  ```
35
605
 
36
- ## Legacy projects and custom stacks
37
- You can run AIOSON on existing/legacy projects (not only new projects).
606
+ ---
607
+
608
+ ## Commands
609
+
610
+ <details>
611
+ <summary><strong>Setup & install</strong></summary>
38
612
 
39
613
  ```bash
40
- # inside an existing project
41
- npx @jaimevalasek/aioson install .
42
- aioson setup:context . --defaults --framework="CodeIgniter 3" --backend="CodeIgniter 3" --database="MySQL"
614
+ aioson init <project-name> [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]
615
+ aioson install [path] [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]
616
+ aioson update [path] [--lang=en|pt-BR|es|fr]
617
+ aioson info [path] [--json]
618
+ aioson doctor [path] [--fix] [--dry-run] [--json]
619
+ aioson setup:context [path] [--defaults] [--framework=<name>] [--lang=en|pt-BR|es|fr]
620
+ aioson context:validate [path] [--json]
621
+ aioson scan:project [path] [--provider=<name>] [--dry-run] [--json]
622
+ ```
623
+
624
+ </details>
43
625
 
44
- # generate discovery.md + skeleton-system.md using a cheap LLM (saves tokens in your AI session)
45
- # requires aioson-models.json with your API key
46
- aioson scan:project
626
+ <details>
627
+ <summary><strong>Agents & workflow</strong></summary>
628
+
629
+ ```bash
630
+ aioson agents
631
+ aioson agent:prompt <agent> [--tool=codex|claude|gemini|opencode]
632
+ aioson workflow:plan [path] [--classification=MICRO|SMALL|MEDIUM] [--json]
47
633
  ```
48
634
 
49
- If your stack is not listed in menus, use free-text values via `--framework`, `--backend`, `--frontend`, `--database`, `--auth`, and `--uiux`.
635
+ </details>
50
636
 
51
- The npm package is scoped as `@jaimevalasek/aioson`, but the installed CLI commands remain `aioson` and `aios`.
637
+ <details>
638
+ <summary><strong>Parallel orchestration</strong></summary>
52
639
 
53
- ## Commands
640
+ ```bash
641
+ aioson parallel:init [path] [--workers=2..6] [--force] [--dry-run] [--json]
642
+ aioson parallel:assign [path] [--source=auto|prd|architecture|discovery|<file>] [--workers=2..6]
643
+ aioson parallel:status [path] [--json]
644
+ aioson parallel:doctor [path] [--workers=2..6] [--fix] [--force] [--dry-run] [--json]
645
+ ```
54
646
 
55
- **Setup and install**
56
- - [`aioson init`](docs/en/cli-reference.md#init) `<project-name> [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]`
57
- - [`aioson install`](docs/en/cli-reference.md#install) `[path] [--lang=en|pt-BR|es|fr] [--tool=codex|claude|gemini|opencode]`
58
- - [`aioson update`](docs/en/cli-reference.md#update) `[path] [--lang=en|pt-BR|es|fr]`
59
- - [`aioson info`](docs/en/cli-reference.md#info) `[path] [--json]`
60
- - [`aioson doctor`](docs/en/cli-reference.md#doctor) `[path] [--fix] [--dry-run] [--json]`
61
- - [`aioson setup:context`](docs/en/cli-reference.md#setupcontext) `[path] [--defaults] [--framework=<name>] [--lang=en|pt-BR|es|fr]`
62
- - [`aioson context:validate`](docs/en/cli-reference.md#contextvalidate) `[path] [--json]`
63
- - [`aioson scan:project`](docs/en/cli-reference.md#scanproject) `[path] [--provider=<name>] [--dry-run] [--json]`
64
-
65
- **Agents**
66
- - [`aioson agents`](docs/en/cli-reference.md#agents)
67
- - [`aioson agent:prompt`](docs/en/cli-reference.md#agentprompt) `<agent> [--tool=codex|claude|gemini|opencode]`
68
- - [`aioson workflow:plan`](docs/en/cli-reference.md#workflowplan) `[path] [--classification=MICRO|SMALL|MEDIUM] [--json]`
69
-
70
- **Tracked live sessions for external AI clients**
71
- - `aioson live:start [path] --tool=codex|claude|gemini|opencode --agent=<agent> [--plan=<file>] [--no-launch]`
72
- - `aioson runtime:emit [path] --agent=<agent> --type=task_started|task_completed|milestone|correction|block|plan_checkpoint --summary="..."`
73
- - `aioson live:handoff [path] --agent=<agent> --to=<next-agent> --reason="..."`
74
- - `aioson live:status [path] [--agent=<agent>] [--watch=2] [--json]`
75
- - `aioson live:close [path] [--agent=<agent>] [--status=completed|failed] --summary="..."`
76
-
77
- **Locale**
78
- - [`aioson i18n:add`](docs/en/i18n.md#create-a-locale-scaffold) `<locale>`
79
- - [`aioson locale:apply`](docs/en/i18n.md#apply-localized-agent-prompts) `[path] [--lang=en|pt-BR|es|fr]`
80
-
81
- **Parallel orchestration**
82
- - [`aioson parallel:init`](docs/en/parallel.md) `[path] [--workers=2..6] [--force] [--dry-run] [--json]`
83
- - [`aioson parallel:assign`](docs/en/parallel.md#scope-assignment) `[path] [--source=auto|prd|architecture|discovery|<file>] [--workers=2..6] [--force] [--dry-run] [--json]`
84
- - [`aioson parallel:status`](docs/en/parallel.md#status-overview) `[path] [--json]`
85
- - [`aioson parallel:doctor`](docs/en/parallel.md#diagnose-and-repair) `[path] [--workers=2..6] [--fix] [--force] [--dry-run] [--json]`
86
-
87
- **MCP**
88
- - [`aioson mcp:init`](docs/en/mcp.md#mcpinit) `[path] [--tool=claude|codex|gemini|opencode] [--dry-run] [--json]`
89
- - [`aioson mcp:doctor`](docs/en/mcp.md#mcpdoctor) `[path] [--strict-env] [--json]`
90
-
91
- **Browser QA (Playwright)**
92
- - [`aioson qa:init`](docs/en/qa-browser.md#qainit) `[path] [--url=<app-url>] [--dry-run] [--json]`
93
- - [`aioson qa:doctor`](docs/en/qa-browser.md#qadoctor) `[path] [--json]`
94
- - [`aioson qa:run`](docs/en/qa-browser.md#qarun) `[path] [--url=<app-url>] [--persona=naive|hacker|power|mobile] [--headed] [--html] [--json]`
95
- - [`aioson qa:scan`](docs/en/qa-browser.md#qascan) `[path] [--url=<app-url>] [--depth=3] [--max-pages=50] [--headed] [--html] [--json]`
96
- - [`aioson qa:report`](docs/en/qa-browser.md#qareport) `[path] [--html] [--json]`
97
-
98
- **Testing and validation (CI / contributors)**
99
- - [`aioson test:smoke`](docs/en/cli-reference.md#testsmoke) `[workspace-path] [--lang=en|pt-BR|es|fr] [--web3=ethereum|solana|cardano] [--profile=standard|mixed|parallel] [--keep] [--json]`
100
- - [`aioson test:package`](docs/en/cli-reference.md#testpackage) `[source-path] [--keep] [--dry-run] [--json]`
101
-
102
- ## Agent usage helper
103
-
104
- If your AI CLI does not show a visual agent picker, these commands let you interact with agents directly from the terminal. See the [CLI reference](docs/en/cli-reference.md) for full docs on each.
105
-
106
- **Discover agents**
107
- - [`aioson agents`](docs/en/cli-reference.md#agents) — list all agents and their paths
108
- - [`aioson agent:prompt setup --tool=codex`](docs/en/cli-reference.md#agentprompt) — get activation prompt for any agent
109
- - [`aioson workflow:plan --classification=SMALL`](docs/en/cli-reference.md#workflowplan) — see the recommended agent sequence
110
-
111
- **Tracked live session flow**
112
- - `aioson live:start . --tool=codex --agent=deyvin --plan=plan.md --no-launch` — open a tracked session envelope before the AI client starts working
113
- - `aioson runtime:emit . --agent=deyvin --type=task_started --title="Fix stock modal"` — mark the start of a visible work slice
114
- - `aioson runtime:emit . --agent=deyvin --type=task_completed --summary="Stock modal fixed" --refs="src/app.js,src/styles.css"` — register a completed slice
115
- - `aioson live:handoff . --agent=deyvin --to=product --reason="Scope needs product decision"` — keep the same live session and switch active AIOSON agent
116
- - `aioson live:status . --agent=product --watch=2` — monitor status, active agent, plan progress, and process liveness
117
- - `aioson live:close . --agent=product --summary="Session closed"` — finish the session and generate `summary.md`
118
-
119
- **Setup and locale**
120
- - [`aioson init my-project --lang=pt-BR --tool=codex`](docs/en/cli-reference.md#init)
121
- - [`aioson install --lang=es --tool=claude`](docs/en/cli-reference.md#install)
122
- - [`aioson update --lang=fr`](docs/en/cli-reference.md#update)
123
- - [`aioson locale:apply --lang=pt-BR`](docs/en/i18n.md#apply-localized-agent-prompts)
124
-
125
- **Maintenance**
126
- - [`aioson doctor --fix`](docs/en/cli-reference.md#doctor) — restore any missing managed files
127
-
128
- **Parallel orchestration**
129
- - [`aioson parallel:init --workers=3`](docs/en/parallel.md)
130
- - [`aioson parallel:assign --source=architecture --workers=3`](docs/en/parallel.md#scope-assignment)
131
- - [`aioson parallel:status`](docs/en/parallel.md#status-overview)
132
- - [`aioson parallel:doctor --fix --dry-run`](docs/en/parallel.md#diagnose-and-repair)
133
-
134
- **MCP**
135
- - [`aioson mcp:init --dry-run`](docs/en/mcp.md#mcpinit)
136
- - [`aioson mcp:doctor --strict-env`](docs/en/mcp.md#mcpdoctor)
137
-
138
- **Browser QA**
139
- - [`aioson qa:init --url=http://localhost:3000`](docs/en/qa-browser.md#qainit)
140
- - [`aioson qa:doctor`](docs/en/qa-browser.md#qadoctor)
141
- - [`aioson qa:run --persona=hacker`](docs/en/qa-browser.md#qarun)
142
- - [`aioson qa:run --html`](docs/en/qa-browser.md#html-reports) — visual HTML report in `reports/`
143
- - [`aioson qa:scan --depth=2 --max-pages=30`](docs/en/qa-browser.md#qascan)
144
- - [`aioson qa:report --html`](docs/en/qa-browser.md#html-reports) — retroactive HTML from last run
145
- - [`aioson qa:report`](docs/en/qa-browser.md#qareport)
146
-
147
- **Integration tests (CI)**
148
- - [`aioson test:smoke --lang=pt-BR`](docs/en/cli-reference.md#testsmoke)
149
- - [`aioson test:smoke --web3=ethereum`](docs/en/cli-reference.md#testsmoke)
150
- - [`aioson test:smoke --profile=parallel`](docs/en/cli-reference.md#testsmoke)
151
- - [`aioson test:package --dry-run`](docs/en/cli-reference.md#testpackage)
152
-
153
- Default planning includes `@product` → UI/UX (`@ux-ui`) for SMALL/MEDIUM projects.
647
+ </details>
154
648
 
155
- ## JSON output for CI
156
- Use `--json` on selected commands. See [JSON schemas](docs/en/json-schemas.md) for output contracts.
157
- - `aioson init <project-name> --json`
158
- - `aioson install [path] --json`
159
- - `aioson update [path] --json`
160
- - `aioson agents [path] --json`
161
- - `aioson agent:prompt <agent> [path] --json`
162
- - `aioson locale:apply [path] --json`
163
- - `aioson setup:context [path] --defaults --json`
164
- - `aioson i18n:add <locale> --dry-run --json`
165
- - `aioson info --json`
166
- - `aioson doctor --json`
167
- - `aioson context:validate --json`
168
- - `aioson test:smoke --json`
169
- - `aioson parallel:init --json`
170
- - `aioson parallel:assign --json`
171
- - `aioson parallel:status --json`
172
- - `aioson parallel:doctor --json`
173
- - `aioson mcp:doctor --json`
174
- - `aioson qa:run --json`
175
- - `aioson qa:scan --json`
176
- - `aioson qa:doctor --json`
177
- - `aioson qa:report --json`
178
- - `aioson scan:project --json`
179
-
180
- ## i18n
181
- CLI localization is supported with:
182
- - `--locale=<code>`
183
- - `AIOS_LITE_LOCALE=<code>`
184
-
185
- Built-in locales: `en`, `pt-BR`, `es`, `fr`.
186
- Default locale is `en`.
187
- `pt`, `pt_br`, and `pt-BR` resolve to the same Portuguese dictionary.
188
- `es-*` resolves to `es`, and `fr-*` resolves to `fr`.
189
- Localized agent packs are built-in for `en`, `pt-BR`, `es`, and `fr`.
190
-
191
- Generate a new locale scaffold:
649
+ <details>
650
+ <summary><strong>MCP</strong></summary>
192
651
 
193
652
  ```bash
194
- aioson i18n:add fr
653
+ aioson mcp:init [path] [--tool=claude|codex|gemini|opencode] [--dry-run] [--json]
654
+ aioson mcp:doctor [path] [--strict-env] [--json]
195
655
  ```
196
656
 
657
+ `mcp:init` generates `.aioson/mcp/servers.local.json` and tool-specific preset templates. Supports Context7 and Database MCP in remote-endpoint mode.
658
+
659
+ </details>
660
+
661
+ <details>
662
+ <summary><strong>Browser QA (Playwright)</strong></summary>
663
+
664
+ ```bash
665
+ aioson qa:init [path] [--url=<app-url>] [--dry-run] [--json]
666
+ aioson qa:run [path] [--url=<app-url>] [--persona=naive|hacker|power|mobile] [--headed] [--html] [--json]
667
+ aioson qa:scan [path] [--url=<app-url>] [--depth=3] [--max-pages=50] [--headed] [--html] [--json]
668
+ aioson qa:report [path] [--html] [--json]
669
+ aioson qa:doctor [path] [--json]
670
+ ```
671
+
672
+ </details>
673
+
674
+ <details>
675
+ <summary><strong>i18n & locale</strong></summary>
676
+
677
+ ```bash
678
+ aioson i18n:add <locale>
679
+ aioson locale:apply [path] [--lang=en|pt-BR|es|fr]
680
+ ```
681
+
682
+ Built-in locales: `en`, `pt-BR`, `es`, `fr`. Use `--lang` or `AIOS_LITE_LOCALE` env var.
683
+
684
+ </details>
685
+
686
+ <details>
687
+ <summary><strong>Testing & CI</strong></summary>
688
+
689
+ ```bash
690
+ aioson test:smoke [workspace-path] [--lang=en|pt-BR|es|fr] [--web3=ethereum|solana|cardano] [--profile=standard|mixed|parallel] [--keep] [--json]
691
+ aioson test:package [source-path] [--keep] [--dry-run] [--json]
692
+ ```
693
+
694
+ </details>
695
+
696
+ ---
697
+
197
698
  ## Multi-IDE support
198
- - Claude Code (`CLAUDE.md`)
199
- - Codex CLI (`AGENTS.md`)
200
- - Gemini CLI (`.gemini/GEMINI.md`)
201
- - OpenCode (`OPENCODE.md`)
699
+
700
+ | IDE / Client | Config file |
701
+ |--------------|-------------|
702
+ | Claude Code | `CLAUDE.md` |
703
+ | Codex CLI | `AGENTS.md` |
704
+ | Gemini CLI | `.gemini/GEMINI.md` |
705
+ | OpenCode | `OPENCODE.md` |
706
+
707
+ ---
202
708
 
203
709
  ## Web3 support
204
- See the [Web3 guide](docs/en/web3.md) for the full reference.
205
- - `project_type=dapp` is supported in context validation and setup.
206
- - Framework detection now includes:
207
- - Ethereum: `Hardhat`, `Foundry`, `Truffle`
208
- - Solana: `Anchor`, `Solana Web3`
209
- - Cardano: `Cardano` (Aiken/Cardano SDK signals)
210
- - `setup:context` supports Web3 fields:
211
- - `--web3-enabled=true|false`
212
- - `--web3-networks=ethereum,solana`
213
- - `--contract-framework=Hardhat`
214
- - `--wallet-provider=wagmi`
215
- - `--indexer=The Graph`
216
- - `--rpc-provider=Alchemy`
217
-
218
- ## Docs
219
-
220
- **CLI reference**
221
- - [CLI reference](docs/en/cli-reference.md) `init`, `install`, `update`, `info`, `doctor`, `setup:context`, `context:validate`, `agents`, `agent:prompt`, `workflow:plan`, `test:smoke`, `test:package`
710
+
711
+ Supports `project_type=dapp` with detection for Ethereum (Hardhat, Foundry, Truffle), Solana (Anchor, Solana Web3), and Cardano (Aiken/Cardano SDK).
712
+
713
+ ```bash
714
+ aioson setup:context . \
715
+ --web3-enabled=true \
716
+ --web3-networks=ethereum,solana \
717
+ --contract-framework=Hardhat \
718
+ --wallet-provider=wagmi \
719
+ --indexer="The Graph" \
720
+ --rpc-provider=Alchemy
721
+ ```
722
+
723
+ See the [Web3 guide](docs/en/web3.md) for full details.
724
+
725
+ ---
726
+
727
+ ## JSON output for CI
728
+
729
+ Most commands support `--json` for structured output. See [JSON schemas](docs/en/json-schemas.md) for contracts.
730
+
731
+ ```bash
732
+ aioson info --json
733
+ aioson doctor --json
734
+ aioson agents --json
735
+ aioson parallel:status --json
736
+ aioson qa:run --json
737
+ aioson scan:project --json
738
+ ```
739
+
740
+ ---
741
+
742
+ ## Documentation
743
+
744
+ **CLI & commands**
745
+ - [CLI reference](docs/en/cli-reference.md) — full docs for every command
746
+ - [JSON schemas](docs/en/json-schemas.md) — `--json` output contracts
222
747
 
223
748
  **Feature guides**
224
- - [i18n guide](docs/en/i18n.md) — `i18n:add`, `locale:apply`, locale resolution
225
- - [Parallel orchestration](docs/en/parallel.md) — `parallel:init`, `parallel:assign`, `parallel:status`, `parallel:doctor`
226
- - [MCP guide](docs/en/mcp.md) — `mcp:init`, `mcp:doctor`
227
- - [Browser QA guide](docs/en/qa-browser.md) — `qa:init`, `qa:doctor`, `qa:run`, `qa:scan`, `qa:report`
228
- - [Web3 guide](docs/en/web3.md) — `project_type=dapp`, framework detection, Web3 context fields
229
- - [JSON schemas](docs/en/json-schemas.md) — `--json` output contracts for all commands
230
- - [AI clients guide (PT-BR)](docs/pt/clientes-ai.md) — tracked usage with Codex, Claude, Gemini, and OpenCode
231
- - [Runtime observability (PT-BR)](docs/pt/runtime-observability.md) — `live:start`, `runtime:emit`, `live:handoff`, `live:status`, `live:close`, and dashboard projections
232
- - [Squad Dashboard](docs/en/squad-dashboard.md) — `squad:dashboard`, real-time monitoring of agents, context, tokens, logs and metrics
233
- - [Session recovery (PT-BR)](docs/pt/recuperacao-de-sessao.md) — `recovery:generate`, `recovery:show`, restore context after compaction
234
- - [Context monitor (PT-BR)](docs/pt/monitor-de-contexto.md) — `context:monitor`, usage bars and warning levels per agent
235
- - [Context search (PT-BR)](docs/pt/busca-de-contexto.md) — `context:search`, `context:search:index`, FTS5 full-text search
236
- - [Context cache (PT-BR)](docs/pt/cache-de-contexto.md) — `context:cache`, save and restore session snapshots
237
- - [Sandbox executor (PT-BR)](docs/pt/sandbox.md) — `sandbox:exec`, safe execution with secret redaction and timeout
238
- - [Agent sharding (PT-BR)](docs/pt/agent-sharding.md) — `agent:load`, `agent:shard:index`, load only relevant agent instruction sections
239
-
240
- **Release (internal)**
241
- - [Release guide](docs/en/release.md)
242
- - [Release flow](docs/en/release-flow.md)
243
- - [Release notes template](docs/en/release-notes-template.md)
749
+ - [Parallel orchestration](docs/en/parallel.md)
750
+ - [MCP guide](docs/en/mcp.md)
751
+ - [Browser QA guide](docs/en/qa-browser.md)
752
+ - [Web3 guide](docs/en/web3.md)
753
+ - [i18n guide](docs/en/i18n.md)
754
+ - [Squad Dashboard](docs/en/squad-dashboard.md)
244
755
 
245
756
  **Portuguese guides**
246
757
  - [Início rápido](docs/pt/inicio-rapido.md)
@@ -248,32 +759,18 @@ See the [Web3 guide](docs/en/web3.md) for the full reference.
248
759
  - [Squad e Genome](docs/pt/squad-genome.md)
249
760
  - [Cenários de uso](docs/pt/cenarios.md)
250
761
  - [Clientes AI](docs/pt/clientes-ai.md)
762
+ - [Runtime observability](docs/pt/runtime-observability.md)
763
+ - [Recuperação de sessão](docs/pt/recuperacao-de-sessao.md)
764
+ - [Monitor de contexto](docs/pt/monitor-de-contexto.md)
765
+ - [Busca de contexto](docs/pt/busca-de-contexto.md)
766
+ - [Cache de contexto](docs/pt/cache-de-contexto.md)
767
+ - [Sandbox executor](docs/pt/sandbox.md)
768
+ - [Agent sharding](docs/pt/agent-sharding.md)
251
769
  - [Guia do engenheiro](docs/pt/guia-engineer.md)
252
- - [Squad Dashboard](docs/pt/squad-dashboard.md) — monitoramento em tempo real de agentes, contexto, tokens, logs e métricas
770
+ - [Squad Dashboard (PT)](docs/pt/squad-dashboard.md)
253
771
 
254
- ## MCP bootstrap
255
- Generate a local MCP server recommendation file from `project.context.md`:
256
-
257
- ```bash
258
- aioson mcp:init
259
- aioson mcp:init --dry-run
260
- aioson mcp:init --tool=codex
261
- aioson mcp:doctor
262
- aioson mcp:doctor --strict-env
263
- ```
264
-
265
- `mcp:init` generates:
266
- - `.aioson/mcp/servers.local.json` (project MCP plan)
267
- - `.aioson/mcp/presets/<tool>.json` (tool-specific preset templates)
268
- - Context7/Database presets in remote-endpoint mode (`mcp-remote`) using:
269
- - `CONTEXT7_MCP_URL`
270
- - `DATABASE_MCP_URL` (when database MCP is enabled)
271
-
272
- `mcp:doctor` validates:
273
- - core MCP servers (`filesystem`, `context7`)
274
- - preset coverage
275
- - required env vars from enabled servers
276
- - context compatibility for database and Web3 (`chain-rpc`)
772
+ ---
277
773
 
278
774
  ## License
279
- GNU Affero General Public License v3.0 (`AGPL-3.0-only`)
775
+
776
+ [AGPL-3.0-only](LICENSE) — GNU Affero General Public License v3.0