Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Harness Engineering for AI Agents

This repository is the technical companion to Richmond Alake's O'Reilly live workshop, Harness Engineering for AI Agents. It turns the workshop's memory-first architecture into runnable code, narrated notebooks, interactive appbooks, staged exercises, and a production-oriented deployment path.

The example system is ERPA, a fictional retail-planning assistant built twice against the same synthetic Kata dataset:

Path Approach Best for
MemoRizz build A packaged harness with the major decisions made for you Learning the anatomy of a complete harness
Custom build An explicit, modular LangGraph-style harness Understanding how each layer is assembled

Both paths demonstrate working, episodic, semantic, and procedural memory; trusted tools and progressive capability disclosure; sandboxed execution; semantic caching; and observable recall -> decide -> write traces.

Quick start

Local workshop mode is deterministic, credential-free, and uses generated synthetic data. It requires Python 3.11 or newer.

python -m venv .venv
source .venv/bin/activate
python -m pip install \
  -r part_1/harness_done_for_you/memorizz/assistant/appbook/requirements.txt \
  -r part_1/custom_harness/appbook/requirements.txt
python part_1/tests/smoke_test.py

Start either interactive appbook:

# Packaged MemoRizz harness: http://127.0.0.1:8000
cd part_1/harness_done_for_you/memorizz/assistant/appbook
./run.sh

# Or, from the repository root, run the custom harness on port 8001
cd part_1/custom_harness/appbook
PORT=8001 ./run.sh

For the narrated exercises, open erpa_memorizz_complete.ipynb or erpa_custom_complete.ipynb in Jupyter.

Repository guide

Optional live stack

The local profile needs no keys. The live paths add model providers, Oracle AI Database, MemoRizz/OAMP memory, E2B, Notion MCP, Tavily, LangSmith, and durable LangGraph checkpointing. Copy .env.example to .env, supply only the services you intend to use, and never commit that file.

The complete custom stack can be launched with Docker Compose after setting ANTHROPIC_API_KEY, E2B_API_KEY, LANGSMITH_API_KEY, ORACLE_PASSWORD, and ORA_AGENT_PWD:

cd part_1/custom_harness/deploy
docker compose up --build

See the deployment guide for details.

Safety and scope

All customer and commercial records are synthetic. The local sandbox exposes only fixed workshop operations: it cannot execute arbitrary shell commands or make unrestricted network requests. The examples do not execute payments, mutate the historical business dataset, or autonomously approve commercial decisions.

About

Technical companion to the O'Reilly Harness Engineering for AI Agents workshop

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages