core

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: MIT

README

core

The vocabulary the rest of the harness agrees on: events, domain types, and the ports that implementations plug into. It depends on one small module (uuid) and nothing else from this repository.

go get github.com/7ar-chat/harness/core
Package Holds
agui the AG-UI events a run streams (run, step, text, reasoning, tool call, interrupt), usage, error codes, CheckOrder to verify a stream
sandbox the Backend / Instance / Manager contract for the place an agent runs commands, the background-job registry, and sandboxtest (an in-memory fake and a conformance suite)
store threads, runs, messages, approvals, memory, artifacts, skills and the persistence interfaces that store them (Store, Full)
blobs the port for content stored by key
layout the names of the folders a project and a user keep (.har/...)

When you would use it directly

  • Writing a sandbox backend. Implement sandbox.Backend, run sandboxtest.RunConformance against it, and the harness (or your own agent through sandbox.Manager) can use it. See adapters/sandbox for two real ones.
  • Writing a store. Implement store.Store (and the capability interfaces you need) over your database.
  • Writing a front end or an event consumer. Decode and check agui events.

If you only want to call models and run a tool loop, use ai instead: it does not need this module.

License

MIT. See LICENSE.

Directories

Path Synopsis
Package agui is the event vocabulary a run streams to its front ends: the AG-UI events (run, step, text, reasoning, tool call, interrupt and custom events), the usage record, the error codes, and the checks that a recorded stream is well ordered.
Package agui is the event vocabulary a run streams to its front ends: the AG-UI events (run, step, text, reasoning, tool call, interrupt and custom events), the usage record, the error codes, and the checks that a recorded stream is well ordered.
Package blobs is the port for storing content by key outside the database: artifact contents, previews, archives.
Package blobs is the port for storing content by key outside the database: artifact contents, previews, archives.
Package capabilities is the vocabulary of the MCP marketplace: a catalog of MCP servers the product ships (a fixture, kept in the database), and what a project or a user installed from it or brought themselves.
Package capabilities is the vocabulary of the MCP marketplace: a catalog of MCP servers the product ships (a fixture, kept in the database), and what a project or a user installed from it or brought themselves.
Package factory is the vocabulary of the agent factory: tasks that agents work on unattended, the triggers that create them, and the ports the factory features share (the task store, the code forge, the controller that resumes or blocks a task, the escalation channel).
Package factory is the vocabulary of the agent factory: tasks that agents work on unattended, the triggers that create them, and the ports the factory features share (the task store, the code forge, the controller that resumes or blocks a task, the escalation channel).
Package layout names the folders of a harness configuration directory (<repo>/.har/ and ~/.har/).
Package layout names the folders of a harness configuration directory (<repo>/.har/ and ~/.har/).
Package sandbox is the contract between an agent and the place its commands run: a directory on this machine or a container elsewhere.
Package sandbox is the contract between an agent and the place its commands run: a directory on this machine or a container elsewhere.
sandboxtest
Package sandboxtest provides an in-memory sandbox backend for tests.
Package sandboxtest provides an in-memory sandbox backend for tests.
Package store holds the domain types and persistence interface.
Package store holds the domain types and persistence interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL