Steering Running Agents with run.steer() in the Cursor SDK
Melvin Vivas · X video post · 2026-10-06 · Open on X
Topics: AI Agents, Tool Use & MCP, AI Dev Tools & Productivity · Level: intermediate
Summary
The Cursor SDK now lets you steer agents while they run. Calling run.steer() adds your message to the agent's next turn. If a subagent is in the middle of a task, it moves to the background and keeps working.
Key points
- run.steer() sends a new message into an agent that is already running.
- Your steering message is added to the agent's next turn; the run does not restart.
- A subagent that is mid-task moves to the background and keeps working.
- This lets you fix course on a long agent run without stopping it.
Resources mentioned
- Cursor SDK · tool · cursor.com · paid
SDK for building agents on Cursor's agent runtime, harness and models, for use in CI/CD pipelines, automations or your own products.
Also in: Cursor's /orchestrate Skill: Agents That Spawn Agents via the Cursor SDK (Melvin Vivas on X · notes), Cursor SDK: Build Agents on Cursor's Runtime, Harness and Models (Melvin Vivas on X · notes)
Try this
- Try run.steer() on a long-running Cursor SDK agent to redirect it mid-run.
More in AI Agents, Tool Use & MCP
- Business Ideas Grok Bot Template: Daily Ranked AI Business Bets
- A 5-Step Framework for Designing a Grok Bot Automation
- Useful Plugins to Connect to a Grok Bot
- Grok Bot Business Ideas Template: Daily Market Scan Agent
- Grok Bot Template Ideas: Credits Finder, Email, LinkedIn
- Coworker v0.7.2: Open-Source Desktop AI Assistant