I work using autonomous pipelines with specialized agents in different tasks/roles that often share nothing. I can do this easily in claude --agent.
How do i do this with the cli for the composer 2.5 model?
I work using autonomous pipelines with specialized agents in different tasks/roles that often share nothing. I can do this easily in claude --agent.
How do i do this with the cli for the composer 2.5 model?
Hi StabbyRobot!
The CLI doesn’t have a --agent <file> flag, but custom subagents get you the same isolation. Drop a .md file in .cursor/agents/:
---
name: code-reviewer
description: Reviews code for correctness and security.
model: composer-2.5
readonly: true
---
You are a code reviewer focused on correctness and security.
[your instructions here]
Each subagent runs in its own context window - no stacking on AGENTS.md. Invoke with /code-reviewer <prompt> in the CLI.
For programmatic pipelines, the Cursor SDK (@cursor/sdk / cursor-sdk) gives you fully independent agents via Agent.create() - closer to the claude --agent pattern.
Docs: Custom subagents | SDK
thanks