Aulafy
Courses/Agents and automation/Subagents with Roles and Limits

Subagents with Roles and Limits

A subagent is used to isolate work: research, review, test, document, or audit without filling up the main context or mixing responsibilities.

  • Define subagents with a mission, tools, and concrete output.
  • Separate research, editing, and review to reduce errors.
  • Avoid unnecessary agent teams when a simple task is enough.

Useful Roles

  • Researcher: only reads, searches, and summarizes sources.
  • Implementer: edits with a small scope.
  • Reviewer: looks for bugs, risks, and missing tests.
  • Documenter: turns changes into a guide, changelog, or tutorial.
  • Security guard: reviews permissions, secrets, network, and dependencies.
TerminalCode
---
name: reviewer
description: Revisa cambios antes de commit. Prioriza bugs y riesgos.
tools: Read, Grep, Bash(npm test), Bash(npm run lint), Bash(git diff *)
model: sonnet
---
Actua como revisor senior.
No edites archivos.
Devuelve hallazgos con archivo, linea, severidad y prueba sugerida.
Si no ves problemas, dilo claramente.