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 layer | Local-first, file over app, and user sovereignty |
|---|---|---|
| 1 | One-time prompting | Prefer a local model when it satisfies the task. Make remote transmission explicit. Let users save the prompt and result independently of the model service. |
| 2 | Prompt templates | Keep reusable instructions in portable, version-controlled .prompt files. |
| 3 | Workflow composition and iteration | Persist inputs, control flow, exit criteria, budgets, checkpoints, and results so the workflow remains inspectable and resumable. |
| 4 | Skills, context, and capabilities | Package reusable instructions and references in SKILL.md directories. Use MCP for live resources and tools while keeping durable context in files. |
| 5 | Connected memory | Preserve selected facts, decisions, and provenance in inspectable records. Databases may index them without becoming the only source. |
| 6 | Agent harness and interoperability | Configure workflows through files and CLI options. Treat applications and ACP agents as replaceable interfaces. |
Current ACORN support
| # | Layer | Status | ACORN support |
|---|---|---|---|
| 1 | One-time prompting | Available as a library API | acorn-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. |
| 2 | Prompt templates | Implemented | acorn-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. |
| 3 | Workflow composition and iteration | Not implemented | ACORN 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. |
| 4 | Skills, context, and capabilities | Implemented | acorn 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. |
| 5 | Connected memory | Building blocks available | ACORNā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. |
| 6 | Agent harness and interoperability | Partially implemented | ACORN 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.
-
Google, Dotprompt specification and Dotprompt reference documentation. ā©
-
Anthropic, āBuilding effective agentsā, 2024. ā©
-
Agent Skills, Specification. ā©
-
Model Context Protocol, āArchitectureā and āServer featuresā. ā©
-
Agent Client Protocol, āArchitectureā. ā©