Your Compliance Agent Should Quote the Law, Not Remember It
This week a project called Pandex reached the Hacker News front page with a simple pitch: "Real law for AI agents." It offers legislation and court decisions from official publishers through one API and one MCP server, so an agent in Claude, Cursor or another MCP client can search the law and cite it.
We have no relationship with Pandex and haven't tested its coverage. What caught our attention is the design choice it represents. Many companies are wiring agents into HR, finance and compliance work. In those areas a fluent answer that's wrong costs more than no answer at all.
What the launch actually offers
According to its homepage, Pandex holds about 2.8 million official documents and 37 million citations linked to their text. It also keeps every past version of each article, along with the date each version took effect. Its own example is a German employment question. The agent searches, finds § 626 (2) BGB, and answers that a dismissal without notice must happen within two weeks of the employer learning the facts. The answer shows the official source text, the fact that the version is in force today, and how many court decisions cite that paragraph.
The coverage claim is just as specific: "33 of 41 institutions held complete." The site lists, institution by institution, what it holds and what it doesn't. In the Hacker News thread, the first request was for another country's law, with a condition attached: the user needed to be sure the data was the latest and correct.
That condition is the right test for any agent doing regulated work.
Why recall is the wrong default
A model's knowledge of the law comes from training data, and that data has a cutoff. It is also blended. The model has read the statute, blog posts paraphrasing it, outdated versions and forum guesses, and it can't tell you which one it is drawing on. For drafting an email that is usually fine. It isn't fine for deciding whether a dismissal deadline has passed or which VAT rule applied on the date of an invoice.
Point-in-time matters more than people expect
Many business questions are about the past. Was this contract valid when it was signed? Which rule applied to last quarter's filing? An agent needs the version that was in force on that date, not just today's text. Versioned sources make that a lookup instead of a guess.
A citation is something a human can check
When an agent returns the paragraph it relied on, along with its source and version, a reviewer can check it in seconds. An answer without a citation has to be re-researched from scratch, and then the automation hasn't saved anyone time.
The pattern, whatever tool you use
Whether or not you use Pandex, the same structure works for any agent that applies rules: legal, tax, internal policy or a supplier contract.
- Put the rules behind a tool, not in the prompt. Expose them through MCP or an API the agent has to call. Its answer should come from the retrieved text, not from memory.
- Return source, version and date with every answer. Make these required fields in the agent's output. If the agent can't fill them in, the answer goes to a person.
- Publish your gaps. Pandex lists what it doesn't hold. Your agent should know its boundaries too: which jurisdictions, which policy set, which contract versions. Questions outside those boundaries should be refused, not improvised.
- Keep the decision with a person when it matters. Grounding cuts down on invented answers. It doesn't make the agent accountable for a dismissal, a filing or a refusal. Use the agent to prepare the case and let a person sign it.
Key Insight
For regulated work, the agent's value isn't knowing the rule. It's finding the right version of the rule fast and showing its working, so a person can approve it in a minute instead of researching it for an hour.
Where this leaves a business automating compliance work
The interesting change is that sources of truth are starting to ship in a form agents can use directly, as MCP servers with versions and citations, rather than as websites built for people to browse. That makes it much cheaper to build an agent that quotes the rules. It doesn't remove the need to check coverage, freshness and who signs off.
If you're mapping which of your processes could be automated safely, and where an agent needs a verified source before it acts, we're happy to talk it through.
Sources
- Pandex: Real law for AI agents (homepage, accessed 24 November 2026; coverage figures, versioning, MCP endpoint, § 626 BGB example)
- Show HN: Pandex – Official European Law for AI Agents, over MCP (Hacker News discussion, November 2026)
- § 626 BGB, Fristlose Kündigung aus wichtigem Grund (official German federal law portal)
