Repository navigation
feat: Metadata-first workspace inventory and Codex cue - #1
Merged
Merged
Conversation
Add a manual, metadata-only `bread inventory` command that returns a bounded JSON summary of the workspace — file-category counts, byte totals, an estimated text-token cost, and a top-level directory breakdown — without reading file contents, following symlinks, building the index, calling a model, or persisting state. The streaming walk reuses Bread's ignore, hidden-file, `.git/`/`.bread/`, and denied-path boundaries, skips protected paths before any counting, classifies files by name and extension only (via a new path-only `classify_path` seam over the language catalog), estimates tokens from text files alone, and returns an honest incomplete lower bound on an entry-budget or metadata failure. Codex `SessionStart` now returns one static cue advertising the command, on a branch that returns before any index or context access. The deterministic adapter matrix grows to 240 cases and the hook-overhead bench samples the session-start response separately. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add the `bread inventory` command and its metadata-only, policy-aware contract to the README, docs site source, and Codex release guide, and note the single static session-start cue. Update the Codex adapter matrix count to 240 across the docs and the site proof stat. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Ignore local agent and planning state (.claude/, .serena/, docs/plans/) and remove website/.openai/hosting.json, an OpenAI Apps hosting record left over from before the Vercel migration that carried an account-specific project id and is no longer referenced. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a manual, metadata-only
bread inventorycommand plus a compact Codexsession-start cue that points agents at it before broad exploration. Inventory
gives agents a bounded view of workspace shape and estimated text-context cost
without reading file contents, following symlinks, building the index,
calling a model, touching the network, or persisting state.
This adopts the useful metadata-first interaction pattern from
vlm-run/mmwhile deliberately rejecting what makes
mmheavier: no Python runtime, no VLMpipelines, no credential/profile management, no global cross-workspace database,
and no automatic multimodal ingestion. Bread stays a native Rust binary with a
local, workspace-bounded safety model.
What's included
src/engines/inventory.rs): streaming, policy-awaremetadata walk. Reuses Bread's ignore, hidden-file,
.git//.bread/, anddenied-path boundaries; skips protected paths before any counting; classifies
by name/extension only via a new path-only
classify_pathseam over thelanguage catalog; estimates tokens from text files alone (PDFs and other
binaries contribute bytes but zero tokens); returns an honest incomplete
lower bound on an entry-budget or metadata failure.
bread inventory): bounded, versioned JSON — category counts, bytetotals, estimated text tokens, and a capped top-level directory breakdown.
Never emits individual file paths.
SessionStartreturns one static cue on a branch thatreturns before any index or context access.
UserPromptSubmitgating isunchanged. Deterministic adapter matrix grows to 240 cases; the
hook-overhead bench samples the session-start response separately.
metadata-only, policy-aware contract.
Repo hygiene
.claude/,.serena/,docs/plans/).website/.openai/hosting.json— a stale OpenAI Apps hosting recordfrom before the Vercel migration that carried an account-specific project id
and is referenced nowhere.
Testing
cargo test --all-features: 140 passed, 0 failedcargo fmt --all -- --check: cleancargo clippy --all-targets --all-features -- -D warnings: cleancargo build --releaseandcargo build --features semantic --locked: okscripts/codex-release-smoke:BREAD_CODEX_RELEASE_OKbread install codex(release binary) wires all fourhooks including
SessionStart; the daemon delivers the exact cue throughbread hook codex;bread inventoryreturns valid JSON on this repo.🤖 Generated with Claude Code