<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# building-custom-c2-protocols — API Reference

## Agent Script

| Command | Description |
|---------|-------------|
| `design --target <path>` | Design custom C2 protocol specification. |
| `implement --target <path>` | Implement C2 protocol from specification. |
| `test --target <path>` | Test custom C2 protocol communication. |

## Usage Examples

```bash
# Design custom C2 protocol specification.
node scripts/agent.js design --target ./sample

# Implement C2 protocol from specification.
node scripts/agent.js implement --target ./sample

# Test custom C2 protocol communication.
node scripts/agent.js test --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "building-custom-c2-protocols"
  }
}
```
