When should you use it?
- Vendor onboarding, W-9 and insurance forms filled from documents you already have
- CPA firms preparing client forms from source documents
- HR forms filled from offer letters and IDs
Not for: Forms you sign without reading every field
What do you need, and what do you get?
You need
- A fillable PDF form
- Context documents with the answers
- The app (hosted or run locally) or Claude Code
You get
- Filled PDF form
- List of staged edits to review
How does it work, step by step?
- Choose where to run itUse the author's hosted app, or run the open-source repository locally for sensitive documents.
- Upload the form and contextAdd the fillable PDF plus the documents that contain the answers.
- Review pending editsRead the staged values before committing; this is the step that makes it safe.
- Edit in follow-upsAsk for specific changes; the agent only touches the fields you mention.
The prompt
The original prompt by Jerry Liu (@jerryjliu0), word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in Claude Code and Claude. Values in lime are placeholders.
Original prompt by Jerry Liu (@jerryjliu0)
You are a form-filling agent. Your job is to fill out PDF forms based on user instructions. ## Available Tools: - load_pdf: Load a PDF file - list_all_fields: See all form fields (includes current values if already filled) - search_fields: Find fields matching a query - get_field_details: Get details about a specific field - set_field: Stage a value for a field - get_pending_edits: Review staged edits - commit_edits: Apply all edits and save ## Workflow: 1. Call load_pdf with the PDF path 2. Call list_all_fields to see all fields (and their current values if this is a continuation) 3. For each value to fill or update: a. Search for the matching field if needed b. Call set_field to stage the edit 4. Call get_pending_edits to review 5. Call commit_edits with the output path to save
Exactly as published by Jerry Liu (@jerryjliu0) in Launch post for an open-source form-filling agent (code at github.com/jerryjliu/form_filling_app).
Our adapted version (optional)
Fill in the blanks (optional; the copied prompt uses your values)
Fill the attached PDF form using only the attached documents. 1) List every field on the form. 2) For each field, propose a value and the document it came from. Leave a field blank and say why if the documents don't contain the answer; never guess. 3) Flag any conflicts between documents. 4) Show me all proposed values as a table and wait for my OK before writing the file. In later turns, change only the fields I name. Form: {form_name}. Documents: {context_files}.
What can go wrong?
- It handles personal data; run it locally or with tools your firm has approved.
- Scanned, non-fillable PDFs have no fields to fill.
Our take
Form filling is dull work that's easy to get slightly wrong, and the design choice here that matters is stage-then-review: the agent proposes a value for every field, you see the full list of pending edits, and only then is the file saved. Follow-up turns change only the fields you name, which avoids the usual problem of a chat assistant redoing everything. We left out the post's speed and quality comparisons; the design stands on its own. In our dry run we followed the prompt's workflow with a sample fillable W-9 and a mock vendor profile: it listed eleven fields, staged eight values, left the exemption fields blank as the profile didn't cover them, and asked about one conflicting address before committing. Our adapted prompt adds a rule to never guess a value. For client work, keep the staged-edits table with the filed form so you can show where each value came from if a question arises later.
Where the time goes back: Copying values from documents into form fields becomes a review of staged answers.
FAQ
What's the license?
Why stage edits instead of filling directly?
Source and credit
The original prompt on this page is by Jerry Liu (@jerryjliu0), shown word for word with a link to where it was published. The summary, notes and adapted version are ours.
- Original
- Launch post for an open-source form-filling agent (code at github.com/jerryjliu/form_filling_app)
- Creator
- Jerry Liu (@jerryjliu0)
- Published on
- X / GitHub
- Original date
- Jan 7, 2026
- License
- MIT
- Originally for
- Claude Code
- AI dry run
- Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Stage-then-review respected; no guesses.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
The original is licensed under the MIT License (© Jerry Liu; license as stated in the repository README). The original prompt above is reproduced under that license with its copyright notice; our adapted prompt and summary are our own wording.
Are you the creator? Claim or correct this page.