SuperAPI AI Directory

awesome-agent-architecture

awesome-agent-architecture is an open-source tutorial repository for learning AI agent architecture from scratch. It is built around the core mechanisms of constructing modern AI agents around LLMs, with a focus on explaining how the harness (execution framework) turns the model's reasoning into controlled actions: running tools, maintaining state across calls, gating side effects, and coordinating loops. The repository is organized into eight layers and 23 runnable sections, each containing a README.md and runnable src/ code. The code evolves cumulatively section by section, and the diff between adjacent sections clearly shows the mechanism newly added in that section. The content covers topics such as loops, tools, memory, permissions, context, tasks, and interfaces. It is accompanied by in-depth repositories such as learn-agent-memory, learn-deepseek-harness, and EvalGrill. It is suitable for developers who want to systematically understand the differences between coding tools, chat assistants, and autonomous runners.

Open website

About this tool

Purpose

awesome-agent-architecture is an open-source repository for learning AI agent architecture from scratch. It explains how modern AI agents are built around LLMs, with the core idea being: the model is responsible for reasoning, while the harness (execution framework) turns reasoning into controlled actions—running tools, maintaining state across calls, gating side effects, and coordinating loops, which a single model call itself cannot do.

Main Capabilities

The repository explains the harness section by section by layer: loop, tools, memory, permissions, context, tasks, interfaces. Each section is self-contained and organized using a unified four-part perspective: problem, mechanism, implementation in real systems, failure modes.

The repository contains 24 section documents from 00-harness-thesis/ to 23-evaluation/, with each section directory named NN-name/ and containing a README.md. Sections 1 through 23 also come with runnable src/, and the code accumulates section by section, with each section adding one mechanism and evolving loop.py, so the diff between adjacent sections intuitively shows the changes.

The research systems include: claude-code (used for mechanism naming and implementation paths), hermes-agent, mini-swe-agent, deepseek-harness, all of which are open-source (MIT) or backup-nature research subjects.

How to Use

The repository's suggested learning path: read the sections in order, with each section building on the previous layer; for runnable sections, first read src/loop.py, then run its demo.py; compare a section's src/ with the previous section, and the diff is the mechanism newly added in that section.

Running the demos: Sections 1 through 23 provide runnable demos, configured all at once from the repository root. Locked dependencies are written in requirements.txt; .env is ignored by git and contains ANTHROPIC_API_KEY, optional ANTHROPIC_MODEL, and optional ANTHROPIC_BASE_URL. Each runnable section contains test.py (offline checks, no key required) and demo.py (live demo against the API).

Applicable Scenarios

Suitable for those who want to systematically understandthe differences between coding tools, chat assistants, and autonomous runners, because the main difference among these three lies in the choice of harness. It is also suitable for contributors who want to add system cases according to a unified structure, deepen the mechanism of a certain section, or submit sourced correctness fixes.

Companions and In-Depth Material

Three companion repositories provide more in-depth content: learn-agent-memory extends the memory loop into a production-grade memory subsystem; learn-deepseek-harness learns deepseek-harness from scratch, plugin seam by plugin seam; EvalGrill turns real cases of agent applications into reproducible, verifiable evaluation sets.

Limitations

The statements in the repository documentation are reconstructions from source code, documentation, and behavior, and sourced corrections are welcome. Some content depends on an Anthropic API key to run live demos. The repository does not provide information in the materials about fees, pricing, platform compatibility, etc., and none is currently provided.