@techwavedev/agi-agent-kit 1.1.7 → 1.2.7

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 (56) hide show
  1. package/CHANGELOG.md +142 -1
  2. package/README.md +195 -15
  3. package/bin/init.js +154 -5
  4. package/package.json +6 -3
  5. package/templates/base/AGENTS.md +54 -23
  6. package/templates/base/README.md +327 -0
  7. package/templates/base/directives/memory_integration.md +95 -0
  8. package/templates/base/execution/memory_manager.py +309 -0
  9. package/templates/base/execution/session_boot.py +218 -0
  10. package/templates/base/execution/session_init.py +320 -0
  11. package/templates/base/requirements.txt +45 -6
  12. package/templates/base/skill-creator/SKILL_skillcreator.md +3 -3
  13. package/templates/skills/knowledge/design-md/README.md +0 -0
  14. package/templates/skills/knowledge/design-md/SKILL.md +0 -0
  15. package/templates/skills/knowledge/design-md/examples/DESIGN.md +0 -0
  16. package/templates/skills/knowledge/intelligent-routing/SKILL.md +237 -164
  17. package/templates/skills/knowledge/notebooklm-rag/SKILL.md +216 -0
  18. package/templates/skills/knowledge/notebooklm-rag/requirements.txt +9 -0
  19. package/templates/skills/knowledge/notebooklm-rag/scripts/ask_question.py +237 -0
  20. package/templates/skills/knowledge/notebooklm-rag/scripts/auth_manager.py +307 -0
  21. package/templates/skills/knowledge/notebooklm-rag/scripts/browser_utils.py +101 -0
  22. package/templates/skills/knowledge/notebooklm-rag/scripts/cleanup_manager.py +87 -0
  23. package/templates/skills/knowledge/notebooklm-rag/scripts/config.py +45 -0
  24. package/templates/skills/knowledge/notebooklm-rag/scripts/notebook_manager.py +334 -0
  25. package/templates/skills/knowledge/notebooklm-rag/scripts/run.py +92 -0
  26. package/templates/skills/knowledge/notebooklm-rag/scripts/setup_environment.py +68 -0
  27. package/templates/skills/knowledge/parallel-agents/SKILL.md +345 -73
  28. package/templates/skills/knowledge/plugin-discovery/SKILL.md +581 -0
  29. package/templates/skills/knowledge/plugin-discovery/scripts/platform_setup.py +1083 -0
  30. package/templates/skills/knowledge/react-components/README.md +0 -0
  31. package/templates/skills/knowledge/react-components/SKILL.md +0 -0
  32. package/templates/skills/knowledge/react-components/examples/gold-standard-card.tsx +0 -0
  33. package/templates/skills/knowledge/react-components/package-lock.json +0 -0
  34. package/templates/skills/knowledge/react-components/package.json +0 -0
  35. package/templates/skills/knowledge/react-components/resources/architecture-checklist.md +0 -0
  36. package/templates/skills/knowledge/react-components/resources/component-template.tsx +0 -0
  37. package/templates/skills/knowledge/react-components/resources/stitch-api-reference.md +0 -0
  38. package/templates/skills/knowledge/react-components/resources/style-guide.json +0 -0
  39. package/templates/skills/knowledge/react-components/scripts/validate.js +0 -0
  40. package/templates/skills/knowledge/self-update/SKILL.md +0 -0
  41. package/templates/skills/knowledge/self-update/scripts/update_kit.py +0 -0
  42. package/templates/skills/knowledge/stitch-loop/README.md +0 -0
  43. package/templates/skills/knowledge/stitch-loop/SKILL.md +3 -3
  44. package/templates/skills/knowledge/stitch-loop/examples/SITE.md +0 -0
  45. package/templates/skills/knowledge/stitch-loop/examples/next-prompt.md +0 -0
  46. package/templates/skills/knowledge/stitch-loop/resources/baton-schema.md +0 -0
  47. package/templates/skills/knowledge/stitch-loop/resources/site-template.md +0 -0
  48. package/templates/skills/stitch-loop/SKILL.md +3 -3
  49. package/templates/skills/core/qdrant-memory/scripts/__pycache__/embedding_utils.cpython-314.pyc +0 -0
  50. package/templates/skills/core/qdrant-memory/scripts/__pycache__/init_collection.cpython-314.pyc +0 -0
  51. package/templates/skills/knowledge/SKILLS_CATALOG.md +0 -796
  52. package/templates/skills/knowledge/jira/scripts/__pycache__/jira_client.cpython-314.pyc +0 -0
  53. package/templates/skills/knowledge/notebooklm-mcp/SKILL.md +0 -71
  54. package/templates/skills/knowledge/notebooklm-mcp/assets/example_asset.txt +0 -24
  55. package/templates/skills/knowledge/notebooklm-mcp/references/api_reference.md +0 -34
  56. package/templates/skills/knowledge/notebooklm-mcp/scripts/example.py +0 -19
