Skip to content

Global Rules

The plugin injects three categories of rules into every session. These are non-negotiable directives that guide agent behavior across all tasks.

These rules govern how agents interact with code and tools:

  • Don’t assume — Always verify against actual code and docs. Guesses lead to bugs.
  • Don’t reference internal project names — Avoid leaking context outside the workspace.
  • Use opensrc instead of API calls — When analyzing reference repos or external code, use opensrc path <owner/repo> (e.g., opensrc path facebook/react). It clones to a global cache and prints the path for file tools. Use --cwd to resolve versions from the current project.

When delegating work via task(), use only the 7 specialists below. Never delegate to explore or general — they are built-in agents, not part of the pipeline.

AgentRoleWhen to Delegate
@adventurerCodebase reconnaissanceUnderstanding unfamiliar code, tracing dependencies
@architectArchitecture decisionsChoosing between approaches, technology evaluation
@builderFocused implementationFeature work, bug fixes, test writing, refactors
@diagnoseSystematic debuggingDebugging regressions, production incidents
@plannerImplementation plansComplex features requiring phased execution
@reviewerCode reviewPre-merge review, security audit, QA
@writerDocumentationREADMEs, API docs, changelogs, ADRs

Never implement yourself — if you find yourself editing code, stop and delegate to @builder. Your job is orchestration, not implementation.

These rules help manage the conversation context efficiently:

  • Progressive disclosure — Start high-level, get specific as needed.
  • State checkpointing — Periodically summarize what’s done, what’s in progress, what’s next.
  • Context pruning — Remove irrelevant context when no longer needed.
  • Completion promises — Define success criteria before starting work. “This task is complete when [verifiable conditions].”