rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:AIcivilization/dsh-mishu
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
提醒 通知 待办 收件箱 秘书 GitHub 邮件 飞书 Telegram · reminder notifications todo inbox triage secretary
DSH 小秘书,DeepSeek Harness(dsh)插件。替你盯着 GitHub 通知,也记住你交代的事(账单、续费、证件到期、生日)。它会查清楚哪些事已经结束、替你关掉,只把真要你处理的留给你。
支持 macOS / Windows / Linux,界面中英双语。设计见 docs/调研与设计.md,需求全景见 docs/需求清单.md。
GitHub 通知:每 15 分钟拉一次全部未读通知,查对象现在的状态再判断,不看通知文字。
| 理由码 | 意思 |
|---|---|
merged / closed |
PR 已合并,或 issue / PR 已关闭 |
recovered |
同一工作流在同一分支上后来通过了 |
superseded |
旧版本 tag 失败了,但后面的 main 或更新的 tag 已经通过 |
ref-gone |
失败的那个分支已经删了 |
fork-upstream-schedule |
fork 没有自己的提交,却在跑上游的定时任务,失败通知全是噪音;合成一件事:关掉这个 fork 的 Actions |
ci-failing |
最近一次还是失败,交给你 |
review-requested / mentioned / assigned / your-pr / commit-comment |
交给你 |
几十条通知会合并成"事项":同一工作流在同一分支上的失败算一件事,同一个 fork 的噪音也算一件事。
手动交代:在任何 DSH 对话里说一句,比如"护照 2027 年 3 月 10 日到期"或"每月 15 号交房租"。模型会整理出日期、重复方式和提前多久提醒,DSH 弹出审批卡片让你核对,你同意了才存。到了提醒那天,它出现在待处理里。你说办了,这一期就关闭,下一期按周期自动出现。
默认提前量:证件 90 天,账单 3 天,生日纪念日 7 天,续费续保 7 天,其他 1 天。
邮件:在设置页添加邮箱(QQ、163、126、企业微信邮箱、阿里云、新浪、139、Gmail、iCloud、Yahoo、Fastmail、Zoho,或自己填 IMAP + SMTP 服务器),然后有三件事可做:
~/.mishu/attachments。服务器搜索先问,服务器不支持就退回本地扫最近的邮件头,再退回扫正文——结果里会写清是哪一种。文件夹也能自己建、改名、删(收件箱、已发送、草稿、垃圾箱这些邮箱自己的文件夹不动,里面还有信的也不让删)。列表每行前面能打勾,勾上就出现一条批量操作条:标为已读、标为未读、移到别的文件夹、删掉,一次最多 20 封;在废纸篓里同一个按钮变成"彻底删除",问过你才动手。删信一律先移进废纸篓,只有废纸篓里才是真删。2026-11-20T09:00:00+08:00),至少留 30 秒,最多排一年。定时发信要 DSH 开着——它是小秘书自己在跑,不是塞进对方服务器的队列;没发出去的那封会回到草稿箱,并写明原因,不会自己一遍遍重试。"测试并保存"会同时验 IMAP 和 SMTP:收信通、发信不通时也保存账号(可以先收),但会当场说清哪一步不通。
| 理由码 | 意思 |
|---|---|
mail-to-you |
直接写给你、没有群发或自动发送标记的邮件,可能在等你回复 |
mail-invite |
会议或日程邀请,等你回应 |
mail-bill |
标题里有账单、还款、缴费、续费、发票之类的字眼(哪怕是群发的) |
mail-newsletter / mail-automated |
群发邮件、系统自动邮件:折叠起来,不打扰你 |
mail-code / mail-github / mail-cc |
验证码、GitHub 通知邮件(GitHub 来源已经在管)、只是抄送你 |
同一封邮件的往来回复算一件事。你在邮件客户端里看过之后,对应的事项会自动关闭。
自己关注的:GitHub 和邮箱之外,你也可以在设置页填任意一个网址让小秘书盯着:产品公告页、价格页、招聘页、RSS 订阅、JSON 接口都行。可以填几个"关注哪些字"(比如"上新、补丁、面试"),填了就只在出现这些字时提醒,不填就是有变化就提醒。检查间隔 15 分钟到 24 小时,默认一小时。
| 理由码 | 意思 |
|---|---|
watch-keyword |
页面内容提到了你关注的字 |
watch-new |
订阅源里出现了新的条目 |
watch-changed |
普通网页的正文变了(比如价格) |
watch-removed |
你删掉了这个关注,还没处理的事项一并关掉 |
一个关注项算一张卡片,不会因为一天更新十条就刷一屏。刚添加时第一次检查只记下"现在有什么",不报警;但填了关键词的,第一次命中就告诉你。读不到(断网、404、要登录)会写清原因,卡片不会因此凭空出现。
密码放在系统钥匙串:macOS 钥匙串、Windows 凭据管理器、Linux 密钥环(Secret Service)。密码只在设置页输入一次,直接交给钥匙串,不写进任何文件,接口也从不返回它。没有钥匙串的电脑(比如没有桌面的 Linux 服务器),密码和 token 存进记事本目录里的 secrets.json:权限 600,只有你的系统账号能读,但没有加密,设置页会写明这一点和原因。
关注一个网址:点"+ 关注一个网址",填网址(和想关注的字),点"先试读一下"当场看读到什么,再"保存并看一次"。
添加邮箱:点"+ 添加邮箱"弹出向导。填了地址就自动选好服务商,显示去哪里开 IMAP、拿授权码,带"打开设置页";授权码位数不对会提醒;"测试并保存"同时验收信和发信,收信通就保存,发信通不通当场写明。
邮件页签:看板顶部切到"邮件"。左边选文件夹(带未读数),中间翻页看列表,点一封在右边读。列表上方可以搜索——先问服务器,再退回扫本地邮件头,最后才扫正文,结果里写明是哪一种答的。打开的一封可以标已读/未读、加星、移到别的文件夹、存附件,也可以回复、全部回复、转发。"写邮件"打开撰写窗口,"存草稿"存进记事本(最多 50 封),左边草稿箱里每封都有"发出"和"删掉"。撰写窗口里填一个时间就出现"定时"按钮,定好的草稿在草稿箱里标着"定时:11/20 09:00",下面还有"取消定时";到点没发出去的那封会带着原因回到草稿箱。没有那张审批卡片,什么都发不出去。左栏底部有"新建文件夹",鼠标划过自建文件夹会露出改名和删除。列表每行前面有勾选框,勾上几封上面会露出一条批量操作条(标已读、标未读、移动、删掉);阅读窗格右侧也有一个删除按钮,在废纸篓里它会变成"彻底删除"并先问你一次。回复走的是回信通道,不会丢掉线索:主题前面加"Re:"、带上原始 Message-ID,回信在对方邮箱里仍旧归在同一个往来里;从回复存的草稿,以后发出去也还在这条线上。
看板:点 DSH 左侧栏的"小秘书",打开整页看板。顶部是一句话总结和四个数字(要你处理、7 天内到期、今天替你关掉、待你核对),下面分三栏:
看板上方可以按来源筛选:全部、GitHub、邮件、关注、交代。
+AI:看不明白就点彩色的"+AI"。它会开一个新对话,把这件事的说明、链接和相关通知放进输入框(不会自动发送),你看过、补上自己的问题再按发送。看板上的每张卡片、顶部总结、来源报错、设置页里各邮箱服务商的开通说明都有这个按钮。对话里的 AI 可以用 mishu_detail 查一件事的完整记录;要改状态时会先问你。
复制:展开的卡片右上角有一个"复制",一点就把这张卡片的内容拷成纯文本——标题、什么时候到期、是什么、问题在哪、怎么办、链接、小秘书做了什么、来自哪几条通知,按屏幕上的顺序排好。粘贴到对话、邮件或笔记里就能直接用。卡片展开后正文也可以直接用鼠标选中、按 ⌘/Ctrl+C 复制。
卡片可以拖动(拖标题那一行):拖到"替你办了"就是办完,拖到"我记着"就是明天再提醒,从"我记着"拖回"要你处理"就是现在处理。三栏之间的分隔条也能拖动调宽度,双击恢复等宽。
设置:点页面顶部的"设置",按秘书的活分成四块:① 它看哪里(GitHub、邮箱、自己关注的网址);② 什么事要告诉你(哪些算急事、各类别提前几天);③ 什么时候、怎么告诉你(主动提醒,见下);④ 能替你办什么(在 GitHub 上标已读的方式;邮件哪些事要你点头)。最后是语言和密码存在哪。每块都是折叠的卡片,平时只显示标题,点开才展开,一次只开一张;里面的邮箱账户、通知渠道也是同样可折叠的卡片,开关就在标题右边,不展开也能点。
主动提醒:不用打开看板也能知道。
交给 DSH 的自动化任务:设置页 ③ 里还有一个开关,把每日简报改成 DSH 自己的定时任务——到点它不弹通知,而是在 DSH 里出现一条对话,你下次打开就能看见,手机上装 DSH 客户端也一样。这一条用的是 DSH 自带的 schedule 服务,小秘书只建这一个任务,标题是"小秘书 · 每日简报";改简报时间会跟着改,取消就删掉。下面同时列出 DSH 里所有定时任务(包括你自己在"自动化任务"页建的),每个都能"现在跑一次"或删除。DSH 没装这个服务时,这一块只说一句"这个 DSH 没有自动化任务服务",不影响桌面通知。
重启 DSH:页面顶部"设置"后面的按键。重装或升级插件后点它,桌面版会按正常方式退出(有任务在跑时会先问你),再自动打开。用 dsh-vps 装在服务器上的 DSH,由 dsh-gate 网关托管:点了之后 DSH 正常退出,网关几秒内把它重新拉起,页面断开一会儿后自动刷新。直接用 dsh 命令启动的 DSH 没法从页面重启(新的登录地址只会打印在那个终端里),按键会告诉你回终端按 Ctrl+C 再运行一次。Windows 和 Linux 桌面版的重启还没在真机上测过。
文字命令:
/mishu 简报:要处理的、快到了的、最近替你关掉了什么
/mishu 同步 立刻同步一次 GitHub
/mishu 完成 12 把 #12 标为完成(还有:忽略 12、恢复 12)
/mishu 已关闭 最近 3 天关掉的事项和理由
/mishu 交代 你交代过、还在进行的事
/mishu 停止 3 交代 #3 以后不再提醒
英文命令也能用:sync、done、dismiss、reopen、closed、series、stop、help。
agent 可用的工具:
mishu_add(交代,需要你审批)、mishu_list、mishu_detail、mishu_update、mishu_stop。mishu_mail_list、mishu_mail_read、mishu_mail_search、mishu_mail_mark(uid 一封,或 uids 最多 20 封;action 可加 delete 进废纸篓、purge 在废纸篓里彻底删)、mishu_mail_folders(action 可选 list/create/rename/delete)、mishu_mail_attachment、mishu_mail_draft(action=schedule 定时、send_at 带时区;action=cancel 取消定时),以及要审批的 mishu_mail_send、mishu_mail_reply、mishu_mail_draft(action 是 send 或 schedule 时)、mishu_mail_mark(只在 action=purge 时,删了就找不回来)。账号只有一个时不用点名,多个时必须说清用哪个。markRead 默认是 shadow:只记下"如果打开,会把哪些通知标成已读",一条也不真标。核对过 /mishu 已关闭 后,再改成 on。还在待处理里的事项,永远不会被标已读。按顺序取,token 不写进任何文件:
GITHUB_TOKEN)secrets.json)。要用 classic token,勾选 notifications(看私有仓库再勾 repo);GitHub 的通知接口不认 fine-grained tokengh auth token:装了 GitHub CLI,并运行过 gh auth login 就行。从 Dock、开始菜单启动的 DSH 拿到的 PATH 往往很短,所以小秘书除了 PATH,还会去 Homebrew、~/.local/bin、winget、Scoop 等常见安装位置找 ghdsh plugin --profile <name> add dsh-mishu
在 profile 的 cordis.patch.yml 里可以覆盖配置:
- id: dsh-mishu
name: dsh-mishu
config:
home: ~/.mishu # 记事本目录,在 DSH 之外
language: auto # auto(跟系统语言)/ zh / en
github:
enabled: true
intervalMinutes: 15
tokenEnv: GITHUB_TOKEN
useGhCli: true
markRead: shadow # off / shadow / on
markReadReasons: [merged, closed, recovered, superseded, ref-gone]
leadDays: { document: 90, bill: 3, birthday: 7, renewal: 7, other: 1 }
upcomingDays: 30 # 简报里"快到了"往后看多少天
notes:
organise: false # 让模型整理便签(默认关:关着时便签原文不出这台电脑)
记事本是 ~/.mishu/mishu.db(SQLite),只存元数据和简短备注,不存邮件正文和 token。在 macOS / Linux 上,这个目录只有你本人能读写。卸载插件不会删它。
随手贴:Alt+Space 在任何地方敲开一个框,写完 Ctrl+Enter 保存 —— 先落盘,再谈别的。便签在「随手贴」页签里,三档:便签 / 归档 / 废纸篓。
| 能力 | 说明 |
|---|---|
| 捕获 | Alt+Space 或页签里的输入框;快速、离屏、不打断你正在做的事 |
| 归类 | 规则先判(域名指纹、关键词表);判不出来就留「未分类」,从不猜 |
| 日期 | 规则认出「明天」「下周三」「3 月 10 日」「月底」;「有空」「改天」故意不认 |
| +AI | 可选。默认关着,关着时便签原文一个字都不出这台电脑;打开后才把原文发给当前对话用的模型 |
| 变成提醒 | 便签认出了日期,一键变成秘书的周期事项;也可以手动选日子、选重复(每周/每月/每年) |
| 投递 | 「加到当前对话」把便签作为引用块放进新对话输入框(未发送,你能改);没有 workspace 服务就退回复制到剪贴板 |
| 导出 | 一键导出全部便签为单个 Markdown,给 grep / Obsidian / 备份用 |
三条硬规矩:原文永不被改写;+AI 角标只在真正整理完成时亮(改过原文后旧结果会标「基于更早的版本」,但不会丢);rev 只增不减,两边同时改时后手被拒绝而不是覆盖。
模型工具:mishu_note_capture(记一条)、mishu_note_search、mishu_note_get、mishu_note_promote(渲染成可投递的 Markdown)、mishu_note_to_reminder(变成提醒)、mishu_note_append(把聊出来的结论追加回便签,只追加不覆盖)。
unclassified)先直接交给你,还没接模型。A secretary plugin for DeepSeek Harness (dsh). It watches your GitHub notifications and remembers the dated things you tell it (bills, renewals, document expiries, birthdays). It checks which of them are already resolved and closes those for you, so only what actually needs you stays on the list.
Runs on macOS, Windows and Linux. Speaks Chinese and English.
GitHub notifications: every 15 minutes it pulls all unread notifications and judges each one by the current state of what it is about, never by the notification text.
| Reason | Meaning |
|---|---|
merged / closed |
The PR was merged, or the issue / PR was closed |
recovered |
The same workflow later passed on the same branch |
superseded |
An old release tag failed, but main or a newer tag has passed since |
ref-gone |
The failing branch has been deleted |
fork-upstream-schedule |
A fork with no commits of its own runs its parent's scheduled workflows; every failure is noise, folded into one item: turn off Actions on the fork |
ci-failing |
The latest run still fails; handed to you |
review-requested / mentioned / assigned / your-pr / commit-comment |
Handed to you |
Dozens of notifications fold into a few items: all failures of one workflow on one branch are one item, and all noise from one fork is one item.
Things you tell it: in any DSH chat, say "my passport expires on 2027-03-10" or "rent is due on the 15th every month". The model works out the date, the repeat and how early to remind you; DSH shows an approval card with exactly what was understood, and nothing is saved until you approve it. On the reminder day the item appears on your list. When you say it is done, that occurrence closes and the next one appears on its own schedule.
Default warning times: documents 90 days, bills 3, birthdays 7, renewals 7, everything else 1.
Mail: add a mailbox on the settings page (QQ, 163, 126, Tencent Exmail, Aliyun, Sina, 139, Gmail, iCloud, Yahoo, Fastmail, Zoho, or your own IMAP + SMTP servers). Three things follow:
~/.mishu/attachments. Folders you made can be created, renamed and deleted from the panel (the mailbox's own folders are left alone, and a folder still holding mail is not deleted). Every row has a tick box: tick a few and a bar appears with mark read, mark unread, move and delete, up to 20 at a time; inside Trash the same button becomes "Delete forever" and asks first. Deleting always means "into Trash" — only Trash removes mail for good. Search asks the server first, falls back to scanning recent headers locally, then to scanning bodies — and says which one answered.2026-11-20T09:00:00+08:00), at least 30 seconds and at most a year ahead, and DSH has to be running — the secretary sends it, it is not queued on the far side. A scheduled send that fails comes back to drafts with the reason attached instead of retrying on its own. Every send, reply, draft-send and schedule first shows a card naming the account it goes out from, the recipients, cc, bcc, subject, attachments and the opening of the body; nothing leaves until you approve it."Test and save" checks IMAP and SMTP both: an account whose sending side fails is still saved — receiving works — and the dialog says exactly which half refused.
| Reason | Meaning |
|---|---|
mail-to-you |
Written to you directly, with no bulk or automated markers; someone may be waiting |
mail-invite |
A meeting or calendar invitation waiting for your answer |
mail-bill |
The subject mentions a bill, payment, renewal or invoice (even in bulk mail) |
mail-newsletter / mail-automated |
Bulk or automated mail, folded away |
mail-code / mail-github / mail-cc |
Verification codes, GitHub notification mail (the GitHub source has it), mail you are only copied on |
A thread of replies is one item. Once you read it in your mail client, its item closes by itself.
Things you watch yourself: beyond GitHub and mail, you can give the secretary any address on the settings page — a product announcements page, a price, a job posting, an RSS feed, a JSON endpoint. You can list a few words to watch for (say "release, patch, interview"): with words it only tells you when they show up, without words any change is worth a card. The interval runs from 15 minutes to 24 hours, one hour by default.
| Reason | Meaning |
|---|---|
watch-keyword |
the content mentions a word you watch for |
watch-new |
the feed has entries you have not seen |
watch-changed |
the text of a plain page changed (a price, say) |
watch-removed |
you deleted the watch; anything it left open is closed |
One watch is one card, so a feed that updates ten times a day does not flood the board. The first look only writes down what is there and says nothing — unless you gave it words, in which case a hit is reported at once. A read that fails (offline, 404, behind a login) says why, and never invents a card.
Passwords live in the system keychain: the macOS Keychain, Windows Credential Manager or the Linux keyring (Secret Service). You type a password once on the settings page; it goes straight to the keychain, is never written to a file and is never returned by any endpoint. On a computer without one (a Linux server with no desktop, say), passwords and tokens go to secrets.json in the notebook directory: mode 600, readable by your system account only, but not encrypted, and the settings page says so and why.
Watching an address: "+ Watch an address" asks for the address and, if you want, the words to watch for; "Read it once" shows what it finds before you save it, then "Save and look once".
Adding a mail account: "+ Add a mail account" opens a short guide. The address picks the provider; it says where to turn on IMAP and get the app password, with a button that opens that page; it warns when the password has the wrong length; "Test and save" checks IMAP and SMTP and keeps the account if receiving works, saying plainly whether sending does too.
The Mail tab: pick a folder on the left (unread counts come with it), page through the list, click a message to read it. Above the list you can search — the server is asked first, then recent headers are scanned locally, then bodies, and the result says which. On an open message you can mark read or unread, star it, move it to another folder, save an attachment, or reply, reply to all and forward. "Write" opens the composer; "Save draft" keeps it in the notebook (up to 50) with "Send" and "Delete" buttons on the left. Type a time in the composer and a "Schedule" button appears; a scheduled draft is labelled "Scheduled: 11/20 09:00" with "Cancel schedule" under it, and one that failed comes back with the reason attached. Nothing is sent without the approval card. At the bottom of that column is "New folder", and hovering a folder you made reveals rename and delete. Replies go out through the reply path, so the thread survives: "Re:" on the subject and the original Message-ID in the headers, which is also carried by a draft saved from a reply. Each row in the list has a tick box; tick several and a bar appears with mark read, mark unread, move and delete (20 at a time), and the read pane has its own delete button that turns into "Delete forever" and confirms first when the message is already in Trash.
The board: click "Secretary" in DSH's left sidebar to open a full-page board. On top: one summary sentence and four numbers (to handle, due in 7 days, closed today, to review). Below, three columns:
Filter the board by source: All, GitHub, Mail, Watching, Noted.
+AI: when something is unclear, press the colourful "+AI". It opens a new chat with the item's explanation, link and related notifications in the input box — unsent — so you can read it, add your question and press send. Every card, the summary, source errors and each mail provider's setup note have one. In that chat the AI can use mishu_detail to look an item up in full, and asks you before changing anything.
Copy: an unfolded card has a "Copy" button at its top right. One click puts the card on the clipboard as plain text — title, when it is due, what it is, where the problem is, what to do, the link, what the secretary did and which notifications it came from, in the order you see it — ready to paste into a chat, an email or a note. The unfolded body can also be selected with the mouse and copied with ⌘/Ctrl+C.
Cards can be dragged by their title row: onto "Done for you" to mark done, onto "Keeping for you" to snooze until tomorrow, from "Keeping for you" back to "To handle" to handle it now. The dividers between the columns can be dragged too; double-click one to make the columns equal.
Settings: the "Settings" tab at the top of the page: language, warning days per category, GitHub (on/off, where the token comes from, connection test, how to mark read), mail accounts (add, test, check now, edit, delete). Every block is a folded card that shows only its title until you click it, and only one is open at a time; mail accounts and notification channels fold the same way, with their switch on the title row so you can flip it without opening the card.
The settings follow the secretary's job in four parts: 1. where it looks (GitHub, mail, addresses you watch); 2. what to tell you about (what counts as urgent, warning days per category); 3. when and how to tell you (reminders, below); 4. what it may do for you (marking read on GitHub; which mail actions need your nod). Then language and where secrets are kept.
Reminders, without opening the board:
Handing the brief to DSH's scheduled tasks: part 3 of the settings page can turn the daily brief into one of DSH's own scheduled tasks — instead of a notification it arrives as a conversation turn, there the next time you open DSH (including the mobile client). It uses DSH's built-in schedule service; the secretary creates exactly one task, titled "Secretary · daily brief", moves it when you change the brief's time, and deletes it when you turn it off. Below it, every scheduled task on this DSH is listed — including ones you made on DSH's own automation page — each with "run now" and delete. A DSH without that service says so in one line and keeps the desktop notification.
Restart DSH: the button after "Settings" at the top of the page. After reinstalling or upgrading plugins, click it: the desktop app quits the normal way (asking first if a task is running) and opens again. On a server set up with dsh-vps, DSH runs under the dsh-gate gateway: DSH exits cleanly, the gateway starts it again within seconds, and the page reloads once it is back. DSH started directly with the dsh command cannot be restarted from the page (its new sign-in address is printed only in that terminal), so the button tells you to press Ctrl+C there and run it again. Restarting the Windows and Linux desktop apps is not yet tested on real machines.
Text commands:
/mishu brief: what needs you, what is coming up, what was closed for you
/mishu sync sync GitHub now
/mishu done 12 mark #12 done (also: dismiss 12, reopen 12)
/mishu closed items closed in the last 3 days, with reasons
/mishu series things you told me that are still in play
/mishu stop 3 stop reminding series #3
Chinese commands work too: 同步, 完成, 忽略, 恢复, 已关闭, 交代, 停止, 帮助.
Tools for the agent:
mishu_add (needs your approval), mishu_list, mishu_detail, mishu_update, mishu_stop.mishu_mail_list, mishu_mail_read, mishu_mail_search, mishu_mail_mark (one uid, or uids for up to 20; action also takes delete for Trash and purge inside it), mishu_mail_folders (its action may be list, create, rename or delete), mishu_mail_attachment, mishu_mail_draft (action=schedule with a zoned send_at, or action=cancel), plus those that ask first: mishu_mail_send, mishu_mail_reply, mishu_mail_draft (when its action is send or schedule) and mishu_mail_mark (only for action=purge, where there is no undo). With one account it is picked for you; with several the tool has to name one.markRead starts as shadow: it records which notifications it would mark read and touches none. Check /mishu closed, then switch to on. Items still on your list are never marked read.It uses, in order, and never writes a token to a file:
GITHUB_TOKEN)secrets.json without one). Use a classic token with the notifications scope (plus repo for private repositories); GitHub's notifications API does not take fine-grained tokensgh auth token: if the GitHub CLI is installed and you have run gh auth login. DSH started from the Dock or Start menu often gets a short PATH, so besides PATH the secretary looks for gh where Homebrew, ~/.local/bin, winget and Scoop put itdsh plugin --profile <name> add dsh-mishu
Override settings in the profile's cordis.patch.yml (see the Chinese section for the full example; the keys are the same). language is auto (follow the system locale), zh or en.
The notebook is ~/.mishu/mishu.db (SQLite). It keeps metadata and short notes only, never email bodies or tokens. On macOS and Linux the directory is readable and writable by you alone. Uninstalling the plugin leaves it in place.
Notes (随手贴): Alt+Space opens a box anywhere in the app; Ctrl+Enter saves it. Saved first, everything else second. The notes live in the "Notes" tab, in three lists: notes / archived / trash.
| What | How |
|---|---|
| Capture | Alt+Space, or the box at the top of the tab. Fast, out of the way, without leaving what you were doing |
| Category | A rule places it (domain fingerprints, key words); when no rule knows, it stays "Unsorted" — it never guesses |
| Date | Rules read "tomorrow", "next Wednesday", "3 March", "end of the month"; "someday" and "when I get a chance" deliberately resolve to nothing |
| +AI | Optional, and off by default: while it is off, not one word of a note leaves this computer. Turn it on and note text goes to the model the current chat is using |
| Reminder | A note that names a day becomes a repeating reminder in one click; or pick the day and the repeat (weekly / monthly / yearly) yourself |
| Deliver | "Add to current chat" puts the note in a new chat's input box as a quoted block, unsent and editable; without DSH's workspace service it falls back to the clipboard |
| Export | Every note as one Markdown file, for grep, Obsidian or a backup |
Three rules hold it up: your words are never rewritten; the +AI badge is on only when a run actually finished (after you edit the text the old result is marked "based on an earlier version", never thrown away); and rev only goes up, so two tabs cannot silently overwrite each other — the later save is refused instead.
Agent tools: mishu_note_capture, mishu_note_search, mishu_note_get, mishu_note_promote (render as delivery Markdown), mishu_note_to_reminder, mishu_note_append (put a conclusion back on a note — append only, never replaced).
unclassified) are handed to you; no model triage yet.npm install
npm test # node:test runs the TypeScript directly (Node ≥ 22.18); the time zone is pinned in tests/setup.ts
npm run build
npm run record # record a real, read-only sync of your own account into tests/fixtures/local/
Test data · 测试数据
tests/fixtures/synthetic.ts (example-org, upstream-org, demo-*): a fork running its parent's schedules, superseded release tags, recovered failures, a deleted branch, a red feature branch, a bot comment on a commit, PRs and issues in every state.tests/fixtures/synthetic.ts),覆盖所有规则要处理的情况。npm run record writes a recording of your own account to tests/fixtures/local/. Git ignores that folder; never commit it. When it exists, npm test also checks it (every notification judged, every closure has a known reason); when it does not, those checks are skipped.npm run record 录下的是你自己账号的真实数据,放在 tests/fixtures/local/,git 会忽略这个目录,绝不提交。本机有这份数据时,npm test 会多跑一组检查;没有就跳过。src/core/ notebook, items, things you tell it, GitHub rules, brief, board, i18n — node: built-ins only, no DSH imports
src/core/github/ client (REST) → facts (current state) → rules (pure) → sync (fold into items)
src/dsh/ plugin shell: config, timers, /mishu, agent tools, approval gate, board API
src/client/ browser half: left-sidebar entry and the board page (React, bundled by scripts/build-client.mjs)
Test in a separate profile: npm pack, then dsh plugin --profile mishu-test add ./dsh-mishu-x.y.z.tgz with home: ~/.mishu-test.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。