Skip to content

docs: overhaul README, orchestration rules, and all agent prompts - #617

Merged
namastex888 merged 6 commits into
devfrom
docs-overhaul
Mar 17, 2026
Merged

namastex888 merged 6 commits into
devfrom
docs-overhaul

Conversation

@namastex888

Copy link
Copy Markdown
Contributor

Summary

  • README.md: Updated CLI reference table, added team-lead autonomous flow, genie team create --wish, agent directory section, worktree documentation, removed stale Hook Presets section
  • Orchestration rules: Added full team-lead lifecycle, --wish workflow, complete command set organized by category (team, dispatch, agent, messaging, directory, infra)
  • PM prompt: Rewritten to promptMode: system with XML behavioral blocks (<mission>, <principles>, <workflow>, <tool_usage>, <constraints>)
  • 8 worker prompts (engineer, reviewer, qa, fix, refactor, trace, docs, learn): Refined with XML blocks, explicit promptMode: append, no role prompting
  • 11 council prompts: Refined with XML blocks, persona inspirations preserved as perspective framing (not role prompting), explicit promptMode: append
  • All flat .md copies synced with folder AGENTS.md files (43 files total)

Net: -1,251 lines (cleaner, more structured prompts)

Wish

docs-overhaul

Test plan

  • bun run typecheck — passes
  • bun run lint — passes (120 files, 0 fixes)
  • bun test — 736/736 tests pass
  • bun run build — bundles successfully (0.35 MB)
  • All 19 agent prompts have XML-tagged blocks
  • PM and team-lead have promptMode: system, all others append
  • All flat copies synced (verified with diff)
  • README CLI reference matches genie --help output

- Update README.md with current CLI commands, team-lead flow, --wish flag,
  agent directory, and worktree documentation
- Expand orchestration rules with full team-lead lifecycle and command set
- Rewrite PM prompt to promptMode: system with XML behavioral blocks
- Refine all 8 worker prompts with XML blocks (promptMode: append)
- Refine all 11 council prompts with XML blocks, preserving persona
  inspirations as perspective framing
- Sync all flat .md copies with folder AGENTS.md files
@coderabbitai

coderabbitai Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 85fd2d82-66a0-4b12-9319-0b1d41a0104e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-overhaul
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on overhauling the documentation, orchestration rules, and agent prompts to improve clarity, structure, and functionality. The changes aim to provide a more streamlined and autonomous experience, particularly for team-lead driven workflows, and to ensure consistency across all agent prompts and documentation files.

Highlights

  • README.md Update: The README was updated to include a CLI reference table, a team-lead autonomous flow, agent directory section, worktree documentation, and the stale Hook Presets section was removed.
  • Orchestration Rules Overhaul: The orchestration rules were updated to include a full team-lead lifecycle, the --wish workflow, and a complete command set organized by category.
  • Agent Prompt Refinements: The PM prompt was rewritten to promptMode: system with XML behavioral blocks, and 8 worker prompts and 11 council prompts were refined with XML blocks and explicit promptMode: append.
  • File Synchronization: All flat .md copies were synced with folder AGENTS.md files, totaling 43 files.
Changelog
  • README.md
    • Updated CLI reference table
    • Added team-lead autonomous flow
    • Added agent directory section
    • Added worktree documentation
    • Removed stale Hook Presets section
  • plugins/genie/agents/council--architect.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--architect/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--benchmarker.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, benchmark_methodology, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--benchmarker/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, benchmark_methodology, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--deployer.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--deployer/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--ergonomist.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--ergonomist/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--measurer.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, techniques, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--measurer/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, techniques, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--operator.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--operator/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--questioner.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--questioner/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--sentinel.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--sentinel/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--simplifier.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--simplifier/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--tracer.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, heuristics, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/council--tracer/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, communication, rubric, heuristics, inspiration, and verdict sections
    • Removed role prompting
  • plugins/genie/agents/docs.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/docs/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/engineer.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/engineer/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/fix.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/fix/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/learn.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, process, writable_surfaces, off_limits, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/learn/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, process, writable_surfaces, off_limits, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/pm.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, principles, workflow, delegation_model, escalation, tool_usage, commands_reference, and constraints sections
    • Removed role prompting
    • Changed promptMode to system
  • plugins/genie/agents/pm/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, principles, workflow, delegation_model, escalation, tool_usage, commands_reference, and constraints sections
    • Removed role prompting
    • Changed promptMode to system
  • plugins/genie/agents/qa.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, rubric, verdict, output_format, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/qa/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, rubric, verdict, output_format, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/refactor.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, modes, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/refactor/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, modes, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/reviewer.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, rubric, verdict, output_format, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/reviewer/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, rubric, verdict, output_format, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/trace.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/agents/trace/AGENTS.md
    • Rewrote prompt with XML behavioral blocks
    • Updated mission, context, process, done_report, and constraints sections
    • Removed role prompting
  • plugins/genie/rules/genie-orchestration.md
    • Added team-lead lifecycle documentation
    • Organized CLI commands into categorized sections
    • Provided descriptions for each command
