Skip to content
Kward Search API index

API reference

Kward's generated Ruby API documentation is mainly for contributors, plugin authors, tool authors, and people building RPC or editor integrations.

If you use Kward from the terminal, start with the user guides instead. The API reference exposes many internal classes because it is generated from the source tree; not every documented class is a stable extension API.

Start here

Start by role

Plugin authors

Use plugins when you need trusted local Ruby code for slash commands, prompt context, footer UI, transcript events, or RPC-visible commands.

Read first:

Generated entry points:

Tool authors and contributors

Built-in tools are Ruby classes registered with Kward's tool registry. They expose schemas to the model and execute bounded local operations.

Read first:

Generated entry points:

RPC and frontend authors

The RPC protocol is the supported integration surface for UI clients. Prefer the protocol guide before reading implementation classes.

Read first:

Generated entry points:

Prompt, skill, and configuration contributors

Prompt templates, skills, personas, and project instructions are user-facing extension points. Prefer the guides for supported behavior, then use the API reference to inspect implementation details.

Read first:

Generated entry points:

Public API expectations

Kward is still evolving. The generated reference is useful for understanding the codebase, but it should not be read as a promise that every class, method, or constructor is public and stable.

Prefer the documented guides for supported extension behavior. Use generated class and method pages when you need implementation detail, are contributing to Kward itself, or are coordinating a frontend integration with the current codebase.

As a rule of thumb:

  • Guide-documented behavior is the supported user-facing surface.
  • Plugin DSL methods are intended extension points.
  • RPC JSON-RPC methods documented in RPC protocol are the integration contract for frontend clients.
  • Generated classes without guide coverage may be internal implementation details.