codymaster 4.6.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +74 -8
  2. package/README.md +192 -95
  3. package/dist/advisory-handoff.js +89 -0
  4. package/dist/advisory-report.js +105 -0
  5. package/dist/browse-server.js +251 -0
  6. package/dist/cli/command-registry.js +34 -0
  7. package/dist/cli/commands/agent.js +120 -0
  8. package/dist/cli/commands/bench.js +69 -0
  9. package/dist/cli/commands/brain.js +108 -0
  10. package/dist/cli/commands/dashboard.js +93 -0
  11. package/dist/cli/commands/design-studio.js +111 -0
  12. package/dist/cli/commands/distro.js +25 -0
  13. package/dist/cli/commands/engineering.js +596 -0
  14. package/dist/cli/commands/evolve.js +123 -0
  15. package/dist/cli/commands/mcp-serve.js +104 -0
  16. package/dist/cli/commands/project.js +324 -0
  17. package/dist/cli/commands/skill-chain.js +269 -0
  18. package/dist/cli/commands/system.js +89 -0
  19. package/dist/cli/commands/task.js +254 -0
  20. package/dist/cli/update-check.js +83 -0
  21. package/dist/cm-config.js +92 -0
  22. package/dist/cm-suggest.js +77 -0
  23. package/dist/codybench/judges/automated.js +31 -0
  24. package/dist/codybench/runners/claude-code.js +32 -0
  25. package/dist/codybench/suites/memory-retention.js +85 -0
  26. package/dist/codybench/suites/tdd-regression.js +35 -0
  27. package/dist/codybench/suites/token-efficiency.js +55 -0
  28. package/dist/codybench/types.js +2 -0
  29. package/dist/context-db.js +157 -0
  30. package/dist/continuity.js +2 -6
  31. package/dist/distro-validate.js +54 -0
  32. package/dist/execution-analyzer.js +138 -0
  33. package/dist/guardian-core.js +74 -0
  34. package/dist/index.js +36 -2759
  35. package/dist/indexer/skills-lib.js +533 -0
  36. package/dist/indexer/skills-map.js +1374 -0
  37. package/dist/indexer/skills.js +16 -0
  38. package/dist/learning-promoter.js +246 -0
  39. package/dist/mcp-context-server.js +289 -1
  40. package/dist/mcp-skills-tools.js +81 -0
  41. package/dist/retro-summary.js +70 -0
  42. package/dist/second-opinion-providers.js +79 -0
  43. package/dist/skill-chain.js +63 -1
  44. package/dist/skill-evolver.js +456 -0
  45. package/dist/skill-execution-cache.js +254 -0
  46. package/dist/smart-brain-router.js +184 -0
  47. package/dist/sprint-pipeline.js +228 -0
  48. package/dist/storage-backend.js +14 -67
  49. package/dist/token-budget.js +88 -0
  50. package/dist/utils/cli-utils.js +76 -0
  51. package/dist/utils/skill-utils.js +32 -0
  52. package/package.json +17 -7
  53. package/scripts/build-skills.mjs +51 -0
  54. package/scripts/gate-0-repo-hygiene.js +75 -0
  55. package/scripts/postinstall.js +34 -28
  56. package/scripts/security-scan.js +1 -1
  57. package/scripts/validate-skills.mjs +42 -0
  58. package/skills/CLAUDE.md +2 -7
  59. package/skills/_shared/helpers.md +2 -8
  60. package/skills/cm-ads-tracker/SKILL.md +3 -6
  61. package/skills/cm-browse/SKILL.md +34 -0
  62. package/skills/cm-conductor-worktrees/SKILL.md +28 -0
  63. package/skills/cm-content-factory/SKILL.md +1 -1
  64. package/skills/cm-content-factory/landing/docs/content/changelog.md +36 -0
  65. package/skills/cm-content-factory/landing/docs/content/deployment.md +46 -0
  66. package/skills/cm-content-factory/landing/docs/content/execution-flow.md +67 -0
  67. package/skills/cm-content-factory/landing/docs/content/memory-system.md +38 -0
  68. package/skills/cm-content-factory/landing/docs/content/openspace.md +27 -0
  69. package/skills/cm-content-factory/landing/docs/content/use-cases.md +26 -0
  70. package/skills/cm-content-factory/landing/docs/content/v5-intro.md +28 -0
  71. package/skills/cm-content-factory/landing/docs/index.html +240 -0
  72. package/skills/cm-content-factory/landing/index.html +100 -100
  73. package/skills/cm-content-factory/landing/script.js +42 -0
  74. package/skills/cm-content-factory/landing/translations.js +400 -400
  75. package/skills/cm-continuity/SKILL.md +32 -33
  76. package/skills/cm-design-studio/SKILL.md +34 -0
  77. package/skills/cm-ecosystem-roadmap/SKILL.md +15 -0
  78. package/skills/cm-engineering-meta/SKILL.md +73 -0
  79. package/skills/cm-growth-hacking/SKILL.md +1 -12
  80. package/skills/cm-guardian-runtime/SKILL.md +26 -0
  81. package/skills/cm-mcp-engineering/SKILL.md +22 -0
  82. package/skills/cm-notebooklm/SKILL.md +1 -17
  83. package/skills/cm-post-deploy-canary/SKILL.md +22 -0
  84. package/skills/cm-project-bootstrap/SKILL.md +11 -0
  85. package/skills/cm-qa-visual-cli/SKILL.md +22 -0
  86. package/skills/cm-retro-cli/SKILL.md +23 -0
  87. package/skills/cm-second-opinion-cli/SKILL.md +23 -0
  88. package/skills/cm-secret-shield/SKILL.md +2 -2
  89. package/skills/cm-security-gate/SKILL.md +1 -0
  90. package/skills/cm-skill-chain/SKILL.md +25 -4
  91. package/skills/cm-skill-evolution/SKILL.md +83 -0
  92. package/skills/cm-skill-health/SKILL.md +83 -0
  93. package/skills/cm-skill-index/SKILL.md +11 -3
  94. package/skills/cm-skill-search/SKILL.md +49 -0
  95. package/skills/cm-skill-share/SKILL.md +58 -0
  96. package/skills/cm-sprint-bus/SKILL.md +33 -0
  97. package/skills/cm-start/SKILL.md +0 -10
  98. package/skills/cm-tdd/SKILL.md +59 -72
  99. package/skills/profiles/README.md +21 -0
  100. package/skills/profiles/core.txt +23 -0
  101. package/skills/profiles/design.txt +6 -0
  102. package/skills/profiles/full.txt +62 -0
  103. package/skills/profiles/growth.txt +10 -0
  104. package/skills/profiles/knowledge.txt +7 -0
  105. package/install.sh +0 -901
  106. package/scripts/test-gemini.js +0 -13
  107. package/skills/cm-frappe-agent/SKILL.md +0 -134
  108. package/skills/cm-frappe-agent/agents/doctype-architect.md +0 -596
  109. package/skills/cm-frappe-agent/agents/erpnext-customizer.md +0 -643
  110. package/skills/cm-frappe-agent/agents/frappe-backend.md +0 -814
  111. package/skills/cm-frappe-agent/agents/frappe-custom-frontend.md +0 -557
  112. package/skills/cm-frappe-agent/agents/frappe-debugger.md +0 -625
  113. package/skills/cm-frappe-agent/agents/frappe-fixer.md +0 -275
  114. package/skills/cm-frappe-agent/agents/frappe-frontend.md +0 -660
  115. package/skills/cm-frappe-agent/agents/frappe-installer.md +0 -158
  116. package/skills/cm-frappe-agent/agents/frappe-performance.md +0 -307
  117. package/skills/cm-frappe-agent/agents/frappe-planner.md +0 -419
  118. package/skills/cm-frappe-agent/agents/frappe-remote-ops.md +0 -153
  119. package/skills/cm-frappe-agent/agents/github-workflow.md +0 -286
  120. package/skills/cm-frappe-agent/commands/frappe-app.md +0 -351
  121. package/skills/cm-frappe-agent/commands/frappe-backend.md +0 -162
  122. package/skills/cm-frappe-agent/commands/frappe-bench.md +0 -254
  123. package/skills/cm-frappe-agent/commands/frappe-debug.md +0 -263
  124. package/skills/cm-frappe-agent/commands/frappe-doctype-create.md +0 -272
  125. package/skills/cm-frappe-agent/commands/frappe-doctype-field.md +0 -310
  126. package/skills/cm-frappe-agent/commands/frappe-erpnext.md +0 -210
  127. package/skills/cm-frappe-agent/commands/frappe-fix.md +0 -59
  128. package/skills/cm-frappe-agent/commands/frappe-frontend.md +0 -210
  129. package/skills/cm-frappe-agent/commands/frappe-fullstack.md +0 -243
  130. package/skills/cm-frappe-agent/commands/frappe-github.md +0 -57
  131. package/skills/cm-frappe-agent/commands/frappe-install.md +0 -52
  132. package/skills/cm-frappe-agent/commands/frappe-plan.md +0 -442
  133. package/skills/cm-frappe-agent/commands/frappe-remote.md +0 -58
  134. package/skills/cm-frappe-agent/commands/frappe-test.md +0 -356
  135. package/skills/cm-frappe-agent/docs/README.md +0 -51
  136. package/skills/cm-frappe-agent/docs/agents-catalog.md +0 -113
  137. package/skills/cm-frappe-agent/docs/architecture.md +0 -149
  138. package/skills/cm-frappe-agent/docs/commands-catalog.md +0 -82
  139. package/skills/cm-frappe-agent/docs/resources-catalog.md +0 -66
  140. package/skills/cm-frappe-agent/docs/sitemap-urls.txt +0 -52
  141. package/skills/cm-frappe-agent/docs/sitemap.md +0 -81
  142. package/skills/cm-frappe-agent/docs/sop/user-guide.md +0 -178
  143. package/skills/cm-frappe-agent/docs/sop/vibe-coding-guide.md +0 -122
  144. package/skills/cm-frappe-agent/resources/7-layer-architecture.md +0 -985
  145. package/skills/cm-frappe-agent/resources/bench_commands.md +0 -73
  146. package/skills/cm-frappe-agent/resources/code-patterns-guide.md +0 -948
  147. package/skills/cm-frappe-agent/resources/common_pitfalls.md +0 -266
  148. package/skills/cm-frappe-agent/resources/doctype-registry.md +0 -158
  149. package/skills/cm-frappe-agent/resources/installation-guide.md +0 -289
  150. package/skills/cm-frappe-agent/resources/rest-api-patterns.md +0 -182
  151. package/skills/cm-frappe-agent/resources/scaffold_checklist.md +0 -82
  152. package/skills/cm-frappe-agent/resources/upgrade_patterns.md +0 -113
  153. package/skills/cm-frappe-agent/resources/web-form-patterns.md +0 -252
  154. package/skills/cm-frappe-agent/skills/bench-commands/SKILL.md +0 -621
  155. package/skills/cm-frappe-agent/skills/client-scripts/SKILL.md +0 -642
  156. package/skills/cm-frappe-agent/skills/doctype-patterns/SKILL.md +0 -576
  157. package/skills/cm-frappe-agent/skills/frappe-api/SKILL.md +0 -740
  158. package/skills/cm-frappe-agent/skills/remote-operations/SKILL.md +0 -47
  159. package/skills/cm-frappe-agent/skills/server-scripts/SKILL.md +0 -608
  160. package/skills/cm-frappe-agent/skills/web-forms/SKILL.md +0 -46
  161. package/skills/frappe-app-builder.zip +0 -0
