[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115102":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},115102,"hermes-x-bookmarks","winchxyz\u002Fhermes-x-bookmarks","winchxyz","Hermes Agent plugin: reads your X bookmarks (threads and Articles too), sorts them with your own model, keeps them in Notion, Google Docs or a desktop document.",null,"Python",62,6,58,4,0,1,3,46.34,"MIT License",false,"main",true,[],"2026-11-09 03:39:50","2026-11-23 20:11:16","# hermes-x-bookmarks\n\nA [Hermes Agent](https:\u002F\u002Fgithub.com\u002FNousResearch\u002Fhermes-agent) plugin that reads all your X\nbookmarks, including long posts, threads and X Articles, sorts them with your own Hermes model and\nexports them: a board on your Desktop, notes in Obsidian, a Notion database or a Google Doc.\n\n```\n\u002Fxbm sync       pull your bookmarks from X (the first run reads all of them)\n\u002Fxbm classify   sort them: category, tags, kind, one-line summary, priority\n\u002Fxbm export     write them out: desktop, obsidian, notion, gdocs (or all)\n\u002Fxbm digest     the week in your bookmarks: the best ones numbered, 3 post ideas\n\u002Fxbm schedule   get that digest every Sunday in this chat; reply \"task 3\" or \"skill 2\"\n```\n\nWorks in any Hermes chat (`\u002Fxbm ...`) and in the terminal (`hermes xbm ...`).\nUses the official X API only: no scraping, no browser automation, read-only access.\n\n![The Desktop board (demo data)](docs\u002Fmedia\u002Fboard.png)\n\n![Exports to Obsidian, Notion, Google Docs and the Desktop (demo data)](docs\u002Fmedia\u002Fexports.png)\n\n## What it does\n\n- **Sync.** Reads every bookmark the X API returns, newest first. The full text of X Articles\n  (your bookmark is the Article, or quotes one) and long posts comes with it. Later syncs read small\n  pages and stop as soon as they reach bookmarks already stored.\n- **Sort.** Your Hermes model labels each bookmark: a category from your list, up to 5 tags, a kind\n  (read, try, task, post-idea, reference, skill-candidate), a one-sentence summary, a priority\n  (1-3) and why you probably saved it. Ten bookmarks per model call; nothing is sorted twice.\n  Post text is passed to the model as data, never as instructions.\n- **Desktop board.** `board.html` is one self-contained page: search, filters, columns by\n  category, kind or priority, a \"done\" mark per card (kept in that browser). `bookmarks.md` is the\n  same list as Markdown, grouped by category.\n- **Obsidian.** One note per bookmark in your vault's `X Bookmarks` folder, with front matter\n  (category, tags, kind, priority, summary, status) and the full post or Article text, plus an\n  `X Bookmarks.base` table. Later exports update only the plugin's keys: your `status`, your own\n  keys and anything you write in the note stay.\n- **Notion.** A database \"X Bookmarks\" under a page you choose, with boards by category and by\n  status. One page per bookmark with the text, quote, image and a link card. Re-exports update\n  only what changed and never touch `Status` (yours to move); pages you delete stay deleted.\n- **Google Docs.** One document \"X Bookmarks\", grouped by category, highest priority first, with\n  links. Each export rewrites the same document, so its link and sharing stay.\n\n- **Digest.** `\u002Fxbm digest` covers the bookmarks stored in the last 7 days: counts per category,\n  a 2-3 sentence overview, the 10 best ones numbered (highest priority first, your own posts left\n  out) and 3 ideas for your own posts. The overview and ideas come from your model, in your\n  summary language; without a model you still get the numbered list.\n- **Weekly, in your chat.** `\u002Fxbm schedule` creates an ordinary Hermes cron job (default: every\n  Sunday 6pm, `\u002Fxbm schedule every monday 9am` to change it). Each week it syncs, writes the\n  digest and posts it to the chat you set it up from, or stays quiet when nothing is new. It is\n  also in Hermes' blueprint gallery as \"X bookmarks weekly digest\". `\u002Fxbm unschedule` removes it.\n- **Act on an item.** Reply to the digest with \"task 3\", or use `\u002Fxbm task 3 [note]`: the\n  bookmark becomes a task (`\u002Fxbm tasks`, `\u002Fxbm done 1`). \"skill 2\" or `\u002Fxbm skill 2` drafts a\n  Hermes skill from that post (steps, pitfalls, how to check) and shows it; `\u002Fxbm skill 2 save`\n  creates it through Hermes' own `skill_manage`, where Hermes may ask you to approve it. Posts\n  with no repeatable procedure get no skill. Your notes stay in the exports above.\n\n![The weekly digest in a chat, with \"task 3\" and \"skill 2\" replies (demo data)](docs\u002Fmedia\u002Fdigest.png)\n\n## Setup\n\n### 1. Your own X developer app\n\nEvery user brings their own X app and pays X for their own reads; nothing goes through a shared\napp.\n\n1. Sign in at [console.x.com](https:\u002F\u002Fconsole.x.com) with the X account whose bookmarks you want.\n   That account must own the app (that is what makes the \"owned reads\" price apply).\n2. Create an app on the **Pay-per-use** plan, add credit and set a spending limit.\n3. In the app's user authentication settings, set permissions to **Read**.\n4. On **Keys and tokens**, copy the **API Key** and **API Key Secret**, then generate the\n   **Access Token** and **Access Token Secret** (after setting Read, so they carry it).\n\n### 2. Keys into Hermes\n\nPut the four values in your Hermes profile's `.env` (`~\u002F.hermes\u002F.env`; on Windows\n`%LOCALAPPDATA%\\hermes\\.env`):\n\n```\nXBM_X_API_KEY=...\nXBM_X_API_SECRET=...\nXBM_X_ACCESS_TOKEN=...\nXBM_X_ACCESS_TOKEN_SECRET=...\n```\n\nThe plugin reads them through Hermes' secret scope and never writes them anywhere. To revoke,\nregenerate the tokens on X.\n\n### 3. Install\n\n```bash\nhermes plugins install winchxyz\u002Fhermes-x-bookmarks --enable\nhermes xbm whoami\n```\n\n`whoami` should print your handle. Then:\n\n```bash\nhermes xbm sync\nhermes xbm classify --all\nhermes xbm export\n```\n\n### 4. Export destinations (optional)\n\n**Obsidian.** Nothing to set up if Obsidian has your vault open: the plugin finds it in\nObsidian's own `obsidian.json`. Otherwise set `obsidian_vault` to the vault folder. Then\n`hermes xbm export obsidian`.\n\n**Notion** goes through Hermes' own Notion connector: no token, no Notion app of your own.\n\n1. Connect Hermes to Notion once (opens the browser to sign in):\n\n   ```bash\n   hermes mcp install notion\n   ```\n\n2. Let this plugin use that connection. In your Hermes `config.yaml` (`~\u002F.hermes\u002Fconfig.yaml`;\n   on Windows `%LOCALAPPDATA%\\hermes\\config.yaml`) add:\n\n   ```yaml\n   plugins:\n     entries:\n       hermes-x-bookmarks:\n         mcp_allowlist: [\"notion\"]\n   ```\n\n   Hermes gives a plugin no MCP access unless you list the server here.\n3. Make (or pick) a Notion page for the database, then in a Hermes chat:\n   `\u002Fxbm export notion \u003Cthat page's URL>` (the URL is remembered as `notion_page`).\n   One export writes everything (25 pages per request; about 1,900 bookmarks take a few\n   minutes) and shows its progress in the chat. Running it again sends only what changed.\n\nWithout the connector (an older Hermes, or a terminal where it is not connected), the plugin can\nuse a Notion connection token instead: create an **internal** connection at\n[notion.so\u002Fprofile\u002Fintegrations](https:\u002F\u002Fwww.notion.so\u002Fprofile\u002Fintegrations) with Read, Update and\nInsert content, put its token in the Hermes `.env` as `XBM_NOTION_TOKEN=...`, add the connection\nto the page (**••• → Connections**), and run `hermes xbm export notion \u003Cpage URL>`. Both routes\nwrite the same database and know which pages already exist.\n\n**Google Docs.**\n\n1. In the [Google Cloud console](https:\u002F\u002Fconsole.cloud.google.com\u002F) create a project and enable\n   the **Google Docs API**.\n2. **Google Auth Platform → Branding**: app name and your email. **Audience**: External, add\n   yourself as a test user, then **Publish app** (In production); in Testing, Google ends the\n   sign-in after 7 days. With only the `drive.file` scope no verification is needed; Google shows\n   an \"unverified app\" screen once, which you can pass for your own app.\n3. **Clients → Create client → Desktop app**. Put both values in the Hermes `.env`:\n   `XBM_GOOGLE_CLIENT_ID=...` and `XBM_GOOGLE_CLIENT_SECRET=...`\n4. `hermes auth add hermes-x-bookmarks:google` (opens the browser once), then\n   `hermes xbm export gdocs`.\n\n`drive.file` lets the plugin see and change only the document it created, nothing else in your\nDrive.\n\nSet `export_to` (for example `desktop, obsidian, notion`) to choose what a plain `export` does.\n\n## Settings\n\nSet in the Hermes Plugins settings, or with `\u002Fxbm about` for the last one.\n\n| Setting | Default | What it does |\n|---|---|---|\n| `categories` | AI & agents, Coding & dev tools, Crypto & web3, Business & growth, Design & art, Learning & guides, News & opinion, Life & misc | Your category list, comma-separated. \"Other\" is always added. |\n| `classify_language` | English | Language of summaries and the why-saved note |\n| `about_me` | empty | A sentence on what you build and follow; used only to judge priority (`\u002Fxbm about \u003Ctext>`) |\n| `export_to` | desktop | What a plain `export` writes: desktop, obsidian, notion, gdocs |\n| `export_dir` | `X Bookmarks` on your Desktop | Where `export desktop` writes |\n| `obsidian_vault` | the vault Obsidian has open | Vault folder; notes go to `X Bookmarks\u002F` in it |\n| `notion_page` | empty | The Notion page that holds the database |\n| `auth_backend` | auto | `keys` (above), `hermes` (OAuth 2.0 via `hermes auth add hermes-x-bookmarks:x`) or `xurl` |\n\nSorting runs on the plugin's own model slot, **X bookmarks: sorting**. It uses your main model\nuntil you pick another one in `hermes model` (auxiliary tasks). A stronger model gives clearly\nbetter priorities and fewer odd categories.\n\n## Commands\n\n| Chat | Terminal | |\n|---|---|---|\n| `\u002Fxbm sync [full]` | `hermes xbm sync [--full]` | Pull new bookmarks (`full` re-reads all) |\n| `\u002Fxbm classify [N\\|all]` | `hermes xbm classify [--limit N \\| --all]` | Sort unsorted bookmarks (chat: 20 by default, max 100) |\n| `\u002Fxbm export [where]` | `hermes xbm export [where] [--dir PATH]` | `desktop`, `obsidian`, `notion [page URL]`, `gdocs`, `all`; several allowed |\n| `\u002Fxbm status` | `hermes xbm status` | Counts, categories, last runs, X API and model use |\n| `\u002Fxbm list [N] [category]` | `hermes xbm list [--limit N] [--category C]` | Most recent bookmarks with their labels |\n| `\u002Fxbm about [text\\|clear]` | `hermes xbm about [text]` | Show or set what you build and follow |\n| `\u002Fxbm digest [days]` | `hermes xbm digest [days]` | Digest of the last 7 (or N) days, items numbered |\n| `\u002Fxbm task N [note]` | `hermes xbm task N [note]` | Make item N of the latest digest a task (also a post id or x.com link) |\n| `\u002Fxbm tasks`, `\u002Fxbm done N` | `hermes xbm tasks`, `hermes xbm done N` | Open tasks; finish task N |\n| `\u002Fxbm skill N [save]` | `hermes xbm skill N [save]` | Draft a Hermes skill from item N; `save` creates it |\n| `\u002Fxbm schedule [when]` | | Weekly digest as a Hermes cron job in this chat (default `every sunday 6pm`) |\n| `\u002Fxbm unschedule` | `hermes xbm unschedule` | Remove that cron job |\n\nIn a chat you can also just answer a digest: \"task 3\", \"skill 2\", \"done 1\". The agent has\nthree tools for it: `xbm_digest`, `xbm_task` and `xbm_skill` (toolset `x_bookmarks`). Hermes\ndoes not show a slash command's output to the agent, so when your whole message is such a reply\nand you had a digest in the last 8 days, the plugin's `pre_llm_call` hook adds one line to that\nmessage naming the item and the tool. Any other message is left alone.\n\n## Cost\n\n- **X API** (paid to X, on your app). Reading your own bookmarks is an \"owned read\": about\n  **$0.001 per post**. The author's first full sync of 1,880 bookmarks took 22 requests and about\n  **$1.89**; a sync with nothing new reads 10 posts, about $0.01. From 2026-11-22 X also bills\n  the expanded objects that come with each page (authors, images, quoted posts): on the same\n  1,880 bookmarks that is about 3,650 more objects, so a full sync costs roughly 3x.\n  `\u002Fxbm status` shows an estimate per run.\n- **Model** (your provider). Sorting 1,880 bookmarks took 188 calls, about 500k input and 200k\n  output tokens. On a free model that was $0. A digest is one model call (up to 60 one-line\n  summaries in), a skill draft one call; both use the `xbm_digest` model slot. The weekly cron\n  job itself runs on your main model, which mostly just passes the digest on.\n\n## Privacy, network and files\n\nWhat the plugin touches, so you know before installing:\n\n- **Network.** `api.x.com` (your bookmarks, read-only) and your Hermes model provider (sorting).\n  Only when you export there: Notion through Hermes' Notion connector (the `notion` MCP server,\n  only if you list it in `mcp_allowlist`; it creates the database, its two boards and the pages,\n  and updates those pages) or `api.notion.com` with your token, and `docs.googleapis.com` through\n  Hermes' Google sign-in. Nothing else, no telemetry.\n- **Data.** Bookmarks, labels, run history, export ids, digests, tasks and skill drafts live in\n  Hermes plugin data (SQLite) on your machine. No keys or tokens are stored there.\n- **Hermes objects it creates, only when you ask.** `\u002Fxbm schedule` creates one Hermes cron job\n  (it keeps running if you disable the plugin; `\u002Fxbm unschedule` or Hermes' cron tools remove\n  it). `\u002Fxbm skill N save` creates one Hermes skill through `skill_manage`. Both are ordinary\n  Hermes objects you can edit or delete.\n- **Credentials.** The X keys and the optional Notion token are read from the Hermes `.env`\n  through Hermes' secret scope; the Notion connector, X OAuth 2.0 and Google sign-ins are kept\n  and refreshed by Hermes.\n  The plugin never writes a credential.\n- **Files outside plugin data.** `export desktop` writes `X Bookmarks\u002F` on your Desktop (or\n  `export_dir`); `export obsidian` writes notes into your vault's `X Bookmarks\u002F` folder and reads\n  Obsidian's `obsidian.json` to find the vault (vault paths only).\n- **Hook.** `pre_llm_call` reads your message only to check whether it is just \"task N\",\n  \"skill N\" or \"done N\"; only then it opens plugin data and adds a short note (see Commands).\n- **Commands.** None, unless you choose the `xurl` sign-in, which runs `xurl token`.\n- Post text goes to the model you configured in Hermes and to the destinations you export to.\n\n## Limits\n\n- X Article bodies come from the API as plain text (no headings, links or images inside).\n- Threads: each bookmarked post is stored on its own; the rest of the thread is not fetched yet.\n- Removing a bookmark on X does not yet remove it here.\n\n## Development\n\n```bash\npip install -e . -r requirements-dev.txt\nruff check .\npytest -q\n```\n\nDesign and research notes: [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md),\n[docs\u002FDECISIONS.md](docs\u002FDECISIONS.md), [docs\u002Fresearch\u002F](docs\u002Fresearch\u002F).\nCI runs ruff, pytest, and `hermes plugins validate` \u002F `doctor` against Hermes v0.23.0 and main.\n\n## License\n\nMIT\n","Hermes-x-bookmarks 是一个 Hermes Agent 插件，用于自动同步、分类和导出用户在 X（原 Twitter）平台的书签内容（含帖子、长文、Threads 和 X Articles）。它调用官方 X API 获取数据，通过用户自定义的 Hermes 模型进行语义分类（如类别、标签、优先级、用途类型等），并支持导出至桌面 HTML\u002FMarkdown、Obsidian 笔记、Notion 数据库或 Google Docs。所有导出均增量更新，保留用户手动编辑内容。适用于信息工作者、研究员及内容创作者对社交平台收藏内容进行结构化整理与知识沉淀。",2,"2026-11-24 04:50:21","CREATED_QUERY"]