> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opengoat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Workflows

> Execute work through agents, route messages, preserve context, and coordinate with tasks.

## Run Work Through an Agent

```bash theme={null}
opengoat agent cto --message "Break down platform migration into deliverable streams."
```

Use `opengoat agent run` when you want explicit agent id in command shape:

```bash theme={null}
opengoat agent run cto --message "Draft sprint goals"
```

## Use Session Continuity

```bash theme={null}
opengoat agent cto --session migration-q2 --message "Create migration phases"
opengoat agent cto --session migration-q2 --message "Now assign owners and risks"
```

## Dry-Run Routing Decisions

```bash theme={null}
opengoat route --agent cto --message "Who should implement auth middleware?"
```

JSON output:

```bash theme={null}
opengoat route --agent cto --message "Who should own observability?" --json
```

## Coordinate Tasks During Execution

```bash theme={null}
opengoat task create --title "Auth middleware" --description "Implement + test" --owner cto --assign backend-engineer
opengoat task status <task-id> doing --as backend-engineer
opengoat task worklog add <task-id> "Implemented middleware and added unit tests" --as backend-engineer
```

## Monitor Agent Activity

```bash theme={null}
opengoat agent last-action cto
```