package/skills/CLAUDE.md CHANGED
@@ -91,14 +91,14 @@ See: [references/file.md](references/file.md)
91
91
 
92
92
  ### Required Fields
93
93
  - `name`: Unique identifier (lowercase, hyphens for spaces, max 64 chars)
94
- - `description`: What the skill does and when to use it (max 1024 chars). Use numbered use cases: `(1) ..., (2) ..., (3) ...`
94
+ - `description`: What the skill does and when to use it (max 1024 chars). Prefer **one or two sentences (~80–120 words / under ~800 chars)** so Google Antigravity, Windsurf, and other hosts do not burn customization token budget on discovery. Put long trigger lists in the markdown body (e.g. a short "Triggers" line under the title), not in YAML. Use numbered use cases when helpful: `(1) ..., (2) ..., (3) ...`
95
95
 
96
96
  ### Recommended Fields (for marketplace)
97
97
  - `license`: License name (we use MIT)
98
98
  - `metadata.author`: Author/organization name (we use `wondelai`)
99
99
  - `metadata.version`: Semantic version
100
100
 
101
- The YAML frontmatter `description` field is critical for skill discovery - it should include keywords and trigger phrases that help match user requests to the skill. Single quotes in YAML values must be escaped by doubling them (`''`).
101
+ The YAML frontmatter `description` field is critical for skill discovery: include the **minimum** keywords needed to route tasks; avoid duplicating every synonym in YAML. For **low token budget** installs, use `bash install.sh --gemini --profile core` and see `skills/profiles/README.md`. Single quotes in YAML values must be escaped by doubling them (`''`).
102
102
 
