Sources for dream:agent-mechanics¶
This file lists the sources behind each section of the guide to agent mechanics,
whose files are in plugins/dream/skills/agent-mechanics/. A section's entry
covers that section in all three files of the guide. When you change a section,
check each changed claim against the sources listed for it, and update the list
if the claim rests on a new source.
The Claude API, Claude Code and Hugging Face Transformers sources are their
documentation as of November 2026. The Codex sources are pinned to commit
49d657a
of openai/codex. When you move the pin, re-check each section against the
crates listed for it.
Introduction¶
- Claude API documentation: glossary
- Claude Code documentation: glossary, how-claude-code-works
How the model generates text¶
- Paper: Vaswani et al., 2017
- Hugging Face Transformers documentation: generation utilities
- Claude API documentation: glossary, handling-stop-reasons, tool use, working-with-messages
- Claude Code documentation: glossary
What the context holds¶
- Claude API documentation: tool use, working-with-messages
- Claude Code documentation: context-window, glossary, how-claude-code-works, memory
- Codex source, by crate:
codex-home,config,core
The turn¶
- Claude API documentation: handling-stop-reasons, tool use
- Claude Code documentation: agent-sdk/typescript, glossary, hooks, interactive-mode, mcp, settings-reference, sub-agents, tools-reference
- Codex source, by crate:
core,ext/goal,features
Tool calls and permissions¶
- Claude API documentation: tool use
- Claude Code documentation: glossary, headless, mcp, permissions, plugins/components, tools-reference
- Codex source, by crate:
codex-mcp,config,core,exec,protocol
Hooks¶
- Claude Code documentation: agent-sdk/hooks, context-window, glossary, hooks
- Codex source, by crate:
core,hooks,protocol
Plugins¶
- Claude Code documentation: mcp, plugins, plugins/components, plugins/loading, plugins/manifest-reference, skills, sub-agents
- Codex source, by crate:
core-plugins,exec-server-protocol,ext/skills,hooks,plugin,skills,utils/plugins
Skills¶
- Claude Code documentation: skills
- Codex source, by crate:
ext/skills,models-manager
Subagents¶
- Claude Code documentation: context-window, skills, sub-agents
- Codex source, by crate:
agent-roles,core,models-manager
Compaction¶
- Claude Code documentation: context-window, settings-reference
- Codex source, by crate:
core,model-provider,protocol
Running an agent from a program¶
- Claude Code documentation: agent-sdk/agent-loop, agent-sdk/claude-code-features, agent-sdk/modifying-system-prompts, agent-sdk/overview, cli-reference, headless, hooks, permission-modes, sessions
- Codex source, by crate:
app-server-protocol,cli,config,core,exec,sdk/python,sdk/typescript,tui,utils/cli