Hive: Hub & Spoke

AI Agent Orchestration for Open Source

From brainstorming to full autonomy and everything in-between.

A fully customizable fleet of AI agents covering every level of project maintenance.

hive.kubestellar.io

Hub & Spoke Architecture

Hub (hive.kubestellar.io) - central registry, cross-hive leaderboard, contributor directory

Spoke - independent hive instance with its own agents, repos, and GitHub App

HubSpoke
RoleRegistry, federation, leaderboardRuns agents, manages repos
AuthContributor directoryOwn GitHub App + scoped tokens
DataAggregated metricsLocal beads, wiki, snapshots

Agents & the Governor

10 built-in agents, each with a lane, a policy, and boundaries. Custom agents can be added easily.

AgentRole
SupervisorPrioritizes, dispatches work
ScannerInbound triage, bug fixes
QualityTest coverage, code quality
CI-MaintainerBuild health, workflows
Sec-CheckSecurity screening
AgentRole
ArchitectRFCs, refactors
StrategistCross-agent coordination
OutreachCommunity, ADOPTERS
GuideRepo setup advice (L1)
BrainstormIdeas to knowledge (L1)

Governor adapts cadence based on queue depth (thresholds fully customizable):

SURGE (> 20)BUSY (10-20)QUIET (2-10)IDLE (<= 2)
Scanner only, all-hands triageScanner + Reviewer, reducedAll agents activeArchitect + Outreach, deep work

ACMM Levels & the Proxy

The AI-native Codebase Maturity Model - 6 levels from brainstorming to fully autonomous.

The ACMM Proxy sits between agents and GitHub, enforcing level constraints and preventing rogue behavior.

LevelNameAgentsAllowed Actions
L1Inception2Advisory only. Guide + Brainstorm.
L2Advisory5Advisory beads on dashboard. No GitHub writes.
L3Quality-Gated6Quality opens hold-gated PRs. CI gates begin.
L4Security-Aware7Agents open issues. Sec-check joins.
L5Semi-Autonomous9PRs with hold label. Human batch-review.
L6Autonomous10Auto-merge on green CI. Full fleet.

Agents cannot bypass their level - the proxy blocks unauthorized PRs, issues, and merges.

Paper: The AI Codebase Maturity Model

Level 1: Inception (Brainstorming) & Spec-Kit

Inception - onboarding a project into Hive

PhaseWhat Happens
CaptureProvide the raw idea or existing repo URL
ClarifyBrainstorm generates 5-7 questions; you answer
StructureCreates knowledge base facts (vision, requirements, constraints)
ScaffoldGenerates bootstrap files (README, CLAUDE.md, CI, tests)
CompleteInception done, agents ready

Two modes: greenfield (new idea, no repo) or brownfield (existing repo, extract facts).

Spec-Kit - structured artifacts generated at L1

specs/CONSTITUTION.md - immutable principles | specs/SPEC.md - requirements

specs/PLAN.md - implementation steps | specs/TASKS.md - task breakdown

These artifacts bootstrap the LLM-Wiki knowledge layer.

LLM-Wiki: The Knowledge Layer

A 4-layer wiki (powered by llm-wiki) giving agents shared memory.

Injected as markdown into every agent's work order from L2 onward.

LayerScopeSource
PersonalPrivateUser edits
ProjectRepoAuto-extracted from merged PRs
OrgTeamAuto-promoted (confidence >= 0.9)
CommunityPublicPR-based contributions

Precedence: personal > project > org > community

Fact types evolve as the project matures

Ideation (L1)Operational (L2+)Evolution
idea, vision, constitutionpattern, gotcha, decisionacceptance -> test_scaffold
requirement, constraintregression, integrationconstraint -> gotcha
stakeholder, acceptancetest_scaffold, coverage_ruleconstitution -> decision

Beads & Advisory Mode

Beads - the coordination ledger

A git-backed work tracker that keeps agents from stepping on each other.

FieldValues
typebug, feature, task, advisory
statusopen, in_progress, blocked, done, closed
priority0 (critical) to 4 (minor)
actorscanner, quality, architect, ...
metadatapr_ref, test_status, contributor_engaged

Agents claim beads before work. Skip what peers claimed. Dashboard shows real-time progress.

Advisory Mode (L1-L3)

Relay, Snapshots & Leaderboard

Relay - contributors donate compute to hives they care about

  1. Browse hives
  2. Authenticate with GitHub
  3. WebSocket relay connects CLI to hive
  4. Hive assigns tasks
  5. Report back, get next

Credentials never leave your machine. Relay is scoped to the contributor's GitHub permissions for each repo.

Trust tiers (auto-promote): Newcomer -> Contributor (5 tasks) -> Trusted (20 + vouched)

Dashboard Snapshots

Cross-Hive Leaderboard

Hive: Enterprise Scale

vLLM llm-d

Hive supports self-hosted LLM inference on Kubernetes GPU clusters.

Docker/KubernetesKubernetes + vLLM + llm-d
InferenceCloud APISelf-hosted GPU clusters
Scale1 hive, ~10 reposHundreds of hives, thousands of repos
CostPer-token billingFixed GPU fleet, amortized
PrivacyCode sent to providerCode stays on-prem

Demo Time

hive.kubestellar.io

Andy Anderson - andy@clubanderson.com

arxiv.org/abs/2604.09388 | github.com/kubestellar/hive

1