Open research notebook

Read the source.Not the README.

Source-code-level research on AI infrastructure, agents, context engineering, memory, tools, and runtimes.

Every important claim traces to source code, tests, configuration, or verified runtime behavior — pinned to an exact commit.

Research library

Library.

Pinned commits.
Runnable reproductions.

01Agent harness

deepagents

langchain-ai/deepagents@16e84d9

deepagents is an ordered stack of middleware on top of LangChain’s create_agent. Its real product is context engineering: offloading large results to a virtual filesystem, non-destructive summarization, and context-isolated sub-agents.

deepagents 是叠在 LangChain create_agent 之上的一个有序中间件栈。它真正的产品是上下文工程:把大结果卸载到虚拟文件系统、非破坏性的摘要压缩,以及上下文隔离的子 Agent。

21 tests + demo pass · upstream probe 7/7 · real-model scenarios 4/4 × 3 runs

02Agent SDK & runtime

OpenHands

OpenHands/OpenHands@7ea83ba software-agent-sdk@v1.53.0

OpenHands/OpenHands is now the Agent Canvas UI. The agent itself lives in software-agent-sdk: an event-sourced conversation, a stateless agent step(), an LLM context that is a projection of the event log, and compaction done by appending a Condensation event.

OpenHands/OpenHands 现在是 Agent Canvas 界面;agent 本体在 software-agent-sdk 中——事件溯源的会话、无状态的 step()、作为事件日志投影的 LLM 上下文,以及通过追加 Condensation 事件完成的压缩。

19 tests + demo pass · 426 upstream SDK tests pass · real SDK probed offline and with a real model

03Agent SDK & runtime

openai-agents-python

openai/openai-agents-python@71c2da4

The OpenAI Agents SDK owns its loop: a while True over four NextStep outcomes, where handoffs and sub-agents are just tool calls and a human approval is a serializable pause. Context policy is opt-in hooks plus server-side compaction; SandboxAgent adds per-run capabilities and agent-written file memory.

OpenAI Agents SDK 自己掌控运行循环:一个围绕四种 NextStep 结局的 while True;handoff 和子 Agent 都只是工具调用,人工审批是一个可序列化的暂停点。上下文策略靠可选钩子加服务端压缩;SandboxAgent 增加了按运行准备的能力(capability)和由 Agent 写入的文件记忆。

12,174 upstream tests pass · probe 17/17 · 40 tests + demo 11/11 · mutations 11/11 · real models: 6 scenarios × 2 models × 3 runs

04Stateful agent harness

letta-code

letta-ai/letta-code@4b028fa

letta-code splits the agent loop across a protocol. A stateful backend (Letta Cloud, or an in-process local backend) runs one model step per run and stops at every tool call; the client harness executes tools on the user’s machine and resumes. Memory is a per-agent git repository compiled into a cache-stable system prompt.

letta-code 把 agent 循环拆在一个协议的两侧:有状态的后端(Letta Cloud 或进程内的本地后端)每个 run 只执行一步模型调用,遇到工具调用就停下;客户端 harness 在用户机器上执行工具后再续跑。记忆是每个 agent 一个 git 仓库,编译进一个保持缓存稳定的 system prompt。

24 tests + demo 11/11 · mutation 9/9 · upstream unit tests 8,778 pass · probe 9 claims (1 disproved) · real-model 6 scenarios × 3 runs

Source-pinned · interactive

Diagrams.

Every node links to the exact
lines it was drawn from.

How research is performed

Method.

Facts are backed by source.
Interpretations are labelled.

  1. 01

    Pin the target

    Clone it outside this repo, record the commit, and cite every source reference against that commit.

  2. 02

    Map, then trace

    Read manifests, entry points and the composition root, then follow real call sites end to end — into the framework too when the target delegates to one.

  3. 03

    Separate fact from interpretation

    Facts are backed by path:line, a test, or observed runtime behavior. Interpretations are labelled, and open questions stay explicit.

  4. 04

    Verify claims at runtime

    When it is cheap, drive the real library — for example with a scripted fake model — to confirm what reading alone suggests.

  5. 05

    Run the target's own tests

    Use its locked dependencies, so environment noise is not mistaken for findings.

  6. 06

    Reproduce the architecture, not the product

    Build a small, dependency-light version, test its architectural invariants, and mutation-test the tests.

  7. 07

    Diagram from evidence

    Every Archify node carries sources pinned to the studied commit; its SRC badges link to the exact lines.

Reading convention

Conventions.

Each project uses the same URL pattern:

  • Research: /research/<project-name>.html (plus <project-name>.zh.html when a Chinese version exists)
  • Diagrams: /diagrams/<project-name>/<diagram>.html, with a gallery at /diagrams/<project-name>/
  • Experiment source: /experiments/<project-name>/ (on GitHub; experiments are not published to Pages)

Studies distinguish Fact (read in source, tested, or observed at runtime) from Interpretation (a reading of intent). Source references use path:line against the pinned commit.

Repository: woaitqs/repo-research

Repo ResearchSource-level studies
Back to library

Studies