Activity
  • The pull request involves a significant overhaul of documentation, orchestration rules, and agent prompts.
  • The author, namastex888, has provided a detailed summary in the pull request description.
  • The pull request includes updates to the README, refinement of agent prompts using XML blocks, and synchronization of flat .md copies with folder AGENTS.md files.
  • The author has included a test plan with checks for typechecking, linting, testing, building, agent prompt structure, and file synchronization.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors agent definition files to use a more structured, tag-based format for missions, processes, and constraints, and updates the README.md and genie-orchestration.md to introduce new autonomous team-lead functionality and associated CLI commands. Review comments highlight the need to add a 'criteria satisfied' report to the docs agent for consistency, re-add a 'minimal tool surface' constraint to the trace agent to prevent unintended write operations, and standardize the team name placeholder in genie-orchestration.md for clarity.

Comment on lines +55 to +61
<done_report>
Report when complete:
- Files created or updated
- Gaps that were filled
- Validation results
- Anything that remains unresolved

## When I'm Done

I report:
- What I created or updated (files and sections)
- Which criteria are satisfied (with evidence)
- Validation results — every claim checked against code
- What remains undocumented or needs human judgment

Then my work is complete.

## Scope

I am an intermediate worker. I execute the documentation task and report back. The orchestrator holds the full context window and makes the final ship/no-ship decision. I do not make that call.

## Constraints
- Anything that remains undocumented or needs human judgment
</done_report>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The <done_report> for this agent is missing a crucial item. Other worker agents like engineer and fix are instructed to report on "Which criteria are satisfied (with evidence)". This is an important part of the completion report to confirm the agent's work aligns with the wish. I suggest adding it here for consistency and completeness.

Suggested change
<done_report>
Report when complete:
- Files created or updated
- Gaps that were filled
- Validation results
- Anything that remains unresolved
## When I'm Done
I report:
- What I created or updated (files and sections)
- Which criteria are satisfied (with evidence)
- Validation results — every claim checked against code
- What remains undocumented or needs human judgment
Then my work is complete.
## Scope
I am an intermediate worker. I execute the documentation task and report back. The orchestrator holds the full context window and makes the final ship/no-ship decision. I do not make that call.
## Constraints
- Anything that remains undocumented or needs human judgment
</done_report>
<done_report>
Report when complete:
- Files created or updated
- Gaps that were filled
- Which criteria are satisfied (with evidence)
- Validation results — every claim checked against code
- Anything that remains undocumented or needs human judgment
</done_report>

Comment on lines +71 to +77
<constraints>
- Never apply corrections — investigation only
- Never modify source files — read and trace only
- Always reproduce before theorizing — evidence over intuition
- Evidence required for every root cause claim — no speculation without proof
- Minimal tool surface — Read, Bash, Glob, Grep only
- Evidence required for every root cause claim
- Report everything discovered, even if it wasn't the primary target
</constraints>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The previous version of this prompt included the constraint: "Minimal tool surface — Read, Bash, Glob, Grep only". This is an important guardrail for an investigation-only agent to prevent it from attempting to use writing/editing tools. Consider re-adding this constraint to ensure the agent adheres to its read-only investigation role.

Suggested change
<constraints>
- Never apply corrections — investigation only
- Never modify source files — read and trace only
- Always reproduce before theorizing — evidence over intuition
- Evidence required for every root cause claim — no speculation without proof
- Minimal tool surface — Read, Bash, Glob, Grep only
- Evidence required for every root cause claim
- Report everything discovered, even if it wasn't the primary target
</constraints>
<constraints>
- Never apply corrections — investigation only
- Never modify source files — read and trace only
- Always reproduce before theorizing — evidence over intuition
- Evidence required for every root cause claim
- Minimal tool surface — Read, Bash, Glob, Grep only
- Report everything discovered, even if it wasn't the primary target
</constraints>

