Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8276b2e
fix(agents): only the formpdf window can change settings, use the doc…
nodemode-ai Nov 18, 2026
8ef7e34
fix(settings): agent access changed outside the app is caught and tre…
nodemode-ai Nov 18, 2026
fe95fcb
fix(redact): redact, find and sanitize report what they actually foun…
nodemode-ai Nov 18, 2026
a9545df
docs(agents): state the real counts: 15 MCP tools and 90 PDF actions …
nodemode-ai Nov 18, 2026
09e891e
docs(security): say what the agent gate guarantees and what it does n…
nodemode-ai Nov 18, 2026
572204a
fix(agents): every change through the engine needs the window key unl…
nodemode-ai Nov 18, 2026
98ecd07
feat(theme): AMOLED Black, a true-black theme for OLED screens (0.61.0)
nodemode-ai Nov 19, 2026
05f9007
fix(agents): a reload uses the kept window key before it asks for a n…
nodemode-ai Nov 19, 2026
98baf46
fix(desktop): the shell waits at most 10 seconds for the engine's add…
nodemode-ai Nov 19, 2026
02cf6e3
feat(settings): Preferences says when the saved agent permission was …
nodemode-ai Nov 19, 2026
697eaed
fix(theme): open terminals follow a live theme switch (0.61.0)
nodemode-ai Nov 19, 2026
57ea900
fix(shell): the engine gets as long to start as before; the 10 second…
nodemode-ai Nov 19, 2026
81640e1
feat(agents): agents/manifest.json says what the app offers agents (0…
nodemode-ai Nov 19, 2026
98f8b6e
docs(manual): the manual says how agent access is asked and set (0.61.0)
nodemode-ai Nov 19, 2026
541920e
docs(parity): the agent rows say how access is asked and set (0.61.0)
nodemode-ai Nov 19, 2026
103fc08
docs(security): the supported versions table says Latest release (0.6…
nodemode-ai Nov 19, 2026
1b8a63e
docs: counts and organisation addresses that had drifted (0.61.0)
nodemode-ai Nov 19, 2026
552d027
feat(dock): the engine answers the shared dock's contract (0.61.0)
nodemode-ai Nov 19, 2026
035377b
feat(dock): the dock is the family's shared module 2.0.1 (0.61.0)
nodemode-ai Nov 19, 2026
99e34f7
fix(agents): the entry the engine writes for its own tabs is named fo…
nodemode-ai Nov 19, 2026
abe35f6
test(dock): the shared dock folder, its storage keys and the manifest…
nodemode-ai Nov 19, 2026
b2f614c
feat(dock): the dock folder is the family's shared module 2.1.0 (0.61.0)
nodemode-ai Nov 19, 2026
c956414
feat(dock): one ask line under every dock tab, and the Chat pane is t…
nodemode-ai Nov 19, 2026
9ad1b07
fix(dock): a layout moved from the old dock keys does not get the gui…
nodemode-ai Nov 19, 2026
eca2c07
chore(release): 0.61.0 (0.61.0)
nodemode-ai Nov 19, 2026
6a3e597
feat(agents): every place that looks for or starts an agent program g…
nodemode-ai Nov 20, 2026
5244371
test(agents): the whole test run finds only stand-in agent programs (…
nodemode-ai Nov 20, 2026
63fac7f
fix(engine): the engine starts when it has no output streams (0.62.0)
nodemode-ai Nov 20, 2026
712ba61
feat(agents): Antigravity is the fourth agent program, with the dock …
nodemode-ai Nov 20, 2026
c46e6be
docs(agents): the supported agent programs are Claude Code, Codex, Cu…
nodemode-ai Nov 20, 2026
10f75d8
chore(release): 0.62.0 (0.62.0)
nodemode-ai Nov 20, 2026
68a88a8
test(window): each window test starts its own engine, so the demo tes…
nodemode-ai Nov 20, 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
4 changes: 2 additions & 2 deletions .agents/skills/formpdf-harness/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: "Does PDF work with formpdf through its MCP server. Use whenever th
license: Apache-2.0
metadata:
author: formpdf
version: "0.60.3"
version: "0.62.0"
---

# formpdf harness

formpdf is a PDF editor running on this computer: an engine on 127.0.0.1:8198 and a window the person watches. Its MCP server (`formpdf`) gives you seven tools. This pack is the method: find out what is open, do the job in as few calls as possible, look at the result, and hand it back without surprising the person.
formpdf is a PDF editor running on this computer: an engine on 127.0.0.1:8198 and a window the person watches. Its MCP server (`formpdf`) gives you fifteen tools: the seven in the table below do the PDF work, and get_agent_access, answer_question, list_commands, describe_command, run_command, run_commands, extensions_list and extension_command are covered in the references. This pack is the method: find out what is open, do the job in as few calls as possible, look at the result, and hand it back without surprising the person.

## Doctrine

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/formpdf-skillset/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Guides development of the formpdf codebase: its FastAPI engine, va
license: Apache-2.0
metadata:
author: formpdf
version: "0.60.3"
version: "0.62.0"
---

# formpdf skillset
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/formpdf-skillset/references/file-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `app/core/ids.py` | short ids, picture ids by content hash |
| `app/routers/pdf.py` | `/api/pdf/*`: open, open-path, recent, forget, merge, write, create, and per document file, info, text, images, tables(.xlsx), fields, annotate, organize, split, protect, unlock, redact, metadata, compress, page-numbers, watermark, header-footer, crop, find, comments, render, pages.zip, pptx, sheet, reflow, docx, hidden, sanitize, form, compare, save |
| `app/routers/live.py` | `/api/live` WebSocket: windows say hello, report their open document, answer window tools |
| `app/routers/mcp.py` | `/mcp` MCP server: 7 tools, the guide resource, the pdf-job prompt, consent, turns, live landing of agent versions |
| `app/routers/mcp.py` | `/mcp` MCP server: 15 tools, the guide resource, the pdf-job prompt, consent, turns, live landing of agent versions |
| `app/routers/system.py`, `media.py` | health, version, capabilities, settings; extracted pictures |
| `app/routers/batch.py` | `/api/batch`: upload copies, run one action on many files as a job, status, zip of results |
| `app/services/bridge.py` | window list, the window's open document, `window_call` |
Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/formpdf-harness/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: "Does PDF work with formpdf through its MCP server. Use whenever th
license: Apache-2.0
metadata:
author: formpdf
version: "0.60.3"
version: "0.62.0"
---

# formpdf harness

formpdf is a PDF editor running on this computer: an engine on 127.0.0.1:8198 and a window the person watches. Its MCP server (`formpdf`) gives you seven tools. This pack is the method: find out what is open, do the job in as few calls as possible, look at the result, and hand it back without surprising the person.
formpdf is a PDF editor running on this computer: an engine on 127.0.0.1:8198 and a window the person watches. Its MCP server (`formpdf`) gives you fifteen tools: the seven in the table below do the PDF work, and get_agent_access, answer_question, list_commands, describe_command, run_command, run_commands, extensions_list and extension_command are covered in the references. This pack is the method: find out what is open, do the job in as few calls as possible, look at the result, and hand it back without surprising the person.

## Doctrine

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/formpdf-skillset/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Guides development of the formpdf codebase: its FastAPI engine, va
license: Apache-2.0
metadata:
author: formpdf
version: "0.60.3"
version: "0.62.0"
---

# formpdf skillset
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/formpdf-skillset/references/file-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `app/core/ids.py` | short ids, picture ids by content hash |
| `app/routers/pdf.py` | `/api/pdf/*`: open, open-path, recent, forget, merge, write, create, and per document file, info, text, images, tables(.xlsx), fields, annotate, organize, split, protect, unlock, redact, metadata, compress, page-numbers, watermark, header-footer, crop, find, comments, render, pages.zip, pptx, sheet, reflow, docx, hidden, sanitize, form, compare, save |
| `app/routers/live.py` | `/api/live` WebSocket: windows say hello, report their open document, answer window tools |
| `app/routers/mcp.py` | `/mcp` MCP server: 7 tools, the guide resource, the pdf-job prompt, consent, turns, live landing of agent versions |
| `app/routers/mcp.py` | `/mcp` MCP server: 15 tools, the guide resource, the pdf-job prompt, consent, turns, live landing of agent versions |
| `app/routers/system.py`, `media.py` | health, version, capabilities, settings; extracted pictures |
| `app/routers/batch.py` | `/api/batch`: upload copies, run one action on many files as a job, status, zip of results |
| `app/services/bridge.py` | window list, the window's open document, `window_call` |
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# formpdf for Codex, Cursor and other agents
# formpdf for Codex, Cursor, Antigravity and other agents

formpdf exposes an MCP server at http://127.0.0.1:8198/mcp (stdio: `python3 setup/mcp_stdio.py`, which finds the engine through ~/Formpdf/engine.json and starts it when needed). Configs: .codex/config.toml, .cursor/mcp.json, .mcp.json. Run `./formpdf agents install` to install them and the skills for your home folder too.
formpdf exposes an MCP server at http://127.0.0.1:8198/mcp (stdio: `python3 setup/mcp_stdio.py`, which finds the engine through ~/Formpdf/engine.json and starts it when needed). Configs: .codex/config.toml, .cursor/mcp.json, .mcp.json. Run `./formpdf agents install` to install them and the skills for your home folder too; it also adds formpdf to Antigravity (Google's `agy` program) in `~/.gemini/config/mcp_config.json`. The supported agent programs are Claude Code, Codex, Cursor and Antigravity.

PDF work: get_context · open_pdf (absolute path) · pdf {action} (live on the open PDF, or on a file with `path`) · render_pages to look · extract for text, tables and pictures · save when asked · undo reverts your last turn. The skill packs live in .agents/skills: formpdf-harness (doing PDF work) and formpdf-skillset (developing formpdf). The short guide is the resource formpdf://guide. Scripted jobs without the window: `./formpdf run <action> file.pdf ...`.

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Load `.claude/skills/formpdf-harness` for the full loop, every action with its a
## Trademarks, copyright and licences

- Other vendors' product names appear only to describe a format or compatibility ("an XFDF file Acrobat and other readers import", the standard AcroForm functions, Word and PowerPoint output). Never as a formpdf tab, command, tool or agent tool name, and never as "an Acrobat alternative" or "Acrobat's rules" in UI text, agent text or READMEs. The tab is Fill Forms and Sign; the accessibility check is 32 PDF/UA and WCAG rules; ids such as `pdf-tab-fill` stay. `README.md` and `NOTICE.md` carry the trademark notice.
- A changed English string is changed in place in all 23 tables in `frontend/src/ui/i18n/` with a translation of formpdf's own words, never the vendor's localized name; `python3 setup/i18n.py parity` must not get worse.
- A changed English string is changed in place in every language table in `frontend/src/ui/i18n/` (es-MX and fr-CA hold only the words that differ from es and fr, so a key goes there only if it is already there) with a translation of formpdf's own words, never the vendor's localized name; `python3 setup/i18n.py parity` must not get worse.
- Never copy vendor help text (accessibility rule names and fix text stay formpdf's own), stamps, icons or sample files. Every new dependency, font or data file gets a row in `NOTICE.md`; GPL and AGPL stay out (no PyMuPDF, pdf2docx or ghostscript).

## Commits
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ tracked text.
alone; a maintainer bumps it when releasing.
- Every window action is a command in `frontend/src/ui/commands.ts`, so agents and the
command line get it too. Add new actions as commands.
- A changed English string is changed in place in all 23 tables in
`frontend/src/ui/i18n`, in FormPDF's own words; `python3 setup/i18n.py parity` must
- A changed English string is changed in place in every language table in
`frontend/src/ui/i18n` (es-MX and fr-CA hold only the words that differ from es and
fr, so a key goes there only if it is already there), in FormPDF's own words; `python3 setup/i18n.py parity` must
not get worse.
- Icons are inline `currentColor` SVG in `frontend/src/ui/icons.ts`, and z-index comes only
from `frontend/src/styles/tokens.css`.
Expand Down
6 changes: 4 additions & 2 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ formpdf is licensed under the Apache License 2.0 (see `LICENSE`). It includes or

| Work | License | Where |
| --- | --- | --- |
| formsld (https://github.com/nodemode-ai/formsld, 0.5.1), same owner: the PDF workbench, its engine services and routes, the MCP server and stdio bridge shape, the dispatcher and setup scripts and the Tauri shell, moved out of formsld into this repository | Apache-2.0 | `frontend/src/pdf/`, `backend/app/services/pdf/`, `backend/app/routers/`, `formpdf`, `setup/`, `src-tauri/` |
| formvis (https://github.com/nodemode-ai/formvis, through formsld), same owner: the form family design system (tokens, 14 theme profiles, the pre-paint theme boot, the DOM toolkit, command registry, menus, dialogs, dropdowns, toasts, icon set) | Apache-2.0 | `frontend/index.html`, `frontend/src/styles/`, `frontend/src/ui/` |
| formsld (https://github.com/nodemode-dev/formsld, 0.5.1), same owner: the PDF workbench, its engine services and routes, the MCP server and stdio bridge shape, the dispatcher and setup scripts and the Tauri shell, moved out of formsld into this repository | Apache-2.0 | `frontend/src/pdf/`, `backend/app/services/pdf/`, `backend/app/routers/`, `formpdf`, `setup/`, `src-tauri/` |
| formvis (https://github.com/nodemode-dev/formvis, through formsld), same owner: the form family design system (tokens, 14 theme profiles, the pre-paint theme boot, the DOM toolkit, command registry, menus, dialogs, dropdowns, toasts, icon set) | Apache-2.0 | `frontend/index.html`, `frontend/src/styles/`, `frontend/src/ui/` |
| NodeMode stylized design system (through formvis): tokens, theme profiles, theme boot, dom-stable helpers, icon subset | MIT | `frontend/src/styles/tokens.css`, `frontend/src/ui/themes.ts`, `frontend/src/ui/dom.ts`, `frontend/src/ui/icons.ts` |
| `paintbrush` and `hand` icons from Remix Icon (through formvis) | Apache-2.0 | `frontend/src/ui/icons.ts` |
| Form Extension Contract kit, Apache-2.0, nodemode: the host bridge and the extension resolver and file server, vendored unchanged | Apache-2.0 | `frontend/src/ext/host-bridge.ts`, `backend/app/services/formext_host.py` |
Expand Down Expand Up @@ -52,6 +52,8 @@ The formpdf mark, the stamps and the agent skills are original work of this repo
| tqdm | MPL-2.0 and MIT, files unmodified | engine, OCR dependency |
| pyHanko 0.37.0, pyhanko-certvalidator, asn1crypto, oscrypto, uritools, tzlocal, attrs | MIT | engine, digital signatures: signing, timestamps and validation |
| cryptography | Apache-2.0 or BSD-3-Clause | engine, digital IDs and signature maths |
| keyring 25.7.0, jaraco.classes, jaraco.context, jaraco.functools, more-itertools, jeepney (Linux) | MIT | engine, keeps the key that seals the agent access setting in the system keychain |
| SecretStorage (Linux), pywin32-ctypes (Windows) | BSD-3-Clause | engine, keychain access for keyring |
| cffi, pycparser, idna | MIT-0, BSD-3-Clause, BSD-3-Clause | engine, signing dependencies |
| aiohttp, aiosignal, frozenlist, multidict, propcache, yarl | Apache-2.0 (aiohttp also MIT parts) | engine, signing dependencies (reached only for a timestamp server the person sets) |
| aiohappyeyeballs | PSF-2.0 | engine, signing dependency |
Expand Down
10 changes: 6 additions & 4 deletions 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.60.3" src="https://img.shields.io/badge/version-0.60.3-eef0f4?style=flat-square">
<img alt="version 0.62.0" src="https://img.shields.io/badge/version-0.62.0-eef0f4?style=flat-square">
<img alt="Python" src="https://img.shields.io/badge/python-3.12%2B-3776ab?style=flat-square&logo=python&logoColor=white">
<img alt="TypeScript" src="https://img.shields.io/badge/typescript-vite-3178c6?style=flat-square">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down Expand Up @@ -82,17 +82,19 @@

## Built for agents

83 PDF actions sit in one registry; the window, the command line and the MCP server call the same ones.
90 PDF actions sit in one registry; the window, the command line and the MCP server call the same ones.

```sh
./formpdf run actions # list every action
./formpdf run page_numbers report.pdf --format "Page {n} of {total}" # a job without the window
./formpdf cli list # every window command
./formpdf mcp # MCP server on stdio for Claude Code, Codex and Cursor
./formpdf mcp # MCP server on stdio for Claude Code, Codex, Cursor and Antigravity
```

`.mcp.json`, `.codex/config.toml` and `.cursor/mcp.json` are already wired in this repo. With the engine running, Claude Code can also use `claude mcp add --transport http formpdf http://127.0.0.1:8198/mcp`. Ctrl+J (Cmd+J on a Mac) opens an agent dock with real terminals. See [`AGENTS.md`](AGENTS.md).

**Who decides what agents may do.** Only the FormPDF window can change agent access, open the agent dock, change which Claude program it runs, or answer the question "Allow agents to edit?". Agents and other programs, including `./formpdf run` and `./formpdf cli`, follow the choice the person made: they can read, and they ask before changing anything unless the person allowed it. If agent access is changed outside the app, FormPDF treats it as Ask until the person sets it again in the window (the check uses your system keychain; without one it is skipped). This protects the choice, not your files: any program running as you can still read the files you can. Running from source is weaker than the installed app, because there the first program on this computer to ask the engine for the window's key gets it. Details in [`SECURITY.md`](SECURITY.md).

## Extensions

formpdf loads Form family extensions (API 1): FormPortal installs them, form.ext makes them and runs them from a folder. Each one runs in a sandboxed frame and reaches formpdf only through the calls it was allowed: read the open PDF, apply formpdf's own actions as one undoable step, run window commands, open and save files you choose. They show in the Extensions menu, the Extensions tab and the Mod+K search, and agents reach them with `extensions_list` and `extension_command`. The API, with a real document snapshot and the list of actions, is [`docs/EXTENSIONS.md`](docs/EXTENSIONS.md).
Expand All @@ -103,7 +105,7 @@ formpdf loads Form family extensions (API 1): FormPortal installs them, form.ext
- **Window:** a vanilla TypeScript and Vite app in `frontend/`, with every menu item and shortcut a single command in one catalogue.
- **Desktop:** a Tauri shell in `src-tauri/` wraps the frozen engine as a sidecar.
- **Local data:** everything stays in `~/Formpdf`; override it with `FORMPDF_DATA_DIR`.
- **Tested:** 61 backend tests in `backend/tests`, run in CI.
- **Tested:** the backend tests in `backend/tests`, run in CI.

## Download

Expand Down
34 changes: 33 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check whether the problem is still there.

| Version | Supported |
| --- | --- |
| 0.57.x (latest release) | Yes |
| Latest release | Yes |
| Anything older | No |

## Reporting a vulnerability
Expand Down Expand Up @@ -44,3 +44,35 @@ something outside it could get in:

Bugs that need someone to already control your machine, or to run a modified build
of FormPDF, are ordinary bugs: please open an issue for those.

## What the agent gate guarantees

What FormPDF promises:

- Only the FormPDF window can change agent access (Ask, Allowed, Blocked), change
which Claude program the agent dock runs, use the agent dock (terminals, Claude
Code, Chat), turn on a plug-in, change signing identities or trusted
certificates, or answer "Allow agents to edit?". The same holds for every other
change made through the engine's window routes: opening, editing and saving PDFs,
batch jobs, scans, window commands and the assistant. Each launch of the engine
makes a new key that only the window holds; a change requested without it is
refused. Outside agents use the MCP server instead, where consent applies.
- Outside agents (MCP clients, `./formpdf run`, `./formpdf cli`) follow the
person's choice. Under Ask, a change with no window open is refused. None of them
can change the choice.
- The key Claude Code uses inside the agent dock belongs to that one tab, is never
on a command line or in a plain terminal, and stops working when the tab closes.
- The choice is sealed with a key kept in the system keychain. If settings.json is
changed by hand to loosen it, FormPDF acts as Ask until the person sets it again
in the window. Without a usable keychain the seal is skipped and the stored
choice stands; FormPDF still starts.

What it does not promise:

- It does not protect your files from other programs. Any program running as your
user can read and change the files you can, including PDFs and FormPDF's data
folder, without going through FormPDF.
- Running from source is weaker than the installed app. The installed app hands
the window its key privately; from source the engine gives the key to the first
program that asks for it, which is normally the window you open with
`./formpdf`.
74 changes: 74 additions & 0 deletions agents/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"format": "form-agent-manifest",
"version": 1,
"app": "formpdf",
"mcp": {
"tools": [
"get_context",
"get_agent_access",
"open_pdf",
"pdf",
"render_pages",
"extract",
"save",
"undo",
"answer_question",
"list_commands",
"describe_command",
"run_command",
"run_commands",
"extensions_list",
"extension_command"
],
"read_only": [
"get_context",
"get_agent_access",
"render_pages",
"extract",
"list_commands",
"describe_command",
"extensions_list"
],
"approval_gated": [
"open_pdf",
"pdf",
"save",
"undo",
"run_command",
"run_commands",
"extension_command"
],
"transports": [
"stdio",
"http"
]
},
"skills": [
{
"name": "formpdf-harness",
"sub_skills": []
},
{
"name": "formpdf-skillset",
"sub_skills": []
}
],
"dock": {
"present": true,
"positions": [
"bottom",
"right"
],
"tabs": [
"antigravity",
"chat",
"claude",
"codex",
"cursor",
"shell"
]
},
"extensions": {
"host_api": "1"
}
}
Loading
Loading