Skip to main content

Mailbox Agents

CI Coverage License Python

PyPI benethos-mailbox-agents Container benethos-mailbox-agents

Sponsor PayPal

Small agents that work on a mailbox continuously. Each one looks at mail as it arrives or leaves, decides one narrow question about it and takes one reversible action: a keyword, or a move to a folder. The first ones sort invoices, track sent mail that still waits for a reply, recognise project inquiries and file the mail of listed senders into folders.

Status: alpha. Built, and run on a test account of invented mail only. Names, settings and the state file may still change from one version to the next. The design is written down in docs/CONCEPT.md, and no agent acts on a real mailbox yet. Do not point it at a mailbox you care about.

How it works

  • Mail is reached only through the REST API of the mailbox service, with its Python client benethos-mailbox-client. An agent works only against a version of the service it was tested against, today 0.8 from 0.8.0, and refuses any other. Which release works with which release of the service: docs/COMPATIBILITY.md.
  • A language model is reached only through an OpenAI-compatible gateway, with one call per message, a JSON schema for the answer and no tools.
  • Everything else is deterministic code: which messages an agent looks at, what a rule says, whether a quote from the model is really in the mail, and which action follows.
  • Every agent runs in a process of its own, with its own credentials and its own SQLite state file. The state file holds ids and decisions, never the text of a mail.
  • A new agent starts in the stage shadow, where it only records what it would do. The stages keyword and full follow after it was measured against labelled mail.

Install

The package is benethos-mailbox-agents on PyPI, for Python 3.11 or newer:

uvx benethos-mailbox-agents --version

In operation each agent runs as a container of the image ghcr.io/benethos-hub/benethos-mailbox-agents. containers/production holds the compose file and says how to set it up. Every setting is listed in docs/concept/configuration.md.

Development

Needs uv and a clone of the repository.

uv sync
uv run benethos-mailbox-agents --version
uv run pytest -q

The suite is offline. The live checks run against a mail server and a mailbox service of their own with invented mail, see containers/live.

Licence

MIT, see LICENSE.

Metadata

Release files for benethos-mailbox-agents 0.1.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 benethos-mailbox-agents 0.1.0
File Size Uploaded Provenance Actions
benethos_mailbox_agents-0.1.0.tar.gz 942.9 kB Without provenance Details for benethos_mailbox_agents-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for benethos-mailbox-agents 0.1.0
File Interpreter ABI Platform Actions
benethos_mailbox_agents-0.1.0-py3-none-any.whl Python 3 none any Details for benethos_mailbox_agents-0.1.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / benethos_mailbox_agents-0.1.0.tar.gz

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

Download URL benethos_mailbox_agents-0.1.0-py3-none-any.whl
Size 137.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c54da8a0b53da57cc0482c6b1f7f87bb213552a813288eb81c92448d37a486c
BLAKE2b-256 checksum
How to use checksums
57678084996b389cce674bca136af747061f5cc781a4b27a27c637c3532717e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 benethos-mailbox-agents 0.1.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