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

# Context Continuation

> Continue one agent from another agent's message history.

`context` is for conversation/message-history continuation.

```wire theme={"languages":{"custom":["/languages/wire.tmLanguage.json"]}}
agent investigate_task {
    model: model.fast
    instruction: "Investigate task {{ input.task_id }} and identify the main issue."

    output {
        issue: string
        evidence: [string]
    }
}

agent propose_solution {
    model: model.fast
    context: agent.investigate_task
    instruction: "Continue from the previous investigation and propose a solution."

    output {
        solution: string
        steps: [string]
    }
}
```

`context: agent.investigate_task` passes the whole message history of `investigate_task` into `propose_solution`. The second agent then appends its own instruction and continues the work.

## Context versus structured output

Use a structured reference when you need a value:

```wire theme={"languages":{"custom":["/languages/wire.tmLanguage.json"]}}
{{ agent.investigate_task.issue }}
```

Use `context: agent.name` when you want the next agent to continue the prior conversation:

```wire theme={"languages":{"custom":["/languages/wire.tmLanguage.json"]}}
context: agent.investigate_task
```

These are different operations. Structured references read JSON-like output fields. Context continuation passes message history.
