OpenProgram Docs

Context design comparison

Design: Composition. Rows are in wire order within a layer: more stable first, because cache-prefix matching makes order matter. Scattered means present but not assigned to a layer.

Hermes layer, by stabilityOpenProgram
stable: identity, tool guidance, skills, model, platform and environment hintsL0
context: caller system_message, context filesL1 project layer
volatile: memory snapshot, USER.md, external memoryL1 project memory, L2

opencode, claude-code, openclaw and pi-mono each carry fewer components than Hermes.

L0 system: configured once

Componenthermesclaude-codeOthersOpenProgram
Overall identityyesyespiL0 (identity)
Inline agent promptyesyesnoL0 (inline_prompt)
Tool enforcement (act, don't ask)yesnonoL0, base prompt guides/base.md
Model-specific guidanceyesnonoNone: a model that needs it gets its own base prompt
Platform rendering formatyesnonoL1, a line of the environment block per channel
Computer-use guidanceyesnonoNone; applies only when enabled
Skills indexyesnopiL1 (capabilities)
Tools and MCP schemayesyesopencode, openclawL0
Global or user memoryyesnonoL1 (memory)
Environment (OS, shell, remote backend)yesnonoL0 (OS, shell); cwd handled by tool-runtime
Current date, day granularityyesnopiL0 (current_date)

Environment changes with the machine or the day, so it goes last.

L1 session and project

Componenthermesclaude-codeOthersOpenProgram
Project identity (AGENTS.md, .cursorrules)yesyesopenclawL1
Prompt-injection detection, before loadingyesnonoTrust rule in the base prompt, detect_injection_patterns per file
Context-file truncationyesnonoL1, one 32 KiB budget across the AGENTS.md chain (agents_md.MAX_BYTES)
Project memoryyesnonoL1
User profile USER.mdyesnonoL1 (Memory Core)
Working directoryyesnopiL1
Inside a git repoyesnonoL1, environment block
session_id, model, thinking, tieryesnonoL1
Deferred tools catalognononoL1
History and tool-call recordsyesnonoL1, appended per turn, last

Fixed project information changes only with the project. Detection and truncation sit beside the files they guard.

L2 task: this turn

Componenthermesclaude-codeOthersOpenProgram
Situation (function, call stack, step)_situationalnonoL2 (situation, call_path, step 6a and 6b)
Git branch and statusscattered (git root)nonoL2 (git_status, order 20)
Todo, plan, progressnotodo toolnoL2 (todo_progress, reads _TODOS)
Token budget hintnononoNone
Per-turn memory prefetchyesnonoL2
User input, attachmentsyesyesyesL2
Output format or schemanoyesnoL2
Output contractnononoL2, in _situational_prefix
TimestampyesnopiL2, last
Kanban multi-agent coordinationyesnonoNone; specific to Hermes

Situation, environment and todo are settled for the turn; the timestamp changes every time.

Not carried

Computer-use guidance, Nous subscription guidance, Kanban coordination, the Hermes profile mechanism and the external memory provider have no feature here. Building one means registering a ContextComponent, with no framework change.

Last updated · 2026-11-25