<p>— a single pass tends to smear them all together. The agent is trying to juggle everything in its head, and inevitably something gets dropped.<br><br>Elyra's <code>@elyracode/subagents</code> extension takes a gentler, more deliberate approach: it gives your main agent the ability to hand off focused little jobs to specialized child agents, each one with a narrow mandate and its own house rules.</p><h2>The idea</h2><p>Instead of one agent doing everything, you get a small cast of agents, each with a clear role:</p><p>Agent What it does <strong>scout</strong> Reads the codebase to understand structure, data flow, and risks. Never edits files. <strong>reviewer</strong> Reviews code for correctness, tests, security, and simplicity. Never edits files. <strong>planner</strong> Creates a concrete implementation plan with file paths and steps. Never edits files. <strong>worker</strong> Edits files and actually implements the plan. <strong>oracle</strong> Challenges assumptions and offers a second opinion. Never edits files. <strong>researcher</strong> Looks up documentation, specs, and external information. Never edits files. <strong>delegate</strong> A general-purpose agent for anything that doesn't fit the others.</p><p>Notice how most of them are read-only by design. That's intentional. A reviewer that can't edit files can't quietly "just fix it" when it spots a problem — it has to describe the issue clearly enough for the worker to act on. That little constraint, it turns out, produces much better feedback.</p><h2>Getting it installed</h2><pre><code>elyra install npm:@elyracode/subagents
</code></pre><p>That's the whole installation. The extension registers its tools, its commands, and a small skill file that teaches Elyra when delegating is the right move.</p><h2>Using it naturally</h2><p>There's no special syntax to memorize. Just talk about delegation the way you'd talk to a colleague, and Elyra will pick the right agent:</p><pre><code>Use scout to understand the payment flow before we touch anything.
</code></pre><pre><code>Get a second opinion from oracle on whether this migration is safe.
</code></pre><pre><code>Have reviewer check the auth changes for session fixation risks.
</code></pre><p>The bundled skill file teaches Elyra the delegation patterns, so it can read your intent and pick sensibly.</p><h2>Slash commands, for when you want to be direct</h2><p>If you'd rather be explicit, the extension ships with a handful of commands:</p><p><code>/run &lt;agent&gt; &lt;task&gt;</code> — Hand off a single task:</p><pre><code>/run scout trace the data flow from checkout to payment processing
/run reviewer review the changes in src/auth/ for session fixation risks
/run planner plan how to add two-factor authentication
</code></pre><p><code>/agents</code> — Lists the available agents and what each one does.</p><p><code>/parallel</code> — Runs several agents on different angles of the same problem at once:</p><pre><code>/parallel reviewer 'check correctness' -&gt; reviewer 'check test coverage' -&gt; reviewer 'check security'
</code></pre><p>This is lovely when you want several focused review passes instead of one broad sweep. Each reviewer gets a narrow mandate, so nothing slips through the cracks.</p><h2>Workflows worth knowing</h2><p>Some tasks follow a natural rhythm, and the extension ships with three predefined workflows that chain agents together for you.</p><h3>Build Feature</h3><pre><code>/build-feature add a wallet system with balance tracking and transaction history
</code></pre><p>This walks through: <strong>scout</strong> (understand the codebase) → <strong>planner</strong> (draft an implementation plan) → <strong>oracle</strong> (poke holes in the plan) → <strong>worker</strong> (implement it) → <strong>reviewer</strong> (review the result) → <strong>worker</strong> (clean up the issues).</p><p>The scout goes first so the planner doesn't propose anything that fights with the existing architecture. The oracle catches risky assumptions before a single line of code is written. The reviewer catches the bugs that always sneak in afterward.</p><h3>Deep Review</h3><pre><code>/deep-review the authentication system
</code></pre><p>This runs three review passes in sequence — one for correctness, one for test coverage, one for security — and then hands all three reports to the oracle for synthesis. What you get back is a single prioritized list of things actually worth fixing.</p><p>Compared to asking for a "full review," these focused passes tend to catch more. A reviewer looking only for security issues won't get distracted by formatting nits, and vice versa.</p><h3>UI Review</h3><pre><code>/ui-review build a settings page with profile editing
</code></pre><p>This one runs: <strong>worker</strong> (build the UI) → <strong>reviewer</strong> (check the visuals, accessibility, responsive behavior) → <strong>worker</strong> (fix what was found) → <strong>reviewer</strong> (verify the fixes).</p><p>The reviewer looks at contrast ratios, spacing, focus states, and how things behave at different screen sizes. If your project has a screenshot tool or a design system checker, the reviewer will reach for those too.</p><h2>Git integration</h2><p>There's also a couple of commands for giving your changes a once-over before you push:</p><pre><code>/git-review
</code></pre><p>This grabs the git diff and reviews it for correctness, security, missing tests, and accumulating debt. It finishes with a clear go/no-go verdict.</p><p>If you want it to happen on its own:</p><pre><code>/setup-git-hook
</code></pre><p>That installs a <code>.git/hooks/pre-push</code> hook so Elyra's review runs before every push. If something looks off, the push is blocked. You can always slip past it with <code>git push --no-verify</code> when you really need to.</p><h2>Why roles matter</h2><p>The quiet insight behind all of this is that constraints make agents better at their job. A read-only reviewer can't take the shortcut of "just fixing" the code — it has to explain itself. A planner that can't edit files has to produce a plan clear enough for someone else to follow. A scout that only reads and greps stays fast precisely because it's never tempted to start implementing.</p><p>It mirrors how good human teams work, really. You don't ask one person to architect, implement, review, and test a feature in a single sitting. You split the concerns, let each person focus on their piece, and bring it all together at the end.</p><p>The agents themselves are deliberately simple — each one is just a system prompt, a tool allowlist, and a read-only flag. No elaborate orchestration framework lurking underneath. The parent Elyra session coordinates everything, and each child agent does its narrow task and reports back.</p><h2>Where to start</h2><p>Install the extension, try <code>/run scout</code> on a corner of your codebase you haven't visited in a while, and see what turns up. Then point <code>/deep-review</code> at your most critical module. The focused passes have a way of surfacing things a broad "review this code" prompt would have walked right past.</p><pre><code>elyra install npm:@elyracode/subagents
</code></pre>