103
103
  ## Adding New Skills
104
104
 
@@ -129,11 +129,6 @@ The YAML frontmatter `description` field is critical for skill discovery - it sh
129
129
  /plugin install systems-architecture@wondelai-skills # DDIA, System Design, Clean Architecture, Release It!, High Performance Browser Networking
130
130
  ```
131
131
 
132
- ### Via skills.sh
133
- ```bash
134
- npx skills add wondelai/skills # All skills
135
- npx skills add wondelai/skills/{skill-name} # Individual skill
136
- ```
137
132
 
138
133
  ## Versioning Policy
139
134
 
@@ -35,11 +35,6 @@ Read .cm/skeleton-index.md (~500 tokens) — modules, entry points, config fi
35
35
  Query: cm_query(scope="learnings", query="{current module or error type}", limit=5)
36
36
  OR read .cm/memory/learnings.json filtered to scope == "global" | "module:X"
37
37
 
38
- # OpenViking backend (if storage.backend: viking in .cm/config.yaml):
39
- Query: cm_query(query="{current module or error type}", limit=5)
40
- → OpenViking uses VECTOR SEMANTIC SEARCH — no need for exact keyword match.
41
- "i18n locale update" will also match "translation missing" and "locale fallback"
42
-
43
38
  Rules:
44
39
  NEVER load status = "invalidated" (proven wrong)
45
40
  CAUTION status = "corrected" (verify before applying)
@@ -64,9 +59,8 @@ cm continuity budget (or: loadBudget + checkBudget in code)
64
59
  > L0 indexes + context bus + scope filter make this possible.
65
60
  > Only escalate to L2 when L0/L1 explicitly flag the need.
66
61
  >
67
- > **Viking bonus:** With OpenViking backend, L0/L1 indexes are auto-generated by the engine —
68
- > no manual `cm continuity index` needed. Vector search also improves Step 3 recall by ~40%.
69
- > Switch: set `storage.backend: viking` in `.cm/config.yaml`.
62
+ > **Legacy note:** Some older projects may still keep `storage.backend: viking` in config.
63
+ > CodyMaster now routes that back to SQLite, so do not design workflows around a separate Viking backend.
70
64
 
71
65
  ---
72
66
 
@@ -1,15 +1,12 @@
1
1
  ---
2
2
  name: cm-ads-tracker
3
- description: |
4
- Expert CRO conversion tracking strategist. From a single chat message, generates a COMPLETE tracking setup: Facebook/Meta Pixel + CAPI, TikTok Pixel + Events API, Google Ads Enhanced Conversions, GTM container architecture, first-touch/last-touch attribution, and cross-channel deduplication.
5
-
6
- AUTO-DETECTS industry and maps correct standard events per platform specs. Outputs a full implementation document developers can use immediately — GTM tags, triggers, variables, dataLayer schema, UTM conventions, CAPI specs — all with the user's exact tracking IDs.
7
-
8
- ALWAYS trigger for: pixel, tracking code, GTM, tag manager, Facebook pixel, Meta pixel, CAPI, Conversions API, TikTok pixel, Events API, Google Ads conversion, Enhanced Conversions, UTM, attribution, first-touch, last-touch, "setup tracking", "install tracking", "install pixel", "measure conversions", "tracking ads", "measure ROAS", "optimize conversions", conversion event, lead tracking, purchase tracking, ROAS measurement. Use even with partial information.
3
+ description: "End-to-end ad conversion tracking: Meta Pixel+CAPI, TikTok Events API, Google Ads Enhanced Conversions, GTM, attribution. Auto-detects industry, maps standard events, outputs a developer-ready implementation doc. Use for pixels, GTM, CAPI, ROAS, or 'set up tracking' requests."
9
4
  ---
10
5
 
11
6
  # CM Ads Tracker v2
12
7
 
8
+ **Triggers (non-exhaustive):** pixel, GTM, Meta/Facebook CAPI, TikTok Events API, Google Ads conversions, UTM, first/last-touch attribution, install tracking, lead/purchase events, ROAS.
9
+
13
10
  You are the world's best conversion tracking architect. Your mission: from **a single chat message**, produce a complete, platform-specific, attribution-aware tracking setup that any developer or marketer can implement immediately.
14
11
 
15
12
  You know by heart every standard event spec for Meta, TikTok, and Google Ads. You think in dataLayer-first architecture, where GTM is the intelligent orchestration layer between the website and all ad platforms.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: cm-browse
3
+ description: "Use when you need visual QA, screenshots, or post-deploy smoke testing through a real browser with Playwright."
4
+ ---
5
+ # cm-browse — local Playwright daemon
6
+
7
+ > **Full runbook:** [docs/browse-daemon.md](../../docs/browse-daemon.md) (install Chromium, token, troubleshooting).
8
+
9
+ ## When to use
10
+
11
+ - Visual QA, screenshots, post-deploy smoke through a **real browser** (not only Stitch/Pencil).
12
+ - Before claiming “UI works”, drive `cm browse` + `cm qa-visual`.
13
+
14
+ ## CLI
15
+
16
+ ```bash
17
+ export CM_BROWSE_TOKEN="$(openssl rand -hex 24)"
18
+ cm browse start --port 17395 --token "$CM_BROWSE_TOKEN"
19
+ ```
20
+
21
+ ## HTTP API (Bearer token)
22
+
23
+ - `POST /session/start` body `{ "headless": true }`
24
+ - `POST /navigate` `{ "url": "https://…" }`
25
+ - `POST /refs/refresh` — assigns `data-cm-ref` to interactive nodes; use `@e1` style refs.
26
+ - `POST /click` `{ "ref": "e1" }`
27
+ - `POST /fill` `{ "ref": "e2", "value": "text" }`
28
+ - `GET /screenshot` — PNG
29
+ - `GET /console` / `GET /network` — ring buffers
30
+
31
+ ## Integrations
32
+
33
+ - `cm qa-visual --url …` calls the daemon locally.
34
+ - Pair with `cm-canary` / `cm-safe-deploy` for ship verification.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: cm-conductor-worktrees
3
+ description: "Use when you need to manage parallel git worktrees for isolated feature development."
4
+ ---
5
+ # cm-conductor-worktrees — parallel worktrees
6
+
7
+ ## CLI
8
+
9
+ ```bash
10
+ cm conductor add --at ../my-feature-wt --branch feat/my-feature --base main
11
+ cm conductor list
12
+ ```
13
+
14
+ ## Practice
15
+
16
+ - One **branch + worktree** per parallel agent/session.
17
+ - Reconcile with `git merge` / PR; avoid two agents editing the same files without coordination.
18
+
19
+ ## ELI16 (3+ sessions)
20
+
21
+ When running **three or more** parallel sessions, re-ground each session with:
22
+
23
+ - Current branch name + worktree path.
24
+ - Last artifact from `cm sprint status` or `.cm/context-bus.json`.
25
+
26
+ ## Future
27
+
28
+ Dashboard UI for active sprints is **not** in CLI yet — use `cm dashboard` / Hamster UI where available.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cm-content-factory
3
- description: "AI Content Factory v2.0 — Self-learning content engine with real-time dashboard, multi-agent support, token management, and Content Mastery framework (StoryBrand, Cialdini, SUCCESs, STEPPS, Hook Model, JTBD, CRO, Grand Slam Offers). Interactive onboarding auto-research generate audit → deploy. Config-driven, niche-agnostic, self-improving."
3
+ description: "Self-learning SEO content pipeline: dashboard, multi-agent queue, token budgets, research write audit publish. StoryBrand/Cialdini/JTBD-style frameworks; config-driven. Use for content factory, batch articles, or scaled publishing."
4
4
  ---
5
5
 
6
6
  # CM Content Factory v2.0 — AI Content Machine Platform
@@ -0,0 +1,36 @@
1
+ # Changelog & What's New in v5
2
+
3
+ Welcome to the **"Neural Spine"** era! Version 5 is a massive milestone that transitions CodyMaster from a specialized "Content Factory" tool into a full-fledged **Senior AI-Native Engineering Workspace**.
4
+
5
+ We achieved this paradigm shift by refining CodyMaster into a local-first Smart Spine architecture paired with **OpenSpace** execution.
6
+
7
+ ---
8
+
9
+ ## 🚀 Key Architectural Shifts
10
+
11
+ ### 1. Replaced "Dumb" RAG with Layered Smart Spine Memory
12
+ **The Problem in v4**: AI agents suffered from "code amnesia." Standard Retrieval-Augmented Generation (RAG) relied on chunking text indiscriminately. Agents hallucinated imports and forgot how system components linked together.
13
+ **The v5 Upgrade**:
14
+ By adopting layered retrieval concepts, CodyMaster v5 introduces a structured memory engine built around indexes, SQLite search, and progressive loading.
15
+ - It creates a **L0 Skeleton Index** of your entire system's structure instantly.
16
+ - It provides a **L1 Symbol Index** to grasp function signatures perfectly without bogging down the LLM context window with implementation details.
17
+ - Your AI agent now acts like a senior dev who inherently "knows" your monolith's entire structure before typing a single line.
18
+
19
+ ### 2. Upgraded to OpenSpace (The Autonomous Executor)
20
+ **The Problem in v4**: Agents were essentially advanced type-writers. They wrote code, but you had to physically run the terminal commands, test the code, read the errors, and paste the errors back to the AI.
21
+ **The v5 Upgrade**:
22
+ We introduced **OpenSpace**—a secure sandbox and execution container.
23
+ - Agents can now natively execute Bash commands (`npm test`, `git pull`) within a safe holding environment.
24
+ - The framework auto-captures standard-error (stderr) logs and creates a self-healing loop. If the AI writes a bug, the test suite catches it, and the AI fixes itself autonomously *before* presenting the final code to you.
25
+
26
+ ---
27
+
28
+ ## 🌟 New Features at a Glance
29
+
30
+ * **100% Zero-Regression Deployments**: Through TDD-first gates in OpenSpace, no commit is permitted unless tests successfully pass.
31
+ * **Context Bus**: An infrastructure pipeline allowing parallel sub-agents (e.g., a "Backend Database" agent and a "Frontend React" agent) to exchange variables and context natively without losing vital token budgets.
32
+ * **Vision & UI Auto-Healing**: Equipped with frontend Playwright capture mechanisms, agents can take screenshots of their code results, run Vision Models to spot CSS un-alignments, and natively fix visual bugs.
33
+ * **Completely Self-Evolving Skills**: The Skill Chain Engine analyzes repeated commands in your workflow and dynamically builds *new* automation skills specifically tailored to your unique codebase.
34
+
35
+ > [!TIP]
36
+ > **To Experience It Directly:** Try assigning a task requiring multi-file context tracking, such as *"Migrate our authentication endpoints across the monolith to use the new JWT standard."* and watch Smart Spine pull the precise files needed without bloating the context window.
@@ -0,0 +1,46 @@
1
+ # Deployment Guide
2
+
3
+ Setting up CodyMaster v5 for your engineering team is straightforward. Follow this guide to initialize the Neural Spine architecture.
4
+
5
+ ## 1. Prerequisites
6
+
7
+ Ensure your environment meets the following requirements:
8
+ - Node.js v18.0.0 or higher
9
+ - Git
10
+ - SQLite-compatible local environment for CodyMaster's default memory stack
11
+
12
+ ## 2. Installation
13
+
14
+ Install the framework globally via npm to make the `cm` CLI available anywhere on your machine:
15
+
16
+ ```bash
17
+ npm install -g @codymaster/cli@next
18
+ ```
19
+
20
+ ## 3. Initializing a Workspace
21
+
22
+ Navigate to your existing Next.js, React, or Python repository and initialize the OpenSpace environment:
23
+
24
+ ```bash
25
+ cd my-enterprise-project
26
+ cm init
27
+ ```
28
+
29
+ This will automatically:
30
+ 1. Generate the `.agent/` folder structure to house specialized skills.
31
+ 2. Prepare CodyMaster's local memory and index surfaces so Smart Spine can retrieve project context efficiently.
32
+
33
+ ## 4. Bootstrapping Agents
34
+
35
+ You can dispatch your first agent task utilizing the full memory and execution layer:
36
+
37
+ ```bash
38
+ cm do "Refactor the user dashboard to utilize Tailwind CSS dark mode variants, ensuring all current unit tests still pass."
39
+ ```
40
+
41
+ - Watch the terminal to see Smart Spine pull relevant context without filling the token window with unnecessary `.json` configs.
42
+ - Watch OpenSpace dynamically spin up `npm run test` immediately after the code generation completes, self-correcting any errors before offering a Git commit.
43
+
44
+ ## Continuous CI/CD (Founders Edition)
45
+
46
+ For teams on the Founders Edition, CodyMaster integrates directly into your GitHub Actions or GitLab CI pipelines. The agent intercepts failed PRs, pushes self-healing commits, and verifies visual integrity entirely autonomously.
@@ -0,0 +1,67 @@
1
+ # Architecture & Execution Flow
2
+
3
+ Understanding how the **Neural Spine** processes a command helps you write better instructions and harness the true autonomous power of CodyMaster v5.
4
+
5
+ When you dispatch a command to the system, it doesn't just blindly pass your text to an LLM. It routes the instruction through a multi-stage **Agent Lifecyle**.
6
+
7
+ ## The High-Level Flow
8
+
9
+ Here is a visual breakdown of how Smart Spine memory and OpenSpace handle an incoming task:
10
+
11
+ ```mermaid
12
+ graph TD
13
+ User([User Prompt: "Refactor Authentication"]) ==> Router
14
+
15
+ subgraph "Phase 1: Knowledge Gathering"
16
+ Router[Task Router] --> Memory{Smart Spine Memory}
17
+ Memory --> L0[L0: Skeleton Directory Map]
18
+ Memory --> L1[L1: Symbol Headers]
19
+ Memory --> L2[L2: Indexed Project Context]
20
+ L0 --> Compiler[Context Builder]
21
+ L1 --> Compiler
22
+ L2 --> Compiler
23
+ end
24
+
25
+ Compiler ==> SubAgent
26
+
27
+ subgraph "Phase 2: Execution (OpenSpace)"
28
+ SubAgent[AI Sub-Agent] --> Coding[Writes Code / Logic]
29
+ Coding --> Sandbox[OpenSpace Container]
30
+ Sandbox --> Bash[Excecutes Terminal/Tests]
31
+ Bash -- "Fails ❌" --> Feedback[Stderr Log Reader]
32
+ Feedback --> SubAgent
33
+ end
34
+
35
+ Bash -- "Passes ✅" --> Review[Frontend Integrity Gate]
36
+ Review --> Ship((Complete: Ready to Git Push))
37
+
38
+ style User fill:#3b82f6,stroke:#fff,stroke-width:2px,color:#fff
39
+ style Ship fill:#10b981,stroke:#fff,stroke-width:2px,color:#fff
40
+ style Memory fill:#8b5cf6,stroke:#fff,stroke-width:2px,color:#fff
41
+ style Sandbox fill:#f59e0b,stroke:#fff,stroke-width:2px,color:#111
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Step-by-Step Walkthrough
47
+
48
+ ### 1. Task Routing & Context Building
49
+ The moment you hit enter, your command is sent to the **Task Router**. Before connecting to an external AI model (like Claude 3.5 or GPT-4o), the router queries **Smart Spine memory**.
50
+ - Smart Spine uses project indexes and local memory search to find all functionally related files.
51
+ - It bundles the `L0` (Project Structure), `L1` (Function Interfaces), and `L2` (Implementation Logic) to create a highly compressed, precisely targeted knowledge package.
52
+
53
+ ### 2. Autonomous Execution
54
+ The heavily enriched context is sent to the **AI Sub-Agent**, which formulates the new code. This code is immediately sent into **OpenSpace**.
55
+ - OpenSpace spins up an isolated sandbox.
56
+ - It forces the system to run immediate syntax linters (`eslint`, `mypy`) and your existing Unit Tests (`jest`, `pytest`).
57
+
58
+ ### 3. The Self-Healing Loop
59
+ If the execution environment (OpenSpace) returns an error or a failed test:
60
+ - The exact failure trace (`stderr`) is siphoned off and sent *back* to the Sub-Agent.
61
+ - The AI autonomously rewrites the logic to resolve the bug, attempting again. **You are never interrupted to solve syntax errors.**
62
+
63
+ ### 4. Integrity and Shipping
64
+ Once unit tests cleanly pass, the final validation stage evaluates Frontend Integrity (e.g. no missing padding, proper CSS compilation). Once confirmed, the result is packaged directly into a pristine, working commit for you to review or deploy.
65
+
66
+ > [!NOTE]
67
+ > All phases within the Execution Flow are entirely handled by the background Neural Spine mechanisms. You are simply engaging with a "Senior Developer" that solves the problem perfectly.
@@ -0,0 +1,38 @@
1
+ # Layered Memory System
2
+
3
+ **CodyMaster's Smart Spine memory** is built to keep context retrieval practical, local-first, and honest about what ships today.
4
+
5
+ ## Why this matters
6
+
7
+ Standard AI workflows often over-rely on blunt keyword search or huge prompt dumps. That creates three predictable problems:
8
+ - agents miss architectural relationships between files
9
+ - token windows fill with low-signal context
10
+ - teams start depending on extra services before the core workflow is even stable
11
+
12
+ ## The CodyMaster approach
13
+
14
+ CodyMaster uses a layered memory model that combines:
15
+
16
+ 1. **L0 indexes** for fast structural awareness
17
+ 2. **SQLite + FTS5** for durable searchable learnings and decisions
18
+ 3. **L1/L2 progressive loading** so agents only load richer context when the task actually needs it
19
+ 4. **Context Bus** for passing task outputs between skill steps without re-deriving state from chat
20
+
21
+ ## What you get in practice
22
+
23
+ - Local-first memory with no extra semantic service required
24
+ - Better context targeting than raw grep-only workflows
25
+ - Lower token usage through progressive loading
26
+ - A supportable default setup that works across real projects today
27
+
28
+ ## Recommended setup
29
+
30
+ The supported CodyMaster path is:
31
+
32
+ ```bash
33
+ npm install
34
+ npm run build
35
+ npm run test:gate:kit
36
+ ```
37
+
38
+ From there, CodyMaster builds and queries context through the shipped Smart Spine stack without requiring a separate semantic service.
@@ -0,0 +1,27 @@
1
+ # OpenSpace Autonomous Workspace
2
+
3
+ **OpenSpace** is the execution engine of the Neural Spine architecture. It elevates your AI from being merely a static text-generator to an active, real-time engineering participant.
4
+
5
+ ## The Execution Gap
6
+
7
+ Most AI setups lack operational agency. Once an LLM outputs code, a human developer has to copy, paste, save, format, compile, and run tests. This process introduces massive friction and manual error into what should be an automated loop.
8
+
9
+ ## Enter OpenSpace
10
+
11
+ OpenSpace surrounds the agent with a secure execution container (sandbox) tightly coupled with your source control and operational tools.
12
+
13
+ ### Key Capabilities
14
+
15
+ - **Command Line Autonomy**: The agent can run raw terminal commands (`npm i`, `pytest`, `cargo run`) to verify that the code it generates compiles and passes logic tests.
16
+ - **Visual Self-Correction**: Using Playwright/Puppeteer bindings, OpenSpace can take screenshots of running frontends, parse the UI using Vision models, and autonomously adjust CSS alignments or missing padding without human intervention.
17
+ - **The Secret Shield**: OpenSpace filters shell execution to prevent agents from inadvertently deleting local databases, exposing secrets (via `.env` blockades), or committing raw tokens to GitHub.
18
+
19
+ ## Anatomy of a Session
20
+
21
+ When an agent is initialized in OpenSpace, it acts as a headless developer:
22
+ 1. It pulls focused context from the **[Layered Memory System](#memory-system)**.
23
+ 2. It drafts a solution to isolated branch files.
24
+ 3. It spawns an OpenSpace terminal subprocess to run Linters and Unit Tests.
25
+ 4. If a test fails, it captures the `stderr` output within OpenSpace and self-heals the code until all checks pass.
26
+
27
+ This loop ensures that the code pushed to you is robust, tested, and fully autonomous.
@@ -0,0 +1,26 @@
1
+ # Neural Spine Use Cases
2
+
3
+ The true power of **CodyMaster v5** is fully realized when integrating semantic memory and autonomous execution together.
4
+
5
+ Here are the optimal scenarios where the Founders Edition architecture outperforms standard tools.
6
+
7
+ ## 1. Full-Stack Monolithic Refactoring
8
+ *The Challenge*: Changing an authentication provider or modifying deeply nested CSS logic across a massive 500,000-line React/Node.js monolith usually incites dozens of cascading regressions.
9
+ *The Spine Solution*:
10
+ - **Smart Spine memory** maps where the legacy authentication logic touches every API router through indexes and searchable project memory.
11
+ - **OpenSpace** attempts the refactor in an isolated branch and continuously runs the test suite.
12
+ - The outcome is a tightly controlled refactoring PR that didn't miss a single edge case.
13
+
14
+ ## 2. Zero-Drop Multilingual Deployments
15
+ *The Challenge*: Localizing an application across EN, VI, ZH, and RU requires massive JSON string coordination, structural UI checks (text length variances), and routing configuration.
16
+ *The Spine Solution*:
17
+ - A translation skill is dispatched across multiple parallel agents.
18
+ - Instead of manual checks, OpenSpace spins up a staging server and runs Visual Regression Tests using Vision models to verify that the Russian text doesn't break button layouts.
19
+ - It automatically shifts paddings based on the visual output before committing.
20
+
21
+ ## 3. Immediate Tech-Debt Cleanup
22
+ *The Challenge*: Teams accrue dead code, unused imports, and unoptimized queries over years of product pivots.
23
+ *The Spine Solution*:
24
+ - An agent equipped with the `cm-clean-code` skill natively runs over the codebase at midnight via cron job.
25
+ - OpenSpace runs AST-aware checks against CodyMaster's indexed project context to guarantee no unused code is actually being referenced dynamically.
26
+ - The agent creates a PR each morning with a detailed breakdown of the removed complexity and the token savings achieved.
@@ -0,0 +1,28 @@
1
+ # The Neural Spine Architecture
2
+
3
+ Welcome to **CodyMaster v5**, the first Senior AI-Native Engineering Workspace designed for complete autonomous development.
4
+
5
+ While standard AI coding assistants excel at generating functions and isolated scripts, they lack the systemic awareness required to build, test, and ship complete applications securely. **CodyMaster v5** introduces the "Neural Spine" architecture to solve this.
6
+
7
+ ## Why a "Spine"?
8
+
9
+ A spine connects the brain to the nervous system, passing critical signals instantly and maintaining the structure of the body. In CodyMaster v5, the **Neural Spine** represents the underlying infrastructure that connects your AI agents to the real world:
10
+
11
+ - **Memory (Smart Spine)**: Layered local-first retrieval using SQLite, indexes, and progressive loading.
12
+ - **Execution (OpenSpace)**: A sandboxed, secure environment for agents to run bash commands, databases, and testing suites.
13
+ - **State (Context Bus)**: A fluid mechanism to exchange parameters between specialized subagents without overflowing token limits.
14
+
15
+ ## Core Capabilities
16
+
17
+ 1. **Eliminating Context Drift**: Your agents no longer guess your architecture. They retrieve the exact structural context through Smart Spine indexes and focused memory queries.
18
+ 2. **Zero-Regression Shipping**: OpenSpace guarantees that AI-generated code is thoroughly tested (TDD-first) via automated gates before reaching production.
19
+ 3. **Multi-Agent Orchestration**: Outsource frontend, backend, and security audits to specialized subagents running in parallel.
20
+
21
+ ## Getting Started
22
+
23
+ Explore the backbone technologies driving this paradigm shift:
24
+
25
+ - [Explore Layered Memory](#memory-system)
26
+ - [Understand OpenSpace Containers](#openspace)
27
+ - [Real-world Use Cases](#use-cases)
28
+ - [Deploy the Framework](#deployment)