try it
describe an invention in a sentence and get back a sourced patent brief. use a made-up idea: a search query can itself disclose an invention.
overview
Patrick is what my teammate (cruz-andr) and I built in a day for the AINU Chatathon 2026, in the Misneach track. The prompt was "build the hire an early founder can't afford yet", and entries had to name a specific founder and a specific bottleneck.
Ours: a first-time product founder with no research specialist and no patent budget, who needs to know what already exists before spending months building. Patent records are written in deliberately broad legal language and indexed by classification codes a newcomer has never seen, so founders either skip the search and build blind or stall for weeks. Patrick takes a plain-language description, plans a search, pulls real patents, quotes the passages that touch the idea, suggests alternative approaches, and hands back a brief to take to a patent attorney. It turns the first paid hour with a lawyer from orientation into answers.
how it works
rules that don't bend
A tool that talks about other people's legal rights can do real damage by sounding confident. So the whole project was built around a few rules that hold in the code, the model prompts, the interface and the pitch.
what i built
textContent, never as HTML. I later rebuilt the
landing page around the investigation when we rebranded as Patrick.
pdflatex with shell escape
and file access turned off, so a malicious patent abstract can't run commands.
My teammate built the backend: the patent search provider, the model integration and its output validation, candidate ranking, an authenticated shared gateway with access codes and a job queue, and the public deploy.
construction
There are no runtime dependencies at all: native HTTP and fetch on the server, plain ES modules in the browser. The model runs through the Codex CLI in a locked-down mode: read-only sandbox, no shell, no browser, no plugins, and input only over stdin. One model call runs at a time with a two-minute timeout, and the shared gateway queues the rest. 62 automated tests cover the backend without touching a live model or the patent provider.
architecture
Vercel serves the frontend and a short proxy function that keeps its key server-side, so visitors
need no account.
Everything else runs on an always-on Mac mini under launchd. Reports live in memory for an hour and
disappear on restart, and the coverage limits (three searches, details for the top three records)
are shown in every report rather than hidden.
Source? It's on GitHub.