Skip to content

Releases: scalecode-solutions/smc-cli-cc

v0.8.7 — Search overhaul: relevance, grouping, recency, honest truncation

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 28 May 22:07

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 meta record 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 report match_offset and msg_chars.
  • Honest truncation. The summary is always emitted (even when the budget cuts output short) and now carries total_matched, truncated, and capped.
  • --sort {document|recency|oldest|relevance}. Cap is applied after sorting, so --sort recency --max N returns 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 single group record (count, timestamp range, sample snippets). thread walks the parentUuid chain 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.
  • uuid emitted 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

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 08 Mar 02:32

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

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 08 Mar 02:32

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

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 15 Feb 02:41

New Search Modes

  • --tool-input — Search only within tool input content (commands, arguments). Find every bash command that contained git push without matching on surrounding text.
  • --file <PATH> — Filter to messages that touch a specific file path in tool inputs/results. Answer "which sessions edited src/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 blocks

Install

cargo install smc-cli-cc

v0.6.0

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 15 Feb 00:36

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-cc
use 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
  • analytics module — frequency analysis and stats available as library functions
  • SearchOpts::default() — ergonomic builder pattern for search options
  • docs.rs — auto-generated API documentation

Install / Update

cargo install smc-cli-cc

v0.5.2

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 15 Feb 00:24

What's New

  • --and/-a search 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-cc

v0.5.1

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 15 Feb 00:20

What's New

  • --summary mode — condensed search overview with projects, roles, date range, and auto-extracted topics
  • --exclude-session — skip a specific session ID in search results
  • -p/--project on recent — 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 output
  • freq chars now parses JSONL — accurate English letter distributions (use --raw for old behavior)
  • Updated README — complete flag reference table, example outputs for all modes

Install / Update

cargo install smc-cli-cc

smc v0.3.3

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 14 Feb 18:41

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 .