JIT harness#

Let a model keep its own tools and notes in a repository on disk.

Read the walkthrough before consulting individual signatures.

Public interfaces#

Interface

Purpose

JITHarness

An independently evolving toolbox of Python tools and Markdown notes.

JITHarnessExtension

Let a model keep its own tools and notes in a repository on disk.

JITToolCompletedEvent

CUSTOM event reporting how one management or dynamic tool call ended.

JITToolStartedEvent

CUSTOM event announcing one management or dynamic tool call.

render_note_catalog

Render note names, kinds, descriptions, and paths without their bodies.

RepoResult

What the repository tools report back to the model.

ResourceInfo

One Markdown note of the repository, as far as its front matter says.

ToolCatalogEntry

One row of a session’s tool catalog.

ToolMutationResult

Minimal acknowledgement of a successful tool state change.

ToolStatsReport

How the asked-about tools are doing, or a bounded overview when none were named.

ToolStatsRow

What one tool has done so far, in the few numbers that decide whether to keep it.

ToolStatus

Public constant or type alias; see its definition.

TextKind

What a Markdown resource is for, declared by kind: in its front matter.

Manifest

What MANIFEST says a repository is.

RepositoryPolicy

The raw declarations of one directory, and everything wrong with them.

inspect_repository

Read the repository’s raw declarations and report every problem with them.

is_repository_name

Whether name can be a repository directory name.

is_tool_name

Whether name is a tool name the harness accepts.

read_banned_tools

Read BAN_TOOLS: one tool name per line, blank lines ignored.

read_manifest

Read and check MANIFEST in directory.

HarnessCalls

What repository code may call on harness.

HostedRepo

The tools of one loaded version of a repository, wherever its code runs.

InProcessToolHost

Import and run a repository in the agent’s own interpreter.

JITHostCrashed

The child process that ran a repository is gone.

JITHostError

A repository host could not do what was asked of it.

JITHostTimeout

The child process did not answer within the configured limit.

JITToolHost

Import a repository’s tools and run them, in this process or another.

SubprocessToolHost

Import and run a repository in a child process, and call back over a pipe.

ToolNotSerializable

A tool returned a value that cannot cross a process boundary.

ToolSpec

Everything the agent needs to know about a repository tool before calling it.

ToolCallStatus

How one dispatch attempt ended.

ToolOrigin

Which registry served one dispatch attempt.

JITHarnessProfile

An immutable, JSON-exportable view of session-local profiling data.

ToolCallProfile

One finished dispatch attempt, without argument or result contents.

ToolProfileStats

Lifetime totals for one tool in one harness, counting finished attempts.

ToolErrorRecord

One distinct recent error, with the latest invocation’s context.

ToolErrorReport

A read-only page of retained diagnostics, newest occurrence first.