Pier is a Harbor-compatible framework for evaluating coding agents in sandboxed environments. It reads Harbor's task format and runs trials against it.
pier run -p path/to/task --agent claude-code --env modal
Why pier
Pier is a fork. We wanted a smaller, more opinionated base to build on. On top of Harbor, Pier adds:
Installed agents in air-gapped tasks (allow_internet = false). When the agent runs inside the sandbox (Claude Code, Codex, etc.), both the install step and the inference call need the network. Pier lets agents declare their install scripts and a network allowlist, which docker and modal environments honor when setting up the sandbox.
Augmented ATIF v1.7. Strict one step per API turn, strict reasoning vs agent message separation, no fabricated assistant text, peak_context_tokens, summarization_count, llm_call_count, real upstream timestamps.
A chat-style trajectory viewer (pier view).
pier critique run for inspecting completed trials with a fresh agent in a fresh sandbox.
What works today
Task format: Harbor-compatible.
Environments:docker, modal. Per-agent install specs and network allowlists are honored on both, so installed agents work under allow_internet = false.
Run a local dataset, optionally a deterministic random subset:
pier run -p path/to/dataset --agent claude-code --env modal
pier run -p path/to/dataset --n-tasks 10 --sample-seed 0
To use a Harbor registry dataset, download it with Harbor first, then point Pier at it:
uv run --directory ~/code/harbor harbor download swebenchpro -o ~/code/pier/datasets
uv run pier run -p datasets/swebenchpro --n-tasks 10 --sample-seed 0
Trials land under jobs/<timestamp_or_name>/<trial_id>/. See pier run --help, pier job --help, pier critique --help, and pier view --help for everything else.
Agent runtime configuration
Use agent.model_name for trial metadata, agent.env for runtime env vars, and agent-specific kwargs for tool config. Pier's network allowlist also reads URLs out of those configs (Codex config_toml, OpenCode opencode_config, mini-swe config_yaml), so any base URL you set is allowlisted without code changes.
A few things we've learned plumbing this through Respan and OpenRouter:
Claude Code routes through the Anthropic face from Respan. Plan mode is disabled by default (--disallowedTools EnterPlanMode).
Antigravity SDK runs Google's Python SDK with its platform-specific local
harness in an isolated Python 3.12 environment with hash-verified, fully locked
dependencies. It supports Pier skills, stdio and streamable-HTTP MCP servers,
and live ATIF checkpoints. reasoning_effort accepts minimal, low, medium,
or high; None uses medium. SSE MCP servers are not supported by
google-antigravity 0.1.9.
Cursor CLI uses the installed cursor-agent binary, so it fits the same
inside-the-sandbox path as Claude Code, Codex, Gemini CLI, and OpenCode. Use
cursor/composer-2.5 for Composer 2.5 trial metadata and pass CURSOR_API_KEY
through your env file.
OpenCode uses opencode_config to add unknown providers or override known ones. To redirect Google to Respan, override just options.baseURL; to add a fully custom provider, use opencode_config.provider.<name> with the npm package, options, and models.
mini-swe-agent picks a native adapter from the model-name prefix: openai/... → litellm_response (OpenAI Responses end-to-end), openrouter/... → openrouter (BYOK costs from cost_details.upstream_inference_cost), everything else → LiteLLM auto.
For Gemini 3 via mini-swe-agent/LiteLLM, omitting reasoning_effort uses the Gemini API default high/dynamic thinking level, but it does not request readable thought summaries. Set kwargs.reasoning_effort: high explicitly when you want LiteLLM to send includeThoughts and preserve returned summaries as reasoning content.
Sandboxed code execution for AI agents, locally or on the cloud.
1.3M downloads/mo
azure-containerapps-sandboxPythie’s Index: 82Azure Container Apps Sandbox data-plane SDK for Python. Community preview.251.7K downloads/mo
runloop_api_clientPythie’s Index: 90Official Python SDK for Runloop — secure Linux sandboxes (Devboxes) where AI agents run code, edit files, and expose ports559.3K downloads/mo
atifPythie’s Index: 10Pydantic models for the Agent Trajectory Interchange Format (ATIF v1.8).281.6K downloads/mo