Templates · production LLM plumbing

The systems behind the demos.
Now templates you own.

Nine templates extracted from real production systems — de-branded, secret-scrubbed, and commercially licensed. Each ships a hermetic test suite, a runnable example, and a quickstart. Buy them individually, or take the four Python modules as the bundle.

On the record90% judge pass · 30 cases · $0.004/caserecall@3 = 1.0041/41 MCP tests
The catalog

Nine templates · buy à-la-carte or bundled

flagshipBundle

NovelLogic Labs Bundle

M1 + M2 + M3 + M4 — the full LLM-systems toolkit at 33% off the à-la-carte price.

Labs
Bundle

Four production Claude templates

Module 01
$99

Eval Harness

Rubric-driven LLM-as-judge with drift detection and per-run cost / latency / verdict metrics.

  • 01LLM-as-judge
  • 02Versioned rubrics
  • 03Prompt-drift detection
  • 04Python
90% judge pass · 30 cases · $0.004/case
Module 02
$99

Guardrailed MCP Server

Production MCP server — auth, a typed tool registry, a fail-closed guardrail pipeline, and an audit log.

  • 01Scoped read/write auth
  • 02Copier scaffold
  • 03Fail-closed guardrails
  • 04Python / FastAPI
41/41 tests · live server verified
Module 03
$149

Safe Agent Scaffold

Safety-first agent runtime — human-in-the-loop approval, injection defense, span-level tracing.

  • 01ReAct planning
  • 02Human-in-the-loop
  • 03Tool routing
  • 04Guardrails
  • 05Python
41/41 tests · injection-defense + HITL
Module 04
$99

Cohere RAG Pipeline

RAG template with real Cohere embed + rerank, pgvector, and a recall@k retrieval-eval.

  • 01Cohere embed + rerank
  • 02pgvector
  • 03recall@k eval
  • 04Python
recall@3 = 1.00 (offline stub)
Standalone
$79

ClerkBridge

Additive dual-auth: Clerk session cookie for the app, a JWT bearer for API / MCP clients.

  • 01Dual-token + cookie auth
  • 02Clerk v5
  • 03Copy-in TypeScript
  • 04Type-checks clean
~110 lines · tsc --noEmit clean
Standalone
$49

Structured-Output Helper

callClaudeJSON<T>() — a memoized client that returns parsed, typed JSON with a clean error path.

  • 01callClaudeJSON<T>
  • 02Typed JSON output
  • 03Single-file
  • 04TypeScript / Anthropic SDK
single-file · build + typecheck clean
Standalone
$149

RevenueCat Kit

Two-halves RevenueCat integration — a Capacitor/React purchase + entitlement client and a FastAPI webhook that keeps entitlement state correct.

  • 01Purchase + restore client
  • 02S2S webhook receiver
  • 03Out-of-order safe
  • 04Python / TypeScript
30/30 tests · offline demo, no account
Standalone
$169

Agent over MCP

Safe Agent Scaffold + Read-Scoped MCP Tools

  • 01Full Safe Agent Scaffold runtime
  • 02READ-scoped MCP tools
  • 03Injection flagged + redacted
  • 04Resumable HITL
  • 05Python
24/24 tests · zero-config offline
Details

What each template actually is

Flagship bundlePython 3.12+ · 4 modules

NovelLogic Labs Bundle

The four Python modules, one price.

The flagship offer: all four Python modules — the Eval Harness, the Guardrailed MCP Server, the Safe Agent Scaffold, and the Cohere RAG Pipeline — for one flat price. Bought à-la-carte that's $446; the bundle is $299, a 33% saving. They're built to compose: the RAG pipeline exports eval cases straight into the judge, and the MCP server + agent scaffold share the same guardrail posture.

