Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Intelligence in Depth layers

Intelligence in Depth (IID) organizes model-assisted systems into six layers. The layers are composable: use the shallowest sequence that reliably satisfies the task. See …But Is It Agentic? for the architecture’s principles.

1. One-time prompting

An application sends a direct instruction to a model through a library or API. This layer suits a single transformation or answer whose inputs and outputs are already defined.

For example, an application can send one research narrative to acorn-lib’s OpenAI-compatible chat-completion API with the instruction ā€œSummarize this activity,ā€ then return the response.

ā€œOpenAI-compatibleā€ describes the connection format, not the model provider. A compatible server accepts supported OpenAI-style HTTP endpoints and JSON requests and responses. The server may be OpenAI’s service or another implementation, including llama-swap, vLLM, or LiteLLM. ACORN uses this format because local and hosted servers widely support it, which reduces custom client code.

2. Prompt templates

Prompt templates store reusable instructions in version-controlled .prompt files with defined inputs, configuration, and expected outputs. Google’s Dotprompt specification documents this executable file pattern.1

For example, ACORN renders its embedded summarize.prompt template with a source narrative, maximum word count, and output structure so callers can reuse the same instructions.

3. Workflow composition and iteration

A workflow coordinates model calls, deterministic operations, and tools through explicit control flow. It may sequence, select, repeat, delegate, or combine bounded tasks, but the application defines its path and safeguards. Anthropic distinguishes these predefined workflows from agents that direct their own process and tool use.2

Repeated workflows need clear exit conditions, measurable progress, state passed between calls when required, and limits on iterations, time, tokens, and cost.

A planned ACORN workflow could ask a model to address gaps in a research narrative, run deterministic validation, and pass remaining findings to another bounded attempt. It would stop when no high-severity issue remains or when it reaches an iteration, token, or time limit.

4. Skills, context, and capabilities

This layer assembles the instructions, research data, evidence, examples, tools, constraints, and current state needed for an invocation. Agent Skills package specialized instructions and optional resources into portable, version-controlled directories.3 MCP can connect an agent to live prompts, resources, and tools.4

This is the layer where an application makes a model context-aware for a specific task. The model can use supplied relationships and provenance to explain connections or identify gaps, but it cannot treat an unsupported inference as source data.

For example, an agent can load the ACORN skill with a ResearchActivity schema, source record, validation results, and allowed tools before proposing a correction. The local stdio MCP server exposes the same canonical tool registry and deterministic checks through a standard interface.

5. Connected memory

Connected memory preserves selected state across iterations, sessions, or tasks. Useful memory includes attributable facts, decisions, provenance, and prior results. Its origin, availability, modality, and quality are part of its data profile.

A planned workflow could retrieve a previously reviewed project identity, identifier mapping, and provenance record instead of reconstructing them from conversation history.

6. Agent harness and interoperability

An agent harness orchestrates models, skills, tools, workflows, context, memory, permissions, validation, recovery, observability, and human approval. It owns resource budgets and stopping conditions. Permissions and approvals shape autonomy, while perception, state, actions, and feedback shape motivity. ACP can standardize sessions, streamed updates, and permission requests between a harness and external agents.5

ACORN launches OpenCode through ACP for bounded fix suggestions, sends the normalized check results as context, streams progress, and applies a fixed permission policy. The returned suggestions remain reviewable data; acorn check does not apply them.

ACORN’s Protobuf/gRPC transport provides part of the foundation for that work. Its shared operation registry, policy context, authentication, deadlines, and cancellation behavior can support more protocol adapters. ACP will still use ACP sessions, streaming, and permission messages, while MCP keeps its own tool discovery and invocation semantics.

Applying the principles

#IID layerLocal-first, file over app, and user sovereignty
1One-time promptingPrefer a local model when it satisfies the task. Make remote transmission explicit. Let users save the prompt and result independently of the model service.
2Prompt templatesKeep reusable instructions in portable, version-controlled .prompt files.
3Workflow composition and iterationPersist inputs, control flow, exit criteria, budgets, checkpoints, and results so the workflow remains inspectable and resumable.
4Skills, context, and capabilitiesPackage reusable instructions and references in SKILL.md directories. Use MCP for live resources and tools while keeping durable context in files.
5Connected memoryPreserve selected facts, decisions, and provenance in inspectable records. Databases may index them without becoming the only source.
6Agent harness and interoperabilityConfigure workflows through files and CLI options. Treat applications and ACP agents as replaceable interfaces.

Current ACORN support

#LayerStatusACORN support
1One-time promptingAvailable as a library APIacorn-lib exposes completion, chat-completion, response, embedding, image, and audio operations through supported OpenAI-style HTTP endpoints and JSON formats. Applications decide when to invoke a model. ACORN does not provide a general-purpose interactive prompt command.
2Prompt templatesImplementedacorn-lib embeds and renders versionable .prompt templates for summarization, translation, teaching, simple explanation, claim extraction, and gap finding. Templates accept source text, output limits, sampling parameters, and stop sequences.
3Workflow composition and iterationNot implementedACORN does not provide a general model workflow executor with explicit control flow, exit criteria, evolving state, progress checks, and resource budgets. File watching and service polling are operational loops, not IID model workflows.
4Skills, context, and capabilitiesImplementedacorn skill distributes task-oriented instructions. acorn serve mcp, MCPB packaging, and opt-in client synchronization expose the canonical policy-filtered tool registry. acorn mcp discovers and invokes configured remote tools without automatically re-exporting them.
5Connected memoryBuilding blocks availableACORN’s local database persists research candidates, activity history, model metadata, and provenance-bearing records. ACORN does not manage conversational memory, cross-session agent recall, or memory selection and retention policies.
6Agent harness and interoperabilityPartially implementedACORN manages local model metadata and weights, synchronizes model configuration into OpenCode, VS Code, Goose, and llama-swap, distributes its agent skill, runs a GitLab bot service, provides a versioned gRPC boundary over its shared operation registry, and supervises one-shot OpenCode sessions through ACP. It does not provide a unified general-purpose agent runtime.

ACORN can develop each layer independently. Prompt evaluation can precede workflow execution, deterministic operations can become tools before broader agency is granted, and memory provenance can be defined before agent state is retained.


  1. Google, Dotprompt specification and Dotprompt reference documentation. ↩

  2. Anthropic, ā€œBuilding effective agentsā€, 2024. ↩

  3. Agent Skills, Specification. ↩

  4. Model Context Protocol, ā€œArchitectureā€ and ā€œServer featuresā€. ↩

  5. Agent Client Protocol, ā€œArchitectureā€. ↩