# Repository Briefing: Abilityai/trinity
> Source: https://repoforai.com/repo/Abilityai/trinity (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Abilityai/trinity
- **Official Docs / Website**: https://www.ability.ai/trinity
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.0.5 (2026-11-17) — https://github.com/Abilityai/trinity/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP
- **Momentum**: 827 ★ total (+1 24h / +21 7d) · 165 forks
- **Topics**: `agent-orchestration`, `agent-runtime`, `agentic-ai`, `ai-agent`, `ai-agents`, `ai-governance`, `ai-observability`, `anthropic`, `autonomous-agents`, `claude`, `claude-code`, `llm`
- **When to Use**: Best for: Platform and operations teams running several persistent agents that need explicit delegation, human approvals and traceable execution on infrastructure they control. Skip if: A coding CLI and scheduler already cover the work, you cannot operate a multi-service Docker host, or you need fully managed infrastructure or turnkey offline inference.

## Overview
```text
### Architecture & Core Mechanics
Trinity is a single-host control plane for persistent agents. Vue provides the operator UI; a Python/FastAPI backend, MCP server and scheduler sit on a network separated from agent containers. PostgreSQL stores platform data, while Redis handles secrets and locks. Each agent gets its own Docker container, Git repository, credentials and schedule. Vector ships logs, and OpenTelemetry exports metrics.

A scheduled task runs in the agent container. If the request names a gated skill, the platform holds it before the agent sees it and routes it to the designated approver. Agent-to-agent calls are limited by configured permission edges. Git repositories and local directories serve as template sources, a tag-pinned skills library distributes reusable playbooks, and scoped MCP keys and REST connect external tooling. A system manifest groups agents, schedules and permissions for deployment and reconciliation.

### Key Capabilities & Differentiators
Operators can select Claude Code, OpenAI Codex or Gemini CLI per chat without replacing the agent’s state, history or permissions. The platform runs schedules, work loops, delegation and fan-out. In v1.0.5, agents can wake when a question is answered or delegated work completes. Workspace provides topic chats, files, a canvas and voice; Slack, Telegram, WhatsApp and public chat links extend access beyond the UI.

Roles tie agents to objectives and declared metrics. Skill approvals, cost limits, loop budgets and an outbound-call kill switch constrain different parts of execution. Git commits preserve work products; the searchable execution ledger records triggers, duration, cost and outcomes. Tool calls go to an append-only audit log with optional SHA-256 hash chaining. Cornelius keeps reusable knowledge as repository files, and v1.0.5’s searchable memory is opt-in. Cross-agent Projects, including boards, task runs and steward modes, are Enterprise features.

### Trade-offs & Limitations
Compared with running a coding CLI directly under cron or CI, Trinity adds persistent agent state, explicit delegation, approvals and a fleet-wide execution ledger. That is useful when runs span multiple agents and owners, but it also means operating a Docker host, PostgreSQL, Redis, agent containers and access paths. Compared with a managed agent service, you control the host and the routes you expose, but backups, upgrades, capacity and access policy are your responsibility. The described topology is single-host; do not treat per-agent container isolation as high availability.

Skill gates apply to requests that name the gated skill, so use them alongside credential scoping and outbound controls rather than assuming every sensitive action waits for approval. The Apache-2.0 core includes audit logs and optional hash chaining; OIDC, granular RBAC, SIEM export, retention tooling and the named credential vault are Enterprise features. Verify those edition boundaries early if they are adoption requirements rather than conveniences.

### Hardware & Deployment Guide
Use Docker and Docker Compose v2. For a reviewable install, clone the repository, inspect `scripts/deploy/start.sh`, then run it; `--hosted` pulls prebuilt images. The Compose configuration builds the backend from `docker/backend/Dockerfile`. PostgreSQL comes bundled or can be supplied via `DATABASE_URL`; SQLite is no longer supported in 1.0, so older installations need a migration plan. After startup, claim the admin account and connect a model runtime.

Use a VPN for operator access and publish only the public or webhook routes you need through the outbound tunnel. v1.0.5 keeps external MCP access and agent SSH on the host unless an administrator opens them; it also adds manifest reconciliation and `trinity update`. Check existing integrations before upgrading if they expect remote MCP or SSH. Size the host for the control plane plus peak concurrent agent containers, repository and database growth, and logs. Self-hosting the platform does not establish offline inference; validate the connectivity needs of your chosen runtime and channels.
```

## Key Capabilities
```text
- Runtime continuity: Claude Code, OpenAI Codex and Gemini CLI can be selected per chat without changing the agent’s state, history or permissions.
- Human approvals: A named skill can be held before the agent sees the request; the Inbox supports Approve, Discuss and Reject.
- Orchestration: Manifests define agents, schedules and permission edges; v1.0.5 adds wake-ups when a question is answered or delegated work ends.
- Auditability: Git commits track work products, a searchable ledger records runs, and an optional SHA-256 hash chain makes audit logs tamper-evident.
- Integration: REST, CLI and scoped MCP keys support external tooling; Slack, Telegram, WhatsApp and voice provide user-facing channels.
- Operations: Compose logs default to 10 MB per file and three files per service container; Docker-SDK-created agent containers have a separate log cap.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/abilityai/trinity/main/install.sh | bash
```