**Full lifecycle:**

1. **Create team with wish:** `genie team create <name> --repo <path> --wish <slug>`
- Creates a git worktree at `~/.genie/worktrees/<project>/<name>/`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's a minor inconsistency in the placeholder for the team name. This file uses <name> for the worktree path, while README.md uses <team>. To improve clarity and consistency across all documentation, consider using a more descriptive and uniform placeholder like <team-name>.

Suggested change
- Creates a git worktree at `~/.genie/worktrees/<project>/<name>/`
- Creates a git worktree at `~/.genie/worktrees/<project>/<team-name>/`

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 72e693c313

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Outdated
| Eyeball generated code, miss a bug, fix at 2am | Automated `/review` with severity-tagged gaps |
| 45 min in, Claude forgets your instructions | Scoped specialists — no context window accumulates junk |
| 10 min of setup before any work starts | `genie work eng auth-bug#1` — inherits context automatically |
| 10 min of setup before any work starts | `genie team create auth-fix --wish auth-bug` — team-lead handles the rest |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add required --repo flag to team-create example

This command example is not runnable as written because genie team create requires --repo <path>; invoking it without that flag returns error: required option '--repo <path>' not specified (confirmed via genie team create --help and running the command). Users who copy this line from the comparison table will fail immediately instead of reaching the autonomous flow.

Useful? React with 👍 / 👎.

Test User added 5 commits March 16, 2026 18:02
- Add missing "criteria satisfied with evidence" to docs agent done_report
- Restore "Minimal tool surface" constraint to trace agent
- Add required --repo flag to comparison table example
Audit found 11 CRITICAL, 17 HIGH, 6 MEDIUM severity losses from the
XML refactoring. Restores:

- Scope/authority boundary ("intermediate worker") to all 8 workers
- Trace "investigation only, always" constraint + orchestrator handoff
- <execution_mode> sections to all 10 council agents (hybrid capabilities)
- <remember> philosophical grounding to 7 council agents
- council--tracer <thinking_style> with 3 decision heuristic patterns
- council--tracer detailed APPROVE/REJECT/MODIFY conditions
- council--benchmarker full methodology (setup, measurement, tools)
- PM strategic identity and metrics-driven framing
- PM escalation chain specificity (worker→lead→PM→human)
- <related_agents> context for benchmarker, measurer, questioner
- Checklist format (- [ ]) in all council rubrics
Merge the full 740-line prompt-optimizer reference directly into the
/refine SKILL.md. The 10-rule system prompt is the entry point; the
full reference (type detection, anti-patterns, core patterns, examples,
quality checklist) follows as the comprehensive guide.

Removes plugins/genie/references/prompt-optimizer.md — no more
separate file to forget to load.
Audit found 2 NON-COMPLIANT and 5 NEEDS-WORK agents. Fixes:

- refactor: Add D/I/V structure to Mode 2, success_criteria, never_do
  sections. Define confidence levels. Was NON-COMPLIANT, now COMPLIANT.
- qa: Add weighted rubric (4 dimensions), evidence_format spec,
  clarify AND/OR in verdict gates. Was NON-COMPLIANT, now COMPLIANT.
- reviewer: Add evidence format requirement (file:line citations)
- engineer: Extract success_criteria and never_do from constraints
- fix: Extract success_criteria and never_do from constraints
- docs: Extract success_criteria and never_do from constraints
- council: Add evidence_requirements schema, strengthen constraints
  with actionable specifics
Both prompts were missing explicit hand-off conditions between
phases. Added **Gate:** lines to each phase defining:
- What must be true before the next phase starts
- What to do when a gate fails (retry, escalate, stop)

PM: 8 phases now have gates. Consolidated redundant
commands_reference into tool_usage section.

Team-lead: 8 phases now have gates with specific failure
conditions (2-round limits, blocked escalation, CI requirements).

All 21 agent prompts now COMPLIANT with prompt-optimizer reference.
@namastex888
namastex888 merged commit c944847 into dev Mar 17, 2026
6 checks passed
@namastex888
namastex888 deleted the docs-overhaul branch March 29, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant