Juridisk product docs: PRD, roadmap, agent architecture, and AI guardrails

fpvetleseter dropped 1,824 lines of planning artifacts in one commit - a full product spec, a three-agent architecture document, and a CLAUDE.md with project-specific AI development rules. None of it is code, but the AGENTS.md is worth reading if you're designing multi-agent topologies on top of mike.

i18nworkflow

The commit message says "Add desktop project docs," which is telling - these were written offline before any code landed. The repo is being repositioned from upstream willchen96/mike into Juridisk, a Norwegian-language SaaS for AS founders and SMEs priced at NOK 299/mo, with a Stripe-gated free tier capped at roughly 10 queries/day.

The architecture is internally coherent. AGENTS.md specifies a three-agent topology: Router dispatches to either a Legal Assistant Agent (general questions or with document context), a Document Analysis Agent, or a Drafting Agent. All agent calls run parallel Lovdata retrieval first, then hit the rate limiter, then the agent prompt, then stream SSE to the frontend. The caching policy in §2.1 is explicit - search results cached 1 hour, full section text 24 hours, keyed by sha256(query). Chunking strategy in §2.2 is 800 tokens with 100-token overlap; documents under 8,000 tokens get the full text injected; above that threshold it falls back to pgvector similarity search on document_chunks for top-5 chunks.

The CLAUDE.md is a useful artifact on its own: it sets guardrails for AI-assisted development specific to this codebase - things like never logging full document text, always bumping prompt version constants before editing a system prompt in place, and keeping Lovdata full text out of PostgreSQL. That pattern is portable to any fork using Claude for development.

Direct import is unlikely - the PRD is Norway-specific and the pricing assumptions don't translate. But as a reference design for "small-team productization on top of mike," the handoff protocol in AGENTS.md and the chunking/caching policy are worth reading. Dates in the roadmap are aggressive for one person; treat as stated intent.

So what Worth a look if you're designing a multi-agent legal assistant and want a concrete example of handoff protocols, caching policy, and per-agent prompt versioning. The CLAUDE.md structure is reusable as a template for AI-assisted development guardrails. Skip if you want code - this commit is all planning.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from fpvetleseter/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
c2e41992 Add desktop project docs fpvetleseter 2026-05-08 ↗ GitHub

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-203.md from inside the repo you want the changes in.

⬇ Download capture-thread-203.md