Skip to content

Knowledge

Concept

Coding agents are only as good as their context. Knowledge is how Greenlight gives every agent the customer-specific prose it needs — and lets agents help write that prose back.

Knowledge entries are Markdown documents stored in the Greenlight control plane, edited in the dashboard, and served to agents through MCP. They cover what’s in this Snowflake account, how this org uses its design system, the architecture of this app, the gotchas the team has discovered together.

Every entry is scoped to one of three subjects.

ScopeWhat it coversWho authors it
OrgDesign-system usage notes, security and compliance policy summaries, naming conventions, internal infrastructure docs, “how we work” context.IT
IntegrationWhat lives in this Snowflake account, the warehouses an app may use, idiomatic SQL patterns, rate-limit guidance, post-mortems on common gotchas. Starts empty — IT and app owners write the first notes as the integration gets used.IT and app owners; agents propose entries
AppApp-specific architecture notes, business-domain context, schema sketches, debugging recipes, owner notes. Starts empty until useful context is authored.The app’s owner and any co-owners; agents propose entries and updates

Org Knowledge begins with a starter template. App and integration Knowledge start empty and fill in as your team learns facts worth carrying into future sessions.

  • Org entries seed from a default template the first time the organization is set up — a design-system, a security-policy-summary, and coding-conventions starter. IT edits them to the house style.
  • App entries start empty. The required docs block in greenlight.yml remains deployment documentation, separate from Knowledge. Owners create entries in the dashboard and agents propose them when useful context emerges.
  • Integration entries start empty for every source — both the curated catalog services (GitHub, Slack, OpenAI, Salesforce, Snowflake, …) and custom build-your-own sources show an “Add the first entry” prompt in the dashboard until someone writes the first note. The agent already gets each integration’s live connection details (its base URL and how the credential reaches the app) when it lists the integrations it can use, so Knowledge is reserved for what your team learns about the source — schema, idiomatic queries, gotchas.

Seeded org entries carry a provenance marker, so the dashboard can show when an entry was seeded from the org template and later customized by a human. Authored app and integration entries live in the database and evolve through edits and proposals.

Skills bundled with the agent plugin are universal — identical for every customer, version-controlled in Greenlight’s monorepo, concerned only with the protocol. Knowledge is the opposite.

SkillsKnowledge
Where it livesIn the plugin packageIn the control-plane database
Who authors itGreenlight platform teamIT, app owners, and agents
How agents read itLoaded at session startMCP tool calls
How it gets updatedPlugin redistributionDashboard save or accepted agent proposal
Same for every customer?YesNo

An owner creates an app architecture entry after the first meaningful design decision. The agent proposes a paragraph on schema decisions during the next build. IT rewrites the security paragraph during review. The citizen developer adds a Snowflake query that worked. The agent later proposes a correction when the schema changes.

No single fixed “source” can represent that lifecycle — so Knowledge doesn’t try. Every save is in the audit log with who, when, and the diff. The dashboard renders a per-entry history view from those events.

Agents never write directly to knowledge_entries. They propose; humans review.

The agent calls knowledgePropose with the new content and a rationale. The server records a pending proposal and surfaces it in the dashboard for review.

await knowledgePropose({
scope: 'app',
app_id: 'app_k9x2m3p',
topic: 'architecture',
title: 'App architecture',
body_md: '...',
rationale: 'Discovered a clean way to split the cron job from the API.',
base_version: 3,
});

Four MCP tools cover everything. Full specs in the MCP reference.

  • knowledgeList — summaries, filtered by scope and parent.
  • knowledgeGet — one entry’s body.
  • knowledgeSearch — full-text search over titles and bodies.
  • knowledgePropose — the agent write path.

Integration Knowledge also follows the integration’s availability. When IT makes an integration inactive, agents cannot list, fetch, search, or propose against its entries — even through an IT user’s agent — while the dashboard keeps the content available for maintenance. Reactivation makes the preserved entries visible again.

Knowledge is advisory prose. getPolicies is the rules — structured rows that OPA evaluates at the pipeline gate. Two surfaces, two jobs: the pipeline blocks on policy rules; the agent reads Knowledge to understand how and why.