package/CHANGELOG.md CHANGED
@@ -5,10 +5,151 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.7] - 2026-02-11
9
+
10
+ ### Security & Maintenance
11
+
12
+ - **Repository Sanitization**: Removed all internal development configurations (`.agent`, `.claude`, `.gemini`) and private skills from the public repository.
13
+ - **Workflow Hardening**: Enforced fork-and-PR workflow in `CONTRIBUTING.md`.
14
+ - **Community Standards**: Added issue templates and PR templates.
15
+
16
+ ## [1.2.6] - 2026-02-10
17
+
18
+ ### Added
19
+
20
+ - **notebooklm-rag (Deep RAG)**: MCP-first autonomous knowledge backend powered by Google NotebookLM + Gemini. The agent fully manages NotebookLM via MCP tools — authentication, library CRUD, querying with auto follow-ups, and Qdrant caching for token savings and cross-session context keeping. Includes fallback Python scripts (Patchright browser automation) when MCP is unavailable. Opt-in for users with Google accounts; default RAG remains `qdrant-memory`. Based on [PleasePrompto/notebooklm-skill](https://github.com/PleasePrompto/notebooklm-skill) (MIT).
21
+
22
+ ### Removed
23
+
24
+ - **notebooklm-mcp**: Merged into `notebooklm-rag`. The comprehensive Deep RAG skill supersedes the basic MCP connector.
25
+
26
+ ### Fixed
27
+
28
+ - **npmignore**: Fixed deep-path glob patterns (`**/__pycache__/`, `**/*.pyc`, `**/data/`) preventing compiled Python files and sensitive data from leaking into the published NPM package.
29
+
30
+ ## [1.2.5] - 2026-02-09
31
+
32
+ ### Fixed
33
+
34
+ - **Documentation Updates**: README updated to reflect current version and removed internal skill references.
35
+
36
+ ## [1.2.4] - 2026-02-09
37
+
38
+ ### Fixed
39
+
40
+ - **Minor bug fixes**: Addressed issues from v1.2.3 release.
41
+
42
+ ## [1.2.3] - 2026-02-09
43
+
44
+ ### Added
45
+
46
+ - **Auto Python Virtual Environment**: `npx init` now auto-creates `.venv/` and installs all dependencies — eliminates the `externally-managed-environment` error on macOS.
47
+ - **Auto Platform Setup**: `npx init` runs `platform_setup.py --auto` after venv creation, pre-configuring platform-specific settings (`.claude/settings.json`, `.claude/skills/`) and showing remaining manual steps.
48
+ - **Activation Reference Table** (README): Comprehensive reference with 4 sections — 14 slash commands, 8 `@agent` mentions, 18 natural language trigger keyword categories, and 6 memory system commands.
49
+ - **Semantic Memory Section** (README): Setup guide with Qdrant + Ollama commands, token savings table (90-100% savings), and usage examples.
50
+ - **`pyright`** added to `requirements.txt` for Python type checking out of the box.
51
+
52
+ ### Changed
53
+
54
+ - **`requirements.txt`**: Expanded from 6 to 12 packages across 5 organized sections (Core, Memory, Embeddings, Cloud, Testing & Auditing). Every dependency is documented with inline comments.
55
+ - **`bin/init.js`**: Added `setupPythonEnv()` and `runPlatformSetup()` functions. Uses `child_process.execSync` for venv creation and `pip install`. Cross-platform support (macOS/Linux/Windows paths).
56
+ - **README Prerequisites**: No longer tells users to `pip install` manually — now references auto-created `.venv` with activation command.
57
+ - **Post-install message**: Step 1 is now "Activate the Python environment" instead of "Install Python dependencies."
58
+ - **Templates synced**: `requirements.txt`, `README.md` copied to `templates/base/` for NPX distribution.
59
+ - **Documentation SKILL.md**: `Last Updated` timestamp refreshed to 2026-02-09.
60
+ - **SKILLS_CATALOG.md**: Regenerated with 56 skills.
61
+
62
+ ### Fixed
63
+
64
+ - **`ModuleNotFoundError: No module named 'yaml'`**: `pyyaml` was missing from `requirements.txt` — `system_checkup.py` crashed on fresh installs. Now included in core dependencies.
65
+ - **Missing dependencies**: `gitpython`, `ollama`, `sentence-transformers`, `playwright` were used by skills but not listed in `requirements.txt`. All now included.
66
+ - **`--auto-apply` flag**: `init.js` called `platform_setup.py` with non-existent `--auto-apply` flag — fixed to use existing `--auto` flag.
67
+
68
+ ## [1.2.2] - 2026-02-09
69
+
70
+ ### Added
71
+
72
+ - **Platform-Adaptive Multi-Agent Orchestration** (`parallel-agents` v2.0):
73
+ - **Strategy A: Claude Code Agent Teams** — True parallel multi-agent orchestration via tmux/in-process sessions. Requires `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`.
74
+ - **Strategy B: Claude Code Subagents** — Background/foreground task orchestration via `Task()` tool with `context: fork`.
75
+ - **Strategy C: Sequential Personas** — Universal fallback for Gemini, Opencode, and other platforms using `@agent` persona switching.
76
+ - **Strategy D: Kiro Autonomous Agent** — Async parallel task execution in sandboxed environments with PR-based delivery and cross-repo coordination.
77
+ - Automatic platform detection and strategy selection.
78
+ - Subagent configuration reference (frontmatter, tools, permissions, model, memory).
79
+ - Full Claude Code subagent lifecycle documentation (create, configure, invoke, manage).
80
+
81
+ - **Kiro IDE Powers & Autonomous Agent Support**:
82
+ - Full Kiro Powers documentation: `POWER.md` anatomy, frontmatter keywords activation, onboarding sections, steering files, `mcp.json` configuration with auto-namespacing.
83
+ - Kiro Hooks system (`.kiro/hooks/`) with JSON structure and automated behaviors.
84
+ - Kiro Autonomous Agent: sandboxed execution, PR-based reviews, cross-repo coordination, learning from code reviews.
85
+ - 12 curated launch partner Powers documented (Figma, Supabase, Stripe, Neon, Netlify, Postman, Strands, Datadog, Dynatrace, AWS CDK, Terraform, Aurora).
86
+ - **Antigravity ↔ Kiro mapping guide**: Skill-to-Power conversion workflow, directory mapping, frontmatter translation.
87
+
88
+ - **Plugin & Extension Auto-Discovery** (`plugin-discovery` v1.1.0 — NEW SKILL):
89
+ - Cross-platform extension auto-discovery for Claude Code, Kiro IDE, Gemini, and Opencode.
90
+ - Claude Code: Plugin marketplace guide (official + custom), LSP plugins by language, service integrations, scopes, subagent/skill discovery.
91
+ - Kiro: Full Powers discovery, installation guide (IDE, kiro.dev, GitHub, local path), setup checklist.
92
+ - Gemini/Opencode: Skills catalog discovery, MCP server detection.
93
+ - Cross-platform compatibility map (11 features × 4 platforms).
94
+
95
+ - **One-Shot Platform Setup Wizard** (`platform_setup.py`):
96
+ - Auto-detects platform: Claude Code, Kiro IDE, Gemini, Opencode.
97
+ - Scans project tech stack: languages (JS/TS/Python/Go/Rust/Ruby), frameworks (Next.js/React/Vue/Express/Angular/Svelte/Astro/React Native), services (GitHub/GitLab/Docker/Vercel/Netlify/Stripe/Supabase/Firebase/Terraform).
98
+ - Generates prioritized recommendations with `🔴 High` / `🟡 Medium` / `🟢 Low` indicators.
99
+ - Auto-applies configurable settings (Agent Teams, directory creation, hook setup) with single `Y/n` confirmation.
100
+ - Shows manual instructions for platform-only actions (plugin installs, Power installs).
101
+ - 4 modes: interactive, `--auto`, `--dry-run`, `--json`.
102
+ - New `/setup` workflow with `// turbo` annotation for auto-run.
103
+
104
+ - **Intelligent Routing v2.0** (`intelligent-routing` v2.0):
105
+ - Platform detection at session start (Claude Code, Kiro IDE, Gemini, Opencode).
106
+ - Proactive capability announcements per platform.
107
+ - Team Leader mode for Claude Code with Agent Teams enabled.
108
+ - Powers-driven orchestration mode for Kiro IDE.
109
+ - Proactive feature recommendations: suggests Agent Teams, plugins, Powers, Autonomous Agent when not enabled.
110
+ - Multi-domain task routing adapts to best available parallelism strategy.
111
+
112
+ - **Memory System Integration** (`session_boot.py` — NEW SCRIPT):
113
+ - `execution/session_boot.py` — Single entry point for session initialization. Checks Qdrant, Ollama, embedding models, and collections in one command. `--auto-fix` flag auto-pulls missing models and creates collections.
114
+ - **Session Boot Protocol** added as the **first section** in `AGENTS.md` — agents run `python3 execution/session_boot.py --auto-fix` before any work begins.
115
+ - `AGENTS.md` Memory-First section rewritten with explicit CLI commands: `memory_manager.py auto`, `store`, `cache-store` with decision tree table.
116
+ - `platform_setup.py` now detects full memory system: Qdrant status, Ollama status, embedding model presence, collection existence, point counts.
117
+ - Memory recommendations engine: suggests starting Qdrant/Ollama, pulling embedding model, or initializing collections when issues are detected.
118
+ - Memory report section (🧠) in platform setup output shows live system status.
119
+
120
+ ### Changed
121
+
122
+ - **`parallel-agents`**: Rewritten from v1.0 to v2.0 — now platform-adaptive with 4 orchestration strategies instead of 1.
123
+ - **`intelligent-routing`**: Rewritten from v1.0 to v2.0 — now includes platform detection, proactive recommendations, and Kiro support.
124
+ - **Cross-Platform Compatibility Map**: Updated with 2 new rows (Dynamic MCP Loading, Cross-Repo Tasks) and accurate Kiro feature coverage.
125
+ - **`package.json`**: Added `kiro`, `opencode`, and `platform-adaptive` keywords for NPM discoverability.
126
+ - **Templates**: All modified skills (`parallel-agents`, `intelligent-routing`, `plugin-discovery`) and scripts (`platform_setup.py`) synced to `templates/skills/knowledge/` for NPX distribution.
127
+ - **SKILLS_CATALOG.md**: Regenerated with 56 skills, including the new `plugin-discovery` skill.
128
+ - **`bin/init.js`**: NPX init now copies `execution/` scripts (session_boot.py, session_init.py, memory_manager.py) and `directives/` (memory_integration.md) to scaffolded projects. Update function also refreshes these files.
129
+ - **Post-install message**: Now shows `session_boot.py --auto-fix` as step 3 after installation.
130
+ - **`/setup-memory` workflow**: Fixed stale references, now uses correct scripts (session_init.py, memory_manager.py).
131
+ - **`/setup` workflow**: Added memory system troubleshooting section with Docker/Ollama/collection init commands.
132
+
133
+ ### Fixed
134
+
135
+ - **Stale script references**: `/setup-memory` workflow referenced non-existent `init_memory_system.py` and `memory_middleware.py` — now correctly uses `session_init.py` and `memory_manager.py`.
136
+ - **Memory system unused**: Despite being installed, no agent instructions explicitly told agents WHEN to call the memory scripts. Now enforced via Session Boot Protocol at top of AGENTS.md.
137
+ - **`platform_setup.py` missing memory**: Setup wizard reported platform features but ignored Qdrant/Ollama status — now detects and recommends fixes.
138
+ - **`info` action missing**: Platform setup wizard didn't handle informational recommendations (e.g., "collections are empty") — added `info` action type with ℹ️ status icon.
139
+ - **Templates missing execution scripts**: NPX init created the `execution/` directory but didn't copy any scripts into it — now ships session_boot.py, session_init.py, and memory_manager.py.
140
+
8
141
  ## [1.1.7] - 2026-02-07
9
142
 
10
143
  ### Added
11
144
 
145
+ - **NotebookLM RAG Skill** (EC Scoped): New `notebooklm-rag` skill providing deep-search RAG capabilities powered by Google NotebookLM + Gemini 2.5. Complementary to `qdrant-memory` for explicit, document-grounded research.
146
+ - **B.L.A.S.T. Protocol**: Structured research workflow (Browse → Load → Ask → Synthesize → Transfer).
147
+ - **4 Research Modes**: Quick (single query), Deep (3-5 iterative), Cross-Ref (multi-notebook), Plan (doc-grounded planning).
148
+ - **Confidence Classification**: Automatic HIGH/MEDIUM/LOW categorization with source attribution.
149
+ - `scripts/research_query.py` — Generates structured research questions by mode.
150
+ - `scripts/research_report.py` — Formats findings into Markdown/JSON reports with confidence levels and knowledge gap analysis.
151
+ - `scripts/preflight_check.py` — Pre-flight validation checklist for MCP server, auth, and library.
152
+ - `references/research_patterns.md` — Workflow templates, query optimization, rate limit strategies.
12
153
  - **Auto-Update in Skill Creator**: `init_skill.py` now auto-runs `update_catalog.py` and `sync_docs.py` after creating a new skill.
13
154
  - Default ON — use `--no-auto-update` to skip.
14
155
  - New `--skills-dir` flag for specifying catalog update target directory.
@@ -20,7 +161,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
161
  - **Skill Creator Documentation** (`SKILL_skillcreator.md`):
21
162
  - Step 3: Documents new auto-update behavior and `--no-auto-update` / `--skills-dir` flags.
22
163
  - Step 6: Notes that manual catalog update is now only needed for modifications/deletions.
23
- - **SKILLS_CATALOG.md**: Regenerated with 45 public skills.
164
+ - **SKILLS_CATALOG.md**: Regenerated with 55 skills including `notebooklm-rag`.
24
165
 
25
166
  ### Fixed
26
167
 
package/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  `@techwavedev/agi-agent-kit` is a modular, deterministic framework designed to bridge the gap between LLM reasoning and reliable production execution. It scaffolds a "3-Layer Architecture" (Intent → Orchestration → Execution) that forces agents to use tested scripts rather than hallucinating code.
9
9
 
10
+ **v1.2.6** — Now with platform-adaptive orchestration and integrated semantic memory across Claude Code, Kiro IDE, Gemini, and Opencode.
11
+
10
12
  ---
11
13
 
12
14
  ## 🚀 Quick Start
@@ -23,18 +25,62 @@ You'll be prompted to choose a pack:
23
25
  - **knowledge** - Core + 36 specialized skills (API, Security, Design, Architecture)
24
26
  - **full** - Complete suite with `.agent/` structure (agents, workflows, rules)
25
27
 
28
+ After installation, run the **one-shot setup wizard** to auto-configure your environment:
29
+
30
+ ```bash
31
+ python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir .
32
+ ```
33
+
34
+ This detects your platform, scans the project stack, and configures everything with a single confirmation.
35
+
36
+ Then **boot the memory system** for automatic token savings:
37
+
38
+ ```bash
39
+ python3 execution/session_boot.py --auto-fix
40
+ ```
41
+
42
+ This checks Qdrant, Ollama, embedding models, and collections — auto-fixing any issues.
43
+
26
44
  ---
27
45
 
28
46
  ## ✨ Key Features
29
47
 
30
- | Feature | Description |
31
- | --------------------------- | -------------------------------------------------------------------------- |
32
- | **Deterministic Execution** | Separates business logic (Python scripts) from AI reasoning (Directives) |
33
- | **Modular Skill System** | Plug-and-play capabilities that can be added or removed instantly |
34
- | **Semantic Memory** | Built-in Qdrant-powered memory with 95% token savings via caching |
35
- | **Universal Compatibility** | Works with Claude, Gemini, and OpenAI via standardized context files |
36
- | **Self-Healing Workflows** | Agents read error logs, patch scripts, and update directives automatically |
37
- | **Self-Update** | Update to the latest version with a single command |
48
+ | Feature | Description |
49
+ | ----------------------------- | --------------------------------------------------------------------------- |
50
+ | **Deterministic Execution** | Separates business logic (Python scripts) from AI reasoning (Directives) |
51
+ | **Modular Skill System** | 56 plug-and-play skills that can be added or removed instantly |
52
+ | **Platform-Adaptive** | Auto-detects and optimizes for Claude Code, Kiro IDE, Gemini, and Opencode |
53
+ | **Multi-Agent Orchestration** | Agent Teams, subagents, Powers, or sequential personas adapts to platform |
54
+ | **Semantic Memory** | Built-in Qdrant-powered memory with 95% token savings via caching |
55
+ | **Deep RAG (NotebookLM)** | Opt-in autonomous research via Google NotebookLM + Gemini, fully MCP-driven |
56
+ | **Self-Healing Workflows** | Agents read error logs, patch scripts, and update directives automatically |
57
+ | **One-Shot Setup** | Platform detection + project stack scan + auto-configuration in one command |
58
+
59
+ ---
60
+
61
+ ## 🌐 Platform Support
62
+
63
+ The framework automatically detects your AI coding environment and activates the best available features:
64
+
65
+ | Platform | Orchestration Strategy | Key Features |
66
+ | --------------- | ----------------------------------- | -------------------------------------------- |
67
+ | **Claude Code** | Agent Teams (parallel) or Subagents | Plugins, marketplace, LSP, hooks |
68
+ | **Kiro IDE** | Powers + Autonomous Agent (async) | Dynamic MCP loading, hooks, cross-repo tasks |
69
+ | **Gemini** | Sequential personas via `@agent` | Skills, MCP servers, execution scripts |
70
+ | **Opencode** | Sequential personas via `@agent` | Skills, MCP servers, providers |
71
+
72
+ Run `/setup` to auto-detect and configure your platform, or use the setup script directly:
73
+
74
+ ```bash
75
+ # Interactive (one Y/n question)
76
+ python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir .
77
+
78
+ # Auto-apply everything
79
+ python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir . --auto
80
+
81
+ # Preview without changes
82
+ python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir . --dry-run
83
+ ```
38
84
 
39
85
  ---
40
86
 
@@ -43,16 +89,25 @@ You'll be prompted to choose a pack:
43
89
  ```
44
90
  your-project/
45
91
  ├── AGENTS.md # Master instruction file (symlinked to GEMINI.md, CLAUDE.md)
46
- ├── skills/ # Pre-built tools
92
+ ├── skills/ # 56 pre-built tools
47
93
  │ ├── webcrawler/ # Documentation harvesting
48
94
  │ ├── pdf-reader/ # PDF text extraction
49
95
  │ ├── qdrant-memory/ # Semantic caching & memory
50
96
  │ ├── documentation/ # Auto-documentation maintenance
51
- └── self-update/ # Framework self-update capability
97
+ ├── plugin-discovery/ # Platform detection & setup wizard
98
+ │ ├── parallel-agents/ # Multi-agent orchestration
99
+ │ ├── intelligent-routing/ # Smart agent selection & routing
100
+ │ ├── self-update/ # Framework self-update capability
101
+ │ └── ... # 48 more specialized skills
52
102
  ├── directives/ # SOPs in Markdown
103
+ │ └── memory_integration.md # Memory protocol reference
53
104
  ├── execution/ # Deterministic Python scripts
105
+ │ ├── session_boot.py # Session startup (Qdrant + Ollama check)
106
+ │ ├── session_init.py # Collection initializer
107
+ │ └── memory_manager.py # Store/retrieve/cache operations
54
108
  ├── skill-creator/ # Tools to create new skills
55
109
  └── .agent/ # (full pack) Agents, workflows, rules
110
+ └── workflows/ # /setup, /deploy, /test, /debug, etc.
56
111
  ```
57
112
 
58
113
  ---
@@ -68,6 +123,7 @@ The system operates on three layers:
68
123
  ├─────────────────────────────────────────────────────────┤
69
124
  │ Layer 2: ORCHESTRATION (Agent) │
70
125
  │ └─ LLM reads directive, decides which tool to call │
126
+ │ └─ Platform-adaptive: Teams, Subagents, or Personas │
71
127
  ├─────────────────────────────────────────────────────────┤
72
128
  │ Layer 3: EXECUTION (Code) │
73
129
  │ └─ Pure Python scripts (execution/) do the actual work │
@@ -78,16 +134,58 @@ The system operates on three layers:
78
134
 
79
135
  ---
80
136
 
137
+ ## 🧠 Semantic Memory
138
+
139
+ Built-in Qdrant-powered memory with automatic token savings:
140
+
141
+ | Scenario | Without Memory | With Memory | Savings |
142
+ | --------------------- | -------------- | ----------- | -------- |
143
+ | Repeated question | ~2000 tokens | 0 tokens | **100%** |
144
+ | Similar architecture | ~5000 tokens | ~500 tokens | **90%** |
145
+ | Past error resolution | ~3000 tokens | ~300 tokens | **90%** |
146
+
147
+ **Setup** (requires [Qdrant](https://qdrant.tech/) + [Ollama](https://ollama.com/)):
148
+
149
+ ```bash
150
+ # Start Qdrant
151
+ docker run -d -p 6333:6333 -v qdrant_storage:/qdrant/storage qdrant/qdrant
152
+
153
+ # Start Ollama + pull embedding model
154
+ ollama serve &
155
+ ollama pull nomic-embed-text
156
+
157
+ # Boot memory system (auto-creates collections)
158
+ python3 execution/session_boot.py --auto-fix
159
+ ```
160
+
161
+ Agents automatically run `session_boot.py` at session start (first instruction in `AGENTS.md`). Memory operations:
162
+
163
+ ```bash
164
+ # Auto-query (check cache + retrieve context)
165
+ python3 execution/memory_manager.py auto --query "your task summary"
166
+
167
+ # Store a decision
168
+ python3 execution/memory_manager.py store --content "what was decided" --type decision
169
+
170
+ # Health check
171
+ python3 execution/memory_manager.py health
172
+ ```
173
+
174
+ ---
175
+
81
176
  ## ⚡ Prerequisites
82
177
 
178
+ The `npx init` command automatically creates a `.venv` and installs all dependencies. Just activate it:
179
+
83
180
  ```bash
84
- pip install requests beautifulsoup4 html2text lxml qdrant-client
181
+ source .venv/bin/activate # macOS/Linux
182
+ # .venv\Scripts\activate # Windows
85
183
  ```
86
184
 
87
- Optional (for semantic memory with local embeddings):
185
+ If you need to reinstall or update dependencies:
88
186
 
89
187
  ```bash
90
- pip install ollama sentence-transformers
188
+ .venv/bin/pip install -r requirements.txt
91
189
  ```
92
190
 
93
191
  ---
@@ -100,6 +198,12 @@ pip install ollama sentence-transformers
100
198
  npx @techwavedev/agi-agent-kit init --pack=full
101
199
  ```
102
200
 
201
+ ### Auto-detect platform and configure environment
202
+
203
+ ```bash
204
+ python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir .
205
+ ```
206
+
103
207
  ### Update to latest version
104
208
 
105
209
  ```bash
@@ -108,6 +212,12 @@ npx @techwavedev/agi-agent-kit@latest init --pack=full
108
212
  python3 skills/self-update/scripts/update_kit.py
109
213
  ```
110
214
 
215
+ ### Boot memory system
216
+
217
+ ```bash
218
+ python3 execution/session_boot.py --auto-fix
219
+ ```
220
+
111
221
  ### System health check
112
222
 
113
223
  ```bash
@@ -128,17 +238,87 @@ python3 skill-creator/scripts/update_catalog.py --skills-dir skills/
128
238
 
129
239
  ---
130
240
 
241
+ ## 🎯 Activation Reference
242
+
243
+ Use these keywords, commands, and phrases to trigger specific capabilities:
244
+
245
+ ### Slash Commands (Workflows)
246
+
247
+ | Command | What It Does |
248
+ | --------------- | ------------------------------------------------ |
249
+ | `/setup` | Auto-detect platform and configure environment |
250
+ | `/setup-memory` | Initialize Qdrant + Ollama memory system |
251
+ | `/create` | Start interactive app builder dialogue |
252
+ | `/plan` | Create a structured project plan (no code) |
253
+ | `/enhance` | Add or update features in existing app |
254
+ | `/debug` | Activate systematic debugging mode |
255
+ | `/test` | Generate and run tests |
256
+ | `/deploy` | Pre-flight checks + deployment |
257
+ | `/orchestrate` | Multi-agent coordination for complex tasks |
258
+ | `/brainstorm` | Structured brainstorming with multiple options |
259
+ | `/preview` | Start/stop local dev server |
260
+ | `/status` | Show project progress and status board |
261
+ | `/update` | Update AGI Agent Kit to latest version |
262
+ | `/checkup` | Verify agents, workflows, skills, and core files |
263
+
264
+ ### Agent Mentions (`@agent`)
265
+
266
+ | Mention | Specialist | When To Use |
267
+ | ---------------------- | ----------------------- | ----------------------------------------- |
268
+ | `@orchestrator` | Multi-agent coordinator | Complex multi-domain tasks |
269
+ | `@project-planner` | Planning specialist | Roadmaps, task breakdowns, phase planning |
270
+ | `@frontend-specialist` | UI/UX architect | Web interfaces, React, Next.js |
271
+ | `@mobile-developer` | Mobile specialist | iOS, Android, React Native, Flutter |
272
+ | `@backend-specialist` | API/DB engineer | Server-side, databases, APIs |
273
+ | `@security-auditor` | Security expert | Vulnerability scanning, audits, hardening |
274
+ | `@debugger` | Debug specialist | Complex bug investigation |
275
+ | `@game-developer` | Game dev specialist | 2D/3D games, multiplayer, VR/AR |
276
+
277
+ ### Skill Trigger Keywords (Natural Language)
278
+
279
+ | Category | Trigger Words / Phrases | Skill Activated |
280
+ | ----------------- | --------------------------------------------------------------------- | ----------------------------------- |
281
+ | **Memory** | "don't use cache", "no cache", "skip memory", "fresh" | Memory opt-out |
282
+ | **Research** | "research my docs", "deep search", "@notebooklm", "query my notebook" | `notebooklm-rag` (Deep RAG) |
283
+ | **Documentation** | "update docs", "regenerate catalog", "sync documentation" | `documentation` |
284
+ | **Quality** | "lint", "format", "check", "validate", "static analysis" | `lint-and-validate` |
285
+ | **Testing** | "write tests", "run tests", "TDD", "test coverage" | `testing-patterns` / `tdd-workflow` |
286
+ | **Architecture** | "design system", "architecture decision", "ADR", "trade-off" | `architecture` |
287
+ | **Security** | "security scan", "vulnerability", "audit", "OWASP" | `red-team-tactics` |
288
+ | **Performance** | "lighthouse", "bundle size", "core web vitals", "profiling" | `performance-profiling` |
289
+ | **Design** | "design UI", "color scheme", "typography", "layout" | `frontend-design` |
290
+ | **Deployment** | "deploy", "rollback", "release", "CI/CD" | `deployment-procedures` |
291
+ | **API** | "REST API", "GraphQL", "tRPC", "API design" | `api-patterns` |
292
+ | **Database** | "schema design", "migration", "query optimization" | `database-design` |
293
+ | **Planning** | "plan this", "break down", "task list", "requirements" | `plan-writing` |
294
+ | **Brainstorming** | "explore options", "what are the approaches", "pros and cons" | `brainstorming` |
295
+ | **Code Review** | "review this", "code quality", "best practices" | `code-review-checklist` |
296
+ | **i18n** | "translate", "localization", "RTL", "locale" | `i18n-localization` |
297
+
298
+ ### Memory System Commands
299
+
300
+ | What You Want | Command / Phrase |
301
+ | ---------------------------- | -------------------------------------------------------------------------------- |
302
+ | **Boot memory** | `python3 execution/session_boot.py --auto-fix` |
303
+ | **Check before a task** | `python3 execution/memory_manager.py auto --query "..."` |
304
+ | **Store a decision** | `python3 execution/memory_manager.py store --content "..." --type decision` |
305
+ | **Cache a response** | `python3 execution/memory_manager.py cache-store --query "..." --response "..."` |
306
+ | **Health check** | `python3 execution/memory_manager.py health` |
307
+ | **Skip cache for this task** | Say "fresh", "no cache", or "skip memory" in your prompt |
308
+
309
+ ---
310
+
131
311
  ## 📚 Documentation
132
312
 
133
313
  - **[AGENTS.md](./AGENTS.md)** - Complete architecture and operating principles
134
- - **[skills/SKILLS_CATALOG.md](./skills/SKILLS_CATALOG.md)** - All available skills
314
+ - **[skills/SKILLS_CATALOG.md](./skills/SKILLS_CATALOG.md)** - All 56 available skills
135
315
  - **[CHANGELOG.md](./CHANGELOG.md)** - Version history
136
316
 
137
317
  ---
138
318
 
139
319
  ## 🛡️ Security
140
320
 
141
- This package includes a pre-flight security scanner (`verify_public_release.py`) that checks for private terms before publishing. All templates are sanitized for public use.
321
+ This package includes a pre-flight security scanner that checks for private terms before publishing. All templates are sanitized for public use.
142
322
 
143
323
  ---
144
324
 
package/bin/init.js CHANGED
@@ -19,6 +19,7 @@
19
19
  const fs = require('fs');
20
20
  const path = require('path');
21
21
  const readline = require('readline');
22
+ const { execSync } = require('child_process');
22
23
 
23
24
  // Color utilities for terminal output
24
25
  const colors = {
@@ -248,6 +249,24 @@ function copyBaseFiles(targetPath, templatesPath, options) {
248
249
  }
249
250
  }
250
251
 
252
+ // Copy execution scripts (memory system)
253
+ const srcExecution = path.join(templatesPath, 'base', 'execution');
254
+ const destExecution = path.join(targetPath, 'execution');
255
+
256
+ if (fs.existsSync(srcExecution)) {
257
+ copyDirSync(srcExecution, destExecution);
258
+ log.success('Installed execution/ (memory system scripts)');
259
+ }
260
+
261
+ // Copy directives
262
+ const srcDirectives = path.join(templatesPath, 'base', 'directives');
263
+ const destDirectives = path.join(targetPath, 'directives');
264
+
265
+ if (fs.existsSync(srcDirectives)) {
266
+ copyDirSync(srcDirectives, destDirectives);
267
+ log.success('Installed directives/');
268
+ }
269
+
251
270
  // Copy skill-creator
252
271
  const srcSkillCreator = path.join(templatesPath, 'base', 'skill-creator');
253
272
  const destSkillCreator = path.join(targetPath, 'skill-creator');
@@ -304,6 +323,120 @@ function copyAgentStructure(targetPath, templatesPath) {
304
323
  }
305
324
  }
306
325
 
326
+ // Setup Python virtual environment and install dependencies
327
+ function setupPythonEnv(targetPath) {
328
+ log.header('Setting up Python environment...');
329
+
330
+ const venvPath = path.join(targetPath, '.venv');
331
+ const requirementsPath = path.join(targetPath, 'requirements.txt');
332
+
333
+ // Skip if venv already exists
334
+ if (fs.existsSync(venvPath)) {
335
+ log.info('Python .venv already exists, skipping creation');
336
+ return;
337
+ }
338
+
339
+ // Check if requirements.txt exists
340
+ if (!fs.existsSync(requirementsPath)) {
341
+ log.warn('requirements.txt not found, skipping Python setup');
342
+ return;
343
+ }
344
+
345
+ // Detect Python
346
+ let pythonCmd = null;
347
+ for (const cmd of ['python3', 'python']) {
348
+ try {
349
+ execSync(`${cmd} --version`, { stdio: 'pipe' });
350
+ pythonCmd = cmd;
351
+ break;
352
+ } catch (e) {
353
+ // try next
354
+ }
355
+ }
356
+
357
+ if (!pythonCmd) {
358
+ log.warn('Python not found. Install Python 3.8+ and run:');
359
+ console.log(` ${colors.yellow}python3 -m venv .venv${colors.reset}`);
360
+ console.log(` ${colors.yellow}source .venv/bin/activate${colors.reset}`);
361
+ console.log(` ${colors.yellow}pip install -r requirements.txt${colors.reset}`);
362
+ return;
363
+ }
364
+
365
+ // Create venv
366
+ try {
367
+ log.info(`Creating .venv with ${pythonCmd}...`);
368
+ execSync(`${pythonCmd} -m venv "${venvPath}"`, { stdio: 'pipe' });
369
+ log.success('Created .venv/');
370
+ } catch (e) {
371
+ log.warn(`Failed to create venv: ${e.message}`);
372
+ console.log(` Try manually: ${colors.yellow}${pythonCmd} -m venv .venv${colors.reset}`);
373
+ return;
374
+ }
375
+
376
+ // Determine pip path (cross-platform)
377
+ const isWindows = process.platform === 'win32';
378
+ const pipPath = isWindows
379
+ ? path.join(venvPath, 'Scripts', 'pip')
380
+ : path.join(venvPath, 'bin', 'pip');
381
+
382
+ // Install dependencies
383
+ try {
384
+ log.info('Installing Python dependencies...');
385
+ execSync(`"${pipPath}" install -r "${requirementsPath}"`, {
386
+ stdio: 'pipe',
387
+ timeout: 300000 // 5 min timeout
388
+ });
389
+ log.success('All Python dependencies installed');
390
+ } catch (e) {
391
+ log.warn('Some dependencies may have failed to install');
392
+ console.log(` Run manually: ${colors.yellow}${isWindows ? '.venv\\Scripts\\pip' : '.venv/bin/pip'} install -r requirements.txt${colors.reset}`);
393
+ }
394
+
395
+ // Show activation hint
396
+ const activateCmd = isWindows ? '.venv\\Scripts\\activate' : 'source .venv/bin/activate';
397
+ log.info(`Activate with: ${colors.yellow}${activateCmd}${colors.reset}`);
398
+ }
399
+
400
+ // Auto-run platform setup wizard to pre-configure environment
401
+ function runPlatformSetup(targetPath) {
402
+ const setupScript = path.join(targetPath, 'skills', 'plugin-discovery', 'scripts', 'platform_setup.py');
403
+
404
+ if (!fs.existsSync(setupScript)) {
405
+ return; // Skill not installed (e.g. core pack)
406
+ }
407
+
408
+ log.header('Running platform setup wizard...');
409
+
410
+ // Use venv python if available, otherwise system python
411
+ const isWindows = process.platform === 'win32';
412
+ const venvPython = isWindows
413
+ ? path.join(targetPath, '.venv', 'Scripts', 'python')
414
+ : path.join(targetPath, '.venv', 'bin', 'python3');
415
+ const pythonCmd = fs.existsSync(venvPython) ? `"${venvPython}"` : 'python3';
416
+
417
+ try {
418
+ const output = execSync(
419
+ `${pythonCmd} "${setupScript}" --project-dir "${targetPath}" --auto`,
420
+ { stdio: 'pipe', timeout: 30000 }
421
+ ).toString();
422
+
423
+ // Show output
424
+ console.log(output);
425
+ } catch (e) {
426
+ // If --auto flag fails, try with piped stdin
427
+ try {
428
+ const output = execSync(
429
+ `${pythonCmd} "${setupScript}" --project-dir "${targetPath}"`,
430
+ { stdio: 'pipe', timeout: 30000, input: 'y\n' }
431
+ ).toString();
432
+ console.log(output);
433
+ } catch (e2) {
434
+ log.warn('Platform setup wizard could not auto-run');
435
+ console.log(` Run manually: ${colors.yellow}python3 skills/plugin-discovery/scripts/platform_setup.py --project-dir .${colors.reset}`);
436
+ }
437
+ }
438
+ }
439
+
307
440
  // Main init function
308
441
  async function init(options) {
309
442
  log.header('🚀 AGI Agent Kit Initializer');
@@ -348,15 +481,23 @@ async function init(options) {
348
481
  copyAgentStructure(options.path, templatesPath);
349
482
  }
350
483
 
484
+ // Setup Python environment
485
+ setupPythonEnv(options.path);
486
+
487
+ // Auto-run platform setup wizard
488
+ runPlatformSetup(options.path);
489
+
351
490
  // Final message
352
491
  log.header('✨ Installation complete!');
353
492
  console.log(`
354
493
  Next steps:
355
- 1. Review ${colors.cyan}AGENTS.md${colors.reset} for architecture overview
356
- 2. Install Python dependencies:
357
- ${colors.yellow}pip install requests beautifulsoup4 html2text lxml qdrant-client${colors.reset}
358
- 3. Check ${colors.cyan}skills/${colors.reset} for available capabilities
359
- 4. Create ${colors.cyan}.env${colors.reset} with your API keys
494
+ 1. Activate the Python environment:
495
+ ${colors.yellow}source .venv/bin/activate${colors.reset}
496
+ 2. Review ${colors.cyan}AGENTS.md${colors.reset} for architecture overview
497
+ 3. Boot the memory system (optional, requires Qdrant + Ollama):
498
+ ${colors.yellow}python3 execution/session_boot.py --auto-fix${colors.reset}
499
+ 4. Check ${colors.cyan}skills/${colors.reset} for available capabilities
500
+ 5. Create ${colors.cyan}.env${colors.reset} with your API keys
360
501
 
361
502
  Happy coding! 🎉
362
503
  `);
@@ -430,6 +571,14 @@ async function update(options) {
430
571
  console.log(` ${colors.green}✔${colors.reset} Updated skill-creator/`);
431
572
  }
432
573
 
574
+ // 3b. Update Execution Scripts (memory system)
575
+ const srcExec = path.join(templatesPath, 'base', 'execution');
576
+ const destExec = path.join(options.path, 'execution');
577
+ if (fs.existsSync(srcExec)) {
578
+ copyDirSync(srcExec, destExec);
579
+ console.log(` ${colors.green}✔${colors.reset} Updated execution/ (memory system scripts)`);
580
+ }
581
+
433
582
  // 4. Update Core Documentation if needed
434
583
  // We generally respect user's AGENTS.md, but maybe we update GEMINI.md/CLAUDE.md symlinks?
435
584
  if (options.symlinks) {