> For the complete documentation index, see [llms.txt](https://rosemary-2.gitbook.io/rosemary-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rosemary-2.gitbook.io/rosemary-docs/dependencies.md). Agents can also search and read this documentation through its [MCP server](https://rosemary-2.gitbook.io/rosemary-docs/~gitbook/mcp).

# Dependencies

***

## Server (`rosemary/go.mod`)

| Package                        | Version | Purpose                                                |
| ------------------------------ | ------- | ------------------------------------------------------ |
| `github.com/chzyer/readline`   | v1.5.1  | Interactive REPL with line editing and history         |
| `github.com/google/uuid`       | v1.6.0  | Unique connection and agent IDs                        |
| `github.com/gorilla/websocket` | v1.5.3  | Browser dashboard WebSocket updates                    |
| `github.com/miekg/dns`         | v1.1.72 | DNS server and client for the DNS proxy                |
| `github.com/quic-go/quic-go`   | v0.59.1 | QUIC/UDP agent transport                               |
| `golang.org/x/net`             | v0.52.0 | Network utilities and ICMP support                     |
| `golang.org/x/sys`             | v0.42.0 | Linux syscalls: TPROXY, SO\_ORIGINAL\_DST, raw sockets |
| `golang.org/x/time`            | v0.15.0 | Rate limiting for login and agent connections          |

### Indirect

| Package               | Version | Purpose                                    |
| --------------------- | ------- | ------------------------------------------ |
| `golang.org/x/crypto` | v0.49.0 | Cryptographic support used by dependencies |
| `golang.org/x/mod`    | v0.33.0 | Go module tooling                          |
| `golang.org/x/sync`   | v0.20.0 | Synchronization primitives                 |
| `golang.org/x/tools`  | v0.42.0 | Go toolchain support                       |

***

## Agent (`agent/go.mod`)

| Package                      | Version | Purpose                                     |
| ---------------------------- | ------- | ------------------------------------------- |
| `github.com/miekg/dns`       | v1.1.72 | DNS resolution for agent-side DNS requests  |
| `github.com/quic-go/quic-go` | v0.59.1 | QUIC/UDP connection to the server           |
| `golang.org/x/net`           | v0.52.0 | ICMP support via `ipv4` and `ipv6` packages |
| `golang.org/x/sys`           | v0.42.0 | Platform-specific networking helpers        |

***

## Embedded Assets

| Asset           | Location                            | Purpose                                      |
| --------------- | ----------------------------------- | -------------------------------------------- |
| Web dashboard   | `rosemary/webroot/`                 | Embedded via `//go:embed`, served at runtime |
| Cytoscape.js    | `rosemary/webroot/cytoscape.min.js` | Agent network graph visualization            |
| WinDivert.dll   | `rosemary/WinDivert.dll`            | Windows kernel packet interception driver    |
| WinDivert64.sys | `rosemary/WinDivert64.sys`          | Windows kernel packet interception driver    |
