Repository navigation
Releases: scalecode-solutions/smc-cli-cc
Releases · scalecode-solutions/smc-cli-cc
Release list
v0.8.7 — Search overhaul: relevance, grouping, recency, honest truncation
Search overhaul for AI memory-recovery, plus a build on Rust 1.96 / edition 2024.
(Spans 0.8.3–0.8.7; the crate is published to crates.io at the same version.)
Highlights
- Anti-recursion tag, actually wired. Every stream now opens with a
metarecord stamping<smc-cc-cli>; search excludes its own prior output by default (the guard previously existed but was never emitted). Survives token-budget truncation. - Match-centered snippets. Snippets are a window centered on the hit (not a fixed prefix that often missed the match). New
--snippet-len; matches reportmatch_offsetandmsg_chars. - Honest truncation. The
summaryis always emitted (even when the budget cuts output short) and now carriestotal_matched,truncated, andcapped. --sort {document|recency|oldest|relevance}. Cap is applied after sorting, so--sort recency --max Nreturns the N most recent matches. Results are now deterministic (the racy early-exit was removed; search is exhaustive).--group-by {session|thread}. Collapse many hits about one conversation into a singlegrouprecord (count, timestamp range, sample snippets).threadwalks theparentUuidchain to its root.- BM25 relevance (
--score,--sort relevance). Standard BM25 (k1=1.2, b=0.75) over corpus stats gathered during the scan; opt-in, pure Rust, no new dependencies. uuidemitted per match (stable handle).
Notes
- Requires Rust 1.85+ (edition 2024).
- Binary asset below is macOS arm64 (
aarch64-apple-darwin). Other platforms:cargo install smc-cli-cc.
Full per-version detail is in the v0.8.3–v0.8.7 commit messages.
v0.8.2
v0.8.2 — Fix crates.io metadata
Update repository and homepage URLs to point to the correct GitHub repo.
Install
cargo install smc-cli-cc
v0.8.1
v0.8.1 — Ground-up rewrite with mvtk conventions
Complete rewrite of smc-cli-cc with clean architecture and improved conventions.
Highlights
- Ground-up rewrite following mvtk conventions
- Library + binary crate structure
- Surgical search through Claude Code JSONL conversation logs
- Parallel search with rayon
- Comprehensive README
Install
cargo install smc-cli-cc
v0.7.0 — Tool Input, File Path & Thinking Block Search
New Search Modes
--tool-input— Search only within tool input content (commands, arguments). Find every bash command that containedgit pushwithout matching on surrounding text.--file <PATH>— Filter to messages that touch a specific file path in tool inputs/results. Answer "which sessions editedsrc/main.rs?" instantly.--thinking— Search only within thinking blocks. See what Claude was reasoning about.--no-thinking— Exclude thinking blocks from search results. Focus on visible output only.
Examples
smc search "git push" --tool-input # Search tool commands/arguments only
smc search --file src/main.rs "refactor" # Messages that touched a file
smc search "architecture" --thinking # Search only thinking blocks
smc search "deploy" --no-thinking # Exclude thinking blocksInstall
cargo install smc-cli-ccv0.6.0
What's New
smc is now both a CLI tool and a Rust library. Use it programmatically in your own projects:
cargo add smc-cli-ccuse smc_cli_cc::{config::Config, search::{self, SearchOpts}};
let cfg = Config::new(None)?;
let files = cfg.discover_jsonl_files()?;
let opts = SearchOpts {
queries: vec!["authentication".into()],
project: Some("myapp".into()),
..SearchOpts::default()
};
search::search(&files, &opts)?;Changes
- Library crate — all modules publicly exported:
config,models,search,session,display,analytics analyticsmodule — frequency analysis and stats available as library functionsSearchOpts::default()— ergonomic builder pattern for search options- docs.rs — auto-generated API documentation
Install / Update
cargo install smc-cli-ccv0.5.2
What's New
--and/-asearch mode — require ALL terms to match in the same record (default remains OR)
smc search "bug" "deploy" -a # both terms must appear
smc search "bug" "deploy" # either term matches (default)Install / Update
cargo install smc-cli-ccv0.5.1
What's New
--summarymode — condensed search overview with projects, roles, date range, and auto-extracted topics--exclude-session— skip a specific session ID in search results-p/--projectonrecent— filter recent messages by project<smc-cc-cli>tag wrapping — all output wrapped to prevent AI search recursion-i/--include-smc— opt back in to searching previous smc outputfreq charsnow parses JSONL — accurate English letter distributions (use--rawfor old behavior)- Updated README — complete flag reference table, example outputs for all modes
Install / Update
cargo install smc-cli-ccsmc v0.3.3
smc v0.3.3 — Search My Claude
First public release. Surgical search through Claude Code JSONL conversation logs.
Commands
- search — Parallel full-text search with filters (role, project, date, tool, branch, regex)
- sessions — List/browse sessions with date filtering
- show — Pretty-print conversations with message range support
- tools — List tool calls in a session
- export — Export sessions as markdown
- context — View messages around a specific line number
- projects — List all projects with stats and date ranges
- recent — Latest messages across all sessions
- freq — Frequency analysis (characters, words, tools, roles)
- stats — Aggregate statistics
Highlights
- Searches 2.8GB+ in under a second using Rayon parallel processing
- Session ID prefix matching — no need to type full UUIDs
- Multiple output modes: colored terminal, markdown, JSON
- Frequency analysis scans 2 billion+ characters in ~2 seconds
Install
git clone https://github.com/scalecode-solutions/smc_cli.git
cd smc_cli
cargo install --path .