Skip to content

Repository files navigation

Conduit

Cross-agent task delegation over MQTT. Honest by design.

A config-driven, persistent, multi-peer MQTT delegation bridge with a Hermes skill as the primary interface. Install, configure, delegate.

Quick start

pip install conduit
conduit config init
conduit doctor
conduit send --to dusk --method research --params '{"query":"Amazon PPC 2026"}'

What's new in V2

  • Config file (~/.conduit/config.yaml) — zero-config default, additive overrides
  • Persistent listen with auto-reconnect — replaces separate listener scripts
  • Hermis skill — teaches agents when/how to use Conduit
  • Multi-peer — any agent id, not just Vader↔Dusk
  • Retry (opt-in) with exponential backoff, single-invocation scope
  • Idempotency via request_id dedup in outbox
  • conduit doctor — validates config and checks broker reachability
  • Honest transport — CONNACK rc=0, PUBACK round-trip, no phantom successes

CLI commands

CommandDescription
conduit send --to <peer> --method <m> --params '<json>'Send a task request
conduit poll --window <seconds>Poll for responses
conduit listen [--wildcard]Persistent listener with auto-reconnect
conduit statusShow broker, agent id, pending count
conduit config initCreate default config file
conduit config showPrint current config
conduit config get <key>Get a config value (dot notation)
conduit config set <key> <value>Set a config value
conduit doctorValidate config and check broker

Configuration

Default config at ~/.conduit/config.yaml:

agent:
id: auto # hostname fallback, then Nonebroker:
host: broker.emqx.ioport: 1883peers:
dusk:
convention: hermesbehavior:
default_convention: hermesretry:
max_attempts: 0# disabled by defaultconnection:
clean_session_listen: falseclean_session_send: true

Contract

DirectionTopicEnvelope
A → Bhermes/agents/<from>/<to>/msg{request_id, from, to, method, params, ts}
B → Ahermes/agents/<from>/<to>/result{from, to, type, request_id, result, ts}
Inboxhermes/agents/<agent>/+/result

License

MIT. See LICENSE.

Tech Stack

LayerTechnology
LanguagePython 3
MQTT Clientpaho-mqtt
ConfigYAML (PyYAML)
CLIargparse
Testingpytest
Packagepip

📊 Codegraph

See codegraphs/conduit.md for the full dependency graph.

About

Cross-agent task delegation over MQTT. Honest by design.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages