The Berkeley platform makes agent execution visible

Artificial intelligence agents tackle increasingly long tasks, invoke multiple tools, and frequently work in parallel. As their workloads grow, understanding what each agent is actually doing becomes difficult. Model traces reveal only part of the story. Questions go unanswered: what is an agent waiting for? Where does time actually get spent? Why does one run finish slower than another?

The University of California Berkeley Sky Computing Lab built Agency as an open-source platform for running, debugging, and profiling AI agents. The system connects LLM requests, tool calls, and system activity into a single view. It gives developers visibility to investigate execution, find bottlenecks, and understand what changed between runs. The platform is model and harness agnostic, supporting Claude Code, Codex, OpenCode, and Agency's native harness with backends including OpenAI, Anthropic, Bedrock, and local models via vLLM.

Debugging agents like system diagnostics

Think of Agency as htop and gdb combined for AI agents. The dashboard lets users watch agents execute in real time. Model requests, tool calls, outputs, failures, and waits across agents are inspectable. Supported operations include pausing, resuming, or stopping executions directly from the interface. When execution finishes, the same view becomes a navigable history of every step that occurred.

The platform reveals where wall-clock time actually goes. Users can trace model requests, tool calls, processes, and dependencies across agents. The interface distinguishes parallel execution from waiting periods and identifies the work determining completion time. After a run completes, the Critical Path Profiler investigates what held the run back. Developers can dig into the measurements behind execution, examining LLM latency, token usage, tool durations, errors, retries, CPU, memory, I/O, and optional GPU metrics. Each measurement links from high-level activity down to individual events and processes. No numbers are invented; missing measurements remain absent.

Side-by-side run comparison

Agency enables comparing completed runs side by side. Execution trajectories, model and tool activity, latency, resource usage, failures, and outcomes are all examineable. The system finds where execution paths diverged and which measurements changed between runs. This comparison happens against recorded evidence without guessing at causes, giving teams a factual basis for optimization.

Sandboxed execution and telemetry

Agency provides a sandboxed execution environment alongside a Python API and supported agent harnesses. Integrated telemetry records execution data while the user's application retains control of its workflow and orchestration. Supported agent harnesses include Native, Claude Code, Codex, OpenCode, Grok, and Kimi. Model backends span OpenAI Chat Completions and Responses, Anthropic, Amazon Bedrock, and OpenAI-compatible endpoints including vLLM. The environment runs on Linux sandboxes using Docker or Podman, with configurable resources and mounts.

Getting started requirements

The platform requires Linux x86-64 and Python 3.12 or newer. Git and uv are needed for installation. Docker or Podman must be available for sandbox creation. An API key for the configured model provider is required. Setup involves cloning the repository, synchronizing dependencies with uv, and exporting the necessary environment variables before running the quickstart example.

git clone https://github.com/agency-project/agency.git
cd agency
uv sync --locked --python 3.12
export OPENAI_API_KEY="your-api-key"
export OPENAI_MODEL="gpt-6-luna"
uv run python examples/quickstart.py

The configured model must support reasoning_effort="none". Model API usage may incur charges. First startup requires network access for the sandbox image and dependencies. No GPU, ZFS, or CRIU is required.

For live execution and profiling, the command AGENCY_PROFILE=1 AGENCY_PROFILE_SCOPE=workload uv run python examples/quickstart.py --webui opens localhost:7860 for live execution and localhost:7860/profiler for profiling. The dashboard binds to 0.0.0.0 by default; users should not expose it to untrusted networks without appropriate access controls.

Practical value for development teams

For teams building with AI agents, Agency answers persistent operational questions. When an agent stalls, developers can see exactly what it is waiting for rather than guessing. When one run outperforms another, the platform reveals which steps took less time and why. Profiling across multiple runs identifies patterns of latency, resource contention, or failure modes. The Critical Path Profiler surfaces the single factor most often determining whether a run succeeds or falls short. Teams debugging performance regressions can trace from high-level activity down to individual process metrics, replacing speculation with evidence.

The sandboxed environment means teams can profile dangerous or expensive experiments without risking their primary infrastructure. Integrated telemetry provides data that was previously scattered across logs, timestamps, and separate monitoring tools. By keeping the user's application in control of its workflow and orchestration, Agency avoids imposing a new orchestration layer on top of existing systems.

Experimental Linux CLI integration

The platform notes experimental integration with existing Claude Code and Codex CLI sessions on Linux. In these experimental modes, profiling, interception, and execution controls may be limited. Python-orchestrated workflows currently provide the most complete experience for recording and interpreting execution data.

Compatibility considerations

Compatibility depends on model capabilities, configuration, and external CLI versions. External harness CLIs must be installed separately. The development team recommends checking specific model and harness requirements before integrating Agency into existing pipelines.