Repository navigation
Experimental bartender ask: smallest-sufficient cards or NO_MATCH - #304
Draft
JordanCoin wants to merge 2 commits into
Draft
JordanCoin wants to merge 2 commits into
JordanCoin wants to merge 2 commits into
Conversation
Prototype Alexandria-style summary cards and AFR-style shortlisting behind codemap ask / MCP ask, returning MATCH with compact cards or explicit NO_MATCH. Opt-in only; credits everoo/bartender and documents the mapping. Co-authored-by: Jordan Coin Jackson <jordancoinjackson@gmail.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Satisfy CI formatting check and cover JSON/validation CLI paths plus graph-backed card rendering helpers. Co-authored-by: Jordan Coin Jackson <jordancoinjackson@gmail.com>
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
Prototype of bartender ideas (by everoo) inside codemap, behind an opt-in experimental CLI/MCP surface. Default commands and behavior on
mainare unchanged.Agents can ask a question and get the smallest sufficient context as compact, deduplicated summary cards derived from codemap’s existing map — or an explicit
NO_MATCH.Surfaces
MCP tool:
ask(description marked[EXPERIMENTAL bartender prototype]).Schema:
codemap.ask/v1-experimental.Example output
Run against codemap's own repo:
JSON (
codemap ask --json --budget 600 "hook session start", trimmed):{ "schema": "codemap.ask/v1-experimental", "status": "MATCH", "message": "MATCH — smallest sufficient card", "cards": [{ "id": "package:codemap/cmd", "revision": "3d958f00b79f", "type": "package", "capsule": "go · ←7 · →23 · matched: resolveValidatedHookFiles, RunHookWithTimeout, HookTimeoutFromEnv, runSubagentStart", "paths": ["cmd/hooks.go"], "score": 18.048 }] }Note: result 3 is a weak lexical hit (
findGitDirscontains "find"), which is the AFR-vs-lexical question for everoo.What works in this slice
ScanForDeps+FileGraph(Alexandria-inspiredid+revision)find.Rank, adaptive shortlist + byte budgetNO_MATCHwhen nothing is reliable enoughDesign / credit: docs/design/BARTENDER-ASK.md
Non-goals
Open questions for everoo
Listed in the design note (persistence vs ephemeral cards, AFR vs lexical, expand protocol, synonym/
NO_MATCHpolicy, attribution).CI note
Follow-up commit fixes
gofmt(Lint) and adds broader ask CLI/helper coverage. Codecov patch % is informational (fail_ci_if_error: false); total coverage floor already passed on the first run.