associate
associate is a multi-model agent harness on Pi (pinned 1.1.0). It runs one of the fleet's models on one task — reading, finding, summarizing, and, for the models allowed to, changing the checkout — and hands back what it saw, what it did, and where, with every statement tied to the recorded tool calls it rests on.
It serves the operator (headless associate run, or the mesh resident via
culture start associate) and mesh peers such as
colleague that hand it work over
IRC.
Models
Models come from a registry in the portable contract,
associate/contract/models.json. Each is
addressed by its lobes role
through the local lobes gateway — never by a checkpoint id — and gets its own
tool set, prompt (.pi/extensions/associate/prompts/) and permissions:
| Key | lobes role | May change the checkout | Notes |
|---|---|---|---|
worker (default; Pi label "bolt") |
worker |
yes, behind the safety gate | the bounded executor |
senses |
senses |
no | read, search, web, memory |
cortex |
cortex |
yes, behind the safety gate | may spawn worker / senses sub-agents |
super-vl |
— | — | pending: no lobes role yet, not usable |
The role descriptions are lobes' own (lobes/roles.py); see
CLAUDE.md's "The runtime lanes" for the citations. The earlier
single lane (the lobes associate role on Nemotron 3.5 Lightning, never
changing anything) is retired; worker replaces it.
How a run is kept safe
- Tool surface per model. A model is offered only its registry tools, and
a guard refuses anything else;
senseshas no writer at all. - CLEF safety gate. Every mutating call — and every memory write and web
call — is scored by the lobes decider (CLEF) against a versioned question set
in
associate/contract/gate.json; below threshold it is refused. With CLEF unreachable the gate tries Super (pending today, so it counts as unreachable), then refuses every mutating call while reads continue. The thresholds are tentative, set from one task's probes (docs/notes/gate-calibration.md); issue #13 is the benchmark meant to replace them. - A worktree per mutating run. A model that may change things runs in its
own git worktree beside the repo; only a clean run whose operator test
commands (
--test-command) all pass is merged tomain, locally. Nothing is ever pushed. - Fail closed at launch.
associate runrefuses to serve (exit2) unless a preflight proves the extension loaded — and, for a model that may not change things, that no writer tool is active.
Writing models also get run_tests (the operator's test commands, gated),
eidetic memory (eidetic_recall / eidetic_remember) and a workledger ledger
(ledger_append / ledger_list); cortex gets spawn_subagent.
senses — the model the mesh resident runs — never writes itself. It hands a
task that needs a change to a separate worker run with delegate_run
(deviation d18), which returns a run id at once; delegate_status reports the
run's outcome, merge and test results. The delegated run is an ordinary
associate run of the tree that holds the extension: its own worktree, the
operator's test commands (ASSOCIATE_TEST_COMMANDS, required), merged to
main only when clean, nothing pushed. Built and unit-tested only; no
delegated run has been started live.
The bridge
Another service can start an associate run and read the result. In this repo a
bridge is one app with a CLI, an HTTP API and an MCP server over the same
verbs, plus a read-only web UI (a runs list and one run's page) that ships in
the wheel and is served by associate serve. The verbs are runs start,
runs show and runs list. This is not the cultureagent agent-session bridge.
A caller, such as a rules engine, names a git checkout, a registry model, an
instruction and at least one test command. associate starts a detached
associate run on it and returns a run id at once. The caller reads the run
later: its status, and once finished ok, merge, tests.passed,
base_commit and changed_paths.
- A run changes the checkout. A writing model's clean run, with its tests
passing, is merged into the checkout's local
main. Nothing is pushed. Use a dedicated clone. - Checkouts are allowlisted.
ASSOCIATE_RUNS_ROOTSlists the directories a run may use. Empty, every start over HTTP and MCP is refused. - One run per checkout at a time.
- Roles. Only
adminstarts a run;viewerand above read one. - The web UI only reads. It lists runs with their status and outcome and
shows one run's tests, changed paths and final reply; it has no start button.
Open it behind Cloudflare Access (the browser sends no token itself). See
docs/operations/bridge.md. - Not measured. The bridge's tests use a stand-in for the run; no real run has been started through it. Built and unit-tested only.
uv sync --extra server --extra mcp # the HTTP API and the MCP server
uv run associate tokens issue --name rules-engine --role admin
ASSOCIATE_RUNS_ROOTS=/srv/associate-clones uv run associate serve
The operator, agent and integrator guide is
docs/operations/bridge.md.
What is measured, and what is not
Measured live, one run each:
- worker (bolt) runs on this repository under the gate: one drafted the fix for
bug F2, another wrote three tests and ran them with
run_tests. Each was reviewed, and fixed where needed, before merge; - the plan's acceptance runs on pi 1.1.0
(
docs/notes/t20-live-acceptance.md): a walk each forworker,sensesandcortex, a gate verdict on every write, the read-only fallback with the decider unreachable, acortexrun that spawned asensesand aworkerchild, and the mesh resident starting throughpi-acp.
Not measured yet:
- the resident's first reply on the mesh;
- a writing model on the mesh (mesh sessions get no run worktree, so the
resident runs
senses); - a real run started through the bridge (its tests use a stand-in child);
- every benchmark. The public suites (BFCL, MMMU, LiveCodeBench, in
associate/bench/suites.json) are wired but unverified and have produced no score.
Treat these as built and unit-tested, not as working.
Quickstart
git clone https://github.com/agentculture/associate && cd associate
uv sync
uv run associate whoami # who this agent is
uv run associate learn # self-teaching prompt (add --json)
uv run associate run --harness stub # plumbing check, no model
uv run associate bench # list the public suites
uv run pytest -n auto # Python tests
bash .pi/extensions/associate/tests/run.sh # extension tests (Node >= 22)
uv run teken cli doctor . --strict # the agent-first rubric gate
A real run needs pi 1.1.0 on PATH and a lane key:
ASSOCIATE_API_KEY=... uv run associate run --model senses "Summarize the gate design"
ASSOCIATE_API_KEY=... uv run associate run "Fix the failing parser test" \
--test-command "uv run pytest -q"
CLI
| Verb | What it does |
|---|---|
whoami |
Report this agent's nick, version, backend, and model from culture.yaml. |
learn |
Print a structured self-teaching prompt. |
explain <path> |
Markdown docs for any noun/verb path. |
overview |
Read-only descriptive snapshot of the agent. |
doctor |
Check the agent-identity invariants (prompt-file-present, backend-consistency). |
cli overview |
Describe the CLI surface itself. |
run [prompt] |
Run one task on a harness adapter (pi by default) with --model, --test-command, --untrusted-checkout. Exits 2 without serving unless a preflight proves the extension loaded correctly. |
bench |
List the public suites, or run one (--suite NAME --model KEY) through its upstream runner and scorer. |
runs start|show|list |
Start a detached run on a checkout and read its result (the bridge). |
serve |
Run the bridge's HTTP API on a loopback listener, and a LAN one if set (needs the server extra). |
tokens issue|list|revoke |
Manage the HTTP API's service tokens. |
mcp |
Serve the runs verbs as MCP tools over stdio (needs the mcp extra). |
Every command takes --json. Results go to stdout, errors and diagnostics go
to stderr — never mixed. Errors in JSON mode are {code, message, remediation}. Exit codes: 0 success, 1 user error, 2 environment error,
3+ reserved. The Python package has no third-party dependencies (the server and mcp
extras are optional), and the Pi extension declares no npm dependency.
Environment
All configuration is through ASSOCIATE_* environment variables — the endpoint
(ASSOCIATE_BASE_URL, default the local lobes gateway), the bearer
(ASSOCIATE_API_KEY, never committed or logged), the model
(ASSOCIATE_MODEL, a registry key), and the session, isolation, test-command,
memory and ledger plumbing, and the bridge's (ASSOCIATE_RUNS_DIR,
ASSOCIATE_RUNS_ROOTS, ASSOCIATE_SERVER_TOKENS, the listener and Access
variables). The full table, each row tied to the code that
reads it, is in CLAUDE.md's Tooling prerequisites, with the exact
pi / pi-acp / Node pins.
Identity and skills
culture.yaml declares backend: acp launched through pi-acp, so the
resident's runtime prompt is AGENTS.md plus the active model's
prompt; CLAUDE.md is for Claude Code sessions working on the
repo. AGENTS.colleague.md is kept until the ACP path is verified live.
19 skills are vendored cite-don't-import under .claude/skills/, with
provenance in docs/skill-sources.md. Eight of them
are the devague chain — scope,
think, challenge, spec-to-plan, assign-to-workforce, deviate,
validate-delivery, summarize-delivery — which carried this work from idea to
delivery with three human gates (the spec, the split plan, the PR). The rest
cover the PR lane (cicd), cross-repo messages (communicate), second
opinions (ask-colleague), memory (remember / recall), tests, version
bumps, SonarCloud, agent config, PyPI source switching, and doc alignment.
Contributing
Every PR bumps the version — including docs-only and CI-only changes; CI
enforces it. Vendored skills are never patched in place; fixes go upstream.
Both rules, and the CLI contract you must not break, are in
CLAUDE.md.
License
Apache 2.0 — see LICENSE.
Metadata
Release files for associate 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| associate-0.11.0.tar.gz | 1.5 MB | Without provenance | Details for associate-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| associate-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for associate-0.11.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / associate-0.11.0.tar.gz
| Download URL | associate-0.11.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
411244d3378a9dcf9dc5cdfbaf0e0111b3432670eb63b57440c5106f32bc1423
|
|
BLAKE2b-256 checksum How to use checksums |
de63558583361768d0958188cde68fc67b3ede2355a18ae74afb752b5e50a0d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / associate-0.11.0-py3-none-any.whl
| Download URL | associate-0.11.0-py3-none-any.whl |
|---|---|
| Size | 607.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
764a9009da390dfb9d79cfd47e0329ca1acf18de029816afb2bda45504836cf6
|
|
BLAKE2b-256 checksum How to use checksums |
aec483de4ee32fcd0adbb77f68b5d9081537e4ca939c00a713983c087580176b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for associate 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.