beekeeper

command module
v1.0.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 34 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

beekeeper

beekeeper is being rebuilt as a new major version. The previous implementation has been removed from this repository; its releases remain on GitHub Releases.

The new version is landing in parts:

  • beekeeper serve --config <file>, the server: the coordinator, elected by a Lease, that places agent tasks on runners and keeps their heartbeat leases, with MCP tools and the runner API (docs/runner-api.md, docs/configuration.md, docs/operations.md).
  • beekeeper runner --config <file> --executor fake connects a registered host, runs fake sessions and reports pressure, usage and heartbeats (docs/runner.md).
  • api/v1alpha1, Beekeeper's resources: runners, agent tasks, agent sessions and subscriptions (docs/api.md), with their generated CustomResourceDefinitions in config/crd.
  • internal/placement, internal/pace and internal/focus, the pure functions that decide which runner takes a task and when a subscription may start a session (docs/placement.md).
  • The Helm chart installs the CRDs and runs the server with a leader and a standby. See installation and upgrades.
  • The generated build, test and release pipeline (CircleCI and GitHub Actions).

Development

make build   # the binary for this machine
make test    # Go tests and the chart's unit tests
make generate  # deepcopy functions and CustomResourceDefinitions from api/
pre-commit run --all-files

See CONTRIBUTING.md for commit and pull request conventions.

Documentation

Overview

beekeeper keeps an organization's agents working: runs offer it agent tasks, and it places each on a runner that may and can run it.

beekeeper serve --config <file>    the coordinator and the runner API
beekeeper runner --config <file>   run sessions on this host

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 holds Beekeeper's API: the runners that run agent sessions, the agent tasks runs offer, the sessions that run them and the provider subscriptions whose pace decides when a session may start.
Package v1alpha1 holds Beekeeper's API: the runners that run agent sessions, the agent tasks runs offer, the sessions that run them and the provider subscriptions whose pace decides when a session may start.
internal
auth
Package auth says who calls Beekeeper.
Package auth says who calls Beekeeper.
auth/authtest
Package authtest signs tokens the way Dex does, for tests.
Package authtest signs tokens the way Dex does, for tests.
config
Package config reads the configuration of `beekeeper serve`: a YAML file with the installation, the listeners, the OIDC issuer, the organizations and their principals, the host-access check, the leases, placement's policy and retention.
Package config reads the configuration of `beekeeper serve`: a YAML file with the installation, the listeners, the OIDC issuer, the organizations and their principals, the host-access check, the leases, placement's policy and retention.
coordinator
Package coordinator is the elected leader's live state of an installation's runners, tasks, sessions and subscriptions.
Package coordinator is the elected leader's live state of an installation's runners, tasks, sessions and subscriptions.
executor
Package executor is the boundary between an accepting runner and its sessions.
Package executor is the boundary between an accepting runner and its sessions.
executor/fake
Package fake runs timed, in-memory sessions for exercising the runner API.
Package fake runs timed, in-memory sessions for exercising the runner API.
executor/local
Package local runs accepted sessions in digest-pinned Linux containers on the runner's machine.
Package local runs accepted sessions in digest-pinned Linux containers on the runner's machine.
executor/platform
Package platform runs an accepted offer as one kagent session and A2A turn.
Package platform runs an accepted offer as one kagent session and A2A turn.
focus
Package focus parses a runner's focus, a board filter in GitHub's syntax such as `team:Bumblebee customer:Acme` or `kind:"Bug 🐞"`, and matches it against the fields a task carries.
Package focus parses a runner's focus, a board filter in GitHub's syntax such as `team:Bumblebee customer:Acme` or `kind:"Bug 🐞"`, and matches it against the fields a task carries.
mcpserver
Package mcpserver serves Beekeeper's tools over streamable HTTP.
Package mcpserver serves Beekeeper's tools over streamable HTTP.
metrics
Package metrics holds Beekeeper's Prometheus counters and histograms.
Package metrics holds Beekeeper's Prometheus counters and histograms.
pace
Package pace decides whether a session may start on a subscription now.
Package pace decides whether a session may start on a subscription now.
placement
Package placement decides which queued agent task goes to which runner.
Package placement decides which queued agent task goes to which runner.
runner
Package runner runs sessions as the host of a registered Beekeeper runner.
Package runner runs sessions as the host of a registered Beekeeper runner.
runnerapi
Package runnerapi serves Beekeeper's runner API under /runner/v1: a member registers and deregisters runners with their own token, and a runner, with its key and its host's token, holds its stream open, answers offers and reports its pressure, sessions and subscription usage.
Package runnerapi serves Beekeeper's runner API under /runner/v1: a member registers and deregisters runners with their own token, and a runner, with its key and its host's token, holds its stream open, answers offers and reports its pressure, sessions and subscription usage.
server
Package server runs `beekeeper serve`: the runner API, MCP tools and health probes on one listener, Prometheus metrics on another, and the coordinator on whichever replica a Lease elects.
Package server runs `beekeeper serve`: the runner API, MCP tools and health probes on one listener, Prometheus metrics on another, and the coordinator on whichever replica a Lease elects.
store
Package store reads and writes Beekeeper's four resources through controller-runtime's client, limited to the organizations' namespaces.
Package store reads and writes Beekeeper's four resources through controller-runtime's client, limited to the organizations' namespaces.
pkg
runnerapi
Package runnerapi holds the wire types of Beekeeper's runner API, which a runner speaks to Beekeeper over HTTP and JSON under /runner/v1.
Package runnerapi holds the wire types of Beekeeper's runner API, which a runner speaks to Beekeeper over HTTP and JSON under /runner/v1.

Jump to

Keyboard shortcuts

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