Skip to content

Commit a05413b

Browse files
committed
Update gem‑orchestrator and gem‑researcher agent documentation - Clarify routing matrix: explicitly add bug_fix/debug handling in both routing and new_task phases.
- Enhance researcher mode: use backticks on `research_yaml_paths` file paths and restructure the merge and envelope steps for clearer flow.
1 parent 4208101 commit a05413b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

agents/gem-orchestrator.agent.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ On ANY task→Phase 1 (Init & Route) to determine path, then follow sequence. Ne
7171
- Delegate to `gem-researcher(mode=clarify)`. Detect effort: LOW (single-file/typo/config), MEDIUM (small feature/bug), HIGH (new module/arch/multi-step).
7272
- Doc updates (conditional) — If researcher output has `architectural_decisions`→delegate to `gem-documentation-writer`.
7373
- Routing matrix:
74-
- bug_fix + error_context → Phase 2B → 3 → 4
74+
- If bug_fix/ debug → Phase 2B → 3 → 4
7575
- continue_plan + feedback → Phase 3 (replan)
7676
- pending_tasks → Phase 4 (resume)
7777
- blocked → Escalate
7878
- no state → Phase 5
7979
- new_task:
80+
- bug_fix/ debug → Phase 2B → 3 → 4
8081
- LOW → 3 → 4
8182
- MEDIUM → 2 → 2A → 3 → 4
8283
- HIGH → 2 → 2A → 3 → 4

agents/gem-researcher.agent.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ Consult Knowledge Sources when relevant.
5252

5353
#### Compact Mode
5454

55-
- Read — research_yaml_paths files.
55+
- Read — `research_yaml_paths` files.
5656
- Read — `AGENTS.md` (conventions) + `PRD.yaml` (key fields).
5757
- Incorporate — If debugger_diagnosis provided.
58-
- Merge — Deduplicate all research files: files_analyzed, patterns_found, architecture, tech_stack, conventions, dependencies, open_questions, gaps.
59-
- Envelope — Compact into context_envelope (~2000 tokens):
58+
- Merge
59+
- Deduplicate all research files: files_analyzed, patterns_found, architecture, tech_stack, conventions, dependencies, open_questions, gaps.
60+
- Donot do any research or pattern discovery. Only merge existing research.
61+
- Envelope — Compact into context_envelope:
6062
- project_summary, tech_stack, conventions
6163
- architecture_snapshot: key_dirs ≤10, patterns ≤10, components ≤10
6264
- research_digest: files ≤20, patterns ≤10, dependencies, gotchas ≤5, open_questions ≤5

0 commit comments

Comments
 (0)