yoker-assistant
A personal assistant that communicates by email, built on yoker-as-SDK.
This is a Yoker showcase package. It demonstrates the yoker-as-SDK
mode: Python owns the process and calls Yoker as a library for the
reasoning half. The package is also a Yoker plugin provider (dual-mode):
it exposes its own tools via __YOKER_MANIFEST__ for any Yoker consumer
to load.
Full documentation is published at yoker-assistant.readthedocs.io — including a tutorial that tells the build story end-to-end, a quickstart with a worked example, and a per-page reference for architecture, security, and configuration.
Status
Initial release candidate. The loop, the agent seam, the mailbox seam,
the bounded tool set, the custom md→html tool, the tests, and
SECURITY.md are all in place. All quality gates green. See
TODO.md for the remaining backlog (HTML styling polish,
attachment handling, batch processing, make run-demo).
What It Does
The assistant is a personal assistant that communicates by email. You email it; it reasons about the email, acts on your behalf using a curated set of safe tools, and emails back. The inbox is the entire UI — no TUI, no CLI prompts, no web.
How it works
- Python owns the email loop. It polls an IMAP inbox for
UNSEENmessages, fetches each one, and hands it to the agent as a simple From/Subject/Date/body payload. - The agent reasons. It categorizes the email, decides what actions to take, uses its bounded tools (read, write, web search, git, etc.), and composes a reply in markdown.
- The agent converts the reply to HTML via a custom
md_to_htmltool (the showcase's "create your own bounded tool" example). - Python sends the reply. It emails the HTML verbatim, marks the original read, and archives it.
The bootstrap flow
On first run, PERSONAL.md does not exist. The agent detects this and
replies with a welcome message and questions about you (name, preferred
address, project context, tone, goals). You answer by replying over
email. The agent iterates with you until it has enough to write the
initial PERSONAL.md — and optionally commits and pushes it via
yoker:git. After bootstrap, every subsequent email is the next message
in the same session.
The git demo beat
The visible "acts on behalf of the owner" moment: the agent
autonomously maintains its own PERSONAL.md learned-behaviours file in
version control. When you email a preference ("from now on, always CC me
on deploy-related replies"), the agent updates PERSONAL.md, commits,
and pushes — all via bounded git tools, not a shell.
Quick Start
make env-dev # install all dependencies
make test # run the test suite
python -m yoker_assistant --once # one poll iteration, then exit
--once is the demo/test mode: one poll iteration and exit. Drop --once
for the long-running mode (polls every 60 seconds until SIGINT/SIGTERM).
A Yoker backend is a prerequisite — either a local
Ollama install or a cloud LLM provider API key. If
you do not already have one, run uv run yoker init once to write
~/.yoker.toml with a backend of your choice.
See Installation for the full setup guide, including email account configuration. Plugin registration is automatic — the package self-injects it at startup.
Architecture
This package demonstrates yoker-as-SDK: Python owns the email loop
(poll, fetch, reply, archive) and calls Yoker as a library for the
reasoning half. The package is also a Yoker plugin provider (dual-mode):
it exposes its own md_to_html tool via __YOKER_MANIFEST__ for any
Yoker consumer to load — including itself.
The sister project
yoker-writing-assistant
demonstrates the complementary mode — yoker-as-runtime — where Yoker
is the entry point and the package runs under it as a plugin.
Both projects share a common quality bar documented in STANDARDS.md.
Documentation
Full documentation lives in docs/ and is published to ReadTheDocs:
https://yoker-assistant.readthedocs.io
The Tutorial tells the build story end-to-end — why this package exists, the two halves (Python loop vs agent reasoning), the seams (Yoker SDK seam + simple-email-gw seam), the handoff contract (payload format + four-way branch), the bounded tool set and the safety model, the persistent-session architecture, the custom md→html tool story, the dual-mode architecture, the git commit/push demo beat, recipient safety, and what is out of scope.
Supporting pages: Installation, Quickstart, Architecture, Security, Configuration, API, Changelog.
The AGENTS.md file provides the project guide for agents working on this codebase. PACKAGE.md provides AI-optimized package documentation for consumers.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yoker_assistant-0.1.1.tar.gz.
File metadata
- Download URL: yoker_assistant-0.1.1.tar.gz
- Upload date:
- Size: 603.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26da81cca336226725624c468a7028b8bd7c3b91595a72bb15908d99b154fe58
|
|
| MD5 |
fd683ad268a7e15f090faf506894b502
|
|
| BLAKE2b-256 |
d85b7e06aa0ddca747464f8ae67c09fa4244ec9ba8365cf7898b85a71e9645a8
|
File details
Details for the file yoker_assistant-0.1.1-py3-none-any.whl.
File metadata
- Download URL: yoker_assistant-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8252d6ec990199111749767c51a27486764d7babf518961b12a74abd1f5bcaea
|
|
| MD5 |
a98f7e829133d5d46f463f07f2390444
|
|
| BLAKE2b-256 |
b3754e5f24c0cd212bfb41fe78f38d645af0390cbed43a9a978049b4f1878999
|