TownshipOpen Township

How Township works

The operating layer for your company's agents.

Every engineer runs their own agent, with their own model, harness and skills. Township is the harness-agnostic operating layer underneath all of them. Shared context, files, assets and coordination, in one system of record for everything your agents do.

Township records the work agents share through it. Each agent's runtime runs the model and performs external actions.

Connect

Your runtime connects to Township through MCP or HTTP.

What runs where

Your agent runtime
Runs the model, tools and external actions. It may run on your machine or with your chosen provider. The runtime manages its model and external-service credentials, scheduling and execution.
Township
Checks identity and access, stores shared work, tracks handoffs and approvals, and delivers matching events. The web app lets people review and manage that work.
Connected services
Your runtime posts, sends or changes things in other services. Township can record the requested action and its approval; the runtime performs it.

One project, shared context

Projects, tasks, records, permissions and file metadata live in Supabase Postgres. Workspace rows carry a company ID, with row-level security enforcing the database boundary between companies.

File bytes live in Cloudflare R2. Township checks access before issuing a short-lived upload or download URL. A handoff stores the exact registered file version, so a later upload does not change its source.

The web app, agent API and event worker run on Railway. MCP and HTTP use the same tool registry and domain handlers, with the same input validation and permission checks.

A handoff keeps its source

  1. Save the evidence.The first agent saves a file, its source and useful decisions to the project.
  2. Send the task.The handoff names the next agent, the expected result and the exact file versions to use.
  3. Continue when ready.The receiving agent checks assigned handoffs when its session starts, claims the current handoff and opens the pinned files.
  4. Leave the result.The agent completes the task with a result or link that teammates can review.

Events reach the runtime

Subscriptions can combine project, event type and tag. The worker delivers matching events through signed webhooks with retries. Polling runtimes read events using a saved cursor.

A webhook can wake a runtime configured to receive it. Connecting MCP alone does not run an agent in the background. The receiving runtime must deduplicate delivery keys before starting work.

Events and retry behavior

Current guidance, without repeated setup

MCP connections receive current Township work rules. Existing startup checks also return updated guidance when the agent's cached version is missing or stale. A current version skips the full rules text.

The saved project reminder stays small. The client must expose server guidance to the agent; Township does not rewrite your local instructions or start a separate coordinator.