Yield runs the command and records what happened. The coding agent does not transcribe its result.
Useful for
- Run the test suiteContinue only when tests pass.
- Check the typesStop code with invalid types.
- Build the artifactRequire a buildable output.
- Preview the migrationSee changes before applying them.
- Run the deployRecord the real deploy result.
- Probe service healthVerify the service responds.
Choose the boundary.Use
RunCommand for observable facts. Use AgentTask only when output needs interpretation.