aios-core 4.2.13 → 4.2.14

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 (97) hide show
  1. package/.aios-core/core/code-intel/helpers/dev-helper.js +206 -0
  2. package/.aios-core/core/registry/registry-schema.json +166 -166
  3. package/.aios-core/core/synapse/diagnostics/collectors/hook-collector.js +3 -3
  4. package/.aios-core/data/entity-registry.yaml +27 -0
  5. package/.aios-core/development/scripts/approval-workflow.js +642 -642
  6. package/.aios-core/development/scripts/backup-manager.js +606 -606
  7. package/.aios-core/development/scripts/branch-manager.js +389 -389
  8. package/.aios-core/development/scripts/code-quality-improver.js +1311 -1311
  9. package/.aios-core/development/scripts/commit-message-generator.js +849 -849
  10. package/.aios-core/development/scripts/conflict-resolver.js +674 -674
  11. package/.aios-core/development/scripts/dependency-analyzer.js +637 -637
  12. package/.aios-core/development/scripts/diff-generator.js +351 -351
  13. package/.aios-core/development/scripts/elicitation-engine.js +384 -384
  14. package/.aios-core/development/scripts/elicitation-session-manager.js +299 -299
  15. package/.aios-core/development/scripts/git-wrapper.js +461 -461
  16. package/.aios-core/development/scripts/manifest-preview.js +244 -244
  17. package/.aios-core/development/scripts/metrics-tracker.js +775 -775
  18. package/.aios-core/development/scripts/modification-validator.js +554 -554
  19. package/.aios-core/development/scripts/pattern-learner.js +1224 -1224
  20. package/.aios-core/development/scripts/performance-analyzer.js +757 -757
  21. package/.aios-core/development/scripts/refactoring-suggester.js +1138 -1138
  22. package/.aios-core/development/scripts/rollback-handler.js +530 -530
  23. package/.aios-core/development/scripts/security-checker.js +358 -358
  24. package/.aios-core/development/scripts/template-engine.js +239 -239
  25. package/.aios-core/development/scripts/template-validator.js +278 -278
  26. package/.aios-core/development/scripts/test-generator.js +843 -843
  27. package/.aios-core/development/scripts/transaction-manager.js +589 -589
  28. package/.aios-core/development/scripts/usage-tracker.js +673 -673
  29. package/.aios-core/development/scripts/validate-filenames.js +226 -226
  30. package/.aios-core/development/scripts/version-tracker.js +526 -526
  31. package/.aios-core/development/scripts/yaml-validator.js +396 -396
  32. package/.aios-core/development/tasks/build-autonomous.md +10 -4
  33. package/.aios-core/development/tasks/create-service.md +23 -0
  34. package/.aios-core/development/tasks/dev-develop-story.md +12 -6
  35. package/.aios-core/development/tasks/dev-suggest-refactoring.md +7 -1
  36. package/.aios-core/development/tasks/publish-npm.md +3 -3
  37. package/.aios-core/hooks/unified/README.md +1 -1
  38. package/.aios-core/install-manifest.yaml +65 -61
  39. package/.aios-core/manifests/schema/manifest-schema.json +190 -190
  40. package/.aios-core/product/templates/component-react-tmpl.tsx +98 -98
  41. package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -102
  42. package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -205
  43. package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -175
  44. package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -175
  45. package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -300
  46. package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -152
  47. package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -222
  48. package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -154
  49. package/.aios-core/product/templates/eslintrc-security.json +32 -32
  50. package/.aios-core/product/templates/github-actions-cd.yml +212 -212
  51. package/.aios-core/product/templates/github-actions-ci.yml +172 -172
  52. package/.aios-core/product/templates/shock-report-tmpl.html +502 -502
  53. package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -240
  54. package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -233
  55. package/.aios-core/scripts/migrate-framework-docs.sh +300 -300
  56. package/README.en.md +747 -0
  57. package/README.md +4 -2
  58. package/bin/aios.js +7 -4
  59. package/package.json +1 -1
  60. package/packages/aios-pro-cli/src/recover.js +1 -1
  61. package/packages/installer/src/wizard/ide-config-generator.js +6 -6
  62. package/packages/installer/src/wizard/pro-setup.js +3 -3
  63. package/scripts/package-synapse.js +5 -5
  64. package/scripts/validate-package-completeness.js +3 -3
  65. package/.aios-core/.session/current-session.json +0 -14
  66. package/.aios-core/data/registry-update-log.jsonl +0 -191
  67. package/.aios-core/docs/SHARD-TRANSLATION-GUIDE.md +0 -335
  68. package/.aios-core/docs/component-creation-guide.md +0 -458
  69. package/.aios-core/docs/session-update-pattern.md +0 -307
  70. package/.aios-core/docs/standards/AIOS-FRAMEWORK-MASTER.md +0 -1963
  71. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md +0 -1190
  72. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1.md +0 -439
  73. package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO.md +0 -5398
  74. package/.aios-core/docs/standards/V3-ARCHITECTURAL-DECISIONS.md +0 -523
  75. package/.aios-core/docs/template-syntax.md +0 -267
  76. package/.aios-core/docs/troubleshooting-guide.md +0 -625
  77. package/.aios-core/infrastructure/tests/utilities-audit-results.json +0 -501
  78. package/.aios-core/manifests/agents.csv +0 -29
  79. package/.aios-core/manifests/tasks.csv +0 -198
  80. package/.aios-core/manifests/workers.csv +0 -204
  81. package/.claude/rules/agent-authority.md +0 -105
  82. package/.claude/rules/coderabbit-integration.md +0 -93
  83. package/.claude/rules/ids-principles.md +0 -112
  84. package/.claude/rules/story-lifecycle.md +0 -139
  85. package/.claude/rules/workflow-execution.md +0 -150
  86. package/pro/README.md +0 -66
  87. package/pro/license/degradation.js +0 -220
  88. package/pro/license/errors.js +0 -450
  89. package/pro/license/feature-gate.js +0 -354
  90. package/pro/license/index.js +0 -181
  91. package/pro/license/license-api.js +0 -651
  92. package/pro/license/license-cache.js +0 -523
  93. package/pro/license/license-crypto.js +0 -303
  94. package/scripts/glue/README.md +0 -355
  95. package/scripts/glue/compose-agent-prompt.cjs +0 -362
  96. /package/.claude/hooks/{precompact-session-digest.js → precompact-session-digest.cjs} +0 -0
  97. /package/.claude/hooks/{synapse-engine.js → synapse-engine.cjs} +0 -0
