Skip to main content

Reference Overview

Dry, complete, mostly auto-generated. This section is for when you need the exact signature, schema, or command — not for learning how Codebolt works.

If you want to understand a subsystem, read Build on Codebolt → Internals. If you want to learn how to extend Codebolt, read Build on Codebolt. Reference is the last stop, not the first.

What's in this section

SubsectionWhat
SDKs@codebolt/codeboltjs, @codebolt/client-sdk, @codebolt/plugin-sdk, Unified Agent Framework — auto-generated from TypeScript
Processor ReferenceEvery built-in modifier class and its options
CLI ReferenceEvery codebolt command and flag
Built-in ToolsSchema for every tool that ships with the server
ProtocolsWebSocket, REST, MCP extensions
Config Schemasagent.yaml, project config, settings, environment variables
TypesShared types from packages/types
Query LanguageseventLogQueryCompiler and kvStoreQueryCompiler

Which reference for which job

"I'm building an agent"

"I'm building an MCP tool"

"I'm scripting against the CLI"

"I'm writing a client in a non-JS language"

"I'm querying history or building an audit tool"

"I'm self-hosting"

Auto-generation

Most of the reference is generated from source:

  • TypeScript SDKs — TypeDoc produces the class/interface/function docs. Regenerated on every server release.
  • Built-in tools — each tool declares its schema; the reference pages are generated from those declarations.
  • CLI commands — each command declares its flags and help text; codebolt help --format=md produces the reference pages.
  • Config schemas — the JSON Schema for each config file is generated from the TypeScript types.

When source changes, the reference changes automatically. Writing reference documentation by hand is discouraged — it drifts.

Hand-written parts

A few reference pages can't be auto-generated:

  • Protocol guides — overview pages that explain the WebSocket/REST protocols as whole things, not just as endpoint lists.
  • Query language tutorials — the syntax is auto-documentable, but the examples that make the syntax usable are not.
  • Migration notes — "what changed between v1 and v2" is always hand-written.

These pages are explicitly marked as hand-written in their frontmatter so the auto-gen doesn't overwrite them.

Versioning

The reference is versioned alongside the server. Each Codebolt release produces a snapshot of the reference. Older snapshots are accessible via the version switcher at the top of the docs site.

If you're running an older server, switch the docs version to match or you'll see APIs that don't exist in your install.

Existing content being migrated

The current docs/5_api/ tree contains auto-generated TypeDoc output for the unified agent framework and processor pieces. These are being relocated under this section as:

  • docs/5_api/11_doc-type-ref/agent/unified/05_reference/02_sdks/04_unified-agent-framework/
  • docs/5_api/11_doc-type-ref/agent/processor-pieces/05_reference/03_processor-reference/

The migration is mechanical — same files, new paths. URL redirects will be in place during transition.

See also