Version 0.2.0 · Open source · Self-hosted

APA

The workbench behind your personal Agent. Messages in. Work out. Decisions to you.

Mail, group chats, your calendar and your code all want something from you. APA (Awesome Personal Agent) catches it, sorts it, hands the work to your Agent, and brings back only the few things you have to decide.

One program on your own machine. MIT licensed. Hermes and Alma plugins today; any command-line Agent through the CLI.

The Today page: three things waiting for your decision, three new proposals, and today's plan grouped by project.
A day with APA

Three decisions, and the day is handled.

It's an ordinary Wednesday. You're building an app on the side, redoing the kitchen and keeping up with the family chat, with a personal Agent at your side. Here's how APA helps you through the day.

  1. Work comes back. Twelve messages arrive.

    At 02:40 the coding agent you handed the Android 15 crash to reports back with a fix and a pull request. Meanwhile: a contractor's quote, a water shut-off notice, a bill, a newsletter, a tester's follow-up, a pull request, the family group chat, three calendar entries.

  2. Most of it sorts itself.

    The quote and the tester's follow-up join the items they belong to. The newsletter and a patch bump are set aside, each with a reason. The calendar entries go on your plan. The bill, a car for the family trip and the pull request become proposals.

  3. The brief has three decisions.

    Which kitchen quote. Which car insurance. Whether the crash fix that came back overnight is good to ship. The rest is for your information.

  4. You press a number.

    Option B for the kitchen. The answer goes back to your Agent and the work carries on. You read the pull request and accept the fix.

  5. Hand off the next job.

    In the release-notes item you @ the coding agent: draft the notes from the fix and the beta checklist. Its report comes back as a reply under your comment.

  6. New session, no briefing.

    Your Agent starts with an overview of what changed. The kitchen budget and the release checklist are one search away.

The morning brief: three things for you to decide, the crash fix that came back overnight, three new proposals, a notice, what was handled for you, and today's plan.
That morning's brief, in the Web console.
Data sources

If it sends you messages, it can plug in.

A source is a small program that APA runs on a schedule, or a URL that gets pushed to. These ship with APA. A short script in any language covers the rest.

MailAny mailbox the himalaya mail client can read.
Apple Mail, Calendar, RemindersThe system apps on macOS.
Google CalendarThrough the gog command-line tool.
GitHubIssues, pull requests, notifications, and changes to AGENTS.md.
RSS and AtomAny feed.
HTTP JSONPolls any endpoint that answers with JSON.
Local folderNew and changed files in a folder you choose.
WebhooksSigned pushes from code hosting and team chat platforms, or any sender with a shared token.
Chat captureThings you mention while talking to your Agent.
Your own scriptGroup chats, bank exports, a home sensor. Anything you can read, you can feed in.

A new source is a short program.

APA hands your program a little JSON on standard input. It prints one JSON line per event, then a cursor so it knows where to start next time. Four fields are required. Add a due date or a start and end time and the event lands on the calendar. Login and tokens stay inside your program.

Read the source contract
# stdin
{"source_id":"…","config":{…},"cursor":"…"}

# stdout: one event per line (wrapped here), then the cursor
{"id":"m-1001","type":"mail.received",
 "subject":"Revised quote: kitchen",
 "occurred_at":"2026-11-30T22:14:00+08:00",
 "due_at":"2026-12-04"}
{"cursor":"2026-12-01T07:00:00Z"}

# exit 0 ok · 1 try later · 2 login or config · 3 give up
The Sources page: Mail, Calendar, a code repository and a family group chat, each read every minute and all healthy.
That day comes in through four sources. A short script hooks up the family group chat.
What happens next

Every message gets a place, and a reason.

Cheap checks first. A model only where rules can't tell. Your Agent for the rest. You see what is left.

  1. It arrives

    Duplicates are dropped. If it belongs to an item you already have, it is attached there and stops.

    • Attached to an item
  2. Your rules

    Plain rules decide the obvious cases, with no model involved.

    • Ignore
    • Mention in the brief
    • Alert now
    • Straight to a proposal
  3. A model you choose

    Two yes-or-no questions: is it worth a look, and is it urgent. Unsure answers go one level up.

  4. Your Agent, in batches

    It reads what is left together, the way you would, and gives every choice a reason.

    • Proposal
    • Add to an item
    • Just mention it
    • Set aside
  5. You

    Accept a proposal, or answer a question. Only you do this, unless you open Decide for me to an Agent for a project; then every answer it gives for you is marked and can be taken back.

No model set up? Rules still work, and anything undecided waits in a backlog. Nothing is dropped.

One conversation, one matter

Messages from the same thread that arrive hours apart are read together, so a chat doesn't turn into five proposals.

Material, never orders

A mail body or an issue is handed to your Agent as material to read. Text inside it can't tell the Agent what to do.

Every step can be replayed

Each item shows where it came from, which rule caught it, and who decided what. Setting something aside needs a reason.

You choose what leaves

For each source, you choose how much an outside model may read. Until you choose, nothing is sent.

The full history of a bill: the mail arrives, a rule passes it on, no model is set up so it waits in the backlog, the Agent makes it a proposal, and you accept it.
The trail of one bill, from the mail to an item. No model was set up here, so it waited for the Agent; you accepted it at 11:00.
Agent harnesses

Keep the Agent you already use.

APA doesn't replace your Agent. A thin plugin connects the two: your Agent gets a workbench, and APA gets someone to do the work.

Hermes & Alma Supported

  • Learns how to use APA at the start of every session
  • Sees what changed and what's waiting for you before each message
  • Gets woken up when you answer or a job comes back
  • Runs jobs in the background when APA hands them out
  • Reports land on the item the work came from
  • Things you mention in chat can become proposals

