Skip to main content

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; senses has 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 to main, locally. Nothing is ever pushed.
  • Fail closed at launch. associate run refuses to serve (exit 2) 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.

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 for worker, senses and cortex, a gate verdict on every write, the read-only fallback with the decider unreachable, a cortex run that spawned a senses and a worker child, and the mesh resident starting through pi-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);
  • 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.

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, 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. 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.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for associate 0.10.0
File Size Uploaded Provenance Actions
associate-0.10.0.tar.gz 798.3 kB Without provenance Details for associate-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for associate 0.10.0
File Interpreter ABI Platform Actions
associate-0.10.0-py3-none-any.whl Python 3 none any Details for associate-0.10.0-py3-none-any.whl

Total release size: 909.7 kB

Release files / associate-0.10.0.tar.gz

Download URL associate-0.10.0.tar.gz
Size 798.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5011fd754e8baac508728f2c84a58e9f76912221241b9188c04b6f11ce757ac1
BLAKE2b-256 checksum
How to use checksums
cf2233032703035a49187f71af1042070f42fbd4547018576c2ccc50ed94dfa6
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.10.0-py3-none-any.whl

Download URL associate-0.10.0-py3-none-any.whl
Size 111.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
675f7cfa627376659848ff4bf6c925a56a7e54fd903977b46f4d5ab5700cee1b
BLAKE2b-256 checksum
How to use checksums
2d038ed9e8df280bb815631c69a3668f2f083fc48f61dea4b1ec7b4f74301d32
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.10.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page