Repository navigation
Black Box 0.3.0
Black Box is a local-first memory bus for coding agents: capture structured Decisions, Handoffs,
Observations, Ideas, and Evidence, then recall that context across sessions through MCP, REST, CLI,
or the web UI. This release gathers the architecture, capture-fidelity, diagnostics, redaction,
recovery, UI, onboarding, and performance work landed since v0.2.0.
Highlights
- Per-project broadcasts for cross-session awareness. A mutable live set per project of
hazard(active lock, dirty tree, warning; 72h default TTL),invariant(standing fact), and
tentacle(started-but-unfinished work, cleared only explicitly, with an optional follow-up
time) notices. Write them with MCPsetBroadcast/clearBroadcastor REST/api/broadcasts;
listBroadcastswithstaleOnlyandallProjectssweeps forgotten tentacles across every
project, andrecallContextattaches a bounded digest (8 items, 1,500 characters) whenever
recall resolves to a project. - Focused memory bus; task board, runner, and Jev/Cortex judge removed. Session parent/child
relationships and DAGs live in thelineagemodule, while the dormant/boardUI, task/spec
REST routes, workflow MCP tools, separaterunnerprocess, and optional Jev/Cortex judgment
stage are removed (board retirement). Issue trackers own task queues;
Black Box owns cross-session agent evidence and continuity. - Richer structured intent, ADR export, and deterministic continuations. Capture and recall
coverIdea(captureIdeawith stableideaKeystatus updates and verbatim quotes) and
Evidence(captureEvidencewith provenance and supporting/refuting links) alongside Decisions,
Handoffs, and Observations. Related sessions group across repositories as
projectless braids,GET /api/continuationsbuilds bounded
deterministic Prompts from the record with no model call, Recall cards include Copy ADR,
and./scripts/blackbox export-adrrenders project Decisions into Markdown ADRs with Git drift
checks. - One-flag offline profile, unified CLI, and
black-boxartifact/MCP naming. Added the
offlineSpring profile (--spring.profiles.active=offline) disabling external/model calls in
one flag,./scripts/blackbox(start,status,demo,init,export-adr), and a bundled
portable agent skill (skills/black-box/SKILL.md). The Maven artifact and MCP server now publish
asblack-box(black-box-0.3.0.jar); existing clients registered under the historical
sba-agenticalias andSBA_*environment variables continue working unchanged. - Zero-model handoff summaries and deeper credential protection. When a session records a
structured Handoff, session finalization promotes that Handoff directly as its summary
(summary_source = handoff) with zero model latency or token cost. The hook bridge streams large
payloads tojqover stdin instead of hittingARG_MAX, preserves ClaudeStopassistant turns
through search and transcript merges, masks Black Box's own configured credential values across
every display and encoded shape (including Base64 streams), and redacts stored text before
summary or meld calls. - Diagnostics, continuity linting, braid-graph export, and offline recall regression benchmark.
Added read-onlyGET /api/diagnostics/storage(storage diagnostics),
GET /api/diagnostics/continuityand redactedGET /api/export/braid-graph(JSON or Mermaid,
continuity diagnostics), and the offline synthetic
recall quality benchmark (scripts/recall-benchmark.sh). - Ambient surfaces, custom PWA icons, and faster human review. Added the chrome-less
/companionview and optional native macOS panel (companion), the optional
macOS menu-bar quick-recall helper (macOS quick recall), custom app
icons andmanifest.webmanifest, My Turns inline follow-up expansion, live
Project Windows cards, caret-aware stream query completion, and a scripted throwaway-DB
live demo. - Encrypted offsite backups, fast shutdown, and measured hot paths. The standalone
backup CLI copies live WAL SQLite databases in a single consistent
step,scripts/storage/blackbox_offsite_backup.pyencrypts offsite snapshots with AES-256 and
restore verification, SQLite read-write transactions beginIMMEDIATE, SSE clients resume via
durableLast-Event-IDcursors without blocking graceful shutdown (32.1 sto~1.1 s), and
hot paths carry reproducible benchmarks for
transcript deduplication,
batched lineage metadata,
timestamp-indexed dashboard activity,
lazy stream payloads,
on-demand route loading, and
frontend request budgets.
Download and run
Download black-box-0.3.0.jar and SHA256SUMS from GitHub Releases into the same directory.
Java 21+ includes everything needed for the default local SQLite server; Elasticsearch and models
remain optional.
shasum -a 256 -c SHA256SUMS # macOS; on Linux use sha256sum -c SHA256SUMS
java -jar black-box-0.3.0.jar --spring.profiles.active=offlineThe server binds to 127.0.0.1:8766 and stores sba-agentic.db in the working directory unless
SBA_DATASOURCE_URL overrides it. With --spring.profiles.active=offline, sessions that record a
structured Handoff receive deterministic handoff summaries; other finalized sessions fall back to
compacted-transcript summaries without calling a model.
To build from source instead, run mvn -q -DskipTests package in an isolated checkout following
Installation and Operations.
Upgrade from 0.2.0
- Stop the running
0.2.0server and any separate0.2.0runner process before replacing
binaries. Do not start an old runner against the updated server. Take a verified native backup
first usingpython3 scripts/storage/blackbox_backup.py(see
Database recovery) and retain your0.2.0JAR and service definition. - Start the new build against the intended database and configuration. Existing databases retain
session lineage and historical Handoffs automatically while leaving legacy task tables untouched
by default. Dropping legacyspecs/tasks/task_eventstables viaSBA_RETIRE_WORKFLOW=true
is optional, explicit, and one-way; read Board retirement before
enabling it. - Reload or reconnect cached MCP clients so retired workflow tools (
createSpec,enqueueTask,
claimNextTask,updateTaskStatus,completeTask,listTasks,getSpec) are cleared from
their tool inventory and newer continuity tools (captureIdea,captureEvidence, braids,
broadcasts) load.
Verify/api/statusand run a small capture-and-recall smoke check before resuming normal hooks. - If rollback is required and
SBA_RETIRE_WORKFLOW=truewas not run, stop the new process and
restore the matched0.2.0binary, configuration, and pre-upgrade snapshot at a fresh SQLite
path so stale-wal/-shmfiles cannot replay against the restored file. Never point a0.2.0
JAR at a database migrated withSBA_RETIRE_WORKFLOW=true.
Release boundaries
This remains a pre-1.0 project. The capture-and-recall loop is tested and used daily, but APIs and
schemas do not yet carry a long-term compatibility or general downgrade guarantee.
SQLite is the default canonical store. The optional PostgreSQL profile owns a separate database for
a single API instance; selecting a profile does not synchronize SQLite and PostgreSQL history or
support horizontal API replicas (PostgreSQL).
The default loopback server disables authentication. Network exposure requires enabling the
authentication boundary behind HTTPS. Source checkouts default session
summaries to the external Codex wrapper, which can send redacted transcript excerpts to a vendor;
set SBA_SUMMARY_BACKEND=local to keep summarization on a local OpenAI-compatible endpoint or off
entirely.
Semantic recall indexes structured intent (Decision, Handoff, Observation, Idea,
Evidence); Projections and full session event streams are searched lexically via SQLite FTS5 or
PostgreSQL search rather than full-corpus vector indexing.