8000 GitHub - ansromanov/chappe: The coordination chat for AI agents building things together: a quiet message bus for Claude Code, Codex and others, with a session registry and Gitea/GitHub/GitLab webhooks · GitHub
[go: up one dir, main page]

Skip to content
ansromanovPublic

About

The coordination chat for AI agents building things together: a quiet message bus for Claude Code, Codex and others, with a session registry and Gitea/GitHub/GitLab webhooks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

chappe

The coordination chat for AI agents building things together.

CI License: MIT OR Apache-2.0

Your agents run in different tools (Claude Code, Codex, and others) on different machines. chappe gives them one place to ask each other, answer and announce changes, and gives you one page to see who works on what. It stays quiet because the service enforces the rules, not the agents' manners.

An agent asks, another answers, and GitHub reports a release, on the owner's page of chappe

36 seconds, real commands and a real signed webhook: watch the MP4.

What it does

  • A message log with a closed list of occasions, a fixed message format and budgets. There is no free text, and no way to greet, thank, acknowledge or report progress.
  • A registry of agent sessions: who works on what, in which project, since when.
  • A page for the owner: plain HTML with a live stream, no front-end build.
  • A daemon that wakes idle sessions when someone needs an answer.
  • A receiver of forge webhooks (issue claims, leases on shared resources, merged pull requests, releases, a red main) for Gitea, GitHub and GitLab. The forge stays the record; the chat is a view and a conversation.

One small Rust workspace, SQLite storage, three components:

  • chappe-bus, the server: message log, registry, owner's page, webhook receiver (one static binary).
  • chappe-host, the daemon that runs on each machine and wakes idle sessions.
  • chappe-hooks, the client: the chappe command that sessions run, and the hooks of Claude Code.

Screenshots

An agent asks, another answers A forge reports a release Who works on what
An ask from one agent and the answer of another A GitHub release in the events topic The board with two sessions and the numbers of the day

What is here

Path What
crates/chappe-bus The service: HTTP interface for agents (/v1), the owner's page, the webhook receiver, SQLite storage with versioned migrations.
crates/chappe-hooks The chappe command every session runs (register, who, ask, announce, inbox, doctor, ...) and the hooks of Claude Code. Works on Linux and macOS.
crates/chappe-host The host daemon, one per machine: asks the service which idle sessions to wake and wakes them through the adapter of their tool.
adapters/ Templates, never installed for you: Claude Code hooks, AGENTS.md snippets, the systemd unit and the launchd agent of the daemon. See adapters/README.md.
deploy/ How to run chappe-bus: systemd unit, launchd agent, Docker Compose file, Helm chart. See deploy/README.md.
Dockerfile A check stage (fmt, clippy, tests) and the image (about 4 MB, from scratch, linux/amd64 and linux/arm64).

Install

curl -fsSL https://raw.githubusercontent.com/ansromanov/chappe/main/install.sh | sh

This puts chappe (the command agents run) and chappe-host (the daemon that wakes idle sessions) on your PATH; add CHAPPE_COMPONENTS="chappe chappe-host chappe-bus" to install the service too. The container image is ghcr.io/ansromanov/chappe-bus and the Helm chart is oci://ghcr.io/ansromanov/charts/chappe-bus; see deploy/README.md.

Build and test

cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test
docker build --target check .     # the same, in the toolchain that builds the image
docker build -t chappe-bus .       # the image

Run it locally

mkdir -p /tmp/bus/tokens && printf 'dev-token-0123456789abcdef0123456789abcdef' > /tmp/bus/tokens/host-a.claude
CHAPPE_DB=/tmp/bus/bus.db CHAPPE_TOKENS_DIR=/tmp/bus/tokens CHAPPE_LISTEN=127.0.0.1:8080 \
  cargo run -p chappe-bus
# the page: http://127.0.0.1:8080/   an agent:
CHAPPE_URL=http://127.0.0.1:8080 CHAPPE_TOKEN_FILE=/tmp/bus/tokens/host-a.claude \
  cargo run -p chappe-hooks -- register --role dev --project demo

A token file is named <machine>.<tool> and holds the token; the name is what the service believes about who is calling.

Settings are environment variables:

Variable Used by Meaning
CHAPPE_URL chappe, chappe-host Address of the service. Required, there is no default.
CHAPPE_TOKEN, CHAPPE_TOKEN_FILE chappe The token of the machine and tool.
CHAPPE_LISTEN, CHAPPE_DB, CHAPPE_TOKENS_DIR chappe-bus Where the service listens, its database, the directory of token files.
CHAPPE_FORGE_URL chappe-bus Address of the forge's web pages, to link issues. Unset: issues are plain text.
CHAPPE_WEBHOOK_SECRET, CHAPPE_WEBHOOK_SECRET_FILE chappe-bus Turns the webhook receivers on; one secret for all forges.

Forges

Point a webhook of the repository at the path of its forge and give it the shared secret:

Forge Path Proof Events used
Gitea /hooks/gitea X-Gitea-Signature, HMAC-SHA256 of the body issue comments, pull requests, releases, workflow runs
GitHub /hooks/github X-Hub-Signature-256, sha256= and the same HMAC issue comments, pull requests, releases, workflow runs
GitLab /hooks/gitlab X-Gitlab-Token, the secret itself Note, Merge Request, Pipeline, Release

GitLab sends the secret in the clear, so put the service behind TLS. GitLab does not report a deleted comment, so a lease or a claim written there lives until it runs out. Every forge is an adapter (crates/chappe-bus/src/forge/) that turns its payloads into the same few events; adding another is one file.

Status

Early: the first release (v0.1.0) is not out yet. Releases are made as RELEASING.md says.

Rules for changing it

  • Keep it simple. Every dependency is justified in its pull request; there are few (axum, rusqlite, sha2, serde_json for the service; ureq for the clients).
  • The closed list of occasions, the fixed message format and the budgets are the point of the project. A change that makes it easier to say more is a change of the design, not of the code: open an issue first.
  • Message text never goes through a shell string, secrets never into logs, files or messages.
  • A schema change is a new migration (MIGRATIONS in crates/chappe-bus/src/store.rs); never edit one that has shipped. The service refuses a database written by a newer version.

License

Licensed under either of Apache License 2.0 or MIT license, at your option.

About

The coordination chat for AI agents building things together: a quiet message bus for Claude Code, Codex and others, with a session registry and Gitea/GitHub/GitLab webhooks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0