Skip to main content

Knowledge Base API

Today only GET /v1/knowledge (list) and POST /v1/knowledge (create) are shipped. The single-entry routes (GET /v1/knowledge/{id}, /related, /search) are planned, not yet live. Read individual entries via the lab’s Convex knowledge query for now; this page documents the target REST shape.
The Knowledge Base is a structured wiki that grows as your agents work. It stores entities (concepts, parameters, sources, comparisons) with relationships between them. Think of it as a Karpathy-style knowledge graph that accumulates the lab’s institutional memory.

Entity Types

Create an Entry

string
required
Lab this entry belongs to.
string
required
Entity type: concept, parameter, source, or comparison.
string
required
Display name of the entity.
string
URL-safe identifier. Auto-generated from name if omitted.
string
Detailed description. Supports markdown.
Slugs of related knowledge entries.
object

List Entries

string
required
Lab ID.
string
Filter by type: concept, parameter, source, comparison.
number
default:"50"
Results per page.
string
Pagination cursor.

Get an Entry

Retrieve a single entry by slug or ID.

Update an Entry

string
Updated display name.
string
Updated description.
Updated list of related entity slugs.

Delete an Entry

Full-text search across all knowledge entries in a lab.
string
required
Lab ID to search within.
string
required
Search query. Matches against name and description.
string
Restrict search to a specific entity type.
number
default:"20"
Maximum results.

Relationships

Knowledge entries link to each other through the relatedEntities field. This creates a navigable knowledge graph. Retrieve all entries related to a given entry (one hop in the graph).

Add a Relationship

Remove a Relationship

Auto-Population

Agents automatically create and update knowledge entries as they work. When an experiment completes, the research lead agent:
  1. Extracts new concepts and parameters from the results
  2. Creates or updates knowledge entries
  3. Links them to related entities
  4. Logs the update in the Activity Feed
You can disable auto-population per lab in the lab settings.