# rpk ai agent a2a task watch

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

---
title: rpk ai agent a2a task watch
latest-operator-version: v26.2.1
latest-console-tag: v3.9.0
latest-connect-version: 4.104.0
latest-redpanda-tag: v26.2.1
docname: rpk/rpk-ai/rpk-ai-agent-a2a-task-watch
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: rpk/rpk-ai/rpk-ai-agent-a2a-task-watch.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/reference/pages/rpk/rpk-ai/rpk-ai-agent-a2a-task-watch.adoc
description: Reattach to a running task's event stream (A2A tasks/resubscribe) and print events until the task reaches a terminal state. Use after a disconnected <code>--stream</code> send or a <code>--no-block</code> send.
page-git-created-date: "2026-06-25"
page-git-modified-date: "2026-08-06"
---

<!-- Source: https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-agent-a2a-task-watch.md -->

Reattach to a running task’s event stream (A2A tasks/resubscribe) and print events until the task reaches a terminal state. Use after a disconnected `--stream` send or a `--no-block` send.

Watch waits as long as the task runs (no timeout by default; bound it with `--timeout`). Exit codes match send: 0 success or input-required, 4 task failed/canceled/rejected, 1 anything else.

## [](#usage)Usage

```bash
rpk ai agent a2a task watch [flags]
```

## [](#examples)Examples

This section provides examples of how to use `rpk ai agent a2a task watch`.

```bash
rpk ai agent a2a task watch financial-advisor TASK_ID
rpk ai agent a2a task watch financial-advisor TASK_ID -o json   # one JSON event per line
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| --timeout | duration | abort after this long (default: wait forever). |

## [](#global-flags)Global flags

| Value | Type | Description |
| --- | --- | --- |
| --config | string | Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. |
| -X, --config-opt | stringArray | Override rpk configuration settings; -X help for detail or -X list for terser detail. |
| --ignore-profile | bool | Ignore rpk.yaml and redpanda.yaml; use default settings. |
| --profile | string | rpk profile to use. |
| -v, --verbose | bool | Enable verbose logging. |