Merged
Conversation
- Add --blocked flag as alias for --is-blocked - Add --ready flag for actionable beans (not blocked, excludes completed/scrapped/draft) - Update prompt.tmpl to use simpler --ready flag instead of GraphQL query These convenience flags reduce command sprawl by extending `beans list` instead of adding new top-level commands. Refs: beans-0elf
Superseded by --blocked and --ready flags in beans list.
Keep only --is-blocked (existing) and --ready (new). The --blocked alias was unnecessary duplication.
These flags are semantically contradictory (--ready implies not blocked). Fail fast with a clear message rather than silently producing unexpected results.
- Use `beans list -s in-progress` instead of GraphQL query - Add --full to both commands so agents get bean bodies
- Rename misleading `notBlocked` variable to `isBlocked` - Update bean description to remove stale --blocked reference - Add table-driven test for --ready/--is-blocked mutual exclusivity
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
--readyconvenience flag tobeans listfor finding actionable work:beans list --ready # Not blocked, excludes completed/scrapped/draftThis extends the existing command rather than adding new top-level commands, keeping
beans --helpconcise.Changes
cmd/list.go--readyflag with mutual exclusivity check vs--is-blockedcmd/list_test.gocmd/prompt.tmplbeans listinstead of GraphQL.beans/*.mdUsage
Design decisions
--blockedalias: We considered adding--blockedas an alias for--is-blocked, but removed it to avoid unnecessary duplication--readyand--is-blockedare semantically contradictory, so we error immediately rather than silently producing unexpected resultsbeans blockedandbeans readycommands are no longer needed — flags cover these use casesRefs: beans-0elf
Test plan
mise buildsucceedsmise testpassesbeans list --helpshows new--readyflagbeans list --readyreturns actionable beansbeans list --ready --is-blockedreturns clear errorbeans primeoutput uses simplified commands