arkaos 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +318 -107
- package/VERSION +1 -1
- package/config/hooks/cwd-changed.ps1 +144 -0
- package/config/hooks/post-tool-use.ps1 +347 -0
- package/config/hooks/post-tool-use.sh +6 -6
- package/config/hooks/pre-compact.ps1 +238 -0
- package/config/hooks/pre-compact.sh +10 -6
- package/config/hooks/session-start.ps1 +109 -0
- package/config/hooks/session-start.sh +1 -1
- package/config/hooks/user-prompt-submit.ps1 +287 -0
- package/config/hooks/user-prompt-submit.sh +5 -2
- package/config/statusline.ps1 +160 -0
- package/core/cognition/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/capture/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/capture/__pycache__/collector.cpython-313.pyc +0 -0
- package/core/cognition/capture/__pycache__/store.cpython-313.pyc +0 -0
- package/core/cognition/insights/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/insights/__pycache__/store.cpython-313.pyc +0 -0
- package/core/cognition/memory/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/memory/__pycache__/obsidian.cpython-313.pyc +0 -0
- package/core/cognition/memory/__pycache__/schemas.cpython-313.pyc +0 -0
- package/core/cognition/memory/__pycache__/vector.cpython-313.pyc +0 -0
- package/core/cognition/memory/__pycache__/writer.cpython-313.pyc +0 -0
- package/core/cognition/research/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/research/__pycache__/profiler.cpython-313.pyc +0 -0
- package/core/cognition/scheduler/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/cognition/scheduler/__pycache__/cli.cpython-313.pyc +0 -0
- package/core/cognition/scheduler/__pycache__/daemon.cpython-313.pyc +0 -0
- package/core/cognition/scheduler/__pycache__/platform.cpython-313.pyc +0 -0
- package/core/cognition/scheduler/daemon.py +77 -21
- package/core/cognition/scheduler/platform.py +43 -12
- package/core/knowledge/__pycache__/vector_store.cpython-313.pyc +0 -0
- package/core/knowledge/vector_store.py +50 -25
- package/core/synapse/__pycache__/layers.cpython-313.pyc +0 -0
- package/core/synapse/layers.py +2 -2
- package/installer/adapters/claude-code.js +72 -45
- package/installer/cli.js +19 -6
- package/installer/doctor.js +130 -18
- package/installer/index.js +592 -149
- package/installer/platform.js +20 -0
- package/installer/prompts.js +109 -5
- package/installer/python-resolver.js +251 -0
- package/installer/update.js +497 -62
- package/package.json +1 -1
- package/pyproject.toml +2 -2
- package/scripts/start-dashboard.ps1 +271 -0
package/README.md
CHANGED
|
@@ -1,179 +1,390 @@
|
|
|
1
1
|
# ArkaOS
|
|
2
2
|
|
|
3
|
-
**The Operating System for AI Agent Teams.**
|
|
3
|
+
**The Operating System for AI Agent Teams.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
106 agents. 17 departments. 250+ skills. Enterprise frameworks. Multi-runtime. One install.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
6
8
|
npx arkaos install
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
[](https://www.npmjs.com/package/arkaos) [](LICENSE) []()
|
|
12
|
+
|
|
13
|
+
---
|
|
10
14
|
|
|
11
|
-
##
|
|
15
|
+
## Why ArkaOS
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
Every AI coding tool gives you **one developer agent**. ArkaOS gives you **an entire company**.
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
Marketing teams. Brand designers. Financial analysts. Strategy consultants. Security auditors. E-commerce specialists. Content creators. Sales negotiators. Project managers. Quality reviewers. All working together, following enterprise workflows, with mandatory quality gates.
|
|
16
20
|
|
|
21
|
+
And now, with the **Cognitive Layer** (v2.10), ArkaOS **learns from experience**. It remembers solutions across projects, critiques its own work every night, and researches updates about your tech stack while you sleep.
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
You: "add stripe subscription billing"
|
|
25
|
+
|
|
26
|
+
ArkaOS: → Routes to Development department
|
|
27
|
+
→ Paulo (Tech Lead) plans the feature
|
|
28
|
+
→ Ana (Backend) implements with TDD
|
|
29
|
+
→ Sofia (Security) audits for OWASP Top 10
|
|
30
|
+
→ Quality Gate: Marta reviews, Eduardo checks docs, Francisca verifies code
|
|
31
|
+
→ Delivers: tested, secure, documented implementation
|
|
17
32
|
```
|
|
18
|
-
You: "validate my saas idea for a scheduling tool"
|
|
19
33
|
|
|
20
|
-
ArkaOS: → Routes to SaaS department
|
|
21
|
-
→ Tiago (SaaS Strategist) leads validation workflow
|
|
22
|
-
→ Market sizing, competitor analysis, business model, pricing
|
|
23
|
-
→ Financial viability check by Leonor (Financial Analyst)
|
|
24
|
-
→ Quality Gate: Marta, Eduardo, Francisca review
|
|
25
|
-
→ Delivers: validated report with go/no-go recommendation
|
|
26
34
|
```
|
|
35
|
+
You: "create a go-to-market plan for my SaaS"
|
|
36
|
+
|
|
37
|
+
ArkaOS: → Routes to Strategy + Marketing + SaaS departments
|
|
38
|
+
→ Tomas (Strategist) builds competitive analysis
|
|
39
|
+
→ Luna (Growth) designs acquisition funnels
|
|
40
|
+
→ Tiago (SaaS) models PLG metrics and pricing
|
|
41
|
+
→ Quality Gate ensures Silicon Valley-grade output
|
|
42
|
+
→ Delivers: complete GTM plan with financial projections
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Quick Start
|
|
48
|
+
|
|
49
|
+
### Prerequisites
|
|
50
|
+
|
|
51
|
+
- **Node.js 18+** (or Bun)
|
|
52
|
+
- **Python 3.11+**
|
|
53
|
+
- One of: [Claude Code](https://claude.ai/code), [Codex CLI](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli), or [Cursor](https://cursor.com)
|
|
54
|
+
|
|
55
|
+
### Install
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx arkaos install
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The installer auto-detects your runtime and configures everything:
|
|
62
|
+
- Python dependencies (Pydantic, PyYAML, Rich, Click)
|
|
63
|
+
- Hook system (5 hooks for session management)
|
|
64
|
+
- Skills (250+ department commands)
|
|
65
|
+
- Cognitive Layer scheduler (Dreaming + Research)
|
|
27
66
|
|
|
28
|
-
|
|
67
|
+
Prefer a specific runtime?
|
|
29
68
|
|
|
30
69
|
```bash
|
|
31
|
-
npx arkaos install # auto-detects runtime
|
|
32
70
|
npx arkaos install --runtime claude-code
|
|
33
71
|
npx arkaos install --runtime codex
|
|
34
72
|
npx arkaos install --runtime gemini
|
|
35
73
|
npx arkaos install --runtime cursor
|
|
36
74
|
```
|
|
37
75
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| SaaS | `/saas` | 3 | 15 | Validation, metrics, PLG, scaffolding |
|
|
56
|
-
| Landing Pages | `/landing` | 4 | 15 | Sales copy, funnels, offers, page generation |
|
|
57
|
-
| Content | `/content` | 4 | 14 | Viral design, hooks, scripts, repurposing |
|
|
58
|
-
| Communities | `/community` | 2 | 14 | Groups, membership, gamification |
|
|
59
|
-
| Sales | `/sales` | 2 | 10 | Pipeline, SPIN selling, negotiation |
|
|
60
|
-
| Leadership | `/lead` | 2 | 10 | Team health, OKRs, culture, hiring |
|
|
61
|
-
| Organization | `/org` | 1 | 10 | Org design, team topologies |
|
|
62
|
-
| **Quality Gate** | (auto) | 3 | — | Mandatory on every workflow. Veto power. |
|
|
76
|
+
### Update
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Step 1: Update core (terminal)
|
|
80
|
+
npx arkaos@latest update
|
|
81
|
+
|
|
82
|
+
# Step 2: Sync projects (inside your AI tool)
|
|
83
|
+
/arka update
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Verify
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
npx arkaos doctor # Health check
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
63
93
|
|
|
64
94
|
## How It Works
|
|
65
95
|
|
|
66
|
-
|
|
96
|
+
### 1. You describe what you need
|
|
97
|
+
|
|
98
|
+
In plain language. No special syntax required.
|
|
99
|
+
|
|
100
|
+
### 2. ArkaOS routes to the right squad
|
|
101
|
+
|
|
102
|
+
The Synapse engine (8-layer context injection in <1ms) analyzes your request and routes it to the correct department. Each department has a lead agent who orchestrates specialists.
|
|
103
|
+
|
|
104
|
+
### 3. Agents execute with enterprise frameworks
|
|
105
|
+
|
|
106
|
+
Not generic prompts. Validated methodologies:
|
|
107
|
+
|
|
108
|
+
| Area | Frameworks Used |
|
|
109
|
+
|------|----------------|
|
|
110
|
+
| Development | Clean Code, SOLID, DDD, TDD, DORA, OWASP |
|
|
111
|
+
| Strategy | Porter's Five Forces, Blue Ocean, BMC, Wardley Maps |
|
|
112
|
+
| Finance | DCF Valuation, Unit Economics, COSO ERM |
|
|
113
|
+
| Marketing | AARRR, Growth Loops, PLG, STEPPS |
|
|
114
|
+
| Brand | Primal Branding, StoryBrand, 12 Archetypes |
|
|
115
|
+
| E-Commerce | ResearchXL, RFM, Baymard, MACH |
|
|
116
|
+
| Compliance | GDPR, ISO 27001, SOC 2, ISO 31000 |
|
|
117
|
+
|
|
118
|
+
### 4. Quality Gate reviews everything
|
|
119
|
+
|
|
120
|
+
Nothing reaches you without review by three agents:
|
|
121
|
+
- **Marta** (CQO) — orchestrates, issues final APPROVED/REJECTED
|
|
122
|
+
- **Eduardo** — text quality: spelling, grammar, tone, zero AI cliches
|
|
123
|
+
- **Francisca** — technical quality: code, tests, UX, security
|
|
124
|
+
|
|
125
|
+
### 5. Knowledge persists
|
|
126
|
+
|
|
127
|
+
Every decision, solution, and pattern is captured. The Cognitive Layer curates it overnight. Tomorrow, ArkaOS is smarter than today.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 17 Departments
|
|
132
|
+
|
|
133
|
+
| Department | Prefix | Agents | What It Does |
|
|
134
|
+
|-----------|--------|--------|-------------|
|
|
135
|
+
| **Development** | `/dev` | 10 | Full-stack features, APIs, architecture, security, CI/CD |
|
|
136
|
+
| **Marketing** | `/mkt` | 4 | SEO, paid ads, email campaigns, growth loops |
|
|
137
|
+
| **Brand & Design** | `/brand` | 4 | Brand identity, UX/UI, design systems, naming |
|
|
138
|
+
| **Finance** | `/fin` | 3 | DCF valuation, unit economics, budgets, investor prep |
|
|
139
|
+
| **Strategy** | `/strat` | 3 | Market analysis, competitive intelligence, business models |
|
|
140
|
+
| **E-Commerce** | `/ecom` | 4 | Store optimization, CRO, pricing, RFM segmentation |
|
|
141
|
+
| **Knowledge** | `/kb` | 3 | Research, Zettelkasten, persona building, ingestion |
|
|
142
|
+
| **Operations** | `/ops` | 4 | Automation, SOPs, compliance (GDPR, ISO, SOC 2) |
|
|
143
|
+
| **Project Mgmt** | `/pm` | 3 | Scrum, Shape Up, discovery, roadmaps |
|
|
144
|
+
| **SaaS** | `/saas` | 4 | Idea validation, metrics, PLG strategy, scaffolding |
|
|
145
|
+
| **Landing Pages** | `/landing` | 4 | Sales copy, funnels, offers, page generation |
|
|
146
|
+
| **Content** | `/content` | 4 | Viral hooks, scripts, repurposing, content calendars |
|
|
147
|
+
| **Communities** | `/community` | 2 | Groups, membership, gamification, engagement |
|
|
148
|
+
| **Sales** | `/sales` | 2 | Pipeline management, SPIN selling, negotiation |
|
|
149
|
+
| **Leadership** | `/lead` | 2 | Team health, OKRs, culture, hiring frameworks |
|
|
150
|
+
| **Organization** | `/org` | 1 | Org design, team topologies, matrix structure |
|
|
151
|
+
| **Quality Gate** | (auto) | 3 | Mandatory review on every workflow. Veto power. |
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Cognitive Layer (v2.10)
|
|
156
|
+
|
|
157
|
+
ArkaOS doesn't just execute — it **learns, dreams, and researches**.
|
|
158
|
+
|
|
159
|
+
### Institutional Memory
|
|
160
|
+
|
|
161
|
+
Every solution you implement is captured and indexed. When you need authentication in a new Laravel project, ArkaOS already knows how you did it in the last three projects — with the exact pattern, configuration, and lessons learned.
|
|
162
|
+
|
|
163
|
+
- **Dual-write**: Obsidian (human-readable) + Vector DB (semantic search)
|
|
164
|
+
- **Cross-project**: Knowledge from Rockport applies to ClubeFashion
|
|
165
|
+
- **Confidence scoring**: Patterns validated 3+ times become "validated patterns"
|
|
166
|
+
|
|
167
|
+
### Dreaming (runs at 02:00)
|
|
168
|
+
|
|
169
|
+
Every night, ArkaOS reviews the entire day:
|
|
170
|
+
|
|
171
|
+
- **Self-critique**: "Did I do this the best way? Was there a simpler approach?"
|
|
172
|
+
- **Pattern detection**: Promotes recurring solutions to validated patterns
|
|
173
|
+
- **Anti-pattern detection**: Flags repeated mistakes
|
|
174
|
+
- **Strategic reflection**: "Does this serve the business or just the developer?"
|
|
175
|
+
- **Actionable insights**: Concrete recommendations per project
|
|
176
|
+
|
|
177
|
+
When you open a project the next morning:
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
Pending reflections from Dreaming:
|
|
181
|
+
|
|
182
|
+
1. [business] Offer model — rethink
|
|
183
|
+
The offers table doesn't consider volume pricing tiers.
|
|
184
|
+
Shopify B2B uses min_qty + tier_price for 23% higher conversion.
|
|
185
|
+
|
|
186
|
+
2. [technical] Sync retry — improve
|
|
187
|
+
Fixed backoff can cause thundering herd. Use exponential
|
|
188
|
+
backoff with jitter (validated pattern from Rockport).
|
|
67
189
|
|
|
190
|
+
Want me to elaborate?
|
|
68
191
|
```
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
192
|
+
|
|
193
|
+
### Research (runs at 05:00)
|
|
194
|
+
|
|
195
|
+
Every morning, ArkaOS researches updates relevant to your work:
|
|
196
|
+
|
|
197
|
+
- **Stack-aware**: Laravel security patches, Nuxt 4 migration guides, Python releases
|
|
198
|
+
- **Domain-aware**: E-commerce trends, AI/ML updates, industry news
|
|
199
|
+
- **Business-aware**: Competitor moves, market opportunities, funding trends
|
|
200
|
+
- **Adaptive**: Infers your profile from active projects — no manual configuration
|
|
201
|
+
|
|
75
202
|
```
|
|
203
|
+
Intelligence Briefing — 2026-04-10
|
|
76
204
|
|
|
77
|
-
|
|
205
|
+
ACTION REQUIRED:
|
|
206
|
+
- Laravel 12.1.3 security patch — SQL injection in whereHas.
|
|
207
|
+
Affects: ClubeFashion, Fovory. Fix: composer update laravel/framework.
|
|
78
208
|
|
|
79
|
-
|
|
209
|
+
OPPORTUNITIES:
|
|
210
|
+
- Shopify Winter '26 bulk product API — Fovory sync could be 10x faster.
|
|
211
|
+
- Nuxt 4 RC2 migration guide published — start preparing ZugaTV.
|
|
80
212
|
|
|
81
|
-
|
|
213
|
+
COMPETITOR WATCH:
|
|
214
|
+
- CrewAI v3 launched memory layer — similar to our Cognitive Layer
|
|
215
|
+
but without dual-write. ArkaOS is ahead.
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Cross-Platform Scheduler
|
|
219
|
+
|
|
220
|
+
The scheduler works on macOS, Linux, and Windows:
|
|
82
221
|
|
|
83
222
|
```bash
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
python scripts/tools/tech_debt_analyzer.py src/ --json
|
|
89
|
-
python scripts/tools/saas_metrics.py --new-mrr 50000 --json
|
|
90
|
-
python scripts/tools/brand_voice_analyzer.py content.txt --json
|
|
91
|
-
python scripts/tools/okr_cascade.py growth --json
|
|
223
|
+
arkaos scheduler status # Check status
|
|
224
|
+
arkaos scheduler run dreaming # Run manually
|
|
225
|
+
arkaos scheduler run research # Run manually
|
|
226
|
+
arkaos scheduler logs # View logs
|
|
92
227
|
```
|
|
93
228
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Every agent has a behavioral profile from 4 frameworks:
|
|
229
|
+
---
|
|
97
230
|
|
|
98
|
-
|
|
99
|
-
- **Enneagram** — What motivates them (9 types with wings)
|
|
100
|
-
- **Big Five** — Personality traits (0-100 scale)
|
|
101
|
-
- **MBTI** — How they process information
|
|
231
|
+
## Ecosystem Management
|
|
102
232
|
|
|
103
|
-
|
|
233
|
+
ArkaOS manages client projects as **ecosystems** — groups of related projects with dedicated squads.
|
|
104
234
|
|
|
105
|
-
|
|
235
|
+
```
|
|
236
|
+
/rockport → Rockport ecosystem (4 projects: API, frontend, admin, docs)
|
|
237
|
+
/fovory → Fovory ecosystem (supplier sync + Shopify theme)
|
|
238
|
+
/clubefashion → ClubeFashion (6 projects: CRM, store, API, migration...)
|
|
239
|
+
/edp → EDP (3 projects: portal, API, analytics)
|
|
240
|
+
```
|
|
106
241
|
|
|
107
|
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
242
|
+
Each ecosystem gets:
|
|
243
|
+
- A dedicated squad with specialized roles
|
|
244
|
+
- Project-specific context loaded automatically when you `cd` into the project
|
|
245
|
+
- Overnight insights tailored to that ecosystem's domain
|
|
246
|
+
- Knowledge that compounds across all projects in the ecosystem
|
|
110
247
|
|
|
111
|
-
|
|
248
|
+
---
|
|
112
249
|
|
|
113
250
|
## The Conclave
|
|
114
251
|
|
|
115
|
-
|
|
252
|
+
Your personal AI advisory board. 20 real-world advisor personas — Munger, Dalio, Bezos, Naval, Jobs, Sinek, and more — matched to your behavioral DNA.
|
|
116
253
|
|
|
117
254
|
```
|
|
118
|
-
/arka conclave #
|
|
119
|
-
/arka conclave ask # Ask all advisors
|
|
120
|
-
/arka conclave debate #
|
|
255
|
+
/arka conclave # 17-question profiling to build your board
|
|
256
|
+
/arka conclave ask # Ask all advisors a question
|
|
257
|
+
/arka conclave debate # Watch advisors debate a topic
|
|
121
258
|
```
|
|
122
259
|
|
|
123
|
-
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Agent DNA
|
|
263
|
+
|
|
264
|
+
Every agent has a complete behavioral profile from 4 psychological frameworks:
|
|
124
265
|
|
|
125
|
-
|
|
266
|
+
| Framework | What It Defines | Example (Paulo, Tech Lead) |
|
|
267
|
+
|-----------|----------------|---------------------------|
|
|
268
|
+
| **DISC** | Communication style | D: 85, I: 60, S: 40, C: 75 |
|
|
269
|
+
| **Enneagram** | Core motivation | Type 5w6 (Investigator) |
|
|
270
|
+
| **Big Five** | Personality traits | O:88 C:92 E:55 A:65 N:22 |
|
|
271
|
+
| **MBTI** | Information processing | INTJ |
|
|
126
272
|
|
|
127
|
-
|
|
128
|
-
|------|-----------|
|
|
129
|
-
| Development | Clean Code, SOLID, DDD, TDD, DORA, OWASP, MITRE ATT&CK |
|
|
130
|
-
| Branding | Primal Branding, StoryBrand, 12 Archetypes, Positioning |
|
|
131
|
-
| Strategy | Porter's Five Forces, Blue Ocean, BMC, Wardley Maps, 7 Powers |
|
|
132
|
-
| Finance | DCF Valuation, Unit Economics, COSO ERM, ALE Risk Quantification |
|
|
133
|
-
| Marketing | AARRR, Growth Loops, Schwartz 5 Levels, PLG, STEPPS |
|
|
134
|
-
| Compliance | GDPR, ISO 27001, SOC 2, ISO 31000, ISO 9001 |
|
|
135
|
-
| PM | Scrum, Kanban, Shape Up, Continuous Discovery, RICE |
|
|
273
|
+
This isn't cosmetic — it affects how agents collaborate, what they prioritize, and how they communicate. A high-D agent pushes for speed. A high-C agent insists on thoroughness. The tension produces better outcomes.
|
|
136
274
|
|
|
137
|
-
|
|
275
|
+
---
|
|
138
276
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
277
|
+
## Python CLI Tools
|
|
278
|
+
|
|
279
|
+
8 standalone tools for quantitative analysis. No dependencies beyond stdlib.
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
python scripts/tools/headline_scorer.py "10x Your Revenue" --json
|
|
283
|
+
python scripts/tools/seo_checker.py page.html --json
|
|
284
|
+
python scripts/tools/dcf_calculator.py --revenue 1000000 --growth 20 --json
|
|
285
|
+
python scripts/tools/rice_prioritizer.py features.json --json
|
|
286
|
+
python scripts/tools/saas_metrics.py --new-mrr 50000 --json
|
|
287
|
+
python scripts/tools/tech_debt_analyzer.py src/ --json
|
|
288
|
+
python scripts/tools/brand_voice_analyzer.py content.txt --json
|
|
289
|
+
python scripts/tools/okr_cascade.py growth --json
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Multi-Runtime Support
|
|
295
|
+
|
|
296
|
+
| Runtime | Status | Features |
|
|
297
|
+
|---------|--------|----------|
|
|
298
|
+
| **Claude Code** | Primary | Hooks, subagents, MCP, 1M context |
|
|
299
|
+
| **Codex CLI** | Supported | Subagents, sandboxed execution |
|
|
300
|
+
| **Gemini CLI** | Supported | Subagents, MCP, 1M context |
|
|
301
|
+
| **Cursor** | Supported | Agent mode, MCP |
|
|
302
|
+
|
|
303
|
+
---
|
|
145
304
|
|
|
146
305
|
## Architecture
|
|
147
306
|
|
|
148
307
|
```
|
|
149
308
|
User Input
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
309
|
+
│
|
|
310
|
+
▼
|
|
311
|
+
Synapse v2 (8-layer context injection, <1ms, cached)
|
|
312
|
+
│
|
|
313
|
+
▼
|
|
153
314
|
Orchestrator (/do → department routing)
|
|
154
|
-
|
|
315
|
+
│
|
|
316
|
+
▼
|
|
155
317
|
Squad (YAML workflow with phases and gates)
|
|
156
|
-
|
|
318
|
+
│
|
|
319
|
+
▼
|
|
157
320
|
Quality Gate (Marta + Eduardo + Francisca)
|
|
158
|
-
|
|
321
|
+
│
|
|
322
|
+
▼
|
|
323
|
+
Cognitive Layer (capture → dual-write → insights)
|
|
324
|
+
│
|
|
325
|
+
▼
|
|
159
326
|
Output (Obsidian vault + structured deliverables)
|
|
160
327
|
```
|
|
161
328
|
|
|
162
|
-
|
|
329
|
+
### Core Systems
|
|
330
|
+
|
|
331
|
+
| System | Purpose |
|
|
332
|
+
|--------|---------|
|
|
333
|
+
| **Synapse v2** | 8-layer context injection (<1ms, with caching) |
|
|
334
|
+
| **Workflow Engine** | YAML workflows with phases, gates, parallelization |
|
|
335
|
+
| **Agent Schema** | 4-framework behavioral DNA with consistency validation |
|
|
336
|
+
| **Squad Framework** | Department squads + ad-hoc project squads (matrix) |
|
|
337
|
+
| **Cognitive Layer** | Memory, Dreaming, Research, Scheduler |
|
|
338
|
+
| **Living Specs** | Bidirectional spec/code sync |
|
|
339
|
+
| **Governance** | Constitution with 14 non-negotiable rules |
|
|
340
|
+
| **Multi-Runtime** | Claude Code, Codex, Gemini, Cursor adapters |
|
|
341
|
+
|
|
342
|
+
### Tech Stack
|
|
343
|
+
|
|
344
|
+
| Component | Technology |
|
|
345
|
+
|-----------|-----------|
|
|
346
|
+
| Core Engine | Python 3.11+ (Pydantic, PyYAML, Rich) |
|
|
347
|
+
| Installer | Node.js/Bun (ESM) |
|
|
348
|
+
| Hooks | Bash |
|
|
349
|
+
| Workflows | YAML |
|
|
350
|
+
| Agent Definitions | YAML |
|
|
351
|
+
| Knowledge | Obsidian + SQLite-VSS |
|
|
352
|
+
| Tests | pytest (1,993 tests) |
|
|
163
353
|
|
|
164
|
-
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## Documentation
|
|
357
|
+
|
|
358
|
+
Full documentation is available on the **[GitHub Wiki](https://github.com/andreagroferreira/arka-os/wiki)**:
|
|
359
|
+
|
|
360
|
+
- [Getting Started](https://github.com/andreagroferreira/arka-os/wiki/Getting-Started)
|
|
361
|
+
- [Installation Guide](https://github.com/andreagroferreira/arka-os/wiki/Installation)
|
|
362
|
+
- [Departments & Agents](https://github.com/andreagroferreira/arka-os/wiki/Departments)
|
|
363
|
+
- [Cognitive Layer](https://github.com/andreagroferreira/arka-os/wiki/Cognitive-Layer)
|
|
364
|
+
- [Ecosystem Management](https://github.com/andreagroferreira/arka-os/wiki/Ecosystems)
|
|
365
|
+
- [Configuration](https://github.com/andreagroferreira/arka-os/wiki/Configuration)
|
|
366
|
+
- [Creating Projects](https://github.com/andreagroferreira/arka-os/wiki/Creating-Projects)
|
|
367
|
+
- [Update & Sync](https://github.com/andreagroferreira/arka-os/wiki/Update-and-Sync)
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## CLI Reference
|
|
165
372
|
|
|
166
373
|
```bash
|
|
167
|
-
npx arkaos install
|
|
168
|
-
npx arkaos update
|
|
169
|
-
npx arkaos migrate
|
|
170
|
-
npx arkaos doctor
|
|
171
|
-
npx arkaos
|
|
374
|
+
npx arkaos install # Fresh install (auto-detects runtime)
|
|
375
|
+
npx arkaos update # Update to latest version
|
|
376
|
+
npx arkaos migrate # Migrate from v1
|
|
377
|
+
npx arkaos doctor # Health check
|
|
378
|
+
npx arkaos dashboard # Start monitoring dashboard
|
|
379
|
+
npx arkaos keys # Manage API keys
|
|
380
|
+
npx arkaos uninstall # Remove ArkaOS
|
|
172
381
|
```
|
|
173
382
|
|
|
383
|
+
---
|
|
384
|
+
|
|
174
385
|
## Contributing
|
|
175
386
|
|
|
176
|
-
See [CONTRIBUTING.md](.github/CONTRIBUTING.md). PRs welcome — all changes require review.
|
|
387
|
+
See [CONTRIBUTING.md](.github/CONTRIBUTING.md). PRs welcome — all changes require passing the full test suite (1,993 tests) and Quality Gate review.
|
|
177
388
|
|
|
178
389
|
## License
|
|
179
390
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.11.0
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# ArkaOS — CwdChanged Hook (Windows / PowerShell 5.1+)
|
|
3
|
+
#
|
|
4
|
+
# Port of config/hooks/cwd-changed.sh. Fires when the working directory
|
|
5
|
+
# changes. Detects ecosystem and stack so Claude knows which squad and
|
|
6
|
+
# tooling apply to the project.
|
|
7
|
+
#
|
|
8
|
+
# Contract:
|
|
9
|
+
# - Reads a JSON object on stdin with a `cwd` field.
|
|
10
|
+
# - Emits `{"additionalContext": "..."}` on stdout when context is found,
|
|
11
|
+
# or nothing (and exit 0) when there is nothing to say.
|
|
12
|
+
# ============================================================================
|
|
13
|
+
|
|
14
|
+
$ErrorActionPreference = 'Stop'
|
|
15
|
+
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)
|
|
16
|
+
|
|
17
|
+
# ─── Read hook payload from stdin (with empty-stdin fallback) ─────────
|
|
18
|
+
# On Claude Code Windows v2.1.97 the hook pipe is opened but the parent
|
|
19
|
+
# writes zero bytes before closing — every hook gets empty stdin on
|
|
20
|
+
# Windows. Instead of silent-exiting, fall back to `$env:CLAUDE_PROJECT_DIR`
|
|
21
|
+
# (the one env var CC Windows does set on hook invocations) and run the
|
|
22
|
+
# normal ecosystem / stack detection against it. This means a Windows
|
|
23
|
+
# user who `cd`s into a different project inside Claude Code still gets
|
|
24
|
+
# the [arka:project-context] line based on the project root CC knows
|
|
25
|
+
# about, even with the stdin delivery bug.
|
|
26
|
+
$stdinText = [Console]::In.ReadToEnd()
|
|
27
|
+
$newCwd = $null
|
|
28
|
+
|
|
29
|
+
if (-not [string]::IsNullOrWhiteSpace($stdinText)) {
|
|
30
|
+
try {
|
|
31
|
+
$payload = $stdinText | ConvertFrom-Json
|
|
32
|
+
if ($payload.cwd) { $newCwd = [string]$payload.cwd }
|
|
33
|
+
} catch {
|
|
34
|
+
# Malformed payload — fall through to the env-var fallback.
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if ([string]::IsNullOrWhiteSpace($newCwd) -and $env:CLAUDE_PROJECT_DIR) {
|
|
39
|
+
$newCwd = $env:CLAUDE_PROJECT_DIR
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if ([string]::IsNullOrWhiteSpace($newCwd)) { exit 0 }
|
|
43
|
+
if (-not (Test-Path -LiteralPath $newCwd -PathType Container)) { exit 0 }
|
|
44
|
+
|
|
45
|
+
# ─── Detect ecosystem from ecosystems.json ─────────────────────────────
|
|
46
|
+
$ecosystemsFile = Join-Path $env:USERPROFILE '.claude\skills\arka\knowledge\ecosystems.json'
|
|
47
|
+
$ecosystem = ''
|
|
48
|
+
$ecosystemName = ''
|
|
49
|
+
|
|
50
|
+
if (Test-Path -LiteralPath $ecosystemsFile) {
|
|
51
|
+
try {
|
|
52
|
+
$eco = Get-Content -Raw -LiteralPath $ecosystemsFile -Encoding UTF8 | ConvertFrom-Json
|
|
53
|
+
if ($eco.ecosystems) {
|
|
54
|
+
# Pass 1: substring match of any project name in the cwd path.
|
|
55
|
+
foreach ($ecoProp in $eco.ecosystems.PSObject.Properties) {
|
|
56
|
+
$ecoId = $ecoProp.Name
|
|
57
|
+
$ecoObj = $ecoProp.Value
|
|
58
|
+
$projects = @($ecoObj.projects)
|
|
59
|
+
foreach ($proj in $projects) {
|
|
60
|
+
if ($proj -and $newCwd.Contains([string]$proj)) {
|
|
61
|
+
$ecosystem = $ecoId
|
|
62
|
+
$ecosystemName = if ($ecoObj.name) { [string]$ecoObj.name } else { $ecoId }
|
|
63
|
+
break
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if ($ecosystem) { break }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
# Pass 2: if the path looks Herd-hosted, match by directory basename.
|
|
70
|
+
if (-not $ecosystem -and $newCwd -match 'herd') {
|
|
71
|
+
$dirName = Split-Path -Leaf $newCwd.TrimEnd('\','/')
|
|
72
|
+
foreach ($ecoProp in $eco.ecosystems.PSObject.Properties) {
|
|
73
|
+
$ecoId = $ecoProp.Name
|
|
74
|
+
$ecoObj = $ecoProp.Value
|
|
75
|
+
$projects = @($ecoObj.projects)
|
|
76
|
+
foreach ($proj in $projects) {
|
|
77
|
+
if ($proj -eq $dirName) {
|
|
78
|
+
$ecosystem = $ecoId
|
|
79
|
+
$ecosystemName = if ($ecoObj.name) { [string]$ecoObj.name } else { $ecoId }
|
|
80
|
+
break
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if ($ecosystem) { break }
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
} catch {
|
|
88
|
+
# Malformed ecosystems.json — degrade gracefully.
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
# ─── Detect stack ──────────────────────────────────────────────────────
|
|
93
|
+
$stack = 'unknown'
|
|
94
|
+
|
|
95
|
+
$composerJson = Join-Path $newCwd 'composer.json'
|
|
96
|
+
$packageJson = Join-Path $newCwd 'package.json'
|
|
97
|
+
$pyprojectToml = Join-Path $newCwd 'pyproject.toml'
|
|
98
|
+
|
|
99
|
+
if (Test-Path -LiteralPath $composerJson) {
|
|
100
|
+
$stack = 'laravel'
|
|
101
|
+
} elseif (Test-Path -LiteralPath $packageJson) {
|
|
102
|
+
try {
|
|
103
|
+
$pkgText = Get-Content -Raw -LiteralPath $packageJson -Encoding UTF8
|
|
104
|
+
if ($pkgText -like '*"nuxt"*') { $stack = 'nuxt' }
|
|
105
|
+
elseif ($pkgText -like '*"next"*') { $stack = 'nextjs' }
|
|
106
|
+
elseif ($pkgText -like '*"react"*') { $stack = 'react' }
|
|
107
|
+
elseif ($pkgText -like '*"vue"*') { $stack = 'vue' }
|
|
108
|
+
else { $stack = 'node' }
|
|
109
|
+
} catch {
|
|
110
|
+
$stack = 'node'
|
|
111
|
+
}
|
|
112
|
+
} elseif (Test-Path -LiteralPath $pyprojectToml) {
|
|
113
|
+
$stack = 'python'
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
# ─── Check for project descriptor ─────────────────────────────────────
|
|
117
|
+
$dirName = Split-Path -Leaf $newCwd.TrimEnd('\','/')
|
|
118
|
+
$projectsDir = Join-Path $env:USERPROFILE '.claude\skills\arka\projects'
|
|
119
|
+
$descriptorFile = Join-Path $projectsDir "$dirName.md"
|
|
120
|
+
$descriptorDir = Join-Path (Join-Path $projectsDir $dirName) 'PROJECT.md'
|
|
121
|
+
|
|
122
|
+
$descriptor = ''
|
|
123
|
+
if (Test-Path -LiteralPath $descriptorFile) {
|
|
124
|
+
$descriptor = $descriptorFile
|
|
125
|
+
} elseif (Test-Path -LiteralPath $descriptorDir) {
|
|
126
|
+
$descriptor = $descriptorDir
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
# ─── Build context output ─────────────────────────────────────────────
|
|
130
|
+
$context = ''
|
|
131
|
+
|
|
132
|
+
if ($ecosystem) {
|
|
133
|
+
$context = "[arka:project-context] Ecosystem: $ecosystemName ($ecosystem) | Stack: $stack | Use /arka-$ecosystem for dedicated squad routing."
|
|
134
|
+
} elseif ($stack -ne 'unknown') {
|
|
135
|
+
$context = "[arka:project-context] Stack: $stack | No ecosystem assigned. Use /arka onboard to register this project."
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if ($descriptor) {
|
|
139
|
+
$context = "$context Descriptor: $descriptor"
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if ($context) {
|
|
143
|
+
[pscustomobject]@{ additionalContext = $context } | ConvertTo-Json -Compress
|
|
144
|
+
}
|