Skip to main content

yoker-assistant

Python uv Yoker Docs License Agentic

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

  1. Python owns the email loop. It polls an IMAP inbox for UNSEEN messages, fetches each one, and hands it to the agent as a simple From/Subject/Date/body payload.
  2. 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.
  3. The agent converts the reply to HTML via a custom md_to_html tool (the showcase's "create your own bounded tool" example).
  4. 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 and plugin registration.

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

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoker_assistant-0.1.0.tar.gz (602.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoker_assistant-0.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file yoker_assistant-0.1.0.tar.gz.

File metadata

  • Download URL: yoker_assistant-0.1.0.tar.gz
  • Upload date:
  • Size: 602.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for yoker_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fccf61f4a8ca6909a7e0605fabf2815795cf131de5374a406f3ae0dba46e245b
MD5 0c9f7d2d0cbc4107e788ff19c99b97ed
BLAKE2b-256 cfe3c0ba1721c87fe4f13c6591ae72ea10c1e4ecb3f49313d8f1aff244327e3a

See more details on using hashes here.

File details

Details for the file yoker_assistant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yoker_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a872ca7fbdea0a2ceb202e3c57e5e040fa8878e6977a22b3587fb049c1d03ef
MD5 8999be61902cb3af3e4427c69356d70e
BLAKE2b-256 0f8e145bc3efb7caf7761197c60cb6662d97e9cb6332de08dcb3346a4e4174a0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

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