Repository navigation
Releases
Releases · xiaohei-info/awesome-personal-agent
v0.2.4
Compared with 0.2.3:
Inbound and judgment
- A direct @ in a chat goes straight to the urgent queue. A source rule may now declare
urgent: true(only withthen: proposed); its events enter the queue as urgent without a model request, even while models are paused or no outbound scope is chosen. The built-in rulechat-mentiondoes this forchat.mention: every chat source emits it for a direct mention of you or your Agent (not @ALL), so a short "please take a look" is no longer dropped or left in the batch by the judge. feishu-sourcerecognizes direct mentions. It reads the bot's own id once per pull (a failure is reported on stderr and the pull goes on) and emitschat.mentionfor messages that mention the bot or an id or name listed in the new keysmention_ids/mention_names, andchat.messageotherwise.- Short replies carry the message they answer. A reply that did not attach to an item carries the first earlier event of the same source that shares a correlation key as
reply_to(sender, time, up to 300 characters, within the chosen outbound scope), with a criteria note on the first question, so "fixed" or "done" is judged against the original message. - Group chats share in-flight items across senders. For chat sources, the in-flight items given to the judge and listed in the batch prompt come from every event of the same source and conversation, regardless of sender or correlation keys.
Performance and storage
- Pages open faster. Reads use a pool of read-only connections beside the single writer, hot reads go through new indexes, responses over 1 KiB are gzip-compressed and Web assets are cached; trails and replays leave step payloads out unless asked for, list reads can leave bodies out, and the item page reads each resource once.
- The ledger stops growing without bound. Finished source fetches and idempotency records expire after 7 days, reusable model results after 14, run directories default to 7 days, sources without their own term purge ignored originals after 7 days and other handled ones after 30, ignored events leave the search index, and
apa backup createandupdate.shkeep the newest 5 backups.
Upgrade notes
- Ledger structure version 20 (indexes only; no table, column or row is changed). An older binary cannot open the upgraded ledger: roll back only with the pre-upgrade snapshot.
- The first purge after the upgrade (at start) applies the new retention terms, and the first search sync removes ignored events from the index. Older backups beyond the newest 5 in
<APA_HOME>/backups/are removed by the nextapa backup createor upgrade. - New
item.updated/item.phase_changedevents leave an unchangedbodyandsummaryout ofbeforeand list them inunchanged; stored events are not rewritten. chat.mentionfrom any chat source now skips the model and is queued as urgent. A custom chat script that usedchat.mentionfor notes to yourself or new conversations should emitchat.windowfor those, or override the rule with a same-name pack. Details are in B.6 ofdocs/appendix-b-api-cli.md.
v0.2.3
Compared with 0.2.2:
Inbound and judgment
- A direct @ in a group or private chat now counts as urgent. The second question of the source judge ("urgent or not") treats a message that mentions you or your Agent directly and asks you to look, review, reply or help as urgent, even without a same-day deadline, so it no longer waits in the 60-minute batch. The question itself now asks about direct mentions as well as handling within today.
- The urgency criteria are editable. Settings › Source handling has a new "Urgency: criteria" card next to question 1's, with the same built-in / custom / follow-built-in-again behaviour; the question-1 card is renamed "Worth handling: criteria". The setting is stored as the optional
urgent_promptfield ofsource_pipeline; empty follows the built-in text.
Packaging and operations
- Release packages ship each source's documentation.
sources/*/README*.mdis copied into the package next to the prebuilt source programs (for examplesources/feishu/README.mdandREADME.zh-CN.md), listed inSHA256SUMSand checked by package verification. deploy/launchd/update.shwaits for the restart to settle. It now waits until the new process holds the ledger and the ledger reads back before taking the "after" snapshot, retries a read that hitsSQLITE_CANTOPEN, and always prints the pid, version, comparison and rollback command before reporting a failure.
Upgrade notes
- No ledger structure change and no migration.
urgent_promptis additive; older policy versions read it as empty and follow the built-in text. Because the built-in urgency text changed, the first second-question judgment per event after the upgrade does not reuse cached answers.
v0.2.2
Compared with 0.2.1:
Sources
- Read Feishu / Lark group chats. A new bundled pull program,
feishu-source, reads the groups a Feishu or Lark application (bot) is a member of through the officiallark-cli, as the bot identity, in the source's own configuration directory (one source, one directory, one application, nothing shared with another tool). One event per message (chat.message), with the group, message, thread and sender identifiers kept in the event, so an answer can be sent to the original message later, after you agree. Ordinary group messages and quoted replies are covered; a reply inside a topic thread is read only as far as the group message listing returns it. Images, files, audio, video and cards arrive as a placeholder markedpartial; media is not fetched. It is a read-only program: answering a message is alark-clicall the main session makes after you confirm, not a write-back from APA. It is registered likegithub-source(source_type: chat) and is in the bundled list of every release package (Appendix D.10 ofdocs/appendix-d-adapters.md). - A setup guide for it, step by step.
sources/feishu/README.md(English) andREADME.zh-CN.md(Chinese) cover installinglark-cli(including downloading the official release when npm has no registry access), puttingfeishu-sourceon the service'sPATH, the registration command, the QR-code authorization and the macOS keychain, the developer-console steps (bot capability, application-identity permissions, publishing a version), adding the bot to a group, the self-check commands, an example of answering as the bot, and a troubleshooting table — including platform error230027(a scope ticked but not published) and the fact that the first run only seeds the cursor and does not backfill the history. - The bundled inbound-triage pack handles
chat.messageevents (process, attach on update), so a quoted reply no longer replaces the item the original message created.
Upgrade notes
- No ledger structure change, no migration, no new command or route: existing configuration files, registrations and data keep working. A host that wants the new source adds
feishu-sourceto the service'sPATHand registers it; nothing else changes.
v0.2.1
Compared with 0.2.0:
Agents and identity
- Native Alma plugin. Alma is supported as a harness with parity to the Hermes plugin: plugin-market manifest, install script (the macOS update script switches the plugin link on upgrade), conversation capture that keeps only the user's input, a wake delivery mode chosen explicitly in the plugin settings, an opt-in prompt hint that prefers
apa delegatefor coding work, and receipts that record only real dispatches carrying a handle. - One Hermes plugin. The seven Hermes plugins are merged into a single self-contained
apaplugin; its launch declaration uses a stable link so upgrades no longer change it. - No identity through environment variables. Keys come only from key files (
--as>APA_AGENT> default login).APA_URL/APA_TOKENare refused, background runs write the ledger with their owning Agent's own key, andapa doctorflags missing keys and says which Agent's key a default login used. - Native sub-agents no longer capture automatically; the standing instructions guide the Agent to record its own work, and now include a "close the loop in APA" line.
- The main session ID is a setting; the harness is identified by the key binding.
apa executors declaration migratehands executors from one declaration to another without losing ids, handles or overrides.
Calendar and sources
- External calendar subscriptions. The new
ics-sourceprogram pulls subscribed calendars, a new source handling mode "calendar only" puts events on the calendar without creating items,source.pullfetches immediately, andGET /calendar/eventsserves the calendar.ics_allow_cidrslets the host allow specific networks (fake-IP or internal subscriptions). - The Web calendar page is redesigned around subscriptions; week and month cells keep readable titles.
- Mail: blank lines inside a header no longer truncate it.
Items and inbound
- Items can become goals with periodic follow-up (the
goalcapability pack, with CLI, API and Web). - Suggestions already in flight for the same conversation are carried into screening and batch handling, and attaching to an existing item no longer swallows the new object's own actions.
- Delegation receipts that name a PR already registered by another item are stored normally; delegation reports are written to the owning item's discussion; delegation briefs carry the parent item's information.
- Attention quiets only external channel deliveries.
Website and docs
- The product homepage and guides default to English, with new SEO/GEO groundwork and comparison pages; the README (English and Chinese) is restructured and agent-first, with a workbench demo.
- New guides for agents: an install guide, a Hermes plugin setup page and a harness integration checklist.
Upgrade notes
- Agents must use key files; remove
APA_URL/APA_TOKENfrom agent environments and issue keys in Settings › Agents (details in docs/appendix-b-api-cli.md §B.6). - Hermes users: the seven plugins are replaced by one
apaplugin; the update script switches an existing link.
v0.2.0
The first public release. Compared with 0.1.1:
Language
- English by default. A new
languagekey inconfig.yaml(en, the default, orzh) selects the language of everything APA writes for people and agents: notifications, briefs and reviews, text injected into harness sessions, questions and options, refusal reasons, and the built-in capability pack prompts. The Chinese originals are unchanged and are used withlanguage: zh; English versions of the built-in packs live inpacks/i18n/en/. - The Web UI is available in English and Chinese, chosen per browser (Settings › General, or the login page); it follows the browser language by default.
- The CLI's commands, output keys, error codes and
why/nexthints are in English. - Upgrading an existing Chinese deployment: add
language: zhtoconfig.yamlbefore restarting, and setAPA_LANG=zhfor the Telegram channel ext, to keep Chinese.
Inbound and judgment
- Separate judge and generate model endpoints, a probability-judgment protocol with uncertainty bands and conservative defaults, judgment records, spot checks, and backlog release with a daily cap.
- Structured built-in rules for code hosting, mail, calendar and reminders; per-source handling modes (process, remind only, create items directly) and outbound scopes that control what may be sent to a model.
- Source originals are stored in full; conversation capture, follow-up messages and correlation keys attach later messages to existing items.
Workbench
- A Web workbench: Today, items with a list and a board view, projects, proposals, decisions, calendar and time slots, item discussions with replies and @-mentions of executors, global search, and a ⌘K jump palette.
- Briefs and reviews out of the box, routines, follow-up steps and stale checks.
- Materials and project guidelines, rendered into
AGENTS.mdand imported back on drift. - The Web console shares the product homepage's design language (paper-and-ink colours and fonts, serif headings, pill buttons, ringed cards, a night sidebar), defined once as tokens in
web/src/app/styles.css.
Agents and executors
- "Who does the work" is always an executor: delegations, rules, source processing, schedules and @-mentions all pick an executor, and every background run is launched the same way. Runs can be stopped, steered while running, and survive kernel restarts.
- Ending an item (done or dropped) stops the queued and running Agent runs on it and its child items; reports that arrive after the item ended are kept in its trail instead of being refused, and ended items do not wake executors.
- Source handling takes one chat conversation that arrived in several batches as one: queued batches of the same conversation join the batch being handled, and earlier ones that were only mentioned are listed with it (look-back in Settings › Source handling, 24 hours by default). An Agent must give its own reason to ignore or mention a source event, and the trail shows the Agent and its reason instead of "ignored by the owner".
- Permission cards decide what each agent may do on the user's behalf; actions taken for the user are visible and can be undone.
- Usage accounting per run, model and executor.
- Inside an Agent run, an explicit
APA_URLthat points to a different APA instance than the run's context is refused (exit code 2) instead of being silently overridden; run such commands withenv -u APA_RUN_CONTEXT. - Work a harness dispatched itself no longer stays "running" forever: the kernel reconciles every tracked dispatch at startup and periodically, asking the harness by handle when its declaration has
headless.check, and closing what it cannot confirm within the run time limit.
Channels and operations
- Connections and channels (built-in push and a Telegram ext), quiet hours and daily limits.
apa doctor,apa backup, upgrade snapshots, release packages with a version (apa version) that includeLICENSEandTHIRD_PARTY_NOTICES, and the macOS launchd update script.
Contract changes
Changes to existing APIs, CLI commands, events and data, with migration notes, are listed in docs/appendix-b-api-cli.md §B.6.
v0.1.1
awesome-personal-agent v0.1.1
本版给 Web 中台加入完整的界面设计。内核、CLI、HTTP 接口、插件与账本格式都没有变化,升级只需替换二进制,数据目录不用重新初始化。
界面
- 「纸墨」视觉:暖纸色底、墨色文字与按钮、宋体标题;朱砂红只用在"等你决定"相关的地方(待决数量、临近截止、不可逆操作、错误)。样式是一份普通 CSS,没有增加运行时依赖。
- 决策待办是主角:标题直接写"N 件事等你决定",每条待决是一张卡片,选项整行可点。可以只用键盘处理:数字键 1–9 回答当前卡片,J / K 切换卡片,? 展开"为什么在这";焦点在输入框里时这些键不生效。选项样式相同,界面不替你暗示选哪个。
- ⌘K / Ctrl+K 跳转面板:输入名称过滤,上下键选择,回车跳到任意页面,Esc 关闭。
- 分组导航:按"今天、工作、接入、规则、系统"分组,决策待办旁显示待决数量。
- 明暗主题:默认跟随系统,可在导航底部切换,并记在浏览器里。
- 登录页与其余页面:登录页改为"事情交给 agent,决定留给你"加口令表单;其余页面统一页头、卡片、行式列表、徽标、表格与表单样式。窄屏(≤820px)时导航收到顶部横向滚动。
其余
本版包含的组件、安装方式和已知限制都与 v0.1.0 相同:
- 内核(事项中心、决策、主动服务、触达、任务委派、来源连接),
apa init/apa serve - CLI:
apa guide自带使用说明与退出码 - Hermes 插件(
plugins/hermes/)、内置能力包、Telegram 渠道 ext、部署样例(deploy/) - 来源适配器:邮件(himalaya)、日历(Google,gog),放在压缩包
adapters/
安装 / 升级
VER=v0.1.1; PLAT=linux_amd64 # 或 darwin_arm64、darwin_amd64、linux_arm64
gh release download "$VER" -R xiaohei-info/awesome-personal-agent -p "apa_${VER}_${PLAT}.tar.gz" -p SHA256SUMS
grep "apa_${VER}_${PLAT}.tar.gz" SHA256SUMS | shasum -a 256 -c -
tar -xzf "apa_${VER}_${PLAT}.tar.gz" && install -m 0755 apa ~/.local/bin/apa
apa init # 仅首次安装:设置 Web 登录口令(非交互:apa init --password-stdin)
apa serve # 默认 http://127.0.0.1:7777从 v0.1.0 升级:停掉服务,替换 apa,再启动即可;已有数据目录原样沿用,不要重新 apa init。
已知限制
- 续费提醒、首日引导本次不纳入。
- 验收项 ACT-DPL-04(中心 APA 加多台 harness 主机)未执行,多主机形态未经验证。
- 二进制没有版本注入,没有
apa version;apa --help不是有效命令(返回命令列表并以非零退出),用apa guide。 - 压缩包额外附带
adapters/(邮件、日历适配器),不属于apa二进制。 - 二进制未签名;macOS 首次运行可能需要
xattr -d com.apple.quarantine apa。 - 邮件、日历要另装 himalaya、gog 并用其自带命令认证。
v0.1.0
awesome-personal-agent v0.1.0
个人 agent 的事项与决策账本:常驻内核管账本、时钟、决策和提醒,Web 中台处理决策待办与建议流,agent 经 apa CLI 和 harness 插件接入。单个 Go 二进制,内嵌 Web,SQLite 账本。
本版包含
- 内核:事项中心、决策、主动服务、触达、任务委派、来源连接;
apa init/apa serve - Web 中台:决策待办、建议流、事项、项目、材料、来源、凭据与授权、策略、审计、健康
- CLI:
apa guide自带使用说明与退出码 - Hermes 插件(
plugins/hermes/:core、inject、tools、receipt、capture、headless、wake) - 来源适配器:邮件(himalaya)、日历(Google,gog),放在压缩包
adapters/ - 内置能力包;Telegram 渠道 ext;部署样例(
deploy/)
安装
VER=v0.1.0; PLAT=linux_amd64 # 或 darwin_arm64、darwin_amd64、linux_arm64
gh release download "$VER" -R xiaohei-info/awesome-personal-agent -p "apa_${VER}_${PLAT}.tar.gz" -p SHA256SUMS
grep "apa_${VER}_${PLAT}.tar.gz" SHA256SUMS | shasum -a 256 -c -
tar -xzf "apa_${VER}_${PLAT}.tar.gz" && install -m 0755 apa ~/.local/bin/apa
apa init # 设置 Web 登录口令(非交互:apa init --password-stdin)
apa serve # 默认 http://127.0.0.1:7777随后在 Web 配置模型端点(可选)并签发 token,用符号链接把 plugins/hermes/core、inject、tools 装进 ~/.hermes/plugins/apa-<名> 并 hermes plugins enable,填 APA_URL / APA_TOKEN。完整步骤见仓库内说明与各插件 README。
已知限制
- 续费提醒、首日引导本次不纳入。
- 验收项 ACT-DPL-04(中心 APA 加多台 harness 主机)未执行,多主机形态未经验证。
- 本版二进制没有版本注入,没有
apa version;apa --help不是有效命令(返回命令列表并以非零退出),用apa guide。 - 压缩包额外附带
adapters/(邮件、日历适配器),不属于apa二进制。 - 二进制未签名;macOS 首次运行可能需要
xattr -d com.apple.quarantine apa。 - 邮件、日历要另装 himalaya、gog 并用其自带命令认证。