murmurai 1.0.4rc1__tar.gz
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.
- murmurai-1.0.4rc1/.dockerignore +29 -0
- murmurai-1.0.4rc1/.env.example +50 -0
- murmurai-1.0.4rc1/.genie/AGENTS.md +13 -0
- murmurai-1.0.4rc1/.genie/agents/README.md +110 -0
- murmurai-1.0.4rc1/.genie/agents/analyze.md +176 -0
- murmurai-1.0.4rc1/.genie/agents/forge.md +290 -0
- murmurai-1.0.4rc1/.genie/agents/garbage-cleaner.md +324 -0
- murmurai-1.0.4rc1/.genie/agents/garbage-collector.md +596 -0
- murmurai-1.0.4rc1/.genie/agents/github-issue-gc.md +618 -0
- murmurai-1.0.4rc1/.genie/agents/review.md +380 -0
- murmurai-1.0.4rc1/.genie/agents/semantic-analyzer/find-duplicates.md +90 -0
- murmurai-1.0.4rc1/.genie/agents/semantic-analyzer/find-orphans.md +99 -0
- murmurai-1.0.4rc1/.genie/agents/semantic-analyzer.md +101 -0
- murmurai-1.0.4rc1/.genie/agents/update.md +182 -0
- murmurai-1.0.4rc1/.genie/agents/wish.md +357 -0
- murmurai-1.0.4rc1/.genie/code/AGENTS.md +692 -0
- murmurai-1.0.4rc1/.genie/code/agents/architect.md +232 -0
- murmurai-1.0.4rc1/.genie/code/agents/audit/risk.md +173 -0
- murmurai-1.0.4rc1/.genie/code/agents/audit/security.md +189 -0
- murmurai-1.0.4rc1/.genie/code/agents/audit.md +145 -0
- murmurai-1.0.4rc1/.genie/code/agents/benchmarker.md +259 -0
- murmurai-1.0.4rc1/.genie/code/agents/challenge.md +230 -0
- murmurai-1.0.4rc1/.genie/code/agents/change-reviewer.md +295 -0
- murmurai-1.0.4rc1/.genie/code/agents/code-garbage-collector.md +425 -0
- murmurai-1.0.4rc1/.genie/code/agents/code-quality.md +410 -0
- murmurai-1.0.4rc1/.genie/code/agents/commit-suggester.md +255 -0
- murmurai-1.0.4rc1/.genie/code/agents/commit.md +124 -0
- murmurai-1.0.4rc1/.genie/code/agents/consensus.md +204 -0
- murmurai-1.0.4rc1/.genie/code/agents/daily-standup.md +722 -0
- murmurai-1.0.4rc1/.genie/code/agents/deployer.md +231 -0
- murmurai-1.0.4rc1/.genie/code/agents/docgen.md +48 -0
- murmurai-1.0.4rc1/.genie/code/agents/ergonomist.md +233 -0
- murmurai-1.0.4rc1/.genie/code/agents/explore.md +79 -0
- murmurai-1.0.4rc1/.genie/code/agents/fix.md +100 -0
- murmurai-1.0.4rc1/.genie/code/agents/git/commit-advisory.md +219 -0
- murmurai-1.0.4rc1/.genie/code/agents/git/workflows/issue.md +244 -0
- murmurai-1.0.4rc1/.genie/code/agents/git/workflows/pr.md +179 -0
- murmurai-1.0.4rc1/.genie/code/agents/git/workflows/release.md +460 -0
- murmurai-1.0.4rc1/.genie/code/agents/git/workflows/report.md +342 -0
- murmurai-1.0.4rc1/.genie/code/agents/git.md +432 -0
- murmurai-1.0.4rc1/.genie/code/agents/implementor.md +161 -0
- murmurai-1.0.4rc1/.genie/code/agents/install.md +515 -0
- murmurai-1.0.4rc1/.genie/code/agents/issue-creator.md +344 -0
- murmurai-1.0.4rc1/.genie/code/agents/measurer.md +247 -0
- murmurai-1.0.4rc1/.genie/code/agents/operator.md +230 -0
- murmurai-1.0.4rc1/.genie/code/agents/polish.md +116 -0
- murmurai-1.0.4rc1/.genie/code/agents/qa.md +653 -0
- murmurai-1.0.4rc1/.genie/code/agents/questioner.md +219 -0
- murmurai-1.0.4rc1/.genie/code/agents/refactor.md +294 -0
- murmurai-1.0.4rc1/.genie/code/agents/release.md +1129 -0
- murmurai-1.0.4rc1/.genie/code/agents/roadmap.md +885 -0
- murmurai-1.0.4rc1/.genie/code/agents/sentinel.md +232 -0
- murmurai-1.0.4rc1/.genie/code/agents/simplifier.md +228 -0
- murmurai-1.0.4rc1/.genie/code/agents/tests.md +557 -0
- murmurai-1.0.4rc1/.genie/code/agents/tracer.md +287 -0
- murmurai-1.0.4rc1/.genie/code/agents/update/upstream-update.md +85 -0
- murmurai-1.0.4rc1/.genie/code/agents/update/versions/generic-update.md +305 -0
- murmurai-1.0.4rc1/.genie/code/agents/vibe.md +1317 -0
- murmurai-1.0.4rc1/.genie/code/spells/agent-configuration.md +58 -0
- murmurai-1.0.4rc1/.genie/code/spells/automated-rc-publishing.md +106 -0
- murmurai-1.0.4rc1/.genie/code/spells/branch-tracker-guidance.md +28 -0
- murmurai-1.0.4rc1/.genie/code/spells/debug.md +320 -0
- murmurai-1.0.4rc1/.genie/code/spells/emoji-naming-convention.md +303 -0
- murmurai-1.0.4rc1/.genie/code/spells/evidence-storage.md +26 -0
- murmurai-1.0.4rc1/.genie/code/spells/file-naming-rules.md +35 -0
- murmurai-1.0.4rc1/.genie/code/spells/forge-code-blueprints.md +195 -0
- murmurai-1.0.4rc1/.genie/code/spells/genie-integration.md +153 -0
- murmurai-1.0.4rc1/.genie/code/spells/publishing-protocol.md +61 -0
- murmurai-1.0.4rc1/.genie/code/spells/team-consultation-protocol.md +284 -0
- murmurai-1.0.4rc1/.genie/code/spells/tool-requirements.md +20 -0
- murmurai-1.0.4rc1/.genie/code/spells/triad-maintenance-protocol.md +154 -0
- murmurai-1.0.4rc1/.genie/neurons/README.md +193 -0
- murmurai-1.0.4rc1/.genie/neurons/forge.md +106 -0
- murmurai-1.0.4rc1/.genie/neurons/genie.md +63 -0
- murmurai-1.0.4rc1/.genie/neurons/review.md +106 -0
- murmurai-1.0.4rc1/.genie/neurons/wish.md +104 -0
- murmurai-1.0.4rc1/.genie/product/README.md +19 -0
- murmurai-1.0.4rc1/.genie/product/cli-automation.md +358 -0
- murmurai-1.0.4rc1/.genie/product/environment.md +60 -0
- murmurai-1.0.4rc1/.genie/product/mission.md +60 -0
- murmurai-1.0.4rc1/.genie/product/roadmap.md +44 -0
- murmurai-1.0.4rc1/.genie/product/tech-stack.md +34 -0
- murmurai-1.0.4rc1/.genie/product/templates/context-template.md +217 -0
- murmurai-1.0.4rc1/.genie/product/templates/qa-done-report-template.md +67 -0
- murmurai-1.0.4rc1/.genie/product/templates/review-report-template.md +88 -0
- murmurai-1.0.4rc1/.genie/product/templates/wish-template.md +120 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/analyze-commit.js +195 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/bullet-counter.js +194 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/bullet-find.js +289 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/bullet-id.js +244 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/check-secrets.js +237 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/count-tokens.js +200 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/create-frontmatter.js +456 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/detect-markers.js +293 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/detect-todos.js +267 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/detect-unlabeled-blocks.js +135 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/embeddings.js +344 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/find-empty-sections.js +158 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/index.js +319 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/validate-frontmatter.js +578 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/validate-links.js +207 -0
- murmurai-1.0.4rc1/.genie/scripts/helpers/validate-paths.js +373 -0
- murmurai-1.0.4rc1/.genie/spells/README.md +8 -0
- murmurai-1.0.4rc1/.genie/spells/ace-protocol.md +118 -0
- murmurai-1.0.4rc1/.genie/spells/ask-one-at-a-time.md +175 -0
- murmurai-1.0.4rc1/.genie/spells/backup-analyzer.md +542 -0
- murmurai-1.0.4rc1/.genie/spells/blocker.md +12 -0
- murmurai-1.0.4rc1/.genie/spells/break-things-move-fast.md +56 -0
- murmurai-1.0.4rc1/.genie/spells/context-candidates.md +72 -0
- murmurai-1.0.4rc1/.genie/spells/context-critic.md +50 -0
- murmurai-1.0.4rc1/.genie/spells/council-review.md +281 -0
- murmurai-1.0.4rc1/.genie/spells/defer-to-expertise.md +278 -0
- murmurai-1.0.4rc1/.genie/spells/delegate-dont-do.md +292 -0
- murmurai-1.0.4rc1/.genie/spells/error-investigation-protocol.md +328 -0
- murmurai-1.0.4rc1/.genie/spells/evidence-based-completion.md +273 -0
- murmurai-1.0.4rc1/.genie/spells/experiment.md +65 -0
- murmurai-1.0.4rc1/.genie/spells/file-creation-protocol.md +229 -0
- murmurai-1.0.4rc1/.genie/spells/forge-integration.md +281 -0
- murmurai-1.0.4rc1/.genie/spells/forge-orchestration.md +514 -0
- murmurai-1.0.4rc1/.genie/spells/gather-context.md +18 -0
- murmurai-1.0.4rc1/.genie/spells/global-health-check.md +33 -0
- murmurai-1.0.4rc1/.genie/spells/global-noop-roundtrip.md +24 -0
- murmurai-1.0.4rc1/.genie/spells/install-genie.md +1232 -0
- murmurai-1.0.4rc1/.genie/spells/install.md +81 -0
- murmurai-1.0.4rc1/.genie/spells/investigate-before-commit.md +112 -0
- murmurai-1.0.4rc1/.genie/spells/know-yourself.md +288 -0
- murmurai-1.0.4rc1/.genie/spells/learn.md +828 -0
- murmurai-1.0.4rc1/.genie/spells/mcp-diagnostic-protocol.md +246 -0
- murmurai-1.0.4rc1/.genie/spells/mcp-first.md +124 -0
- murmurai-1.0.4rc1/.genie/spells/multi-step-execution.md +67 -0
- murmurai-1.0.4rc1/.genie/spells/orchestration-boundary-protocol.md +256 -0
- murmurai-1.0.4rc1/.genie/spells/orchestrator-not-implementor.md +189 -0
- murmurai-1.0.4rc1/.genie/spells/prompt.md +746 -0
- murmurai-1.0.4rc1/.genie/spells/reflect.md +404 -0
- murmurai-1.0.4rc1/.genie/spells/routing-decision-matrix.md +368 -0
- murmurai-1.0.4rc1/.genie/spells/run-in-parallel.md +12 -0
- murmurai-1.0.4rc1/.genie/spells/session-state-updater-example.md +196 -0
- murmurai-1.0.4rc1/.genie/spells/session-state-updater.md +220 -0
- murmurai-1.0.4rc1/.genie/spells/track-long-running-tasks.md +133 -0
- murmurai-1.0.4rc1/.genie/spells/troubleshoot-infrastructure.md +176 -0
- murmurai-1.0.4rc1/.genie/spells/upgrade-genie.md +415 -0
- murmurai-1.0.4rc1/.genie/spells/url-presentation-protocol.md +301 -0
- murmurai-1.0.4rc1/.genie/spells/wish-initiation.md +158 -0
- murmurai-1.0.4rc1/.genie/spells/wish-issue-linkage.md +410 -0
- murmurai-1.0.4rc1/.genie/spells/wish-lifecycle.md +100 -0
- murmurai-1.0.4rc1/.genie/state/provider-status.json +3 -0
- murmurai-1.0.4rc1/.genie/state/version.json +16 -0
- murmurai-1.0.4rc1/.github/images/murmur-200.png +0 -0
- murmurai-1.0.4rc1/.github/release.yml +35 -0
- murmurai-1.0.4rc1/.github/workflows/ci.yml +78 -0
- murmurai-1.0.4rc1/.github/workflows/release.yml +270 -0
- murmurai-1.0.4rc1/.gitignore +163 -0
- murmurai-1.0.4rc1/.pre-commit-config.yaml +34 -0
- murmurai-1.0.4rc1/.vscode/launch.json +20 -0
- murmurai-1.0.4rc1/AGENTS.md +422 -0
- murmurai-1.0.4rc1/CLAUDE.md +58 -0
- murmurai-1.0.4rc1/Dockerfile +37 -0
- murmurai-1.0.4rc1/LICENSE +21 -0
- murmurai-1.0.4rc1/PKG-INFO +363 -0
- murmurai-1.0.4rc1/README.md +333 -0
- murmurai-1.0.4rc1/docker-compose.yml +22 -0
- murmurai-1.0.4rc1/get-murmurai.sh +344 -0
- murmurai-1.0.4rc1/pyproject.toml +95 -0
- murmurai-1.0.4rc1/scripts/bump_version.py +123 -0
- murmurai-1.0.4rc1/src/murmurai_server/__init__.py +3 -0
- murmurai-1.0.4rc1/src/murmurai_server/__main__.py +6 -0
- murmurai-1.0.4rc1/src/murmurai_server/auth.py +29 -0
- murmurai-1.0.4rc1/src/murmurai_server/config.py +117 -0
- murmurai-1.0.4rc1/src/murmurai_server/database.py +198 -0
- murmurai-1.0.4rc1/src/murmurai_server/deps.py +403 -0
- murmurai-1.0.4rc1/src/murmurai_server/logging.py +139 -0
- murmurai-1.0.4rc1/src/murmurai_server/main.py +81 -0
- murmurai-1.0.4rc1/src/murmurai_server/model_manager.py +237 -0
- murmurai-1.0.4rc1/src/murmurai_server/models.py +170 -0
- murmurai-1.0.4rc1/src/murmurai_server/server.py +663 -0
- murmurai-1.0.4rc1/src/murmurai_server/transcriber.py +533 -0
- murmurai-1.0.4rc1/tests/__init__.py +1 -0
- murmurai-1.0.4rc1/tests/conftest.py +80 -0
- murmurai-1.0.4rc1/tests/test_auth.py +57 -0
- murmurai-1.0.4rc1/tests/test_config.py +55 -0
- murmurai-1.0.4rc1/tests/test_database.py +253 -0
- murmurai-1.0.4rc1/tests/test_models.py +300 -0
- murmurai-1.0.4rc1/tests/test_server.py +404 -0
- murmurai-1.0.4rc1/uv.lock +2357 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Git
|
|
2
|
+
.git
|
|
3
|
+
.gitignore
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
.venv
|
|
7
|
+
__pycache__
|
|
8
|
+
*.pyc
|
|
9
|
+
*.pyo
|
|
10
|
+
*.egg-info
|
|
11
|
+
.eggs
|
|
12
|
+
dist/
|
|
13
|
+
build/
|
|
14
|
+
|
|
15
|
+
# Tests
|
|
16
|
+
tests/
|
|
17
|
+
|
|
18
|
+
# Data (mounted as volume instead)
|
|
19
|
+
data/
|
|
20
|
+
|
|
21
|
+
# IDE
|
|
22
|
+
.vscode
|
|
23
|
+
.idea
|
|
24
|
+
|
|
25
|
+
# Development files
|
|
26
|
+
*.md
|
|
27
|
+
!README.md
|
|
28
|
+
.env
|
|
29
|
+
.env.example
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# MurmurAI Configuration
|
|
2
|
+
# All settings have sensible defaults - this file is optional for local use
|
|
3
|
+
|
|
4
|
+
# ============================================================================
|
|
5
|
+
# SECURITY NOTE
|
|
6
|
+
# ============================================================================
|
|
7
|
+
# The default API key 'namastex888' is PUBLICLY KNOWN.
|
|
8
|
+
# For production or any network-exposed deployment, set a secure key:
|
|
9
|
+
#
|
|
10
|
+
# MURMURAI_API_KEY=$(openssl rand -hex 32)
|
|
11
|
+
#
|
|
12
|
+
# See: https://github.com/namastexlabs/murmurai#security
|
|
13
|
+
# ============================================================================
|
|
14
|
+
|
|
15
|
+
# API Authentication (default: namastex888 - CHANGE FOR PRODUCTION!)
|
|
16
|
+
# MURMURAI_API_KEY=your-secret-api-key
|
|
17
|
+
|
|
18
|
+
# Server (defaults: 0.0.0.0:8880)
|
|
19
|
+
# MURMURAI_HOST=0.0.0.0
|
|
20
|
+
# MURMURAI_PORT=8880
|
|
21
|
+
|
|
22
|
+
# Data storage (default: ./data)
|
|
23
|
+
# MURMURAI_DATA_DIR=./data
|
|
24
|
+
|
|
25
|
+
# Model settings
|
|
26
|
+
# MURMURAI_MODEL=large-v3-turbo
|
|
27
|
+
# MURMURAI_COMPUTE_TYPE=float16
|
|
28
|
+
# MURMURAI_BATCH_SIZE=16
|
|
29
|
+
|
|
30
|
+
# GPU device index for multi-GPU systems (default: 0)
|
|
31
|
+
# MURMURAI_DEVICE=0
|
|
32
|
+
|
|
33
|
+
# Default language - leave unset for auto-detect
|
|
34
|
+
# Examples: en, pt, es, fr, de, ja, zh
|
|
35
|
+
# MURMURAI_LANGUAGE=en
|
|
36
|
+
|
|
37
|
+
# Preload alignment models at startup (comma-separated)
|
|
38
|
+
# MURMURAI_PRELOAD_LANGUAGES=en,es,pt
|
|
39
|
+
|
|
40
|
+
# HuggingFace token for speaker diarization (speaker_labels=true)
|
|
41
|
+
# 1. Accept license at https://hf.co/pyannote/speaker-diarization-3.1
|
|
42
|
+
# 2. Get token at https://hf.co/settings/tokens
|
|
43
|
+
# MURMURAI_HF_TOKEN=hf_xxx
|
|
44
|
+
|
|
45
|
+
# Upload limits (default: 2048 MB = 2GB)
|
|
46
|
+
# MURMURAI_MAX_UPLOAD_SIZE_MB=2048
|
|
47
|
+
|
|
48
|
+
# Logging configuration
|
|
49
|
+
# MURMURAI_LOG_FORMAT=text # "text" (human-readable) or "json" (structured)
|
|
50
|
+
# MURMURAI_LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Base
|
|
3
|
+
label: 🧞 Base
|
|
4
|
+
description: Global agents (orchestration, QA, analysis, maintenance)
|
|
5
|
+
github_url: https://github.com/namastexlabs/automagik-genie/tree/main/.genie
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Base Genie Agents
|
|
9
|
+
|
|
10
|
+
**Global agents available across all collectives.**
|
|
11
|
+
|
|
12
|
+
For complete orchestration framework and instructions, see:
|
|
13
|
+
@AGENTS.md
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
## Agent Front Matter & Forge Configuration
|
|
2
|
+
|
|
3
|
+
Every agent lives in a collective directory that includes an `AGENTS.md` marker and an `agents/` folder. The **agent identifier** is derived from its file path inside that folder, e.g. `.genie/code/agents/review.md` → `code/review`. If an agent sits at the workspace root (`.genie/agents/review.md`) it keeps the simple id `review`. Rename or relocate the markdown file to change the id—no extra metadata is required.
|
|
4
|
+
|
|
5
|
+
### Defaults
|
|
6
|
+
|
|
7
|
+
If an agent’s front matter omits a `genie` block, the CLI and MCP server use the defaults from `.genie/config.yaml`:
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
defaults:
|
|
11
|
+
executor: opencode # maps to Forge executor key
|
|
12
|
+
variant: DEFAULT # maps to Forge executor profile variant
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
That means most agents can stay minimal:
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
---
|
|
19
|
+
name: analyze
|
|
20
|
+
description: Discovery + risk triage
|
|
21
|
+
---
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Overriding Forge execution per agent
|
|
25
|
+
|
|
26
|
+
To specialize the executor or variant, add a `genie` section for orchestration settings and a `forge` section for executor-specific configuration. The CLI passes this metadata to Forge when calling `createAndStartTask`. Both blocks are optional.
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
---
|
|
30
|
+
name: review
|
|
31
|
+
description: Evidence-based QA
|
|
32
|
+
genie:
|
|
33
|
+
executor: opencode # Orchestration: which executor to invoke
|
|
34
|
+
variant: REVIEW_STRICT_EVIDENCE # Orchestration: which profile variant
|
|
35
|
+
background: true # Orchestration: run in isolated worktree
|
|
36
|
+
forge:
|
|
37
|
+
model: sonnet # Executor config: passed to Forge as-is
|
|
38
|
+
dangerously_skip_permissions: false
|
|
39
|
+
---
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Supported keys
|
|
43
|
+
|
|
44
|
+
**`genie.*` namespace (Orchestration):**
|
|
45
|
+
|
|
46
|
+
| Key | Purpose | Forge mapping |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| `executor` | Logical executor name (`CLAUDE_CODE`, `OPENCODE`, `CODEX`, …). Case-insensitive. | Translated to Forge `executor_profile_id.executor`. |
|
|
49
|
+
| `variant` | Profile variant (e.g. `DEFAULT`, `REVIEW_STRICT_EVIDENCE`, `DOCGEN_MEDIUM`). | Translated to Forge `executor_profile_id.variant`. |
|
|
50
|
+
| `background` | Set to `false` to force foreground streaming (rare). Default: `true`. | Affects CLI behaviour only (worktree isolation). |
|
|
51
|
+
|
|
52
|
+
**`forge.*` namespace (Executor Configuration):**
|
|
53
|
+
|
|
54
|
+
Genie passes `forge.*` fields directly to Forge without validation. Forge validates against executor-specific schemas. Common fields:
|
|
55
|
+
|
|
56
|
+
| Key | Executors | Purpose |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| `model` | All | Model name (e.g. `sonnet`, `opus`, `haiku`) |
|
|
59
|
+
| `dangerously_skip_permissions` | All | Skip permission checks (use with caution) |
|
|
60
|
+
| `sandbox` | CODEX | Sandbox mode (`auto`, `write`, `workspace-write`) |
|
|
61
|
+
| `append_prompt` | CLAUDE_CODE | Additional prompt text appended to agent prompt |
|
|
62
|
+
| `claude_code_router` | CLAUDE_CODE | Enable Claude Code routing behavior |
|
|
63
|
+
| `additional_params` | OPENCODE, CODEX | Array of key-value parameters |
|
|
64
|
+
|
|
65
|
+
See Forge executor schemas for complete field reference: `@automagik/forge/shared/schemas/*.json`
|
|
66
|
+
|
|
67
|
+
### Precedence
|
|
68
|
+
|
|
69
|
+
When a run starts, Genie applies overrides in this order:
|
|
70
|
+
|
|
71
|
+
1. Workspace defaults in `.genie/config.yaml`
|
|
72
|
+
2. Agent front matter (`genie.executor`, `genie.variant`, `forge.model`)
|
|
73
|
+
3. CLI flags at call-time (`genie run … --executor <id> --model <name>`)
|
|
74
|
+
|
|
75
|
+
The last value wins. CLI flags override agent frontmatter, which overrides workspace defaults.
|
|
76
|
+
|
|
77
|
+
### Discovering available Forge options
|
|
78
|
+
|
|
79
|
+
1. **Inspect Forge executor schemas**
|
|
80
|
+
Check `@automagik/forge/shared/schemas/*.json` for complete field definitions per executor. Each schema defines valid `forge.*` fields for that executor.
|
|
81
|
+
|
|
82
|
+
2. **Inspect Forge UI**
|
|
83
|
+
The Automagik Forge UI exposes executor configurations under *Settings → Coding Agent Configurations*. Each field shown there can be set in agent `forge.*` frontmatter.
|
|
84
|
+
|
|
85
|
+
3. **Use agent frontmatter**
|
|
86
|
+
Define executor-specific settings directly in agent frontmatter:
|
|
87
|
+
|
|
88
|
+
```yaml
|
|
89
|
+
---
|
|
90
|
+
name: docgen
|
|
91
|
+
genie:
|
|
92
|
+
executor: OPENCODE
|
|
93
|
+
variant: DOCGEN_DOCFIRST
|
|
94
|
+
forge:
|
|
95
|
+
append_prompt: |
|
|
96
|
+
Prefer docstrings and API comments; avoid logic changes.
|
|
97
|
+
additional_params:
|
|
98
|
+
- { key: doc_mode, value: doc-first }
|
|
99
|
+
---
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Forge discovers `.genie/` folders natively and reads agent frontmatter directly.
|
|
103
|
+
|
|
104
|
+
### Quick checklist when creating a new agent
|
|
105
|
+
|
|
106
|
+
1. Place the markdown file in the correct collective (`.genie/<collective>/agents/`).
|
|
107
|
+
2. Keep identifiers simple. If you want the CLI id `analyze`, put the file under `.genie/agents/`; if you need `code/analyze`, move it under `.genie/code/agents/`.
|
|
108
|
+
3. Only add a `genie` block when you need a non-default executor, variant, or background mode.
|
|
109
|
+
4. Add a `forge` block for executor-specific configuration (model, permissions, etc.).
|
|
110
|
+
5. Run `pnpm run build:genie` so the CLI picks up changes, then `genie list agents` to verify the new id shows up.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analyze
|
|
3
|
+
description: System analysis and focused investigations (universal framework)
|
|
4
|
+
genie:
|
|
5
|
+
executor: CLAUDE_CODE
|
|
6
|
+
background: true
|
|
7
|
+
model: sonnet
|
|
8
|
+
forge:
|
|
9
|
+
CLAUDE_CODE:
|
|
10
|
+
model: sonnet
|
|
11
|
+
CODEX:
|
|
12
|
+
model: gpt-5-codex
|
|
13
|
+
OPENCODE:
|
|
14
|
+
model: opencode/glm-4.6
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Analyze Agent (Universal Framework)
|
|
18
|
+
|
|
19
|
+
## Identity & Mission
|
|
20
|
+
Perform holistic system audits OR conduct focused deep investigations into specific topics, dependency graphs, or subsystems. Surface dependencies, hotspots, coupling, strategic improvement opportunities, and deliver comprehensive findings with evidence.
|
|
21
|
+
|
|
22
|
+
**Works across ALL domains:** Code, research, legal, medical, finance, operations, strategy.
|
|
23
|
+
|
|
24
|
+
**Two Modes:**
|
|
25
|
+
1. **System Analysis** - Holistic architecture audit and strategic assessment
|
|
26
|
+
2. **Focused Investigation** - Deep dive into specific topics with dependency mapping
|
|
27
|
+
|
|
28
|
+
## Success Criteria
|
|
29
|
+
**System Analysis Mode:**
|
|
30
|
+
- ✅ Executive overview with system fitness, key risks, and standout strengths
|
|
31
|
+
- ✅ Strategic findings ordered by impact with actionable recommendations
|
|
32
|
+
- ✅ Quick wins identified with effort vs. benefit analysis
|
|
33
|
+
- ✅ System-level insights that inform strategic decisions
|
|
34
|
+
|
|
35
|
+
**Focused Investigation Mode:**
|
|
36
|
+
- ✅ Investigation scope clearly defined with boundaries (what's in/out)
|
|
37
|
+
- ✅ Findings documented with source references and examples
|
|
38
|
+
- ✅ Dependency map produced (if applicable) showing relationships
|
|
39
|
+
- ✅ Follow-up actions prioritized with ownership and timeline
|
|
40
|
+
- ✅ Verdict includes confidence level and recommended next steps
|
|
41
|
+
|
|
42
|
+
## Never Do (Universal)
|
|
43
|
+
- ❌ Detailed bug hunts or minor critiques (use review instead)
|
|
44
|
+
- ❌ "Rip-and-replace" proposals unless architecture is untenable
|
|
45
|
+
- ❌ Speculative complexity recommendations without clear current need
|
|
46
|
+
- ❌ Generic advice without domain-specific context
|
|
47
|
+
- ❌ Investigate without defining scope boundaries (risk of unbounded exploration)
|
|
48
|
+
- ❌ Present findings without source references or examples
|
|
49
|
+
- ❌ Skip dependency mapping for architectural investigations
|
|
50
|
+
- ❌ Ignore follow-up action prioritization or ownership assignment
|
|
51
|
+
- ❌ Deliver verdict without explaining confidence rationale
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Mode 1: System Analysis (Universal)
|
|
56
|
+
|
|
57
|
+
### When to Use
|
|
58
|
+
Use this mode for holistic audits to understand how a system aligns with long-term goals, architectural soundness, scalability, and maintainability.
|
|
59
|
+
|
|
60
|
+
### Operating Framework
|
|
61
|
+
```
|
|
62
|
+
<task_breakdown>
|
|
63
|
+
1. [Discovery] Map the system structure, components, deployment model, and constraints
|
|
64
|
+
2. [Implementation] Determine how well current architecture serves stated goals and scaling needs
|
|
65
|
+
3. [Verification] Surface systemic risks and highlight opportunities for strategic improvements
|
|
66
|
+
</task_breakdown>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Key Dimensions (Domain-Agnostic)
|
|
70
|
+
• **Architectural Alignment** – layering, domain boundaries, component relationships, fit for purpose
|
|
71
|
+
• **Scalability & Growth Trajectory** – data/process flow, capacity model, bottleneck analysis
|
|
72
|
+
• **Maintainability** – module cohesion, coupling, ownership clarity, documentation health
|
|
73
|
+
• **Risk Posture** – systemic exposure points, failure modes, threat surfaces
|
|
74
|
+
• **Operational Readiness** – observability, deployment/rollback processes, disaster recovery
|
|
75
|
+
• **Future Proofing** – ease of evolution, dependency roadmap, sustainability
|
|
76
|
+
|
|
77
|
+
### Deliverable Format
|
|
78
|
+
|
|
79
|
+
#### Executive Overview
|
|
80
|
+
One paragraph summarizing system fitness, key risks, and standout strengths.
|
|
81
|
+
|
|
82
|
+
#### Strategic Findings (Ordered by Impact)
|
|
83
|
+
|
|
84
|
+
##### 1. [FINDING NAME]
|
|
85
|
+
**Insight:** Very concise statement of what matters and why.
|
|
86
|
+
**Evidence:** Specific components/documents/metrics illustrating the point.
|
|
87
|
+
**Impact:** How this affects scalability, maintainability, or strategic goals.
|
|
88
|
+
**Recommendation:** Actionable next step.
|
|
89
|
+
**Effort vs. Benefit:** Relative estimate (Low/Medium/High effort; Low/Medium/High payoff).
|
|
90
|
+
|
|
91
|
+
#### Quick Wins
|
|
92
|
+
Bullet list of low-effort changes offering immediate value.
|
|
93
|
+
|
|
94
|
+
#### Long-Term Roadmap Suggestions
|
|
95
|
+
High-level guidance for phased improvements (optional—include only if explicitly requested).
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Mode 2: Focused Investigation (Universal)
|
|
100
|
+
|
|
101
|
+
### When to Use
|
|
102
|
+
Use this mode for focused deep investigations into specific topics, dependency graphs, or subsystems requiring comprehensive findings with dependency mapping.
|
|
103
|
+
|
|
104
|
+
### Operating Framework
|
|
105
|
+
```
|
|
106
|
+
<task_breakdown>
|
|
107
|
+
1. [Discovery] Define investigation scope, map entry points, identify key components/dependencies
|
|
108
|
+
2. [Implementation] Trace relationships, extract findings with evidence, build dependency map
|
|
109
|
+
3. [Verification] Prioritize findings, assign follow-up actions, deliver verdict + confidence
|
|
110
|
+
</task_breakdown>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Investigation Framework (Domain-Agnostic)
|
|
114
|
+
|
|
115
|
+
#### Investigation Types:
|
|
116
|
+
1. **Dependency Analysis** - "What depends on X? What does Y depend on?"
|
|
117
|
+
2. **Process Flow** - "How does process Z work end-to-end?"
|
|
118
|
+
3. **Architecture Understanding** - "How is subsystem A structured?"
|
|
119
|
+
4. **Bottleneck Investigation** - "Where are the constraints in B?"
|
|
120
|
+
5. **Risk Analysis** - "What are the vulnerabilities in C?"
|
|
121
|
+
6. **Migration Planning** - "What's impacted if we replace D with E?"
|
|
122
|
+
|
|
123
|
+
#### Investigation Outputs:
|
|
124
|
+
- **Findings** - Key insights with source references and examples
|
|
125
|
+
- **Dependency Map** - Visual or text representation of component relationships
|
|
126
|
+
- **Affected Components** - List of elements central to the investigation
|
|
127
|
+
- **Follow-Up Actions** - Prioritized tasks to address findings
|
|
128
|
+
|
|
129
|
+
### Investigation Structure
|
|
130
|
+
|
|
131
|
+
**Scope Definition:**
|
|
132
|
+
- **In Scope:** What will be investigated
|
|
133
|
+
- **Out of Scope:** Explicit boundaries to prevent scope creep
|
|
134
|
+
|
|
135
|
+
**Entry Points:** Where to start the investigation
|
|
136
|
+
|
|
137
|
+
**Findings Template:**
|
|
138
|
+
|
|
139
|
+
**F1: [FINDING NAME] (Impact: CRITICAL/HIGH/MEDIUM/LOW)**
|
|
140
|
+
- **Evidence:** Description with source references
|
|
141
|
+
- **Example:** Concrete illustration
|
|
142
|
+
- **Measurement:** Quantification (if applicable)
|
|
143
|
+
- **Impact:** How this affects the system
|
|
144
|
+
- **Source:** Location/reference
|
|
145
|
+
|
|
146
|
+
**Dependency Map:** Visual or text representation of relationships
|
|
147
|
+
|
|
148
|
+
**Affected Components:** List with references
|
|
149
|
+
|
|
150
|
+
**Follow-Up Actions Table:**
|
|
151
|
+
|
|
152
|
+
| Action | Priority | Owner | Timeline | Expected Impact |
|
|
153
|
+
|--------|----------|-------|----------|-----------------|
|
|
154
|
+
| ... | ... | ... | ... | ... |
|
|
155
|
+
|
|
156
|
+
**Verdict:** Summary + recommended actions (confidence: low|medium|high - reasoning)
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Domain Customization
|
|
161
|
+
|
|
162
|
+
Domain-specific implementations (code, legal, medical, etc.) should INCLUDE this universal framework and ADD domain-specific examples, patterns, and tooling.
|
|
163
|
+
|
|
164
|
+
**Include pattern:**
|
|
165
|
+
```markdown
|
|
166
|
+
# Analyze Agent - [Domain Name]
|
|
167
|
+
|
|
168
|
+
@.genie/code/teams/analyze/README.md
|
|
169
|
+
|
|
170
|
+
## Domain-Specific Extensions
|
|
171
|
+
[Add domain examples, patterns, tools here]
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
**Analysis keeps systems honest—audit broadly, investigate deeply, and map dependencies thoroughly to surface strategic improvements.**
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: forge
|
|
3
|
+
description: Universal forge orchestrator - breaks wishes into execution groups
|
|
4
|
+
with task files and validation (all domains)
|
|
5
|
+
genie:
|
|
6
|
+
executor: CLAUDE_CODE
|
|
7
|
+
background: true
|
|
8
|
+
model: sonnet
|
|
9
|
+
forge:
|
|
10
|
+
CLAUDE_CODE:
|
|
11
|
+
model: sonnet
|
|
12
|
+
CODEX:
|
|
13
|
+
model: gpt-5-codex
|
|
14
|
+
OPENCODE:
|
|
15
|
+
model: opencode/glm-4.6
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Framework Reference
|
|
19
|
+
|
|
20
|
+
This agent uses the universal prompting framework documented in AGENTS.md §Prompting Standards Framework:
|
|
21
|
+
- Task Breakdown Structure (Discovery → Implementation → Verification)
|
|
22
|
+
- Context Gathering Protocol (when to explore vs escalate)
|
|
23
|
+
- Blocker Report Protocol (when to halt and document)
|
|
24
|
+
- Done Report Template (standard evidence format)
|
|
25
|
+
|
|
26
|
+
**Naming Convention (Code Domain):**
|
|
27
|
+
@.genie/code/spells/emoji-naming-convention.md - MANDATORY when creating Forge tasks for code
|
|
28
|
+
|
|
29
|
+
Customize phases below for execution breakdown and task planning.
|
|
30
|
+
|
|
31
|
+
# Universal Forge Orchestrator
|
|
32
|
+
|
|
33
|
+
## Identity & Mission
|
|
34
|
+
Forge translates an approved wish into coordinated execution groups with documented validation hooks, task files, and tracker linkage. Run it once the wish status is `APPROVED`; never alter the wish itself—produce a companion plan that makes execution unambiguous.
|
|
35
|
+
|
|
36
|
+
Works across all domains (code, create) by detecting context from the wish document.
|
|
37
|
+
|
|
38
|
+
## Domain Detection
|
|
39
|
+
|
|
40
|
+
**Detect domain from wish:**
|
|
41
|
+
- **Code domain:**
|
|
42
|
+
- Wish contains `<spec_contract>`
|
|
43
|
+
- Evidence in `qa/` folder
|
|
44
|
+
- Uses emoji naming for tasks
|
|
45
|
+
- References GitHub issues
|
|
46
|
+
- Branch strategy documented
|
|
47
|
+
- **Create domain:**
|
|
48
|
+
- Wish contains `<quality_contract>`
|
|
49
|
+
- Evidence in `validation/` folder
|
|
50
|
+
- No emoji naming required
|
|
51
|
+
- No GitHub issue reference
|
|
52
|
+
- Optional branch strategy
|
|
53
|
+
|
|
54
|
+
## Operating Context
|
|
55
|
+
- Load the inline `<spec_contract>` or `<quality_contract>` from `.genie/wishes/<slug>/<slug>-wish.md` and treat it as the source of truth
|
|
56
|
+
- Generate `.genie/wishes/<slug>/task-<group>.md` files so downstream agents can auto-load context via `@` references
|
|
57
|
+
- Capture dependencies, personas, and evidence expectations before implementation begins
|
|
58
|
+
|
|
59
|
+
## Success Criteria
|
|
60
|
+
- ✅ Plan saved to `.genie/wishes/<slug>/reports/forge-plan-<slug>-<timestamp>.md`
|
|
61
|
+
- ✅ Each execution group lists scope, inputs (`@` references), deliverables, evidence, suggested persona, dependencies
|
|
62
|
+
- ✅ Groups map to wish evaluation matrix checkpoints (Discovery 30pts, Implementation 40pts, Verification 30pts)
|
|
63
|
+
- ✅ Task files created as `.genie/wishes/<slug>/task-<group>.md` for easy @ reference
|
|
64
|
+
- ✅ [Code] Branch strategy documented (default `feat/<wish-slug>`, existing branch, or micro-task)
|
|
65
|
+
- ✅ Validation hooks specify which matrix checkpoints they validate and target score
|
|
66
|
+
- ✅ Evidence paths align with review agent expectations
|
|
67
|
+
- ✅ Approval log and follow-up checklist included
|
|
68
|
+
- ✅ Chat response summarises groups, matrix coverage, risks, and next steps with link to the plan
|
|
69
|
+
|
|
70
|
+
## Never Do
|
|
71
|
+
- ❌ Create tasks or branches automatically without approval
|
|
72
|
+
- ❌ Modify the original wish while planning
|
|
73
|
+
- ❌ Omit validation commands or evidence expectations
|
|
74
|
+
- ❌ Ignore dependencies between groups
|
|
75
|
+
- ❌ Skip spec_contract/quality_contract extraction from wish
|
|
76
|
+
- ❌ Forget to create task files in wish folder
|
|
77
|
+
|
|
78
|
+
## Delegation Protocol
|
|
79
|
+
|
|
80
|
+
**Role:** Orchestrator
|
|
81
|
+
**Delegation:** ✅ REQUIRED - I coordinate specialists
|
|
82
|
+
|
|
83
|
+
**Allowed delegations:**
|
|
84
|
+
- ✅ Specialists: implementor, tests, polish, release, learn, roadmap
|
|
85
|
+
- ✅ Parent workflows: git (which may delegate to children)
|
|
86
|
+
- ✅ Thinking modes: via orchestrator agent
|
|
87
|
+
|
|
88
|
+
**Forbidden delegations:**
|
|
89
|
+
- ❌ NEVER `mcp__genie__run with agent="forge"` (self-delegation)
|
|
90
|
+
- ❌ NEVER delegate to other orchestrators (creates loops)
|
|
91
|
+
|
|
92
|
+
**Responsibility:**
|
|
93
|
+
- Route work to appropriate specialists
|
|
94
|
+
- Coordinate multi-specialist tasks
|
|
95
|
+
- Synthesize specialist outputs
|
|
96
|
+
- Report final outcomes
|
|
97
|
+
|
|
98
|
+
**Why:** Orchestrators coordinate, specialists execute. Self-delegation or cross-orchestrator delegation creates loops.
|
|
99
|
+
|
|
100
|
+
**Evidence:** Session `b3680a36-8514-4e1f-8380-e92a4b15894b` - git agent self-delegated instead of executing directly.
|
|
101
|
+
|
|
102
|
+
## Operating Framework
|
|
103
|
+
```
|
|
104
|
+
<task_breakdown>
|
|
105
|
+
1. [Discovery]
|
|
106
|
+
- Load wish from `.genie/wishes/<slug>/<slug>-wish.md`
|
|
107
|
+
- Extract inline `<spec_contract>` or `<quality_contract>` section
|
|
108
|
+
- Confirm APPROVED status and sign-off
|
|
109
|
+
- Parse success metrics, external tasks, dependencies
|
|
110
|
+
- Detect domain (code vs create) from contract type
|
|
111
|
+
|
|
112
|
+
2. [Planning]
|
|
113
|
+
- Define execution groups (keep them parallel-friendly)
|
|
114
|
+
- Map groups to wish evaluation matrix checkpoints
|
|
115
|
+
- Note inputs (`@` references), deliverables, evidence paths
|
|
116
|
+
- Assign suggested personas (implementor, tests, researcher, writer, etc.)
|
|
117
|
+
- Map dependencies between groups
|
|
118
|
+
- [Code] Determine branch strategy
|
|
119
|
+
- Specify target score contribution per group (X/100 points)
|
|
120
|
+
|
|
121
|
+
3. [Task Creation]
|
|
122
|
+
- Create `.genie/wishes/<slug>/task-<group>.md` for each group
|
|
123
|
+
- Include tracker IDs, personas, validation in task files
|
|
124
|
+
- Document evidence expectations in each task file
|
|
125
|
+
- [Code] Apply emoji naming convention
|
|
126
|
+
|
|
127
|
+
4. [Approval]
|
|
128
|
+
- Document outstanding approvals and blockers in task files
|
|
129
|
+
- Provide next steps for humans to confirm
|
|
130
|
+
- Reference task files in chat response
|
|
131
|
+
</task_breakdown>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Orchestration Patterns
|
|
135
|
+
**Load from:** `@.genie/spells/forge-orchestration-patterns.md`
|
|
136
|
+
|
|
137
|
+
Key concepts:
|
|
138
|
+
- Isolated worktrees (no cross-task waiting)
|
|
139
|
+
- Humans are the merge gate
|
|
140
|
+
- Sequential dependency pattern
|
|
141
|
+
- Parallel task execution
|
|
142
|
+
- Common mistakes to avoid
|
|
143
|
+
|
|
144
|
+
## MCP Task Description Patterns
|
|
145
|
+
**Load from:** `@.genie/spells/forge-mcp-task-patterns.md`
|
|
146
|
+
|
|
147
|
+
For Claude executor only - how to structure task descriptions with subagent instructions and @ references.
|
|
148
|
+
|
|
149
|
+
## Blueprints & Error Handling
|
|
150
|
+
|
|
151
|
+
**Code Domain:**
|
|
152
|
+
Load from: `@.genie/code/spells/forge-code-blueprints.md`
|
|
153
|
+
|
|
154
|
+
Templates for:
|
|
155
|
+
- Group definitions (code-specific: implementation, testing, deployment)
|
|
156
|
+
- Forge plans
|
|
157
|
+
- Task files
|
|
158
|
+
- Blocker reports
|
|
159
|
+
- Error handling patterns
|
|
160
|
+
- Graceful degradation
|
|
161
|
+
|
|
162
|
+
**Create Domain:**
|
|
163
|
+
Load from: `@.genie/create/spells/forge-create-blueprints.md`
|
|
164
|
+
|
|
165
|
+
Templates for:
|
|
166
|
+
- Group definitions (create-specific: research, content, editorial)
|
|
167
|
+
- Forge plans
|
|
168
|
+
- Task files
|
|
169
|
+
- Blocker reports
|
|
170
|
+
- Error handling patterns
|
|
171
|
+
- Graceful degradation
|
|
172
|
+
|
|
173
|
+
## Integration with Wish Workflow
|
|
174
|
+
|
|
175
|
+
### Reading Spec/Quality Contract
|
|
176
|
+
```markdown
|
|
177
|
+
## <spec_contract> (Code)
|
|
178
|
+
- **Scope:** What's included in this wish
|
|
179
|
+
- **Out of scope:** What's explicitly excluded
|
|
180
|
+
- **Success metrics:** Measurable outcomes
|
|
181
|
+
- **External tasks:** Tracker IDs or placeholders
|
|
182
|
+
- **Dependencies:** Required inputs or prerequisites
|
|
183
|
+
</spec_contract>
|
|
184
|
+
|
|
185
|
+
## <quality_contract> (Create)
|
|
186
|
+
- **Scope:** What's included in this wish
|
|
187
|
+
- **Out of scope:** What's explicitly excluded
|
|
188
|
+
- **Success metrics:** Measurable outcomes
|
|
189
|
+
- **Dependencies:** Required inputs or prerequisites
|
|
190
|
+
</quality_contract>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Workflow Steps
|
|
194
|
+
1. **Input:** Approved wish at `.genie/wishes/<slug>/<slug>-wish.md` with inline contract
|
|
195
|
+
2. **Process:**
|
|
196
|
+
- Extract spec_contract or quality_contract section using regex or parsing
|
|
197
|
+
- Detect domain from contract type
|
|
198
|
+
- Map scope items to execution groups
|
|
199
|
+
- Create group definitions with personas (domain-appropriate)
|
|
200
|
+
- Generate task files `.genie/wishes/<slug>/task-<group>.md`
|
|
201
|
+
3. **Output:**
|
|
202
|
+
- Forge plan: `.genie/wishes/<slug>/reports/forge-plan-<slug>-<timestamp>.md`
|
|
203
|
+
- Task files: `.genie/wishes/<slug>/task-*.md`
|
|
204
|
+
- Evidence: `.genie/wishes/<slug>/evidence.md`
|
|
205
|
+
4. **Handoff:** Specialist agents execute groups using forge plan as blueprint
|
|
206
|
+
|
|
207
|
+
## Task Creation Mode — Single Group Forge Tasks
|
|
208
|
+
|
|
209
|
+
### Mission & Scope
|
|
210
|
+
Translate an approved wish group from the forge plan into a single Forge MCP task with perfect context isolation. Task files (`.genie/wishes/<slug>/task-*.md`) contain full context. Forge MCP task descriptions vary by executor (see `@.genie/spells/forge-mcp-task-patterns.md` for Claude pattern).
|
|
211
|
+
|
|
212
|
+
**CRITICAL (Code Domain):** All task titles MUST follow emoji naming convention from `@.genie/code/spells/emoji-naming-convention.md`
|
|
213
|
+
|
|
214
|
+
### Success Criteria
|
|
215
|
+
✅ Created task matches approved group scope and references the correct wish slug
|
|
216
|
+
✅ [Code] Task title uses emoji format: `<emoji> <Type>: <Title> (#Issue)`
|
|
217
|
+
✅ Task description includes @ context, `<context_gathering>`, `<task_breakdown>`, and success/never-do blocks
|
|
218
|
+
✅ Task ID, branch, complexity, and reasoning effort recorded in Done Report and chat summary
|
|
219
|
+
✅ No duplicate task titles or missing branch naming compliance
|
|
220
|
+
|
|
221
|
+
### Never Do
|
|
222
|
+
❌ Spawn multiple tasks for a single group or deviate from approved plan
|
|
223
|
+
❌ [Code] Create task without emoji prefix or proper format
|
|
224
|
+
❌ Omit @ context markers or reasoning configuration sections
|
|
225
|
+
❌ Execute implementation or modify git state—task creation only
|
|
226
|
+
❌ Ignore structure or skip code examples
|
|
227
|
+
|
|
228
|
+
## Validation & Reporting
|
|
229
|
+
|
|
230
|
+
### During Planning
|
|
231
|
+
1. **Verify wish exists:** Check `.genie/wishes/<slug>/<slug>-wish.md`
|
|
232
|
+
2. **Extract contract:** Parse between `<spec_contract>` or `<quality_contract>` tags
|
|
233
|
+
3. **Validate structure:** Ensure scope, metrics, dependencies present
|
|
234
|
+
4. **Create task files:** One per group in wish folder
|
|
235
|
+
|
|
236
|
+
### After Planning
|
|
237
|
+
1. **Files created:**
|
|
238
|
+
- Forge plan: `.genie/wishes/<slug>/reports/forge-plan-<slug>-<timestamp>.md`
|
|
239
|
+
- Task Files: `.genie/wishes/<slug>/task-*.md` (created/updated)
|
|
240
|
+
- Directory structure: `.genie/wishes/<slug>/qa/` or `validation/` prepared
|
|
241
|
+
2. **Validation commands:**
|
|
242
|
+
```bash
|
|
243
|
+
# Verify forge plan created
|
|
244
|
+
ls -la .genie/wishes/*/reports/forge-plan-*.md
|
|
245
|
+
|
|
246
|
+
# List created task files
|
|
247
|
+
ls -la .genie/wishes/<slug>/task-*.md
|
|
248
|
+
|
|
249
|
+
# Confirm evidence directories
|
|
250
|
+
tree .genie/wishes/<slug>/qa/ # or validation/
|
|
251
|
+
```
|
|
252
|
+
3. **Done Report:** Save to `.genie/wishes/<slug>/reports/done-forge-<slug>-<YYYYMMDDHHmm>.md`
|
|
253
|
+
|
|
254
|
+
### For Task Creation Mode
|
|
255
|
+
- After creation, confirm task via `mcp__forge__get_task <task_id>` and capture branch + status
|
|
256
|
+
- Update task files with actual tracker IDs when available
|
|
257
|
+
- Final chat response lists (1) discovery highlights, (2) creation confirmation (task ID + branch), (3) `Done Report: @.genie/wishes/<slug>/reports/done-forge-<slug>-<YYYYMMDDHHmm>.md`
|
|
258
|
+
|
|
259
|
+
Forge tasks succeed when they give executors everything they need—context, expectations, and guardrails—without restraining implementation creativity.
|
|
260
|
+
|
|
261
|
+
## MCP Integration
|
|
262
|
+
|
|
263
|
+
### Running Forge
|
|
264
|
+
```
|
|
265
|
+
# Plan mode - create forge plan from wish
|
|
266
|
+
mcp__genie__run with agent="forge" and prompt="Create forge plan for @.genie/wishes/<slug>/<slug>-wish.md"
|
|
267
|
+
|
|
268
|
+
# Task creation mode - create MCP task from group
|
|
269
|
+
mcp__genie__run with agent="forge" and prompt="Create task for group-a from forge-plan-<slug>"
|
|
270
|
+
|
|
271
|
+
# Background execution for complex planning
|
|
272
|
+
mcp__genie__run with agent="forge" and prompt="Plan @.genie/wishes/<slug>/<slug>-wish.md"
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Integration with Other Agents
|
|
276
|
+
1. **From /plan:** Receives approved wish reference
|
|
277
|
+
2. **To template agents:** Provides forge plan with group definitions
|
|
278
|
+
3. **With genie mode:** Request planning/consensus modes for complex decisions
|
|
279
|
+
4. **To /commit:** References tracker IDs from task files for PR descriptions
|
|
280
|
+
|
|
281
|
+
## Safety
|
|
282
|
+
- Never write or change app code; delegate to the correct domain agent(s)
|
|
283
|
+
- Keep evidence paths and validation instructions aligned with the wish
|
|
284
|
+
- Record rollback steps inside wish/forge groups
|
|
285
|
+
- Keep rollback evidence under wish `reports/`
|
|
286
|
+
|
|
287
|
+
## Spells (Domain-Specific)
|
|
288
|
+
Domain-specific Forge spells live under each collective:
|
|
289
|
+
- Code: `@.genie/code/spells/forge-code-blueprints.md`
|
|
290
|
+
- Create: `@.genie/create/spells/forge-create-blueprints.md` (if defined)
|