|
| 1 | +# FactScribe Paper Workbench (`factscribe`) |
| 2 | + |
| 3 | +A local workbench for writing papers inside MiniMax Code. It opens your manuscript projects, |
| 4 | +shows the check report, the fact ledger and the knowledge base side by side, and gives the |
| 5 | +assistant seventeen read-mostly tools. Every edit the assistant suggests arrives as a **proposal** |
| 6 | +that you approve in the page before a single byte is written to your manuscript. |
| 7 | + |
| 8 | +**Human in the loop.** The assistant has no interface that writes to your text. Writing happens |
| 9 | +only when you click *Adopt* on a diff card. Numbers and citations stay pinned to the ledger: |
| 10 | +a value that is not in the ledger cannot be introduced by the assistant. |
| 11 | + |
| 12 | +## What it solves |
| 13 | + |
| 14 | +The three things that quietly break a paper are numbers that do not match the ledger, citations |
| 15 | +that do not match the source, and two language versions that no longer say the same thing. |
| 16 | +FactScribe turns them into readings you can check: |
| 17 | + |
| 18 | +- every number and citation in the text is bound to a ledger entry with a source and a location; |
| 19 | +- a fingerprint gate refuses to overwrite a file that changed after the diff you are looking at; |
| 20 | +- bilingual drafts are compared entry by entry against the ledger and the bibliography. |
| 21 | + |
| 22 | +## Capabilities |
| 23 | + |
| 24 | +**Page** (route `/workbench`) |
| 25 | + |
| 26 | +- Project and disk list (a project may hold several language disks, such as `paper` / `paper-zh`). |
| 27 | +- Section rendering with protected chips for `\fact{}`, `\cite{}` and bound numbers. |
| 28 | +- Check report (summary plus findings), style-gate readings, bilingual drift, evidence lock, |
| 29 | + writing brief, venue layout. |
| 30 | +- Fact ledger queries and knowledge-base search. |
| 31 | +- Assistant panel that runs on the Host's own model, with a Chinese / English interface switch. |
| 32 | + |
| 33 | +**Assistant tools** (17, over MCP) |
| 34 | + |
| 35 | +Read-only (12): `fs_status`, `fs_get_outline`, `fs_read_section`, `fs_get_report`, |
| 36 | +`fs_get_style`, `fs_mirror_check`, `fs_get_evidence_status`, `fs_get_brief`, `fs_get_venue`, |
| 37 | +`fs_query_facts`, `fs_search_kb`, `fs_list_proposals`. |
| 38 | + |
| 39 | +Proposals only (5): `fs_propose_edit`, `fs_propose_evidence_freeze`, |
| 40 | +`fs_propose_evidence_unfreeze`, `fs_propose_add_fact`, `fs_propose_export_bundle`. |
| 41 | + |
| 42 | +## Install |
| 43 | + |
| 44 | +Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins |
| 45 | +directory as `factscribe/` (`~/.minimax/plugins/factscribe/` by default), then restart MiniMax |
| 46 | +Code and ask the Agent to "Open the FactScribe paper workbench". |
| 47 | + |
| 48 | +MiniMax Code 3.1.11 and later can also import the package straight from a Git repository: paste the |
| 49 | +repository URL, pick the package directory, and confirm the preview. |
| 50 | + |
| 51 | +On first use the page asks for your paper root directory: any directory that contains a |
| 52 | +`factscribe.toml` is treated as a paper project. It can be changed later from the settings page. |
| 53 | + |
| 54 | +## Tested environment |
| 55 | + |
| 56 | +- MiniMax Code 3.1.16 on macOS 26.6.2 (arm64). Installed from this directory, opened through the |
| 57 | + Agent, page rendered, and all 17 MCP tools called end to end over the Host's MCP runtime. |
| 58 | +- Node 26.7 and Python 3.14 on the same machine. The Python engine is vendored inside the |
| 59 | + package, so nothing has to be installed. |
| 60 | +- Minimum client version: 3.1.2. The package declares `agentAccess: ["session.run"]`, which |
| 61 | + needs 3.1.2; no `engines` bound is declared, so clients from 3.1.2 on still install it and |
| 62 | + only lose the assistant model picker when their client does not expose the model catalogue. |
| 63 | +- Not verified: Windows and Linux hosts. The package ships no platform-specific binary and the |
| 64 | + Node entry uses only Node built-ins, but no run on those platforms has been done. |
| 65 | + |
| 66 | +## Data & access |
| 67 | + |
| 68 | +- **Files read**: the paper root directory you configure (and up to three levels below it) to |
| 69 | + discover projects, render sections, compute the check report and list knowledge-base files; the |
| 70 | + package's own payload directory, read-only at runtime. |
| 71 | +- **Files written**: the plugin's private `dataDir` — `config.json` (your paper root), |
| 72 | + `proposals/` (proposal records) and `custom-models.json` (an API key you typed yourself, mode |
| 73 | + 0600). Inside your paper directory, only where you click: `sections/*.tex` (atomic write plus a |
| 74 | + `.bak` copy, refused when the file changed underneath) and `facts/draft/` for imported drafts. |
| 75 | + Opening a disk also records `last_opened` in that disk's `factscribe.toml`. |
| 76 | +- **Network hosts**: none by default. The Node service and the Python engine listen on loopback |
| 77 | + only (`127.0.0.1`). If you add a custom model in the panel, the Node shell sends the prompt to |
| 78 | + the OpenAI-compatible endpoint you typed; the host Agent turn is run by the Host on your |
| 79 | + MiniMax Code account and plan. |
| 80 | +- **Processes spawned**: `python3 -B -m factscribe workbench --root <your root> --port 0 --json |
| 81 | + --no-browser` (the engine; killed when the Mini App stops), `factscribe audit` (read-only |
| 82 | + re-run of the check report), `tectonic` (only for the optional PDF render button) and macOS |
| 83 | + `open` (only for the "open folder" button). |
| 84 | +- **Agent turns**: the panel runs Host Agent turns through `agentAccess: ["session.run"]`. The |
| 85 | + model is the one MiniMax Code is configured with, on the Host's account and plan; the plugin |
| 86 | + never reads your API keys or the Host configuration. |
| 87 | +- **Conversations read**: none. The package declares no `session.read`, so it cannot list, read |
| 88 | + or observe your conversations; each turn runs in the session the Mini App itself started. |
| 89 | +- **Tools called**: none. The package declares no `toolAccess`, so it never calls Host MCP tools |
| 90 | + or Connectors; a tool call requested by the model in the panel is refused and the model is told |
| 91 | + to answer from the material instead. |
| 92 | +- **Microphone, camera, notifications**: not used. |
| 93 | +- **Host navigation read**: not used. |
| 94 | +- **State**: the Host-owned plugin data directory, `~/.minimax/v2/plugin-data/liveboards/factscribe/` |
| 95 | + on this machine. Treat that location as opaque; the plugin reads its own `config.json`, |
| 96 | + `proposals/` and `custom-models.json` from there and writes nothing else outside it and your |
| 97 | + own paper directory. |
| 98 | + |
| 99 | +## MCP tools and the placeholder address |
| 100 | + |
| 101 | +The package declares one MCP server, `factscribe`, in `servers.mcp.json`, and points |
| 102 | +`miniapp/miniapp.json` at it with `mcpEndpoints`. The URL in `servers.mcp.json` |
| 103 | +(`http://127.0.0.1:9/mcp/factscribe`) is the fail-closed placeholder MiniMax Code documents for |
| 104 | +a Mini App that serves its own MCP server: port 9 never answers, and the Host rewrites the address |
| 105 | +to the running instance when it adopts the Mini App. The two declarations belong together — the |
| 106 | +Host checks that every `mcpEndpoints.server` is declared in `plugin.json.mcpServers`. No remote |
| 107 | +third-party MCP server is declared. |
| 108 | + |
| 109 | +## Files |
| 110 | + |
| 111 | +```text |
| 112 | +.minimax-plugin/plugin.json Plugin manifest |
| 113 | +package.json Mini App declaration |
| 114 | +servers.mcp.json MCP server served by the Mini App |
| 115 | +icon.png Plugin icon |
| 116 | +miniapp/miniapp.json Payload roots, Node entry, page route, MCP endpoint |
| 117 | +miniapp/client/ The page: index.html, app.js, app.css |
| 118 | +miniapp/node/server.mjs Node entry: start(context) -> { dispose } |
| 119 | +miniapp/node/engine/ The vendored FactScribe engine (Python) |
| 120 | +``` |
| 121 | + |
| 122 | +## License |
| 123 | + |
| 124 | +[MIT](./LICENSE) |
0 commit comments