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.
Nine templates · buy à-la-carte or bundled
NovelLogic Labs Bundle
M1 + M2 + M3 + M4 — the full LLM-systems toolkit at 33% off the à-la-carte price.
Bundle
Four production Claude templates
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
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
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
What each template actually is
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.
- Everything in M1–M4: LLM-as-judge, guardrailed MCP server, safe agent runtime, Cohere RAG.
- À-la-carte $446 → $299 flat (33% off).
- Team tier (3 developers): $897.
- Eval Harness · $99Guardrailed MCP Server · $99Safe Agent Scaffold · $149Cohere RAG Pipeline · $99
- 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.
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.
- 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.
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 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.
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 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.
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).
- 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.
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.
- 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.
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.
- 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.
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 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.
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.
- 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.
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.
- 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.
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.