package/README.en.md ADDED
@@ -0,0 +1,747 @@
1
+ # Synkra AIOS: Universal AI Agent Framework 🚀
2
+
3
+ > 🌍 **[English](README.en.md)** | [Português](README.md)
4
+
5
+ [![NPM Version](https://img.shields.io/npm/v/aios-core.svg)](https://www.npmjs.com/package/aios-core)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org/)
8
+ [![CI](https://github.com/SynkraAI/aios-core/actions/workflows/ci.yml/badge.svg)](https://github.com/SynkraAI/aios-core/actions/workflows/ci.yml)
9
+ [![codecov](https://codecov.io/gh/SynkraAI/aios-core/branch/main/graph/badge.svg)](https://codecov.io/gh/SynkraAI/aios-core)
10
+ [![Documentation](https://img.shields.io/badge/docs-available-orange.svg)](https://synkra.ai)
11
+ [![Open Source](https://img.shields.io/badge/Open%20Source-Yes-success.svg)](LICENSE)
12
+ [![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](CONTRIBUTING.md)
13
+ [![Code of Conduct](https://img.shields.io/badge/code%20of%20conduct-Contributor%20Covenant-blue.svg)](CODE_OF_CONDUCT.md)
14
+
15
+ AI-Powered Self-Modifying Development Framework. Founded on Agent-Driven Agile Development, offering revolutionary capabilities for AI-driven development and much more. Transform any domain with specialized AI expertise: software development, entertainment, creative writing, business strategy, personal wellness, and more.
16
+
17
+ ## Start Here (10 Min)
18
+
19
+ If this is your first time with AIOS, follow this linear path:
20
+
21
+ 1. Install in a new or existing project:
22
+ ```bash
23
+ # new project
24
+ npx aios-core init my-project
25
+
26
+ # existing project
27
+ cd your-project
28
+ npx aios-core install
29
+ ```
30
+ 2. Choose your IDE/CLI and the activation path:
31
+ - Claude Code: `/agent-name`
32
+ - Gemini CLI: `/aios-menu` → `/aios-<agent>`
33
+ - Codex CLI: `/skills` → `aios-<agent-id>`
34
+ - Cursor/Copilot/AntiGravity: follow the limits and workarounds in `docs/ide-integration.md`
35
+ 3. Activate 1 agent and confirm the greeting.
36
+ 4. Run 1 initial command (`*help` or equivalent) to validate first-value.
37
+
38
+ First-value definition (binary): agent activation + valid greeting + initial command with useful output in <= 10 minutes.
39
+
40
+
41
+ ## IDE Hook Compatibility (AIOS 4.2 Reality)
42
+
43
+ Many advanced AIOS features depend on lifecycle events (hooks). The table below shows the actual parity between IDEs/platforms:
44
+
45
+ | IDE/CLI | Hook Parity vs Claude | Practical Impact |
46
+ | --- | --- | --- |
47
+ | Claude Code | Complete (reference) | Maximum context automation, guardrails, and auditing |
48
+ | Gemini CLI | High (native events) | Strong coverage of pre/post tool and session automations |
49
+ | Codex CLI | Partial/limited | Some automations depend on `AGENTS.md`, `/skills`, MCP, and operational flow |
50
+ | Cursor | No equivalent lifecycle hooks | Less pre/post tool automation; focus on rules, MCP, and agent flow |
51
+ | GitHub Copilot | No equivalent lifecycle hooks | Less session/tooling automation; focus on repository instructions + MCP in VS Code |
52
+ | AntiGravity | Workflow-based (not hook-based) | Integration via workflows, not via hook events equivalent to Claude |
53
+
54
+ Detailed impacts and mitigation: `docs/ide-integration.md`.
55
+
56
+ ## Acknowledgments & Attribution
57
+
58
+ Synkra AIOS was originally derived from the [BMad Method](https://github.com/bmad-code-org/BMAD-METHOD), created by [Brian Madison](https://github.com/bmadcode) (BMad Code, LLC). We gratefully acknowledge the BMad Method for providing the foundation from which this project began.
59
+
60
+ **Important:** This project is **NOT affiliated with, endorsed by, or sanctioned by** the BMad Method or BMad Code, LLC. Contributors appearing in the git history from the original BMad Method repository do not imply active participation in or endorsement of Synkra AIOS.
61
+
62
+ Since its origin, AIOS has evolved significantly with its own architecture, terminology, and features (v4.x+), and does not depend on BMad for current operation. The BMad Method remains an excellent framework in its own right — please visit the [official BMad Method repository](https://github.com/bmad-code-org/BMAD-METHOD) to learn more.
63
+
64
+ BMad, BMad Method, and BMad Core are trademarks of BMad Code, LLC. See [TRADEMARK.md](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/TRADEMARK.md) for usage guidelines.
65
+
66
+ ## Overview
67
+
68
+ ### Architectural Premise: CLI First
69
+
70
+ Synkra AIOS follows a clear priority hierarchy:
71
+
72
+ ```text
73
+ CLI First → Observability Second → UI Third
74
+ ```
75
+
76
+ | Layer | Priority | Focus | Examples |
77
+ | ----------------- | --------- | ------------------------------------------------------------------------------ | -------------------------------------------- |
78
+ | **CLI** | Highest | Where the intelligence lives. All execution, decisions, and automation happen here. | Agents (`@dev`, `@qa`), workflows, commands |
79
+ | **Observability** | Secondary | Observe and monitor what happens in the CLI in real time. | SSE Dashboard, logs, metrics, timeline |
80
+ | **UI** | Tertiary | Ad-hoc management and visualizations when needed. | Kanban, settings, story management |
81
+
82
+ **Derived principles:**
83
+
84
+ - The CLI is the source of truth - dashboards only observe
85
+ - New features must work 100% via CLI before having a UI
86
+ - The UI should never be a requirement for system operation
87
+ - Observability serves to understand what the CLI is doing, not to control it
88
+
89
+ ---
90
+
91
+ **The Two Key Innovations of Synkra AIOS:**
92
+
93
+ **1. Agentic Planning:** Dedicated agents (analyst, pm, architect) collaborate with you to create detailed, consistent PRD and Architecture documents. Through advanced prompt engineering and human-in-the-loop refinement, these planning agents produce comprehensive specifications that go far beyond generic AI task generation.
94
+
95
+ **2. Engineering-Contextualized Development:** The sm (Scrum Master) agent then transforms these detailed plans into hyper-detailed development stories that contain everything the dev agent needs - complete context, implementation details, and architectural guidance embedded directly in the story files.
96
+
97
+ This two-phase approach eliminates both **planning inconsistency** and **context loss** - the biggest problems in AI-assisted development. Your dev agent opens a story file with full understanding of what to build, how to build it, and why.
98
+
99
+ **📖 [See the complete workflow in the User Guide](docs/guides/user-guide.md)** - Planning phase, development cycle, and all agent roles
100
+
101
+ ## Prerequisites
102
+
103
+ - Node.js >=18.0.0 (v20+ recommended)
104
+ - npm >=9.0.0
105
+ - GitHub CLI (optional, required for team collaboration)
106
+
107
+ > **Installation issues?** See the [Troubleshooting Guide](docs/guides/installation-troubleshooting.md)
108
+
109
+ **Platform-specific guides:**
110
+
111
+ - 📖 [macOS Installation Guide](docs/installation/macos.md)
112
+ - 📖 [Windows Installation Guide](docs/installation/windows.md)
113
+ - 📖 [Linux Installation Guide](docs/installation/linux.md)
114
+
115
+ **Multilingual documentation available:** [Português](docs/pt/installation/) | [Español](docs/es/installation/)
116
+
117
+ ## Quick Navigation
118
+
119
+ ### Understanding the AIOS Workflow
120
+
121
+ **Before diving in, review these critical workflow diagrams that explain how AIOS works:**
122
+
123
+ 1. **[Planning Workflow (Web Interface)](docs/guides/user-guide.md#the-planning-workflow-web-ui)** - How to create PRD and Architecture documents
124
+ 2. **[Core Development Cycle (IDE)](docs/guides/user-guide.md#the-core-development-cycle-ide)** - How the sm, dev, and qa agents collaborate through story files
125
+
126
+ > ⚠️ **These diagrams explain 90% of the confusion about the Synkra AIOS Agentic Agile workflow** - Understanding PRD+Architecture creation and the sm/dev/qa workflow and how agents pass notes through story files is essential - and it also explains why this is NOT taskmaster or just a simple task runner!
127
+
128
+ ### What would you like to do?
129
+
130
+ - **[Install and Build software with a Full Stack AI Agile Team](#quick-start)** → Quick Start Instructions
131
+ - **[Learn how to use AIOS](docs/guides/user-guide.md)** → Complete user guide and walkthrough
132
+ - **[See available AI agents](#available-agents)** → Specialized roles for your team
133
+ - **[Explore non-technical uses](#-beyond-software-development---squads)** → Creative writing, business, wellness, education
134
+ - **[Create my own AI agents](#creating-your-own-squad)** → Build agents for your domain
135
+ - **[Browse ready-made Squads](docs/guides/squads-overview.md)** → See how to create and use AI agent teams
136
+ - **[Understand the architecture](docs/architecture/ARCHITECTURE-INDEX.md)** → Deep technical dive
137
+ - **[Report issues](https://github.com/SynkraAI/aios-core/issues)** → Bug reports and feature requests
138
+
139
+ ## Important: Keep Your AIOS Installation Updated
140
+
141
+ **Stay up to date effortlessly!** To update your existing AIOS installation:
142
+
143
+ ```bash
144
+ npx aios-core@latest install
145
+ ```
146
+
147
+ This will:
148
+
149
+ - ✅ Automatically detect your existing installation
150
+ - ✅ Update only the files that have changed
151
+ - ✅ Create `.bak` backup files for any custom modifications
152
+ - ✅ Preserve your project-specific settings
153
+
154
+ This makes it easy to benefit from the latest improvements, bug fixes, and new agents without losing your customizations!
155
+
156
+ ## Quick Start
157
+
158
+ ### 🚀 Installation via NPX (Recommended)
159
+
160
+ **Install Synkra AIOS with a single command:**
161
+
162
+ ```bash
163
+ # Create a new project with modern interactive wizard
164
+ npx aios-core init my-project
165
+
166
+ # Or install in an existing project
167
+ cd your-project
168
+ npx aios-core install
169
+
170
+ # Or use a specific version
171
+ npx aios-core@latest init my-project
172
+ ```
173
+
174
+ ### ✨ Modern Installation Wizard
175
+
176
+ Synkra AIOS now includes a cutting-edge interactive installation experience, inspired by modern tools like Vite and Next.js:
177
+
178
+ **Interactive Installer Features:**
179
+
180
+ - 🎨 **Modern Interface**: Colorful and visual prompts with @clack/prompts
181
+ - ✅ **Real-Time Validation**: Instant feedback on invalid inputs
182
+ - 🔄 **Progress Indicators**: Spinners for long operations (file copying, dependency installation)
183
+ - 📦 **Multi-Component Selection**: Choose which components to install with an intuitive interface
184
+ - ⚙️ **Package Manager Choice**: Select between npm, yarn, or pnpm
185
+ - ⌨️ **Cancellation Support**: Ctrl+C or ESC to exit gracefully at any time
186
+ - 📊 **Installation Summary**: View all settings before proceeding
187
+ - ⏱️ **Duration Tracking**: See how long the installation took
188
+
189
+ **The installer offers:**
190
+
191
+ - ✅ Download of the latest version from NPM
192
+ - ✅ Modern interactive installation wizard
193
+ - ✅ Automatic IDE configuration (Codex CLI, Cursor, or Claude Code)
194
+ - ✅ Configuration of all AIOS agents and workflows
195
+ - ✅ Creation of necessary configuration files
196
+ - ✅ Meta-agent system initialization
197
+ - ✅ System health checks
198
+ - ✅ **Cross-Platform Support**: Tested on Windows, macOS, and Linux
199
+
200
+ > **That's it!** No cloning, no manual configuration - just one command and you're ready to go with a modern, professional installation experience.
201
+
202
+ **Prerequisites**: [Node.js](https://nodejs.org) v18+ required (v20+ recommended) | [Troubleshooting](docs/guides/installation-troubleshooting.md)
203
+
204
+ ### Updating an Existing Installation
205
+
206
+ If you already have AIOS installed:
207
+
208
+ ```bash
209
+ npx aios-core@latest install
210
+ # The installer will detect your existing installation and update it
211
+ ```
212
+
213
+ ### Configure Your IDE for AIOS Development
214
+
215
+ Synkra AIOS includes pre-configured IDE rules to enhance your development experience:
216
+
217
+ #### For Cursor:
218
+
219
+ 1. Open Cursor settings
220
+ 2. Navigate to **User Rules**
221
+ 3. Copy the contents of `.cursor/global-rules.md`
222
+ 4. Paste in the rules section and save
223
+
224
+ #### For Claude Code:
225
+
226
+ - ✅ Already configured! The `.claude/CLAUDE.md` file is loaded automatically
227
+ - Dedicated agent sync: `npm run sync:ide:claude`
228
+ - Dedicated validation: `npm run validate:claude-sync && npm run validate:claude-integration`
229
+
230
+ #### For Codex CLI:
231
+
232
+ - ✅ First-class integration in AIOS 4.2 (shared activation and greeting pipeline)
233
+ - ✅ Already configured! The `AGENTS.md` file at the root is loaded automatically
234
+ - Optional: sync auxiliary agents with `npm run sync:ide:codex`
235
+ - Recommended in this repository: generate and version local skills with `npm run sync:skills:codex`
236
+ - Use `npm run sync:skills:codex:global` only outside this project (to avoid duplication in `/skills`)
237
+ - Dedicated validation: `npm run validate:codex-sync && npm run validate:codex-integration`
238
+ - Skills/paths guardrails: `npm run validate:codex-skills && npm run validate:paths`
239
+
240
+ #### For Gemini CLI:
241
+
242
+ - ✅ Rules and agents syncable with `npm run sync:ide:gemini`
243
+ - Generated files in `.gemini/rules.md`, `.gemini/rules/AIOS/agents/`, and `.gemini/commands/*.toml`
244
+ - ✅ Local hooks and settings in the installation flow (`.gemini/hooks/` + `.gemini/settings.json`)
245
+ - ✅ Quick activation via slash commands (`/aios-menu`, `/aios-dev`, `/aios-architect`, etc.)
246
+ - Dedicated validation: `npm run validate:gemini-sync && npm run validate:gemini-integration`
247
+ - Multi-IDE parity in one command: `npm run validate:parity`
248
+
249
+ These rules provide:
250
+
251
+ - 🤖 Agent command recognition and integration
252
+ - 📋 Story-driven development workflow
253
+ - ✅ Automatic checkbox tracking
254
+ - 🧪 Testing and validation patterns
255
+ - 📝 AIOS-specific code patterns
256
+
257
+ ### Fastest Start with Web Interface (2 minutes)
258
+
259
+ 1. **Install AIOS**: Run `npx aios-core init my-project`
260
+ 2. **Configure your IDE**: Follow the setup instructions for Codex CLI, Cursor, or Claude Code
261
+ 3. **Start Planning**: Activate an agent like `@analyst` to begin creating your briefing
262
+ 4. **Use AIOS commands**: Type `*help` to see available commands
263
+ 5. **Follow the flow**: See the [User Guide](docs/guides/user-guide.md) for more details
264
+
265
+ ### CLI Command Reference
266
+
267
+ Synkra AIOS offers a modern, cross-platform CLI with intuitive commands:
268
+
269
+ ```bash
270
+ # Project Management (with interactive wizard)
271
+ npx aios-core init <project-name> [options]
272
+ --force Force creation in non-empty directory
273
+ --skip-install Skip npm dependency installation
274
+ --template <name> Use specific template (default, minimal, enterprise)
275
+
276
+ # Installation and Configuration (with modern prompts)
277
+ npx aios-core install [options]
278
+ --force Overwrite existing configuration
279
+ --quiet Minimal output during installation
280
+ --dry-run Simulate installation without modifying files
281
+
282
+ # System Commands
283
+ npx aios-core --version Display installed version
284
+ npx aios-core --help Display detailed help
285
+ npx aios-core info Display system information
286
+ npx aios-core doctor Run system diagnostics
287
+ npx aios-core doctor --fix Automatically fix detected issues
288
+
289
+ # Maintenance
290
+ npx aios-core update Update to latest version
291
+ npx aios-core uninstall Remove Synkra AIOS
292
+ ```
293
+
294
+ **CLI Features:**
295
+
296
+ - ✅ **Comprehensive Help System**: `--help` on any command shows detailed documentation
297
+ - ✅ **Input Validation**: Immediate feedback on invalid parameters
298
+ - ✅ **Colored Messages**: Errors in red, successes in green, warnings in yellow
299
+ - ✅ **Cross-Platform**: Works seamlessly on Windows, macOS, and Linux
300
+ - ✅ **Dry-Run Support**: Test installations without modifying files
301
+
302
+ ### 💡 Usage Examples
303
+
304
+ #### Full Interactive Installation
305
+
306
+ ```bash
307
+ $ npx aios-core install
308
+
309
+ 🚀 Synkra AIOS Installation
310
+
311
+ ◆ What is your project name?
312
+ │ my-awesome-project
313
+
314
+ ◇ Which directory should we use?
315
+ │ ./my-awesome-project
316
+
317
+ ◆ Choose components to install:
318
+ │ ● Core Framework (Required)
319
+ │ ● Agent System (Required)
320
+ │ ● Squads (optional)
321
+ │ ○ Example Projects (optional)
322
+
323
+ ◇ Select package manager:
324
+ │ ● npm
325
+ │ ○ yarn
326
+ │ ○ pnpm
327
+
328
+ ◆ Initialize Git repository?
329
+ │ Yes
330
+
331
+ ◆ Install dependencies?
332
+ │ Yes
333
+
334
+ ▸ Creating project directory...
335
+ ▸ Copying framework files...
336
+ ▸ Initializing Git repository...
337
+ ▸ Installing dependencies (this may take a minute)...
338
+ ▸ Configuring environment...
339
+ ▸ Running post-installation setup...
340
+
341
+ ✔ Installation completed successfully! (34.2s)
342
+
343
+ Next steps:
344
+ cd my-awesome-project
345
+ aios-core doctor # Verify installation
346
+ aios-core --help # See available commands
347
+ ```
348
+
349
+ #### Silent Installation (CI/CD)
350
+
351
+ ```bash
352
+ # Automated installation without prompts
353
+ $ npx aios-core install --quiet --force
354
+ ✔ Synkra AIOS installed successfully
355
+ ```
356
+
357
+ #### Installation Simulation (Dry-Run)
358
+
359
+ ```bash
360
+ # Test installation without modifying files
361
+ $ npx aios-core install --dry-run
362
+
363
+ [DRY RUN] Would create: ./my-project/
364
+ [DRY RUN] Would copy: .aios-core/ (45 files)
365
+ [DRY RUN] Would initialize: Git repository
366
+ [DRY RUN] Would install: npm dependencies
367
+ ✔ Dry run completed - no files were modified
368
+ ```
369
+
370
+ #### System Diagnostics
371
+
372
+ ```bash
373
+ $ npx aios-core doctor
374
+
375
+ 🏥 AIOS System Diagnostics
376
+
377
+ ✔ Node.js version: v20.10.0 (meets requirement: >=18.0.0)
378
+ ✔ npm version: 10.2.3
379
+ ✔ Git installed: version 2.43.0
380
+ ✔ GitHub CLI: gh 2.40.1
381
+ ✔ Synkra AIOS: v4.2.11
382
+
383
+ Configuration:
384
+ ✔ .aios-core/ directory exists
385
+ ✔ Agent files: 11 found
386
+ ✔ Workflow files: 8 found
387
+ ✔ Templates: 15 found
388
+
389
+ Dependencies:
390
+ ✔ @clack/prompts: ^0.7.0
391
+ ✔ commander: ^12.0.0
392
+ ✔ execa: ^9.0.0
393
+ ✔ fs-extra: ^11.0.0
394
+ ✔ picocolors: ^1.0.0
395
+
396
+ ✅ All checks passed! Your installation is healthy.
397
+ ```
398
+
399
+ #### Get Help
400
+
401
+ ```bash
402
+ $ npx aios-core --help
403
+
404
+ Usage: aios-core [options] [command]
405
+
406
+ Synkra AIOS: AI-Orchestrated System for Full Stack Development
407
+
408
+ Options:
409
+ -V, --version output the version number
410
+ -h, --help display help for command
411
+
412
+ Commands:
413
+ init <project-name> Create new AIOS project with interactive wizard
414
+ install [options] Install AIOS in current directory
415
+ info Display system information
416
+ doctor [options] Run system diagnostics and health checks
417
+ help [command] display help for command
418
+
419
+ Run 'aios-core <command> --help' for detailed information about each command.
420
+ ```
421
+
422
+ ### Alternative: Clone and Build
423
+
424
+ For contributors or advanced users who want to modify the source code:
425
+
426
+ ```bash
427
+ # Clone the repository
428
+ git clone https://github.com/SynkraAI/aios-core.git
429
+ cd aios-core
430
+
431
+ # Install dependencies
432
+ npm install
433
+
434
+ # Run the installer
435
+ npm run install:aios
436
+ ```
437
+
438
+ ### Quick Team Setup
439
+
440
+ For team members joining the project:
441
+
442
+ ```bash
443
+ # Install AIOS in the project
444
+ npx aios-core@latest install
445
+
446
+ # This will:
447
+ # 1. Detect existing installation (if any)
448
+ # 2. Install/update AIOS framework
449
+ # 3. Configure agents and workflows
450
+ ```
451
+
452
+ ## 🌟 Beyond Software Development - Squads
453
+
454
+ The AIOS natural language framework works in ANY domain. Squads provide specialized AI agents for creative writing, business strategy, health and wellness, education, and more. Additionally, Squads can expand the Synkra AIOS core with domain-specific functionality that isn't generic for all use cases. [See the Squads Guide](docs/guides/squads-guide.md) and learn to create your own!
455
+
456
+ ## Available Agents
457
+
458
+ Synkra AIOS comes with 12 specialized agents:
459
+
460
+ ### Meta Agents
461
+
462
+ - **aios-master** - Master orchestration agent (includes framework development capabilities)
463
+ - **aios-orchestrator** - Workflow orchestrator and team coordination
464
+
465
+ ### Planning Agents (Web Interface)
466
+
467
+ - **analyst** - Business analysis specialist and PRD creation
468
+ - **pm** (Product Manager) - Product manager and prioritization
469
+ - **architect** - System architect and technical design
470
+ - **ux-expert** - User experience design and usability
471
+
472
+ ### Development Agents (IDE)
473
+
474
+ - **sm** (Scrum Master) - Sprint management and story creation
475
+ - **dev** - Developer and implementation
476
+ - **qa** - Quality assurance and testing
477
+ - **po** (Product Owner) - Backlog and story management
478
+ - **data-engineer** - Database design and data modeling
479
+ - **devops** - CI/CD, infrastructure, and git operations (exclusive push authority)
480
+
481
+ ## Documentation and Resources
482
+
483
+ ### Essential Guides
484
+
485
+ - 📖 **[User Guide](docs/guides/user-guide.md)** - Complete walkthrough from conception to project completion
486
+ - 🏗️ **[Core Architecture](docs/architecture/ARCHITECTURE-INDEX.md)** - Deep technical dive and system design
487
+ - 🚀 **[Squads Guide](docs/guides/squads-guide.md)** - Extend AIOS to any domain beyond software development
488
+
489
+ ### Additional Documentation
490
+
491
+ - 🤖 **[Squads Guide](docs/guides/squads-guide.md)** - Create and publish AI agent teams
492
+ - 📋 **[Getting Started](docs/getting-started.md)** - Step-by-step tutorial for beginners
493
+ - 🔧 **[Troubleshooting](docs/troubleshooting.md)** - Solutions for common issues
494
+ - 🎯 **[Guiding Principles](docs/GUIDING-PRINCIPLES.md)** - AIOS philosophy and best practices
495
+ - 🏛️ **[Architecture Overview](docs/architecture/ARCHITECTURE-INDEX.md)** - Detailed view of system architecture
496
+ - ⚙️ **[Performance Tuning Guide](docs/performance-tuning-guide.md)** - Optimize your AIOS workflow
497
+ - 🔒 **[Security Best Practices](docs/security-best-practices.md)** - Security and data protection
498
+ - 🔄 **[Migration Guide](docs/migration-guide.md)** - Migration from previous versions
499
+ - 📦 **[Versioning and Releases](docs/versioning-and-releases.md)** - Versioning policy
500
+
501
+ ## 🤖 AIOS Autonomous Development Engine (ADE)
502
+
503
+ Synkra AIOS introduces the **Autonomous Development Engine (ADE)** - a complete system for autonomous development that transforms requirements into working code.
504
+
505
+ ### 🎯 What is ADE?
506
+
507
+ ADE is a set of **7 Epics** that enable autonomous development execution:
508
+
509
+ | Epic | Name | Description |
510
+ | ----- | ---------------- | ------------------------------------------ |
511
+ | **1** | Worktree Manager | Branch isolation via Git worktrees |
512
+ | **2** | Migration V2→V3 | Migration to autoClaude V3 format |
513
+ | **3** | Spec Pipeline | Transforms requirements into executable specs |
514
+ | **4** | Execution Engine | Executes specs with 13 steps + self-critique |
515
+ | **5** | Recovery System | Automatic failure recovery |
516
+ | **6** | QA Evolution | Structured review in 10 phases |
517
+ | **7** | Memory Layer | Persistent memory of patterns and insights |
518
+
519
+ ### 🔄 Main Flow
520
+
521
+ ```text
522
+ User Request → Spec Pipeline → Execution Engine → QA Review → Working Code
523
+
524
+ Recovery System
525
+
526
+ Memory Layer
527
+ ```
528
+
529
+ ### ⚡ Quick Start ADE
530
+
531
+ ```bash
532
+ # 1. Create spec from requirement
533
+ @pm *gather-requirements
534
+ @architect *assess-complexity
535
+ @analyst *research-deps
536
+ @pm *write-spec
537
+ @qa *critique-spec
538
+
539
+ # 2. Execute approved spec
540
+ @architect *create-plan
541
+ @architect *create-context
542
+ @dev *execute-subtask 1.1
543
+
544
+ # 3. QA Review
545
+ @qa *review-build STORY-42
546
+ ```
547
+
548
+ ### 📖 ADE Documentation
549
+
550
+ - **[Complete ADE Guide](docs/guides/ade-guide.md)** - Step-by-step tutorial
551
+ - **[Agent Changes](docs/architecture/ADE-AGENT-CHANGES.md)** - Commands and capabilities per agent
552
+ - **[Epic 1 - Worktree Manager](docs/architecture/ADE-EPIC1-HANDOFF.md)**
553
+ - **[Epic 2 - Migration V2→V3](docs/architecture/ADE-EPIC2-HANDOFF.md)**
554
+ - **[Epic 3 - Spec Pipeline](docs/architecture/ADE-EPIC3-HANDOFF.md)**
555
+ - **[Epic 4 - Execution Engine](docs/architecture/ADE-EPIC4-HANDOFF.md)**
556
+ - **[Epic 5 - Recovery System](docs/architecture/ADE-EPIC5-HANDOFF.md)**
557
+ - **[Epic 6 - QA Evolution](docs/architecture/ADE-EPIC6-HANDOFF.md)**
558
+ - **[Epic 7 - Memory Layer](docs/architecture/ADE-EPIC7-HANDOFF.md)**
559
+
560
+ ### 🆕 New Commands per Agent
561
+
562
+ **@devops:**
563
+
564
+ - `*create-worktree`, `*list-worktrees`, `*merge-worktree`, `*cleanup-worktrees`
565
+ - `*inventory-assets`, `*analyze-paths`, `*migrate-agent`, `*migrate-batch`
566
+
567
+ **@pm:**
568
+
569
+ - `*gather-requirements`, `*write-spec`
570
+
571
+ **@architect:**
572
+
573
+ - `*assess-complexity`, `*create-plan`, `*create-context`, `*map-codebase`
574
+
575
+ **@analyst:**
576
+
577
+ - `*research-deps`, `*extract-patterns`
578
+
579
+ **@qa:**
580
+
581
+ - `*critique-spec`, `*review-build`, `*request-fix`, `*verify-fix`
582
+
583
+ **@dev:**
584
+
585
+ - `*execute-subtask`, `*track-attempt`, `*rollback`, `*capture-insights`, `*list-gotchas`, `*apply-qa-fix`
586
+
587
+ ## Creating Your Own Squad
588
+
589
+ Squads allow you to extend AIOS to any domain. Basic structure:
590
+
591
+ ```text
592
+ squads/your-squad/
593
+ ├── config.yaml # Squad configuration
594
+ ├── agents/ # Specialized agents
595
+ ├── tasks/ # Task workflows
596
+ ├── templates/ # Document templates
597
+ ├── checklists/ # Validation checklists
598
+ ├── data/ # Knowledge base
599
+ ├── README.md # Squad documentation
600
+ └── user-guide.md # User guide
601
+ ```
602
+
603
+ See the [Squads Guide](docs/guides/squads-guide.md) for detailed instructions.
604
+
605
+ ## Available Squads
606
+
607
+ Squads are modular AI agent teams. See the [Squads Overview](docs/guides/squads-overview.md) for more information.
608
+
609
+ ### External Squads
610
+
611
+ - **[hybrid-ops](https://github.com/SynkraAI/aios-hybrid-ops-pedro-valerio)** - Human-agent hybrid operations (separate repository)
612
+
613
+ ## AIOS Pro
614
+
615
+ **AIOS Pro** (`@aios-fullstack/pro`) is the premium module of Synkra AIOS, offering advanced features for teams and larger-scale projects.
616
+
617
+ > **Restricted availability:** AIOS Pro is available exclusively to members of the **AIOS Cohort Advanced**. [Learn more about the program](https://synkra.ai).
618
+
619
+ ### Installation
620
+
621
+ ```bash
622
+ npm install @aios-fullstack/pro
623
+ ```
624
+
625
+ ### Premium Features
626
+
627
+ - **Advanced Squads** - Specialized squads with expanded capabilities
628
+ - **Memory Layer** - Persistent memory of patterns and insights across sessions
629
+ - **Metrics & Analytics** - Productivity dashboard and development metrics
630
+ - **Enterprise Integrations** - Connectors for Jira, Linear, Notion, and more
631
+ - **Layered Configuration** - L1-L4 configuration system with inheritance
632
+ - **Licensing** - License management via `aios pro activate --key <KEY>`
633
+
634
+ For more information, run `npx aios-core pro --help` after installation.
635
+
636
+ ## Support
637
+
638
+ - 🐛 [Issue Tracker](https://github.com/SynkraAI/aios-core/issues) - Bug reports and feature requests
639
+ - 💡 [Feature Process](docs/FEATURE_PROCESS.md) - How to propose new features
640
+ - 📋 [How to Contribute](CONTRIBUTING.md)
641
+ - 🗺️ [Roadmap](docs/roadmap.md) - See what we're building
642
+ - 🤖 [Squads Guide](docs/guides/squads-guide.md) - Create AI agent teams
643
+
644
+ ## Git Workflow and Validation
645
+
646
+ Synkra AIOS implements a multi-layer validation system to ensure code quality and consistency:
647
+
648
+ ### 🛡️ Defense in Depth - 3 Validation Layers
649
+
650
+ **Layer 1: Pre-commit (Local - Fast)**
651
+
652
+ - ✅ ESLint - Code quality
653
+ - ✅ TypeScript - Type checking
654
+ - ⚡ Performance: <5s
655
+ - 💾 Cache enabled
656
+
657
+ **Layer 2: Pre-push (Local - Story Validation)**
658
+
659
+ - ✅ Story checkbox validation
660
+ - ✅ Status consistency
661
+ - ✅ Required sections
662
+
663
+ **Layer 3: CI/CD (Cloud - Required for merge)**
664
+
665
+ - ✅ All tests
666
+ - ✅ Test coverage (80% minimum)
667
+ - ✅ Complete validations
668
+ - ✅ GitHub Actions
669
+
670
+ ### 📖 Detailed Documentation
671
+
672
+ - 📋 **[Complete Git Workflow Guide](docs/git-workflow-guide.md)** - Detailed workflow guide
673
+ - 📋 **[CONTRIBUTING.md](CONTRIBUTING.md)** - Contribution guide
674
+
675
+ ### Available Commands
676
+
677
+ ```bash
678
+ # Local validations
679
+ npm run lint # ESLint
680
+ npm run typecheck # TypeScript
681
+ npm test # Tests
682
+ npm run test:coverage # Tests with coverage
683
+
684
+ # AIOS Validator
685
+ node .aios-core/utils/aios-validator.js pre-commit # Pre-commit validation
686
+ node .aios-core/utils/aios-validator.js pre-push # Pre-push validation
687
+ node .aios-core/utils/aios-validator.js stories # Validate all stories
688
+ ```
689
+
690
+ ### Branch Protection
691
+
692
+ Configure master branch protection with:
693
+
694
+ ```bash
695
+ node scripts/setup-branch-protection.js
696
+ ```
697
+
698
+ Requires:
699
+
700
+ - GitHub CLI (gh) installed and authenticated
701
+ - Admin access to the repository
702
+
703
+ ## Contributing
704
+
705
+ **We're excited about contributions and welcome your ideas, improvements, and Squads!** 🎉
706
+
707
+ To contribute:
708
+
709
+ 1. Fork the repository
710
+ 2. Create a branch for your feature (`git checkout -b feature/MyNewFeature`)
711
+ 3. Commit your changes (`git commit -m 'feat: Add new feature'`)
712
+ 4. Push to the branch (`git push origin feature/MyNewFeature`)
713
+ 5. Open a Pull Request
714
+
715
+ See also:
716
+
717
+ - 📋 [How to Contribute with Pull Requests](docs/how-to-contribute-with-pull-requests.md)
718
+ - 📋 [Git Workflow Guide](docs/git-workflow-guide.md)
719
+
720
+ ## 📄 Legal
721
+
722
+ | Document | English | Português |
723
+ | --------------------- | ------------------------------------------- | ------------------------------------- |
724
+ | **License** | [MIT License](LICENSE) | - |
725
+ | **License Model** | [Core vs Pro](docs/legal/license-clarification.md) | - |
726
+ | **Privacy** | [Privacy Policy](docs/legal/privacy.md) | - |
727
+ | **Terms of Use** | [Terms of Use](docs/legal/terms.md) | - |
728
+ | **Code of Conduct** | [Code of Conduct](CODE_OF_CONDUCT.md) | [PT-BR](docs/pt/code-of-conduct.md) |
729
+ | **Contributing** | [Contributing](CONTRIBUTING.md) | [PT-BR](docs/pt/contributing.md) |
730
+ | **Security** | [Security](docs/security.md) | [PT-BR](docs/pt/security.md) |
731
+ | **Community** | [Community](docs/community.md) | [PT-BR](docs/pt/community.md) |
732
+ | **Roadmap** | [Roadmap](docs/roadmap.md) | [PT-BR](docs/pt/roadmap.md) |
733
+ | **Changelog** | [Version History](CHANGELOG.md) | - |
734
+
735
+ ## Acknowledgments
736
+
737
+ This project was originally derived from the [BMad Method](https://github.com/bmad-code-org/BMAD-METHOD) by [Brian Madison](https://github.com/bmadcode). We thank Brian and all BMad Method contributors for the original work that made this project possible.
738
+
739
+ **Note:** Some contributors shown in the GitHub contributors graph are inherited from the original BMad Method git history and do not represent active participation in or endorsement of Synkra AIOS.
740
+
741
+ [![Contributors](https://contrib.rocks/image?repo=SynkraAI/aios-core)](https://github.com/SynkraAI/aios-core/graphs/contributors)
742
+
743
+ <sub>Built with ❤️ for the AI-assisted development community</sub>
744
+
745
+ ---
746
+
747
+ **[⬆ Back to top](#synkra-aios-universal-ai-agent-framework-)**