Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ab4ab2e
feat(store): record every library write in a changes table (0.16.0)
nodemode-ai Dec 3, 2026
d902cd7
feat(engine): stream library changes to the window (0.16.0)
nodemode-ai Dec 3, 2026
8483519
fix(engine): the changes stream ends at once when the engine stops (0…
nodemode-ai Dec 3, 2026
f3e5ad8
feat(window): apply the engine's change feed in place (0.16.0)
nodemode-ai Dec 3, 2026
ca49e76
feat(window): a stale notice and an in-place refresh for the item lis…
nodemode-ai Dec 3, 2026
f8acb3a
feat(window): a bridge that lets an agent run the open window's comma…
nodemode-ai Dec 3, 2026
66040af
feat(mcp): headless tools for everything else a person does with the …
nodemode-ai Dec 3, 2026
8daa579
feat(window): every action a person takes in the window is a typed co…
nodemode-ai Dec 3, 2026
12b2b9a
docs: the changes table and the window's live feed (0.16.0)
nodemode-ai Dec 3, 2026
957d846
fix(window): re-read once when the change feed first opens (0.16.0)
nodemode-ai Dec 3, 2026
686258f
fix(window): list.search takes an empty or missing text to clear the …
nodemode-ai Dec 3, 2026
75e9f21
docs(agents): the parity tools, the window bridge and what stays the …
nodemode-ai Dec 3, 2026
81010ac
fix(net): one polite pace for all of arXiv, and retries with backoff …
nodemode-ai Dec 3, 2026
aeba3ca
feat(lookup): queued lookups, arXiv ids fetched together, a lookup ca…
nodemode-ai Dec 3, 2026
f9f2369
fix(mcp): a call over HTTP answers inside its 30 s, however many arri…
nodemode-ai Dec 3, 2026
1a62ebc
feat(mcp): collection tools, a batch add, lookup jobs and compact ans…
nodemode-ai Dec 3, 2026
67d6a22
fix(engine): a token that may write can make, rename and fill collect…
nodemode-ai Dec 3, 2026
5926304
feat(window): start the live change feed at launch (0.16.0)
nodemode-ai Dec 3, 2026
2b9fd52
feat(window): an agent goes to a page, finds in and closes the open p…
nodemode-ai Dec 3, 2026
9f29738
docs(agents): collections, batched polite lookups and compact results…
nodemode-ai Dec 3, 2026
6ca1cc1
fix(window): the item list re-reads on a stale notice by itself (0.16.0)
nodemode-ai Dec 3, 2026
5f5e004
feat(mcp): serve fc-parity's tools beside the collection tools (0.16.0)
nodemode-ai Dec 3, 2026
e4d2ca2
fix(mcp): use_library makes the open window switch at once (0.16.0)
nodemode-ai Dec 3, 2026
085c9b0
feat(mcp): window_commands takes a query, as agents already send one …
nodemode-ai Dec 3, 2026
2ed3caf
fix(window): collection.add-selection takes the item argument it acce…
nodemode-ai Dec 3, 2026
383b327
feat(engine): the window reads a PDF attachment and opens a paper's l…
nodemode-ai Dec 3, 2026
1fdbee2
build(window): add pdfjs-dist 6.5.438 and serve its data files locall…
nodemode-ai Dec 3, 2026
1682e1e
feat(window): a paper reader inside the window (0.16.0)
nodemode-ai Dec 3, 2026
21a29ec
feat(window): mount the paper reader and the collection window comman…
nodemode-ai Dec 3, 2026
52c27ec
feat(window): View Paper is an item's main action, and the system vie…
nodemode-ai Dec 3, 2026
d14343e
feat(window): double-click or Enter on an item opens its paper (0.16.0)
nodemode-ai Dec 3, 2026
ae08876
fix(window): a window command sent after a reload runs in the new pag…
nodemode-ai Dec 3, 2026
04a7f5b
fix(side): a collection an agent adds moves nothing in the sidebar (0…
nodemode-ai Dec 3, 2026
0ba33a0
docs(hashout): the 0.16.0 roles' rationale for the engine and the win…
nodemode-ai Dec 3, 2026
22015db
docs(changelog): 0.16.0 (0.16.0)
nodemode-ai Dec 3, 2026
ba4bb78
chore(release): 0.16.0 (0.16.0)
nodemode-ai Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .claude/skills/formcite/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ The premise: a reference list is only worth anything if every entry in it is rea
Two ways, in this order of preference.

1. **The MCP server.** When the client lists a `formcite` server, use its tools. `./formcite agents install` registers it; it runs `./formcite mcp` on stdio and is read-only unless the person registered it with `--allow-write`. Its tools:
- Read-only, no network: `search` (`text`), `get_item` (`id`), `list_items` (`collection` or `tag`), `list_collections`, `list_tags`, `list_styles`, `cite`, `bibliography`, `format_document` (several citations in document order plus their bibliography).
- Read-only, no network: `search` (`text`), `get_item` (`id`), `list_items` (`collection` or `tag`, `limit`, `offset`), `list_collections`, `list_tags`, `list_styles`, `cite`, `bibliography`, `format_document` (several citations in document order plus their bibliography), `lookup_status` (`job_id` of a lookup that was not finished).
- Read-only, reaches the network: `lookup_preview` (an identifier; shows the record and whether the library has it, adds nothing).
- Write, listed only when the person allowed writing (the server runs with `--allow-write`, or over HTTP the token may write): `add_item`, `add_by_identifier` (also reaches the network), `import_references` (`text` and `format`: bibtex, ris, csljson, formtxt; `keywords_as_tags` only when the person asked for keywords as tags), `tag_item`.
- Write, listed only when the person allowed writing (the server runs with `--allow-write`, or over HTTP the token may write): `add_item`, `add_by_identifier` and `add_by_identifiers` (also reach the network), `import_references` (`text` and `format`: bibtex, ris, csljson, formtxt; `keywords_as_tags` only when the person asked for keywords as tags), `tag_item`.
- Collections, write: `create_collection` (`name`, optional `parent`), `add_to_collection` and `remove_from_collection` (`collection` id or exact name, `ids`), `rename_collection`, and `delete_collection` (`confirm` is the collection's exact name; only after the person said yes to deleting that collection; its items stay). You can make and fill a collection yourself: never tell the person to do it by hand when these tools are listed.
- Results are compact (id, title, year, authors, identifiers, tags, collections). Ask for `fields` such as `["abstract"]`, or `full: true`, only when the task needs them.
- **Lookups are rate limited** (arXiv allows about one request every 3 seconds). To add several papers, send them in one `add_by_identifiers` call (up to 50, with `collection` and `tags` if wanted), never many parallel `add_by_identifier` or `lookup_preview` calls. An answer that says "Not finished yet" carries a `job_id`: wait a few seconds and call `lookup_status`; do not send the identifiers again. A repeated add never makes a duplicate; it reports the item as `existing`.
- Everything else a person does, from 0.16.0: `edit_item` (any field), `trash_items`, `restore_items`, `list_trash`, `delete_items_forever` and `empty_trash` (both need `confirm: true`), notes (`list_notes`, `add_note`, `edit_note`, `delete_note`), tags (`untag_item`, `rename_tag`, `delete_tag`), attachments (`list_attachments` gives the PDF's path on disk to read, `attach_file`, `remove_attachment`, `get_fulltext`, `fetch_pdf`, `add_pdf`), relations, saved searches (`run_search`, `save_search` and the rest), `find_duplicates`, `merge_duplicates`, `export_references`, `import_file`, `list_import_batches`, `undo_import`, `keywords_to_tags`, libraries (`list_libraries`, `create_library`, `use_library`), the Needs a title tools and `network_status` (read-only). The collection tools come with the collection slice.
- The open window: `window_commands` lists what the window offers (views, select an item, search, sort and scope of the list, the paper reader with `item.view`, Preferences, appearance, the Add dialog, collections), each with typed arguments, and `window_command_run` runs one where the person sees it. Use it when the person wants to see something in FormCite ("show me", "open the paper", "switch to dark"); use the headless tools for the data. These need the engine's `/mcp` (the dock's agent tabs have it) and an open window; when `window_commands` says the window is not open, say so and carry on headless.
2. **The command line.** From the FormCite folder, `./formcite cli [group] ...` works on the current library without the engine. It prints JSON on stdout and one plain sentence on stderr. Run `./formcite cli [group] --help` before a verb you have not used in this conversation, because flags are not guessed.

If the MCP tool list has fewer tools than a task needs, use the command line for the rest. Do not call a tool name that the server did not list.
Expand All @@ -37,20 +42,27 @@ If the MCP tool list has fewer tools than a task needs, use the command line for
| Import this .bib, .ris or CSL-JSON file | `cli formats` | `cli import` (add `--keywords-as-tags` only if the person wants keywords as tags) |
| Turn keywords of items already imported into tags | `cli tags from-keywords --dry-run` | `cli tags from-keywords` |
| Export as BibTeX, RIS or CSL-JSON | `cli export` prints to stdout | `cli export --out FILE` writes a file the person named |
| Duplicates | `cli duplicates` (find) | merging |
| Duplicates | MCP `find_duplicates`, or `cli duplicates` (find) | MCP `merge_duplicates`, or merging |
| Add several papers, into a new collection | MCP `list_collections` | MCP `create_collection`, then one `add_by_identifiers` call with `collection`; check with `list_items` on that collection |
| Tag, collect, note | `cli tag`, `cli collection`, `cli note` listings | any change |
| Edit a field, trash, restore | MCP `get_item` | MCP `edit_item`, `trash_items`, `restore_items` |
| Delete for good, empty the Trash | MCP `list_trash` | MCP `delete_items_forever` or `empty_trash` with `confirm: true`, after the person said yes to exactly that |
| Read the paper | MCP `get_fulltext` or `list_attachments` (the PDF's path) | MCP `fetch_pdf` (network) when there is none |
| Show it to me in FormCite | MCP `window_commands` | MCP `window_command_run`, such as `item.view` or `list.scope` |

## What needs the person's say

Ask before, every time, in one sentence that names what will happen:

- **Anything that writes:** add, import, edit, trash, tag, collect, note, merge, attach, identify, and export to a file. Say how many items and which library.
- **Anything that reaches the network:** `lookup_preview`, `add_by_identifier`, and `cli lookup`, `cli add`, `cli identify`. Say which service will be called. `cli network` shows the services and whether each is on; a person may have turned one off on purpose. Do not turn a service on for them.
- **Anything that reaches the network:** `lookup_preview`, `add_by_identifier`, `add_by_identifiers`, and `cli lookup`, `cli add`, `cli identify`. Say which service will be called. `cli network` shows the services and whether each is on; a person may have turned one off on purpose. Do not turn a service on for them.

A read (search, show, list, styles, formats, format a citation) needs no question.

## Telling the person plainly

- **Say what could not be done first.** When any part of the request was not done (a collection not made, papers that failed, lookups still running), the first line of the reply says so, before anything that was done. Never write a reply that reads as finished when part of it is not.

- **The style engine is not built.** If `cli styles` or `cli format` answers that the citation style engine is unavailable, say so in those words, and tell the person it is built with `setup/build_style` from the FormCite folder. Do not hand-format a citation in its place and present it as FormCite's output. If they ask for a hand-written draft, label it as yours.
- **The network is off.** If `lookup` or `add` answers that the network or a service is off, say that FormCite's network is off and nothing was added. Offer `cli network` to show the switch; the person decides.
- **Not found.** If search returns nothing, say the library has nothing matching. If a lookup answers not found, say the service has no such record. Offer to look up an identifier the person gives; never fill the gap with a remembered reference.
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 0.16.0

Read a paper inside FormCite, see agents' changes in the open window as they happen, and let Claude Code and the other agents do everything you can do in the app, collections included.

### New
- **View paper.** A paper's PDF opens inside the window: continuous pages drawn sharp at any zoom, page thumbnails or the paper's outline, page number and count, fit width, fit page and percent zoom (Cmd or Ctrl with + and -, pinch), keyboard paging, find with highlighted matches, selectable text, working citation and web links, a dark-page mode, download and print. It remembers the last page of each paper. View paper is the main action in the details pane, on double-click or Enter on a row, in the row and Library menus and on Cmd+O (Ctrl+O elsewhere); Open in System Viewer stays on Cmd+Shift+O. A paper whose PDF is not attached yet fetches it first. The reader runs inside the app with no network.
- **The window follows every change to the library,** whoever makes it: an agent, the command line, an import or another tool. New papers, edits, tags, notes, files, Trash and collections appear within a second, in place, keeping your selection, scroll position and open details. Papers an agent adds glow briefly.
- **Agents can do everything you can.** Claude Code and the other agents in the dock reach every window command (views, selection, search, sort, the reader, Preferences, libraries, collections) and 65 tools for the library: collections (create, add, remove, rename, delete), editing any field, notes, tags, files, Trash, duplicates and merging, import and export, saved searches, relations and undo. Deleting forever, emptying Trash and deleting a collection ask you first. Approving connections and the network switches stay yours alone, and read-only access stays read-only.
- **Add many papers at once:** agents add up to 50 identifiers in one call, straight into a collection with tags if asked.

### Fixed
- **Agents could not make a collection.** There was no tool for it, and the engine refused the dock's access with "Only the FormCite window can do this". Creating, renaming and filling collections now work for the dock's write access; deleting a collection over the engine's own routes stays with the window.
- **Adding many arXiv papers timed out.** Lookups queued behind each other and the wait counted against a 30 second limit. arXiv is now asked once for a whole batch, politely paced, retried when it asks to slow down, and cached; a retried add reports the paper it already added instead of making a second one.
- **Agents' answers were huge.** One paper came back as about 70,000 characters with every author and the abstract twice. Answers are now short by default, with the full record on request.
- **The window showed nothing an agent added until it was restarted.**
- **Quitting with the window open took about 30 seconds;** it now takes under a second.

### Known issues
- Not yet tried inside the desktop app: printing and downloading from the reader, links opening in the browser, and copying through the Mac Edit menu.
- A library with fewer than four collections shows a little empty space in the Collections section, which keeps the Tags section from moving when a collection is added.

## 0.15.2

On a Mac the menus are in the menu bar only, the agent and Preferences buttons sit at the top right as in FormPortal, Preferences floats over the window as in FormVis, a row in Items opens its details again, and an arXiv paper comes with its PDF.
Expand Down
3 changes: 2 additions & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Each component gets a row here with its license and its use before it is added.
| ptyprocess 0.7.0, pinned exactly, on macOS and Linux; it pulls in no other package | ISC, read from the wheel's license file (Copyright (c) 2013-2014, Pexpect development team; Copyright (c) 2012, Noah Spurrier) | the terminals of the agent dock, since 0.15.0 |
| pywinpty 3.0.5, pinned exactly, on Windows only; its wheel carries `winpty.dll` (winpty, MIT) and `conpty.dll` (Microsoft, MIT) | MIT, read from the wheel's metadata and license file | the terminals of the agent dock on Windows, since 0.15.0 |
| @xterm/xterm 6.0.0 and @xterm/addon-fit 0.11.0, pinned exactly, the same versions as FormVis and FormDeck; they pull in no other package | MIT, read from each installed package's license file (Copyright (c) 2017-2019, The xterm.js authors; 2014-2016, SourceLair Private Company; 2012-2013, Christopher Jeffrey) | the terminal emulator in the agent dock, loaded when the first terminal tab opens, since 0.15.0 |
| pdfjs-dist 6.5.438 (Mozilla's PDF.js), pinned exactly; it has no runtime dependencies. Its optional `@napi-rs/canvas` (MIT) is a Node-only renderer that npm may install; the window never loads it and it is not shipped | Apache-2.0, read from the installed package's metadata and license file (Copyright Mozilla Foundation). The files it carries and FormCite serves from the window itself, under `/pdfjs/`: the Adobe CMaps (BSD-3-Clause, Copyright 1990-2009 Adobe Systems Incorporated), the standard fonts (Foxit, BSD-3-Clause, Copyright 2014 PDFium Authors; Liberation, SIL OFL 1.1), the OpenJPEG decoder (BSD-2-Clause), the JBIG2 decoder (BSD-3-Clause, PDFium Authors, with PDF.js's own Apache-2.0 glue), qcms (MIT, Mozilla Corporation and Marti Maria) and one ICC profile (CC0-1.0); each keeps its license file beside it. The QuickJS scripting engine is left out | the in-app paper reader: the worker, page rendering, text layer, links and find, loaded only when a paper first opens, since 0.16.0 |
| tzdata 2026.6, pinned exactly; it pulls in no other package | Apache-2.0, read from the wheel's metadata and license file | the IANA time zone data for the engine's Eastern-time logs where the system has none (Windows always), since 0.15.0 |
| hayagriva 0.10.1, pinned exactly, with its style parser citationberg | MIT OR Apache-2.0 | the citation style engine, built into the Python module `formcite_style` |
| The other crates in `native/formcite-style/Cargo.lock` (pyo3 0.29, serde, serde_json and the rest) | MIT OR Apache-2.0 for most; Unicode-3.0, MIT, Apache-2.0, BSD-2-Clause, Unlicense OR MIT and 0BSD OR CC0-1.0 for the others; `target-lexicon` is Apache-2.0 WITH LLVM-exception and is used at build time only. The full list is in `docs/STYLE_ENGINE.md` | the citation style engine |
Expand All @@ -45,4 +46,4 @@ Each component gets a row here with its license and its use before it is added.
| @tauri-apps/api 2.12.5, pinned exactly; it pulls in no other package | Apache-2.0 OR MIT, read from the installed package's metadata | the macOS system menu in the desktop window (`frontend/src/ui/native-menu.ts`); loaded only inside the desktop shell, since 0.15.0 |
| Tauri 2 with tauri-plugin-shell and tauri-plugin-dialog, fontdb, regex, serde, serde_json, windows-sys, objc2 and its companions | the same crates formtxt's shell uses; their licenses have not been read for this repository yet | desktop shell, which has not been compiled yet |

The window's runtime dependencies are @tauri-apps/api, for the macOS system menu, and @xterm/xterm with @xterm/addon-fit, for the agent dock's terminals; it uses the system font stack.
The window's runtime dependencies are @tauri-apps/api, for the macOS system menu, @xterm/xterm with @xterm/addon-fit, for the agent dock's terminals, and pdfjs-dist, for the paper reader; it uses the system font stack.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version 0.15.2" src="https://img.shields.io/badge/version-0.15.2-eef0f4?style=flat-square">
<img alt="version 0.16.0" src="https://img.shields.io/badge/version-0.16.0-eef0f4?style=flat-square">
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python 3.12 or later" src="https://img.shields.io/badge/Python-FastAPI-3776ab?style=flat-square&logo=python&logoColor=white">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-desktop-2f7bf5?style=flat-square">
Expand Down Expand Up @@ -153,6 +153,7 @@ The window, the command line, the cite service and the MCP server all work on th
- Agents use the MCP server: `./formcite mcp` (read-only unless you start it with `--allow-write`), or `POST /mcp` on the running engine with a token ([`docs/MCP.md`](docs/MCP.md)). `./formcite agents install` registers it with the agent clients it knows; `--dry-run` shows what it would write.
- `./formcite cli service log` shows everything a token holder added.
- From 0.15.0 the window has an agent dock (View, Agent Dock): shell tabs the engine starts on this computer, and a tab for Claude Code, Codex, Cursor or Antigravity when that program is installed. Each agent tab gets its own token, which is revoked when the tab closes. Only the FormCite window can open one. The dock asks no question of its own: an outside agent is approved by pairing under Connections, as above.
- From 0.16.0 an agent can do what you can: edit any field, notes, tags, attachments and PDFs, the Trash, duplicates, saved searches, import and export, libraries, and run the window's own commands (views, selection, search, sort, the paper reader, Preferences, appearance) with `window_commands` and `window_command_run`, so you watch it happen in the window. Deleting for good asks first. Approving connections and the network switches stay yours.

See [`AGENTS.md`](AGENTS.md).

Expand Down
Loading
Loading