$299 flat · save $147
Requirements
Python 3.12+ (3.13 verified) across all four modules; per-module API keys where a live path is used (each module's offline path runs without keys).
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
Module 01Python 3.12+ · uv

Eval Harness

LLM-as-judge, measured.

A rubric-driven LLM-as-judge with multi-axis / gated scoring, per-run cost, latency (p50/p95) and verdict metrics persisted to SQLite, prompt-drift detection, and Anthropic + generic-HTTP + deterministic-passthrough adapters. Prove your AI's answers are good — measured, not assumed.

90% judge pass · 30 cases · $0.004/case
  • Measured run: 90% judge pass-rate (27/30, 0 judge errors) at $0.0040/case.
  • 64/64 tests pass; the offline example scores 30 cases with no API key.
  • Ships a synthetic customer-support-triage dataset — safe to run out of the box.
Requirements
Python 3.12+ (3.13 verified), uv. ANTHROPIC_API_KEY only for the live-judge path (the offline / passthrough path needs none).
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
Module 02Python 3.12+ · FastAPI + Copier

Guardrailed MCP Server

MCP with guardrails baked in.

A production MCP server: Streamable HTTP + SSE, bearer / API-key auth with scoped read/write, a typed @tool registry (JSON Schema derived from Pydantic), and a fail-closed guardrail pipeline — rate-limit → allowlist → validate → execute → audit — with a structured audit log. Plus a Copier scaffold to stamp out new servers.

41/41 tests · live server verified
  • 41/41 tests pass; a live uvicorn run drove tools/list → tools/call → guardrail rejection → GET /audit.
  • Copier scaffold generates a fresh, guardrailed server in minutes.
  • The strongest turnkey package of the set.
Requirements
Python 3.12+ (3.13 verified). Set MCP_BEARER_TOKEN / MCP_API_KEY (placeholders in .env.example).
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
Module 03Python 3.12+ · uv

Safe Agent Scaffold

Agents that pause before they act.

A safety-first agent runtime: ReAct + Plan-and-Execute behind one interface, a confidence-floor gate, async resumable SQLite-backed human-in-the-loop approval, prompt-injection defenses (untrusted-data delimiting + scanner, AST-only safe_eval), and Sentry span-per-step tracing. Ships a documented threat model and a SOC-triage case study inline.

41/41 tests · injection-defense + HITL
  • 41/41 tests pass; the offline example runs end-to-end — injection flagged + redacted → HITL pause → side-effect only after approval.
  • The approval gate is resumable and persists to SQLite.
  • Top price band — justified by the security and threat-model depth.
Requirements
Python 3.12+ (3.13 verified), uv. ANTHROPIC_API_KEY + optional SENTRY_DSN. The offline example runs on a stub LLM — no key required.
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
Module 04Python 3.12+ · Cohere + pgvector

Cohere RAG Pipeline

Retrieval you can measure.

A RAG template with an Embedder / Reranker / Synthesizer provider abstraction — real Cohere embed-english-v3.0 + rerank-english-v3.0, a deterministic offline stub provider, a pgvector or in-memory store, configurable chunking, and a recall@k retrieval-eval that exports cases in a judge-harness-compatible format (it pairs naturally with M1).

recall@3 = 1.00 (offline stub)
  • The offline stub path runs with no key and no database — recall@3 = 1.00 on the sample corpus.
  • Full path: real Cohere embed + rerank over pgvector.
  • Exports eval cases that feed straight into the M1 judge.
Requirements
Offline: nothing. Full path: COHERE_API_KEY + a pgvector-enabled Postgres (DATABASE_URL); optional ANTHROPIC_API_KEY for the synthesizer.
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
StandaloneTypeScript · Next.js + Clerk

ClerkBridge

Cookie + bearer auth for Next.js.

An additive auth layer: the web app authenticates via a Clerk session cookie; an external MCP / API client presents a long-lived Clerk JWT-template bearer token; both resolve to the same Clerk user id. Middleware short-circuits bearer requests before the cookie gate. ~110 lines, heavily commented — the best-documented small asset in the set.

~110 lines · tsc --noEmit clean
  • Ships as raw .ts for copy-in — no build step by design.
  • getUser() is a stub you wire to your own DB (Prisma / Drizzle / Kysely / REST) — flagged in code and README.
  • Clerk-coupled; buyers not on Clerk need adapter work.
Requirements
A Next.js app + a Clerk account (peer deps @clerk/nextjs >=5, next >=13.4).
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
StandaloneTypeScript · Anthropic SDK

Structured-Output Helper

Typed JSON out of Claude, every time.

callClaudeJSON<T>() — a memoized Anthropic client that calls Claude, concatenates text blocks, strips ```json fences and prose, and JSON.parses the result, with a typed AnthropicError for deterministic fallback. Zero domain coupling; a single-file library.

single-file · build + typecheck clean
  • Builds to .js / .cjs / .d.ts; typecheck clean.
  • Asserts T (it does not validate) — the README shows layering Zod for untrusted output.
  • Default model claude-opus-4-8, overridable per-call or via the ANTHROPIC_MODEL env var.
Requirements
Node ≥18; ANTHROPIC_API_KEY.
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
StandalonePython 3.12+ · Capacitor + FastAPI

RevenueCat Kit

Subscriptions that stay correct.

The two halves of a RevenueCat subscription integration, extracted from a shipped iOS/Android app. Client: a Capacitor/React module with an idempotent configure guard, offerings fetch with backoff, purchase / restore / entitlement helpers, and a store-review-safe example paywall. Server: a FastAPI webhook that maps RevenueCat's lifecycle events onto durable entitlement state — constant-time shared-secret auth, a swappable entitlement store, and application that is idempotent and safe against out-of-order delivery. The webhook is the half most integrations skip, and it's the half that decides whether a paying user keeps access.

30/30 tests · offline demo, no account
  • 30/30 tests pass; the offline demo drives purchase → cancel → expire with no network and no RevenueCat account.
  • Cancellation does not revoke — only expiration does. Most integrations get this backwards and cut off paying users mid-cycle.
  • Resolves pre-login purchases via RevenueCat's alias mechanism — reading only app_user_id drops the sale and the payer gets nothing until renewal.
Requirements
Python 3.12+ (3.13 verified) for the webhook; an existing Capacitor app + @revenuecat/purchases-capacitor for the client. App Store Server Notifications V2 + Google Play RTDN must be configured so RevenueCat has events to forward. The offline demo and tests need none of the above.
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
StandalonePython 3.12+ · MCP over HTTPS

Agent over MCP

The Safe Agent Scaffold, now reaching its tools over MCP.

The full Safe Agent Scaffold runtime — ReAct + Plan-and-Execute behind one interface, a confidence-floor gate, resumable human-in-the-loop approval, prompt-injection defense, a resumable SQLite store, and span-per-step tracing — vendored in-tree, plus a READ-scoped retrieval tool surface that speaks the Model Context Protocol to any conforming RAG MCP server. It's a superset of the Safe Agent Scaffold, not a lighter alternative: the entire runtime ships intact. Retrieved chunks are treated as untrusted input, the tool surface is pinned to two READ-only tools, and it carries no write key. Runs fully offline on a stub brain + a recorded MCP transport — no network, no keys.

24/24 tests · zero-config offline
  • Includes the full Safe Agent Scaffold runtime, vendored in-tree — a superset, not a lighter alternative. 24/24 tests pass on Python 3.12 and 3.13.
  • READ-key-only by construction: the tool surface is pinned to rag_search + rag_collections, so no write/ingest tool is reachable and the app carries no write key.
  • Retrieved chunks are untrusted input — an injected directive in a chunk is flagged and redacted before it reaches the model or the final answer. The offline path runs zero-config, no keys.
Requirements
Python 3.12+ (3.13 verified), uv. The offline path (stub brain + recorded MCP transport) needs no network and no keys. Live path: a RAG MCP server URL + a READ-scoped MCP key (X-Api-Key), and ANTHROPIC_API_KEY for the real LLM brain.
License
Commercial EULA · single-dev + team (3×) · no resale, no OSS republication.
Licensing

Commercial license (EULA) — licensed, not sold. No resale or redistribution of the template itself, and no public / OSS republication of the source. Every dependency is permissively licensed (MIT / Apache-class); no GPL / AGPL / copyleft. Single-developer and team (3×) tiers.

FAQ
How do I get the code?
Checkout is hosted; you get an instant download plus a license key on purchase.
Do the dependencies have copyleft?
No. Every dependency is permissively licensed (MIT / Apache-class) — no GPL / AGPL.
Team use?
Each SKU has a 3× team tier; the bundle's team license is $897.
Want it wired into your stack?

These templates are the parts. If you'd rather have the finished system — custom AI agent, RAG, or auth infrastructure integrated into your codebase — that's a build engagement, typically $2,000–4,500.