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, accepted on 3 real machines on 2026-12-01. 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). The acceptance was run on 3 real machines (one x86_64, two aarch64, systemd 255); the record is culture-agents docs/d3/part-one-acceptance.md. The counted checks used the stub harness; Claude Code and OpenCode ran on the x86_64 machine with chat, without a question. Still NOT VERIFIED: a real cut of the network (only a link closed from one side was tested), restart after a reboot, service rollback as a verb on a real machine (service upgrade was seen on one machine: it failed on a start race and rolled back cleanly, then succeeded with --settle 10; the bridge's wait for its node, added since, was seen once on one real machine at the first build of this change; of the fixes made since, the socket check was seen passing once on that machine (service start and an upgrade to the fixed build); its failing case, a stop during the wait and the retry rules are NOT VERIFIED on a real machine), the import of real agentirc accounts, a person as a participant, a question asked by a real harness, any real harness on aarch64, a run on the two aarch64 machines with chat (no bridge is installed there), and more than 100 messages in a batch or any throughput figure. 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.3

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.3
File Size Uploaded Provenance Actions
culture_chat-0.12.3.tar.gz 507.8 kB Without provenance Details for culture_chat-0.12.3.tar.gz

Built distribution (wheel)

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

Total release size: 732.9 kB

Release files / culture_chat-0.12.3.tar.gz

Download URL culture_chat-0.12.3.tar.gz
Size 507.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f97dcf2624dddefdc92b57bdcced839f3f0d2a932f45882cb7bf4314ec763d82
BLAKE2b-256 checksum
How to use checksums
61d2d7c3efde75385d64507f0fe10b63cd9608d9916b26af59c71d9dc2faef6b
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.3-py3-none-any.whl

Download URL culture_chat-0.12.3-py3-none-any.whl
Size 225.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
752caa0489d83b1ab2aeabf60e5fc53abe8a252d164db5804812893956497982
BLAKE2b-256 checksum
How to use checksums
9c418631ded8520c5fd914df4f0cf8a8bcbe0db07c96d87a3ae620040c77691c
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.3

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