Next

Already today, any command-line agent can take background jobs: APA starts it, keeps time, and takes its report back to the item.

How a harness plugs in
The workbench

One look in the morning, and you know the day.

Everything above ends up on a few pages, the same for you and for every Agent: on the Web, on the command line, and on your phone.

Today

What needs you, what's new, what's planned.

Questions waiting for you and new proposals sit on top. Below, today's plan by project, with the time slots from your calendar.

Today on a phone: the same list, ready on the go.
Calendar and time slots

Your week, with what's due on it.

Appointments from your calendar become timed items. Deadlines and questions waiting for you show on their day, and clashes are easy to spot.

Week view: timed items, a dentist appointment, a kitchen site visit, and days marked with decisions due.
Proposals

New things wait. They don't buzz.

What came in from mail, chats and repositories waits as proposals, already sorted into projects. Accept, ignore, or add it to an item. Proposals never send a notification.

Proposals: a pull request review grouped under code hosting notifications, and a car booking from the family group chat, each with Accept, Ignore and Attach.
Reminders and briefs

Told when it matters. Quiet when it doesn't.

A weekday brief and a weekly review. If a reply you're waiting for is late, APA suggests a nudge. Quiet hours, merging and a daily limit are enforced, on your phone or in a chat app.

Reminder settings: quiet hours from 22:00 to 08:00, and at most 20 pushes a day.
Projects

The background, written down once.

Each project keeps its materials and a guideline that every Agent reads when it works there. A change to the guideline waits until you confirm it.

A project page: its guideline in effect, items grouped by status, and a release checklist under materials.
Items

Hand it off. It comes back here.

One item holds the discussion, the follow-up messages, the work handed off and what came back. @ an executor in the discussion and it starts; its report arrives as a reply.

An item to review: the fix that came back as a finished sub-item, follow-up messages from the tester and the repository, and two reports in the discussion.
For you to decide

One queue. Real options. Press a number.

Every Agent's questions in one place, each with concrete options and room for your own answer. Nothing times out and picks for you.

For you to decide: three waiting. The kitchen quote with two options and a recommendation, the car insurance question, and the crash fix to review.
Search and knowledge

A knowledge base your Agent can search.

Projects, items, decisions, materials and the original messages are kept as structured records. Your Agent looks things up there instead of asking you again.

$ apa search "kitchen quote"

item      Choose the kitchen quote        Home renovation · needs you
          "Which kitchen quote should I book with Ortiz…"
material  Kitchen plan and budget         Home renovation
          "Total renovation budget: $9,000 (kitchen +…"
project   Home renovation
          "Kitchen and bathroom refit before the holidays…"
item      Site visit: kitchen measurements proposed

Read one layer at a time

  1. Overviewwhat changed, what's waiting
  2. Projectguideline, materials, items
  3. Items or search results
  4. One itemdiscussion, decisions, reports
  5. The original message

Each layer says how much more there is, so an Agent's context isn't flooded.

Chinese, English, or both

One search covers projects, items with their progress and decisions, and materials, in either language or mixed.

The same records for every Agent

Switch Agents, or open a new session, and the context is still there.

Records, not a profile

APA keeps work records you can check, edit and undo. Your preferences and personal memory stay with your Agent.

Jump to: typing 'kitchen' lists four items with their project and status.
The same search in the Web console: press ⌘K and type.
Trust

You decide how far each Agent goes.

A permission card per Agent

A new Agent can look, tidy up and sort incoming messages. Deciding for you, changing rules or deleting stay off until you turn them on, for some projects or for a while. APA enforces the card; it isn't a line in a prompt.

Some things only you can do

Changing permission cards, issuing keys, passwords, and who may answer for you in a chat app. No setting opens these to an Agent.

Visible, and undoable

When an Agent answers for you, it's marked, you're told, and you can take it back.

  • One program on your machine
  • Your data in one folder
  • Your models, your endpoints
  • Works without any model
  • MIT licensed
Get involved

Use it. Then build what's missing.

Let your Agent install it

Runs on your own machine.

Paste this into Claude Code, Codex CLI, Hermes, Pi or any other command-line Agent:

Install APA for me by following
https://raw.githubusercontent.com/xiaohei-info/awesome-personal-agent/main/docs/user/install-for-agents.md

It downloads and verifies the release, starts APA in the background, connects itself and reports back. You only set the Web password, sign in, and give your Agent its key. Prefer to do it by hand? The quickstart has every command.

Build a plugin

Every plugin makes APA useful to more people.

  • Data sourcesA script that prints JSON lines. Your bank, your school portal, your team chat.Source contract →
  • Agent harness adaptersClaude Code, Codex CLI and Pi are open for contributors, with the plugin interface and research notes in Appendix A.Harness issues →
  • Notification channelsA small program that talks to APA over HTTP. The Telegram channel is the example to copy.Channel protocol →
Guides

When a workbench helps — and when it does not.

Multi-Agent Workflow

Unify progress and decisions across Agent sessions

How one ledger and one decision queue replace switching between stalled terminals, with clear boundaries on when a single session is enough.

Read guide →

Architecture

Why cron jobs and chat logs cannot replace a workbench

Item lifecycles, layered retrieval, kernel-enforced permission cards and interruption budgets — plus the cases where plain cron is still better.

Read guide →

Integration

Connecting Claude Code, Hermes, and Alma to APA

What works out of the box today (Hermes & Alma native plugins, any CLI Agent via apa), what is open for contribution, and how keys work.

Read guide →