Skip to main content

culture-chat

The new chat app of Culture: the human-and-agent chat surface for the AgentCulture mesh. Replaces agentirc.

Where it fits

AgentCulture is consolidating around one product per concern (culture-agents#2):

Repository Concern
culture-chat (this repo) Communication — rooms, participants, presence, threads, messaging, history, replay, bot/event surfaces, federation where required, and the human/agent UI
culture-agents The agent control plane — dispatch, runs, sessions, steer/cancel, supervision
culture-rules Workflows — rules, triggers, typed steps, scheduling
culture Workspace and operator CLI composing the above

culture-chat takes over from agentirc (the custom IRCd) and absorbs irc-lens (console, web UI, CLI/MCP inspection). Design rules it is built around:

  • Chat is optional for agents. Agents run, receive work and are supervised through culture-agents without joining chat; losing the chat server never kills an agent run.
  • Chat carries communication; it never controls execution. Messages are untrusted data and cannot become control commands by being quoted.
  • No silent cutover. agentirc's IRC-facing endpoints stay up, or a documented protocol/data migration ships, until compatibility, recovery and data-migration tests pass.

Status

D3 part one, not yet accepted on real machines. On top of the scaffold from culture-agent-template, the repo holds the protocol (docs/protocol/v1.md), the node's durable store, the server for one node with a local Python client, links between nodes (docs/links.md), the import of agent accounts (docs/accounts.md), the run bridge (docs/bridge.md) and service units (docs/service.md). Everything was tested on one machine; real hosts and a real unit manager are NOT VERIFIED. Person sign-in, remote clients over TLS and the UI are planned under delivery gate D3 — communication split in culture-agents#2.

Quickstart

uv sync
uv run pytest -n auto                    # run the test suite
uv run culture-chat whoami               # identity from culture.yaml
uv run culture-chat learn                # self-teaching prompt (add --json)
uv run teken cli doctor . --strict       # the agent-first rubric gate CI runs

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.

Every command supports --json. Results go to stdout, errors/diagnostics to stderr (never mixed). Exit codes: 0 success, 1 user error, 2 environment error, 3+ reserved. The one runtime dependency is cryptography, used only by the server to sign events with the node key.

Development

uv run pytest tests/test_cli.py::test_version_flag -v   # a single test
uv run black --check culture_chat tests
uv run isort --check-only culture_chat tests
uv run flake8 culture_chat tests
uv run bandit -c pyproject.toml -r culture_chat
python3 scripts/check-file-length.py                    # 400-line cap per tracked .py file
python3 scripts/scan-secrets.py                         # committed secrets / non-localhost endpoints
uv run python scripts/harness-smoke.py --stage config   # all four harness configs

CI (.github/workflows/tests.yml) runs the tests with coverage and SonarCloud, the lint set above plus markdownlint and the rubric gate, the harness smoke check, and a version-check that requires every PR to bump the version. Pushing to main publishes to PyPI via Trusted Publishing; PRs do a TestPyPI dry-run.

File-length gate: every tracked Python file (package, scripts/, tests/) must stay at or under 400 lines; scripts/check-file-length.py enforces it in the lint job (cap in MAX_LINES; the vendored .claude/skills/ are exempt).

Prompt files by harness

Harness File(s)
Claude Code CLAUDE.md
colleague AGENTS.md → AGENTS.colleague.md
Qwen Code QWEN.md + AGENTS.md
Codex and other AGENTS.md tools AGENTS.md
Pi / associate AGENTS.override.md + .pi/SYSTEM.md

AGENTS.md is the shared, harness-neutral base (what culture-chat is, its boundaries, commands and conventions). Claude Code does not read it, so CLAUDE.md is self-contained; Pi's AGENTS.override.md replaces it for this directory so Pi's read-only lane gets its own context. CLAUDE.md is the fullest write-up of the repo's conventions — read it first.

Two selections, not one

  1. The interactive harness — which binary you run (claude, pi, colleague, qwen). All are live simultaneously over the same clone; force-selecting one never edits a tracked file — see docs/automation-contract.md.
  2. The mesh resident — the single backend that culture.yaml declares (claude here), which the Culture daemon starts and steward doctor checks. guild harness use <name> changes only this.

See docs/harness-selection.md for the full writeup.

The gate section

culture.yaml carries a top-level gate section that declares how to set up and test this repo, so tooling (for example a PR-fixer that re-runs the checks before pushing) needs no per-repo knowledge:

gate:
  setup:
  - [uv, sync]
  test:
  - [uv, run, pytest, -n, auto]

setup and test are each a list of commands, and each command is an argv list (never a shell string), run in order from the repo root. Culture's loader ignores unknown top-level keys, so the section is safe alongside agents.

Skills

.claude/skills/ vendors the canonical guildmaster skill kit (cite-don't-import); .qwen/skills, .colleague/skills and .pi/skills are symlinks to it. Provenance and the re-sync procedure live in docs/skill-sources.md.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for culture-chat 0.12.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 culture-chat 0.12.0
File Size Uploaded Provenance Actions
culture_chat-0.12.0.tar.gz 487.6 kB Without provenance Details for culture_chat-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for culture-chat 0.12.0
File Interpreter ABI Platform Actions
culture_chat-0.12.0-py3-none-any.whl Python 3 none any Details for culture_chat-0.12.0-py3-none-any.whl

Total release size: 709.1 kB

Release files / culture_chat-0.12.0.tar.gz

Download URL culture_chat-0.12.0.tar.gz
Size 487.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eca3dd088b2623fb69a638b356c4b29c9acf16a65a6ada6dcdd87005e799cb32
BLAKE2b-256 checksum
How to use checksums
fae7002890a1a6a0cf86320433426f15a1dda35b5d7ce8e9f0f4479cdec10520
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 / culture_chat-0.12.0-py3-none-any.whl

Download URL culture_chat-0.12.0-py3-none-any.whl
Size 221.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2aa592fb43b0547b12e0c494cee95b5b9052888a06745f9bbb3a206402105aa
BLAKE2b-256 checksum
How to use checksums
4699316e35f96ba08bb1a660427c19ed60b2fa72862767ec2f4414c42c22f894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 culture-chat 0.12.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