# Linking Agents

AdaptixC2 supports agent chains (linking agents). These linked agents receive their commands and send their output through the parent agent in their chain. This type of chaining is useful to control which sessions egress a network and to emulate a disciplined actor who restricts their communication paths inside of a network to something plausible.

For a linked agent, the External field will contain the parent agent ID and link name instead of the external IP address. Registered but not currently linked agents are marked as Unlink.

<figure><img src="/files/IrzfjpV9IBSUfELfPZIM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AkN2vSb9wxUTyup7cfdz" alt=""><figcaption></figcaption></figure>

### Agents that support the linking function:

| Agent                                                   | Internal listener                                                  | Protocol |
| ------------------------------------------------------- | ------------------------------------------------------------------ | -------- |
| [Beacon](/adaptix-framework/extenders/agents/beacon.md) | [Beacon SMB](/adaptix-framework/extenders/listeners/beacon-smb.md) | SMB      |
| [Beacon](/adaptix-framework/extenders/agents/beacon.md) | [Beacon TCP](/adaptix-framework/extenders/listeners/beacon-tcp.md) | TCP      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adaptix-framework.gitbook.io/adaptix-framework/adaptix-c2/linking-agents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
