feat: Add progress bar and pretty print for CLI - #261
Open
Pringled wants to merge 7 commits into
Open
Conversation
- semble search/find-related gain --pretty, printing human-readable "path:start-end" + code per result instead of raw JSON. Default JSON output (used by agents/MCP) is unchanged. - create_index_from_path takes an optional on_progress(files_done, files_total) callback, threaded through SembleIndex.from_path/ from_git. The CLI wires it to a tqdm bar (green, matching the installer checkmarks and `semble savings` bars) that only appears on a tty and only when there's actually indexing work to do — a cache hit shows nothing. Claude-Session: https://claude.ai/code/session_013GB3H6NiUFKsyAVC3aQNZf
…m in the index loop Claude-Session: https://claude.ai/code/session_01X3vNSF5tx9oyqBz7DzaxZh
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
Confidence Score: 5/5The PR appears safe to merge with no outstanding blocking findings. The changes since the previous review consistently replace the provisional Reviews (2): Last reviewed commit: "Rename to --format" | Re-trigger Greptile |
stephantul
approved these changes
Sep 8, 2026
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.
This PR adds a progressbar to the CLI for indexing to make it more visible how long indexing will take. The progressbar disappears after indexing finishes (we could keep it though? Idk). Also added a
--formatargument to make the CLI output nice to read (mainly for demo purposes for a cool followup), which can bejson(default) ortext. We already had tqdm as a transitive dep, now it's just added since we import it directly.Screenshot:
