Yichen Jiang a3b0da0255 Merge origin/master into project instruction files 3 months ago
..
agent 8bd80e5e9b fix review findings: one frozen seed through the waterfall; stale agent/request docs 3 months ago
agent-core a3b0da0255 Merge origin/master into project instruction files 3 months ago
agent-loop a3b0da0255 Merge origin/master into project instruction files 3 months ago
session 8bd80e5e9b fix review findings: one frozen seed through the waterfall; stale agent/request docs 3 months ago
system-prompt 3f83a4ee96 review: the persona becomes the system-prompt plugin's deployment config 3 months ago
tools 5d97374a59 Merge remote-tracking branch 'origin/master' into codex/docs-graph-brainstorm 3 months ago
README.md a4cabe8485 Merge remote-tracking branch 'origin/master' into codex/project-instruction-files 3 months ago

README.md

core/ — product API spine

The packages every harness build is assembled from: the session log, the system-prompt assembly, the tool registry, the agent vocabulary, and the one concrete loop that drives them. These are product packages — the stable surface plugins and consumers build against.

Package Role ctx key
session/ Event-sourced session log + in-memory store ctx.sessions
system-prompt/ Prompt-section + tool-schema assembly registry ctx.systemPrompt
tools/ Tool registry + tools/pre-execute/tools/post-execute pipeline ctx.tools
agent/ Agent interface, registry, agent/* event vocabulary ctx.agents
agent-loop/ The concrete loop plugin: ReactLoopAgent + the loop driver ctx.agentLoop
agent-core/ Bundle plugin: the providerless/executor-less/UI-less spine as code (loads the spine)

agent-loop is the one concrete implementation of the agent seam and lives here because it is the harness's default product loop; everything else in core/ is interface/vocabulary. Plugins depend on the agent vocabulary, never on agent-loop directly, so the loop stays swappable.

agent-core is the composition counterpart: one bundle plugin that loads the whole providerless spine (timer + llm + sessions + system-prompt + tools + agents + invariants + tool-bash + project-instructions + agent-loop) and forwards agent-loop's agents list as its own config. App packages (ui/stdio-agent, ui/acp-agent) consume it and add only a front door; a leaf adds the swappable backends plus any optional product tools it wants to expose. It lives in core/ because it is the default spine bundle and ships no provider, executor, or UI of its own; it may include product prompt/tool extensions that are common to every front door.