Metadata-Version: 2.4
Name: agent-zoo
Version: 0.1.5
Summary: Security harness for AI coding agents (Claude Code, Codex CLI, etc.) — mitmproxy payload inspection + TOML policy control.
Project-URL: Homepage, https://github.com/ymdarake/agent-zoo
Project-URL: Repository, https://github.com/ymdarake/agent-zoo
Project-URL: Issues, https://github.com/ymdarake/agent-zoo/issues
Project-URL: Changelog, https://github.com/ymdarake/agent-zoo/blob/main/CHANGELOG.md
Author: ymdarake
License: MIT License
        
        Copyright (c) 2026 ymdarake
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agent,ai,claude,codex,harness,mitmproxy,sandbox,security
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Networking :: Monitoring
Requires-Python: >=3.11
Requires-Dist: typer>=0.12
Provides-Extra: dev
Requires-Dist: beautifulsoup4>=4.12; extra == 'dev'
Requires-Dist: flask-wtf>=1.2; extra == 'dev'
Requires-Dist: flask>=3.1; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: pyyaml>=6.0; extra == 'dev'
Requires-Dist: tomli-w>=1.0; extra == 'dev'
Provides-Extra: e2e
Requires-Dist: playwright>=1.40; extra == 'e2e'
Requires-Dist: pytest-playwright>=0.4; extra == 'e2e'
Description-Content-Type: text/markdown

<p align="center">
  <img src="logo.svg" alt="Agent Zoo" width="400">
</p>

# Agent Zoo

> [日本語](README.ja.md) | English

[![CI](https://github.com/ymdarake/agent-zoo/actions/workflows/ci.yml/badge.svg)](https://github.com/ymdarake/agent-zoo/actions/workflows/ci.yml)

A security harness that **isolates AI coding agents** (Claude Code / Codex CLI /
Gemini CLI) **inside Docker containers** and forces all outbound traffic
through mitmproxy. Payload inspection plus TOML policy control physically
prevent data exfiltration and dangerous command execution, without relying on
the agent's own trustworthiness.

## Quickstart

```bash
uv tool install agent-zoo                      # install from PyPI
mkdir my-zoo && cd my-zoo
zoo init                                       # secure by default: empty allow list (Inbox approval required)
# or: zoo init --policy claude                 # allow Anthropic/Claude only
# or: zoo init --policy {codex,gemini,all}     # see `zoo init --help`
zoo build                                      # build the claude image (5-10 min)
zoo run                                        # interactive mode (first run prompts /login)
```

`zoo init` now defaults to `--policy minimal` (empty `domains.allow.list`) so
that the first outbound request is rejected and surfaced to the Inbox for
per-request approval. Pick another profile (`claude` / `codex` / `gemini` /
`all`) to preseed the allow-list, or edit `.zoo/policy.toml` directly. Live
audit is available through the dashboard (`zoo up --dashboard-only`,
http://localhost:8080).

## Features

- **Docker isolation**: agent containers run on an `internal: true` network,
  cut off from the host OS and other containers; the only egress is the
  mitmproxy sidecar
- **Domain allow-list**: outbound destinations are explicitly enumerated in
  `policy.toml`, with hot reload support
- **Payload inspection**: request and response bodies are inspected (Base64
  decoding, secret patterns, URL-embedded secrets)
- **tool_use detection**: SSE streams are parsed and dangerous tool invocations
  are blocked at the request hook
- **Dashboard auditing**: requests / tool_uses / blocks shown live, with
  whitelist nurturing and Inbox (agent-to-human approval requests)
- **Agent-agnostic**: same harness covers Claude Code / Codex CLI / Gemini CLI;
  the unified image enables cross-agent invocation

## Documentation

| Doc | Contents |
|---|---|
| [Install & Setup](docs/user/install-from-package.md) | Detailed `uv tool install` → `zoo init` → `zoo run` flow, full command reference, unified profile |
| [Inbox guide (JP)](docs/user/inbox.md) | Approving agent-issued allow-list requests through the dashboard |
| [Security model](docs/user/security.md) | Defense in depth, known limitations, operating principles |
| [Policy reference](docs/user/policy-reference.md) | Every setting in `policy.toml` |

## License

MIT
