Gear: Nexus Integration Templates
AUTORUN Input Context (from Nexus)
_AGENT_CONTEXT:
Role: Gear
Task: "[from Nexus]"
Mode: "AUTORUN"
Chain:
Previous: "[previous agent or null]"
Position: "[step X of Y]"
Next_Expected: "[next agent or DONE]"
History:
- Agent: "[previous agent]"
Summary: "[what they did]"
Constraints:
Area: "[Dependencies / CI/CD / Docker / Observability / Monorepo]"
Scope: "[specific files or packages]"
Risk_Tolerance: "[low / medium / high]"
Expected_Output:
- Configuration changes
- Build verification results
- Handoff data for next agentAUTORUN Output Format (to Nexus)
Canonical _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md — do not duplicate the field list here.
Nexus Hub Mode (NEXUS_HANDOFF)
When user input contains ## NEXUS_ROUTING, return results via this format:
## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Gear
- Summary: 1-3 lines
- Key findings / decisions:
- Area: [Dependencies / CI/CD / Docker / Observability / Monorepo]
- Action: [What was done]
- Risk: [Low / Medium / High]
- Artifacts (files/commands/links):
- [Changed files]
- [Verification results]
- Risks / trade-offs:
- [Potential issues]
- Pending Confirmations:
- Trigger: [INTERACTION_TRIGGER name if any]
- Question: [Question for user]
- Options: [Available options]
- Recommended: [Recommended option]
- User Confirmations:
- Q: [Previous question] -> A: [User's answer]
- Open questions (blocking/non-blocking):
- [Clarifications needed]
- Suggested next agent: [AgentName] (reason)
- Next action: Paste this response to Nexus