Skip to main content
Context is an independent layer above the semantic layer. It provides AI with organizational knowledge, analytical methods, and historical memory that the semantic layer alone cannot express. Context items can reference semantic objects (domains, entities, metrics) but semantic objects do not reference context items.
Context items are best used for analytical methodologies, workflows, and organizational knowledge that spans multiple entities or metrics. How a metric is calculated belongs in its metric definition. Field-specific context — such as the allowed values or meaning of a field — belongs in AI metadata at the field level, where it stays close to the data it describes.

Types

Context items come in five subtypes across two categories. Each subtype has a specific structure and a distinct set of valid fields.

Loading Behavior

Apply Conditions

The apply field controls how a context item is loaded during analysis:
  • always — full content is injected before every analysis query
  • on-demand — the AI uses the description to decide whether the item is relevant, then fetches the full content when needed. description is mandatory for on-demand items. For memory items, the recorded date is also used to determine relevance — for example, when analyzing a specific time period, events and traces relevant to that period may be fetched.
Each subtype has a default:
Use on-demand for large reference items the AI may not need for every question. This keeps the initial prompt size small while keeping the content discoverable.

Enabled

The enabled field controls whether a context item is included in prompts at all. Set enabled: false to exclude an item without deleting it. Defaults to true.

Subtypes

Instruction

Instructions are short, plain-text directives that shape how the AI behaves — for example, preferred output formats, terminology, or analysis constraints. Instructions are brief and are written as plain text, not Markdown.
Instructions can have a body or consist of a title alone:

Skill

Skills describe analytical methodologies — step-by-step approaches the AI follows when analyzing a specific problem type, such as churn investigation, funnel analysis, or cohort comparison.

External Knowledge

External Knowledge items provide business definitions, policies, and reference material fetched from external tools such as Notion or Confluence via MCP. This is the only subtype that supports the external_source field.
Currently supported tools: Notion and Confluence. More integrations are coming soon. To request a specific integration, reach out to support@honeydew.ai.
Content is cached per user. When an item is accessed and the cache is stale (older than cache_max_age_in_seconds), fresh content is fetched using the requesting user’s credentials. If the fetch fails, the stale version is served with a staleness warning.
To use External Knowledge, each user must authenticate the external source via OAuth. Go to Settings → MCP connections in the Honeydew UI and connect the relevant tool. Content is fetched using the user’s own credentials, preserving their access permissions in the external system.

Event

Events capture historical occurrences — pricing changes, product launches, outages — that help the AI interpret data patterns and draw conclusions.

Decision Trace

Decision traces are AI-generated records of analytical reasoning — the steps the AI followed, the data it examined, and the conclusions it reached. They are created automatically and are not authored manually.

Creating Context Items

Context items can be created in a few ways:
  • Honeydew Studio — use the context item builder in the UI
  • Git repository — commit files to the ai/instructions/ or ai/memory/ directories in your workspace
  • Coding agent — use a coding agent connected via MCP to create and manage context items (see MCP context item tools)

Naming

Context item names use a folder-style format: lowercase words separated by hyphens, grouped into folders with slashes. Use a folder prefix to group related items within a subtype.
Context items created by Honeydew reflect the folder prefix in the file path within the repository.
Names must be unique within a workspace across all context types. Agent definitions use these names — including glob patterns — to reference context items.

Suggested Prefixes

Repository Structure

Context items are stored in the ai/instructions and ai/memory directories within your workspace. The folder prefix in a name becomes a subdirectory within the subtype directory.

YAML Schema

Context items are Markdown files with YAML frontmatter. The schema varies by subtype.

Instruction

Skill

External Knowledge

Event

Decision Trace