Docs Reference
Ports and workspace layout
Which port each t10 service uses locally and in Docker Compose, and how the t10 repos fit together.
This repo holds what spans the t10 sub projects. Each sub project is its own repo, in a folder here that this repo ignores. See ARCHITECTURE.md for how they fit together.
agent-ti is agent-pi written in Rust: the same protocol, agent.json, plugin hooks and skills, with several agents per process and its own SQLite journal. It runs Ti Assistant, a text-only agent in the picker, and is catching up on agent-pi's features. See its design and implementation plan. It has no remote yet.
| Path | Purpose |
|---|---|
DEPENDENCIES.md |
Subproject runtime, build and shared-source dependencies, toolchains and change impact |
ARCHITECTURE.md |
The platform design, at a high level, with links to each part's design doc |
contracts/agent/ |
The agent contract, its design, and the conformance suite every harness passes |
contracts/module/ |
The module contract every business module meets |
proposals/ |
Designs for repos that don't exist yet. Each moves to its repo's docs/ when the repo is created |
deploy/ |
The namespace, the Kubernetes entry point, the deployment profiles, the deployment guide and how to add an agent |
scripts/ |
The contract checks and the commands behind make |
repos.txt |
Each sub project and its remote |
| Command | What it does |
|---|---|
make clone |
Clones any sub project that's missing |
make status |
Shows each sub project's branch and uncommitted files |
make check |
Compares the contracts held by copies, and runs the agent contract on each harness |
make light-smoke |
Runs t10-quickstart's check against the checkouts here: one turn and one granted tool call with no gateway |
What goes here#
A sub project must build and test with nothing from this repo, because its image builds see only its own folder. So this repo takes only what's about more than one sub project, and sub projects don't depend on it. A sub project keeps its own go.mod, Dockerfile, Compose file, .env.example, manifests and CI.
This repo doesn't pin sub project versions, so a commit here doesn't record which versions worked together.
Where design docs go#
ARCHITECTURE.md stays high level: boundaries, components, connections, and the decisions each part rests on. A part's details go in its own repo's docs/, and a contract several repos share goes in contracts/. When a change spans repos, update each repo's doc and the summary here together, so they never disagree.
Each doc under a repo's docs/, and under contracts/, proposals/ and guides/ here, starts with front matter:
---
title: t10-collab API
audience: consumer # consumer (builds on t10), contributor (works on the repo) or operator (runs it)
kind: reference # guide, reference, design or record
status: current # current, proposed or record
summary: One sentence on what it covers.
---Plans, reviews, validation logs and superseded proposals are records: they go in the repo's docs/records/ (the workspace's own in docs/records/ here), with kind and status both record. Task-shaped how-tos for people building on a repo go in its docs/guides/, and journeys across several repos in guides/ here. make check runs scripts/check-docs.py, which fails on a doc without front matter, a record out of place, or a relative link to a file that doesn't exist. Each image serves its consumer docs over MCP at /docs/mcp, and t10-docs serves every image's at /mcp: see contracts/docs/README.md and docs-server/README.md.
Port Allocation Reference#
To prevent port conflicts across sub-components, avoid colliding with host system daemons (such as system Postgres :5432 or Redis :6379), and allow running native processes side-by-side with containerized stacks:
- Local / Native Sub-Component Ports (
18000series in 10s): Used when running services directly on the host (e.g.go run,node,npm run dev). - Docker Compose Published Host Ports (
28000series in 10s): Used incompose.ymlfor host bindings (e.g.28000:8081or28000:18000). Trailing digits match their18000counterpart for easy mental mapping.
Application Services & Agent Harnesses#
| Sub-Component | Role / Protocol | Current Default | Local Service Port (18000s) |
Docker Compose Host Port (28000s) |
Listen / Configuration Environment Variables |
|---|---|---|---|---|---|
auth-server |
Identity, JWKS, admin routes, room admission | :8081 |
18000 |
28000 |
AUTH_LISTEN_ADDR=:18000, AUTH_PUBLIC_URL=http://localhost:18000 (or 28000) |
t10-agent-control |
Agent registry, routing, policy & evidence | :8085 |
18010 |
28010 |
AGENT_CONTROL_LISTEN_ADDR=:18010 |
t10-console |
Platform administration web UI | :8086 |
18020 |
28020 |
CONSOLE_LISTEN_ADDR=:18020 |
t10-automations |
Background jobs, cron & automated runs | :8087 |
18030 |
28030 |
AUTOMATIONS_LISTEN_ADDR=:18030 |
t10-collab |
Work items, lists, offers & MCP | :8082 |
18040 |
28040 |
COLLAB_LISTEN_ADDR=:18040 |
t10-knowledge |
Knowledge base API & document retrieval | :8091 |
18050 |
28050 |
KNOWLEDGE_LISTEN_ADDR=:18050 |
workbench (App & API) |
Web client backend & session API | :8083 |
18060 |
28060 |
WORKBENCH_LISTEN_ADDR=:18060, WORKBENCH_PUBLIC_URL=http://127.0.0.1:18060 (or 28060) |
workbench (Vite Dev) |
Vite React dev server (proxies to backend) | :5173 |
18061 |
N/A (embedded) | npm run dev -- --port 18061 |
flutter / mobile-web |
Mobile web client (nginx container) | :8080 / :7788 |
18070 |
28070 |
Container port :80 / :8080 mapped to host |
ai-gateway-llm |
Model provider proxy, quotas, audit log | :7200 |
18080 |
28080 |
AGENT_GATEWAY_PORT=18080, AI_GATEWAY_LLM_BIND=127.0.0.1:18080 |
ai-gateway-agent |
Client session router to agent replicas | :7201 |
18090 |
28090 |
AI_GATEWAY_AGENT_PORT=18090 |
ai-gateway-tools |
MCP proxy, tenant tool policy & evidence | :7202 |
18095 |
28095 |
Service port for MCP proxy |
t10-docs |
The one endpoint for every image's docs, MCP at /mcp |
none | 18220 |
28220 |
DOCS_LISTEN_ADDR=:18220, DOCS_SOURCES=name=url,… |
t10-livekit-agent (docs, health) |
The voice worker's own docs, MCP at /docs/mcp, and /healthz, /readyz |
off | 18210 |
N/A | LIVEKIT_AGENT_LISTEN_ADDR=:18210 |
agent-pi (Assistant) |
General assistant agent harness | :9800 |
18100 |
28100 |
PORT=18100, ASSISTANT_PORT=28100 |
Future Custom Agent |
Reserved slot for 3rd agent harness | :9820 |
18120 |
28120 |
PORT=18120 (increments by 10 for subsequent agents) |
Real-Time Media & Observability Infrastructure#
| Service | Protocol / Role | Default Port | Local Service Port (18000s) |
Docker Compose Host Port (28000s) |
Configuration / Notes |
|---|---|---|---|---|---|
| LiveKit Server (Signaling) | WebRTC Signaling (HTTP / WebSocket) | :7880 / :8890 |
18200 |
28200 |
LIVEKIT_URL=ws://localhost:18200 (or 28200) |
| LiveKit Server (RTC TCP) | WebRTC ICE-TCP fallback media | :8891 |
18201 |
28201 |
rtc.tcp_port: 18201 (or 28201) |
| LiveKit Server (RTC UDP) | WebRTC UDP primary audio/video media | :8892/udp |
18202/udp |
28202/udp |
rtc.udp_port: 18202 (or 28202) |
| OTel Collector (gRPC) | OpenTelemetry gRPC span/metrics export | :4317 |
18300 |
28300 |
OTEL_EXPORTER_OTLP_ENDPOINT=localhost:18300 (or 28300) |
| OTel Collector (HTTP) | OpenTelemetry HTTP receiver | :4318 / :4319 |
18310 |
28310 |
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:18310 (or 28310) |
| Jaeger / Grafana UI | Distributed trace & metric dashboards | :3000 / :3002 |
18320 |
28320 |
Web browser access |
| Prometheus | Metrics scraping & storage | :9090 |
18330 |
28330 |
Prometheus metrics UI & API |
Dedicated Database Ports (Host Mappings for Local Dev & Compose)#
To allow spinning up individual component databases without port clashes on standard :5432 or :6379:
| Database / Store | Component / Owner | Internal Container Port | Local Dev Host Port (18000s) |
Docker Compose Host Port (28000s) |
|---|---|---|---|---|
| PostgreSQL (Auth) | auth-server |
:5432 |
18400 |
28400 |
| PostgreSQL (Collab) | t10-collab |
:5432 |
18410 |
28410 |
| PostgreSQL (Workbench) | workbench |
:5432 |
18420 |
28420 |
| PostgreSQL (Knowledge) | t10-knowledge |
:5432 |
18430 |
28430 |
| PostgreSQL (Console) | t10-console |
:5432 |
18440 |
28440 |
| PostgreSQL (Agent Control) | t10-agent-control |
:5432 |
18450 |
28450 |
| PostgreSQL (Automations) | t10-automations |
:5432 |
18460 |
28460 |
| Redis | ai-gateway & shared cache |
:6379 |
18470 |
28470 |
Mock Services & Performance Benchmarking (18500 series)#
| Sub-Component | Role / Protocol | Default Port | Local Service Port (18000s) |
Docker Compose Host Port (28000s) |
Notes |
|---|---|---|---|---|---|
t10-perf (Mock LLM) |
OpenAI-compatible SSE completions | :18500 |
18500 |
28500 |
Parameterized TTFT and inter-token streaming |
t10-perf (Mock Auth) |
JWKS keys & ES256 token/grant issuer | :18510 |
18510 |
28510 |
Zero-latency in-memory auth & grant tokens |
t10-perf (Mock MCP) |
Streamable HTTP MCP tool server | :18520 |
18520 |
28520 |
Tool latency & payload bloat injection |
Generated from t10’s own docs (bbc3cde). Spotted a problem? Tell us.