Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add summarize CLI tool#14

Merged
baxen merged 1 commit intomainfrom
baxen/summarize-tool
Feb 10, 2026
Merged

Add summarize CLI tool#14
baxen merged 1 commit intomainfrom
baxen/summarize-tool

Conversation

@baxen
Copy link
Collaborator

@baxen baxen commented Feb 10, 2026

Summary

Add summarize — a portable Rust CLI tool that collects files (recursively, respecting .gitignore) and sends them with a user-provided prompt to a Databricks-hosted LLM for analysis.

Features

  • File collection: Recursively gathers files from specified paths, respecting .gitignore rules
  • Authentication: Supports both API token and OAuth PKCE authentication with automatic token caching/refresh
  • Extension filtering: Filter included files by extension (e.g., --extensions rs,py)
  • Deterministic ordering: Files are always processed in a consistent order
  • Output formats: Text (default) and JSON output formats
  • Default model: databricks-claude-sonnet-4

Usage

# Basic usage
summarize src/ --prompt "What does this code do?"

# Filter by extension
summarize crates/ --prompt "Summarize the Rust code" --extensions rs

# JSON output
summarize . --prompt "Analyze this project" --format json

New Files

File Description
crates/summarize/src/main.rs CLI entry point and argument parsing
crates/summarize/src/files.rs File collection, filtering, and ordering
crates/summarize/src/llm.rs LLM API client for Databricks
crates/summarize/src/auth.rs API token and OAuth PKCE authentication
crates/summarize/README.md Documentation
crates/summarize/Cargo.toml Crate manifest
justfile Added build/test/install/run recipes

A portable Rust CLI that collects files (recursively, respecting .gitignore)
and sends them with a user-provided prompt to a Databricks-hosted LLM for
analysis.

Features:
- API token and OAuth PKCE authentication with token caching/refresh
- Extension-based file filtering
- Deterministic file ordering
- Text and JSON output formats
- Default model: databricks-claude-sonnet-4
@baxen baxen requested a review from wesbillman as a code owner February 10, 2026 01:25
@baxen baxen merged commit 150b4ec into main Feb 10, 2026
1 check passed
@baxen baxen deleted the baxen/summarize-tool branch February 10, 2026 18:04
loganj added a commit that referenced this pull request Feb 26, 2026
Fix comment anchoring for markdown-formatted text and text that spans block elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants