ulw
Ultra Light Work — autonomous mode where the agent keeps working turn after turn without approval prompts, until it reaches a checkpoint.
Tell the agent to "just do it" — no approval prompts, no interruptions. Agent works until done or until the turn limit.
Usage
ULW mode works by setting a skip_tool_approval flag that tells the tool_approval plugin to skip all checks.
Triggering ULW Mode
From the web UI
In co ai, use the mode selector to switch to ULW mode. The frontend sends:
Programmatically
Turn Checkpoints
When the agent reaches ulw_turns, it pauses and the frontend receives:
The user can respond with:
{ "action": "continue", "turns": 10 }Extend by N more turns and keep going
{ "action": "switch_mode", "mode": "safe" }Return to safe mode (approval prompts back on)
Updating goal mid-session
Send a prompt_update message to steer the agent while it works:
Injected into the system prompt before each LLM call. The agent remembers the updated goal for all subsequent turns.
Events used
| Event | Handler | Purpose |
|---|---|---|
on_complete | ulw_keep_working | Start next turn if turns remain |
before_iteration | poll_prompt_update | Check for goal updates from frontend |
before_llm | inject_ulw_prompt | Inject current goal into system prompt |
