AI Engineering Labs

Code for the articles on this site. Each card summarizes what the project builds and measures; setup and run commands live in each repository’s README.

Labs for the series

  • Market Analyst Agent

    Series: Engineering the Agentic Stack

    A LangGraph research agent that fetches market data and writes reports, serving as the series’ reference implementation.

    Result: No benchmark. Automated tests verify tool calls on synthetic data and the guardian’s approval routing without live model calls.

    Repository · Part 1

  • Agent Harness Lab

    Series: Recursive Harness Engineering

    A LangChain support assistant for refunds, deliveries, and account changes, comparing five workflow and agent designs across four articles.

    Result: On 32 new messages, agent designs pass 81% to 88% of runs vs. 31% for the plain workflow at about six times its cost; an automated improvement loop on gpt-6.2-sol then raised the workflow from 44% to 90% on 32 held-out test tasks.

    Repository · Harness design (v0.1.2-a1) · Agent or workflow (v0.2.1-a2) · Evaluating a harness · Closing the loop

  • harness-evals

    Series: Recursive Harness Engineering

    A standard-library Python package for evaluating an agent or workflow with the model held fixed: pass^k, confidence intervals, frontier plots, failure views, and adoption guardrails.

    Result: No standalone benchmark. Used to grade Agent Harness Lab’s saved runs, with a simulated refund-desk example included.

    Repository · Evaluating a harness

  • harness-loop

    Series: Recursive Harness Engineering

    A Python library that improves a harness in a closed loop with a fixed model: a coding agent edits an isolated copy, harness-evals scores it on hidden validation tasks, and a rule decides whether to keep each change.

    Result: On its SQL assistant with gpt-6.2-sol, two campaigns with feedback raised held-out success on 36 questions from 58% to 90% and 100%, while two control campaigns without feedback kept zero of six changes.

    Repository · Closing the loop

  • Paper Math Skills

    Series: Reading the Math in AI Papers

    Two agent skills built from Part 1’s method: read-paper-math explains equations from a pinned arXiv paper with runnable NumPy checks, and check-paper-math verifies a reading against the paper and official code.

    Result: A companion repository holds worked readings and runnable checks for all 15 equations covered in Parts 2–4.

    Skills · Readings · Part 1

More labs

  • Memory Tuning Lab

    A small closed improvement loop where a fixed LLM proposer tunes a memory tool’s settings against deterministic checks on 20 synthetic stories.

    Result: Three campaigns rose from 13 to 20 of 20 in 12 model calls (about USD 0.04), though an exhaustive sweep of all 384 configs found 16 passing ones in under a second.

    Repository · Article

  • RAG Evals Demo

    Notebooks and modules computing retrieval, reranking, and generation metrics on the SciFact corpus with embedded Qdrant, plus sweeps over chunking, embeddings, and LLMs.

    Result: No SciFact benchmark reported. Unit tests pin the article’s hand-calculated examples (Recall@5 = 0.750, MRR = 0.625, nDCG@5 = 0.627).

    Repository · Article

  • TypeScript Agent Service

    A pnpm monorepo for Python ML engineers shipping TypeScript: two agent loops, a streaming API, Postgres run history, a background worker, and an MCP server.

    Result: Includes 40 tests, 36 of which run offline in under a second without Postgres or an API key.

    Repository · Article

  • Search Ranking Stack

    End-to-end search pipeline on a sample of Amazon ESCI product data, measuring BM25, dense retrieval, hybrid fusion, cross-encoder reranking, and LLM reranking stage by stage.

    Result: Hybrid fusion reaches NDCG@10 of 0.628 (vs. 0.585 BM25 and 0.611 dense); Recall@100 caps at retrieval (0.842) and later stages cannot raise it.

    Repository · Article

  • Model Compression Demo

    A CLI that plans LLM quantization for a chosen model and target hardware, generating recipes, dry runs, serving commands, and benchmark plans for vLLM, LLM Compressor, and TensorRT-LLM.

    Result: No measured benchmark; the article cites external results while the repo generates plans to measure your own hardware.

    Repository · Article