Features
RTK token compression, OpenTelemetry observability, LSP code intelligence, and plugin hooks in workspace images.
Apart from RTK's codex instructions, everything on this page is consumed by the claude harness. A phase running on agent.provider: codex does not use it, on any image.
Both images carry the Claude Code plugins and native OTel export. The manifest scopes otel_native to claude deliberately, because codex OTel is unverified here. What the omni-agent image, and the default toolchain image built on it, do not carry is the LSP servers and the Rust toolchain, which their manifests omit on purpose rather than declaring something the image lacks. See Workspace Images.
RTK Token Compression
RTK intercepts Bash tool calls and compresses output from commands like ls, find, git log, and tree. This reduces the tokens Claude consumes reading command output.
How It Works
RTK is built from source at a pinned release tag (cargo install --locked)
into the omni-agent image and initialized via rtk init -g in the container
entrypoint, after the entrypoint writes ~/.claude/settings.json. For Claude
it installs a hook that intercepts Bash tool calls and rewrites them to
compressed equivalents.
The entrypoint also runs rtk init -g --codex, which writes instructions to
~/.codex/RTK.md instead of a hook. A codex phase never consults the Claude
hook.
Measured Impact
Live A/B evaluation on an "explore repository" task:
| Metric | Without RTK | With RTK | Savings |
|---|---|---|---|
| Context tokens | 61,117 | 28,663 | 53% |
| Cost (USD) | $0.13 | $0.09 | 29% |
| Conversation turns | 12 | 6 | 50% |
| Bash tool calls | 10 | 5 | 50% |
RTK reduces context consumption without changing agent behavior: the same tasks complete with fewer tokens.
OpenTelemetry Observability
Workspace images export standard OTel metrics via OTLP, providing real-time token and cost tracking.
Exported Metrics
| Metric | Type | Description |
|---|---|---|
claude_code.token.usage | Counter | Token count per turn (input, output, cacheRead, cacheCreation) |
claude_code.cost.usage | Counter | Cumulative cost in USD |
claude_code.session.count | Counter | Session counter |
claude_code.commit.count | Counter | Git commit counter |
Exported Log Events
| Event | Description |
|---|---|
claude_code.api_request | Per-API-call cost, model, cache tokens, duration, speed mode |
claude_code.api_error | API error with status code and retry count |
claude_code.tool_result | Tool execution completion (name, duration, success) |
claude_code.user_prompt | User prompt submitted (length only, no content by default) |
Configuration
The image sets no OTel variables. The orchestrator injects them only when COLLECTOR_URL is configured:
# Injected by the orchestrator when COLLECTOR_URL is set
CLAUDE_CODE_ENABLE_TELEMETRY=1
OTEL_EXPORTER_OTLP_ENDPOINT=http://collector:8080If COLLECTOR_URL is not set, neither is injected and there is no OTel export.
Two-Channel Observability
Workspace observability uses two complementary channels. They capture different data, neither can fully replace the other:
| Captured by Plugin Hooks only | Captured by OTel only | Captured by both |
|---|---|---|
| Subagent lifecycle | Per-API-call cost + model | Token usage totals |
| Session end event | API errors (status code, retries) | Cost totals |
| Context compaction | Cache token breakdown | Tool completion |
| Git branch / merge / push | Active time tracking | User prompts |
| Tool start events | prompt.id correlation | |
| Permission requests |
See the Observability guide for the full event pipeline and how to verify both channels are flowing.
LSP Code Intelligence
The image bundles language servers for Claude Code's LSP plugins:
| Language | Server | Plugin |
|---|---|---|
| Python | pyright | pyright-lsp |
| TypeScript | typescript-language-server | typescript-lsp |
| Rust | rust-analyzer | rust-analyzer-lsp |
LSP servers are lazy: they only start when Claude encounters files in the matching language. An agent working on a Python-only repo will not start rust-analyzer or typescript-language-server.
Pre-Bundled Plugins
Plugins are baked into /opt/agentic/plugins/ and loaded at runtime via --plugin-dir. Available plugins:
- sdlc: Git operation hooks (commit metrics, branch tracking, push events)
- workspace: Compaction tracking, subagent lifecycle events
Plugin hooks emit JSONL events to stderr, captured by the orchestrator's event collection pipeline.
Workspace Images
Production-ready, multi-arch Docker images for isolated agent execution with built-in observability, token compression, and security hardening.
Workspace Hydration
How Syntropic137 pre-clones repositories into workspace containers before the agent starts, with GitHub App token injection, namespace-safe directory naming, and automatic AGENTS.md/CLAUDE.md context injection.