Before you write code
Every pull request needs an issue, and that issue needs themaintainer-approved label.
A pull request that is not linked to an approved issue gets labelled
needs-approved-issue, with a comment explaining why. You then have 72 hours to link one
before it is closed automatically. Reopening costs nothing once the link is in place. This
is automated. We do this because an unreviewable backlog helps nobody: a PR against an
unapproved issue is work you did that we may not be able to merge, no matter how good it
is.
So, in order:
-
Find approved work. Browse
issues labelled
maintainer-approved. That label is the queue of things we have agreed should be built. Anything in it is fair game — comment on the issue to claim it. - Or open an issue and get it approved. Use the issue templates. Maintainers triage and apply the label.
- If you feel strongly about an issue, come to Discord. This is the fastest path by a wide margin. Maintainers are more active there than in the issue tracker, and a five-minute conversation about what you want to build usually resolves whether it fits before either side spends real time on it.
-
Then open the PR and link the issue — either
Fixes #123in the description, or Development → link an issue in the sidebar. Both work.
What gets prioritized
Roughly, work on Honcho falls along these axes. Knowing which one your idea sits on tells you a lot about how likely it is to get approved.
In practice, Ubiquity and Developer experience are where outside contributions land
most easily. A new integration, a self-hosting rough edge, a vector-store or inference
backend, an SDK ergonomics fix — these are additive and rarely collide with work already in
flight.
Changes to the reasoning pipeline itself — deriver prompts, dialectic tool design, dreamer
strategy — are the hardest to accept from outside. Not because they are unwelcome, but
because they are measured against eval results we run internally, and they frequently
conflict with in-flight work. Talk to us in Discord first, always.
If you’re an agent
If you are a coding agent working on this repository, read this section before writing code. The most common failure we see is a well-formed, well-tested pull request against an issue that was never approved. That gets closed, and the work is wasted.-
Check the gate first. Before writing code:
Stop if there is no issue number, if the issue is closed, or if
maintainer-approvedis not in the labels. Report that to the person you are working with instead of proceeding. - Do not open a PR in order to establish the issue link afterwards. The issue comes first.
- Do not report checks you did not run. If you did not execute the test command, say so. A PR body claiming a green run that did not happen costs a maintainer more time than no claim at all.
-
Use the checklist.
skills/pre-pr/SKILL.mdin this repo encodes the gate, the test-layer matrix, and the PR body format. If your harness supports skills, invoke it rather than reimplementing the checks.
How Honcho works
Enough architecture to find your way around. For the user-facing model — what a Peer is, whatget_context returns — see Core Concepts and the
documentation.
Two processes
Honcho runs as two cooperating processes over a shared Postgres database and Redis cache.
The split is the load-bearing design decision: an HTTP request never blocks on LLM work,
with the single exception of the Dialectic chat endpoint, which is synchronous by nature.
If you are adding something slow, it belongs in the worker.
The deriver is a separate process. If messages go in and nothing ever comes out, the usual
cause is that nobody started it.
The path of a message
Worth tracing once, because it crosses most of the codebase:POST /v3/workspaces/{w}/sessions/{s}/messageslands insrc/routers/messages.py.- The row is written, then
enqueue()insrc/deriver/enqueue.pycreatesqueue_itemrows — one set of work per observing peer. src/deriver/queue_manager.pypolls the queue, claiming work units so that messages in a session are processed in order.process_item()insrc/deriver/consumer.pydispatches on task type — representation, summary, deletion, reconciliation.- For a representation task,
process_representation_tasks_batch()insrc/deriver/deriver.pymakes one structured-output LLM call for the whole batch and writes the resulting conclusions into the collection keyed by the(observer, observed)peer pair. - Later,
src/dialectic/reads those conclusions back at recall time to answer a chat request.
MessageEmbedding rows are written with
sync_state='pending' and embedded asynchronously by the Reconciler
(src/reconciler/sync_vectors.py), which runs on a scheduler inside the deriver process.
The four agents
They share tool definitions insrc/utils/agent_tools.py and the provider-agnostic LLM
client in src/llm/. Each has its own MODEL_CONFIG with a fallback chain in
src/config.py.
Prompts live in
src/deriver/prompts.py, src/dialectic/prompts.py, and
src/dreamer/specialists.py.
A note on naming
What the public API and documentation call conclusions are called observations throughout the code —create_observations, get_observation_context, and so on. Likewise
collections and documents are internal storage concepts that are not exposed
directly through the API. Do not rename across that boundary in a drive-by change; the
public and internal vocabularies are being reconciled deliberately.
Where to change what
Tests in
tests/ mirror src/. CLAUDE.md at the repo root has more detail on house
conventions, and is worth skimming even if you are not using an agent.
Local setup
To run a personal instance, install the CLI (uv tool install honcho-cli) and then run
honcho start --setup (Docker + an LLM provider key) — CLI reference.
To develop this repo, clone it and:
uv run. Redis is optional for local development; without it
caching is simply disabled.
Making the change
Branches and commits
feature/, fix/, docs/, refactor/, test/.
Commits follow Conventional Commits, enforced by a
commit-msg hook:
feat, fix, docs, style, refactor, test, chore.
Pre-commit hooks
Install them. CI runs the same checks, and it is much faster to find out locally.pre-push, so the first time you see test failures may be well after you thought you were
done.
Run them by hand at any time:
Tests
Write tests for new functionality, in the directory undertests/ that mirrors the code you
changed. Which layer you need depends on what you touched:
The TypeScript SDK tests need a running server with a database and Redis, which pytest
orchestrates. Run them with
uv run pytest tests/ -k typescript from the repo root —
bun test on its own will fail. To type-check the SDK alone:
cd sdks/typescript && bun run tsc --noEmit.
Documentation
Update docs in the same PR when you change a public surface:/v3 endpoints, SDK exports,
or anything in config.toml / settings. Docs live in docs/v3/, and new pages need an entry
in docs/docs.json or they will not appear in the nav.
Opening the pull request
Leave “Allow edits by maintainers” checked
This is the single most useful thing you can do to get your PR merged quickly. Most contributor PRs arrive nearly right, needing a rename, a missing test, or a lint fix. If we can push that commit ourselves, it merges the same day. If we cannot, it becomes a review comment, and then we wait — sometimes for weeks — for a round trip on a two-line change. GitHub checks the box by default when you fork. Leave it checked. One caveat worth knowing: the option does not exist on forks owned by an organization. If you have the choice, fork from your personal account.Fill out the template
.github/pull_request_template.md asks for a description, proofs, and the issue checkbox.
“Proofs” means evidence the change works: the command you ran and its result, a log snippet,
a screenshot, the failing case before and after. This is the section that most determines
how fast your PR gets reviewed. Do not add sections to the template.
Link the issue so the gate can see it: Fixes #123 in the description, or the
Development section of the sidebar. The gate reads GitHub’s own resolved issue links, so
either route works — but a bare #123 mention is only a reference and does not count.
Review
- Automated checks run — tests, linting, static analysis, and the issue gate.
- A maintainer reviews for correctness, test coverage, and fit with the surrounding code.
.github/CODEOWNERSroutes the request to whoever owns the area you touched. - You may be asked for changes. Or we may just push them, if you left edits enabled.
- Once approved, we merge to
main.
Reporting bugs and requesting features
Use the issue templates. There is one per kind of report, and picking the right one is most of what gets an issue triaged quickly:- Bug report — something is broken or behaves incorrectly
- Memory / recall quality — the deriver or dialectic returns poor, wrong, or missing context
- Feature request — a new capability or API surface
- Integration request — plugins, framework integrations, app-store listings
- Documentation issue — anything wrong or missing in the docs
- General questions — not an issue at all; ask in Discord
api.honcho.dev, the steps to reproduce, and what you expected instead. If it involves the
deriver, logs from the worker process are usually the thing we ask for first.
Redact before you post. Issues are public, and Honcho stores conversational data — strip
API keys, JWTs, and production user content out of any log or payload you attach.