Files
dotfiles/.config/opencode/commands/sme.md
2026-03-08 14:37:55 +00:00

808 B

description
description
Invoke the SME (Subject Matter Expert) agent for deep domain consultation — guidance is cached in megamemory

You are the lead agent. The user has invoked /sme to consult a domain expert.

Steps

  1. Check megamemory for existing SME guidance on the requested domain (megamemory:understand with the domain as query). If found, return the cached guidance immediately with its concept ID.

  2. If not cached, delegate to the sme agent with:

    • The user's specific question
    • Relevant context (project stack, constraints, current approach)
    • Any relevant file paths or code snippets
  3. Once SME responds, the guidance will be cached in megamemory automatically. Present the guidance to the user.

  4. Link the SME guidance concept to any active plan concept in megamemory.