gabriel / muse public
feat patch query task/eliminate-prod-clones #1 / 2
AI Agent gabriel · 54 days ago · Apr 19, 2026 · Diff

feat(query): default to working-tree overlay; add --committed flag

muse code query now behaves like muse status and muse diff — it reads files from disk by default so uncommitted edits are immediately visible without staging or committing first.

- Default: symbols_for_snapshot(workdir=root) — disk files take precedence - --committed: pins to the last committed snapshot (old behaviour) - --commit REF: always uses the committed snapshot for that ref (unchanged)

The --all-commits path is unaffected — historical walks are inherently committed-only and do not read the working tree.

Why: agents making edits and then querying their own changes no longer need to commit before the query reflects reality. Consistent with muse status.

sha256:e55f2afae925e9a1dc69491b70baefd906b0ec841287b2b227e51aab23b14360 sha
sha256:f98fcb55642904fd711bbd483af82361ac600465f7b3a04f7e1f8e1e2830dffb snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:e55f2afae925e9a1dc69491b70baefd906b0ec841287b2b227e51aab23b14360 --body "your comment"