claude-tools

claude-tools is a toolkit developed in Rust that provides functionalities to streamline the operation of AI models and data processing. It particularly supports developers in advancing AI-related projects efficiently.

GitHub Stars

2

User Rating

Not Rated

Favorites

0

Views

38

Forks

0

Issues

0

README
Claude Tools

A comprehensive suite of tools for working with Claude, Claude Code, and MCP servers.

Current Status: Phase 2 Complete! πŸŽ‰

βœ… Advanced Features Delivered - Timeline Analytics, Export System, Performance Optimization

Features
πŸ–₯️ Interactive Terminal UI
  • Vim-style Navigation: j/k, g/G, /, ?, q keyboard shortcuts
  • Conversation Browser: Scrollable list with summaries and metadata
  • Detail View: Full conversation display with markdown rendering and syntax highlighting
  • Advanced Search: TF-IDF ranking, regex support, visual highlighting, navigation (n/N)
  • Timeline Dashboard: Activity timeline with project analytics (press 't')
  • Analytics Dashboard: Comprehensive statistics and insights (press 'a')
  • Export Functionality: Export conversations directly from UI (press 'e' in detail view)
  • Help System: Built-in help overlay with all keyboard shortcuts
πŸ” Advanced Search Features
  • Boolean Queries: Complex logic with AND, OR, NOT operators and parentheses grouping
  • Natural Language Dates: Parse "7 days ago", "last week", "yesterday" automatically
  • Multi-Criteria Filtering: Filter by model, tool, role, date range, message count, duration
  • Regular Expressions: Full regex pattern matching with validation and optimization
  • Visual Highlighting: Match highlighting in conversation snippets
  • Relevance Scoring: TF-IDF ranking with recency and conversation quality boosting
  • Performance: <50ms search times with parallel processing and intelligent caching
πŸ“Š Timeline & Analytics Dashboard
  • Activity Timeline: Visual timeline showing project-level activity patterns
  • Time Period Analysis: 24h, 48h, 1 week, 1 month time windows
  • Project Ranking: Intelligent ranking with activity indicators and trends
  • Tool Usage Tracking: Top tools analysis across projects and time periods
  • Intelligent Caching: Hash-based validation with instant period switching
  • Export Capabilities: Export timeline and analytics to JSON or CSV
  • Interactive Navigation: Navigate from timeline to project conversations
  • Performance Optimization: <200ms timeline generation with smart filtering
πŸ“Š Advanced Analytics
  • Comprehensive Metrics: 6 analytics categories covering all conversation aspects
  • Temporal Analysis: Peak usage hours, weekday patterns, activity trends
  • Model & Tool Usage: Track which models and tools you use most
  • Project Analytics: Understand conversation distribution across projects
  • Quality Metrics: Average duration, completion rates, message length stats
  • Interactive Dashboard: Terminal UI analytics view with scrolling and navigation
πŸ’» Command Line Interface
  • List Conversations: View all conversations with optional detailed view
  • Show Conversations: Display full conversation content in multiple formats
  • Timeline Commands: Generate activity timelines with various time periods
  • Export Conversations: Export to Markdown, HTML, JSON formats with full metadata
  • Search Content: Find conversations by content with match highlighting
  • Statistics: Comprehensive analytics with export capabilities (JSON/CSV)
  • MCP Management: Discover and manage MCP servers
πŸš€ Quick Start
# Clone and build
git clone <repository-url>
cd claude_code
cargo build --release

# Install globally for easier usage
cargo install --path .

# Interactive terminal UI (recommended)
claude-tools interactive  # or: cargo run -- interactive

# Timeline analysis
claude-tools timeline --period day
claude-tools timeline --period week --detailed
claude-tools timeline --export json --output timeline.json

# Command line interface
claude-tools list --detailed
claude-tools search "(rust OR python) AND error"  # Boolean queries
claude-tools search "async.*function" --regex        # Regular expressions
claude-tools search "debug" --tool bash --after "7 days ago"  # Multi-criteria
claude-tools show <conversation-id> --format markdown
claude-tools show <id> --export html --output conversation.html
claude-tools stats --global --export csv
πŸ“ˆ Performance
  • 127+ conversations parsed efficiently from real ~/.claude/ data
  • 17,976+ messages processed with memory-efficient streaming
  • <200ms timeline generation with intelligent caching and filtering
  • <50ms search times with parallel processing and TF-IDF ranking
  • Instant period switching via smart filtering instead of regeneration
  • Cross-platform support (Linux, macOS, Windows)
Development Roadmap
Phase 1: MVP - History Browser βœ… Complete
  • βœ… CLI foundation and argument parsing
  • βœ… ~/.claude/ directory analysis and parsing
  • βœ… Streaming JSON reader for large files
  • βœ… Terminal UI with keyboard navigation
  • βœ… Human-readable conversation display
  • βœ… Search and filtering functionality
  • βœ… Help system and documentation
Phase 2: Enhanced Browsing βœ… Complete
  • βœ… Advanced search with boolean queries, regex, and multi-criteria filtering
  • βœ… Visual search highlighting and navigation
  • βœ… Markdown rendering with syntax highlighting
  • βœ… Conversation statistics and analytics
  • βœ… Export to multiple formats (markdown, HTML, JSON) with CLI and interactive UI
  • βœ… Activity timeline dashboard with intelligent caching
  • βœ… Timeline CLI integration with export functionality
  • βœ… Performance optimization with smart filtering
Phase 3: MCP Server Management (In Progress)
  • βœ… Server discovery framework
  • βœ… Configuration management structure
  • βœ… Basic CLI integration for server listing
  • πŸ”² Health monitoring and diagnostics
  • πŸ”² Advanced server management features
  • πŸ”² Log aggregation and viewing
Phase 4: Claude Code SDK Integration (Vision)
  • Multi-instance coordination
  • Workflow orchestration
  • Session templates and presets
  • Cross-session context sharing
Phase 5: Agentic Task Management (Vision)
  • Formal task pipeline system
  • Automated execution with human oversight
  • Dependency management
  • Progress tracking and reporting
Technical Stack
  • Language: Rust (for performance and memory safety)
  • CLI: clap for argument parsing with comprehensive help
  • TUI: ratatui for terminal interface with crossterm
  • Search: Custom TF-IDF engine with rayon parallel processing
  • Analytics: Timeline analysis with temporal indexing and caching
  • Rendering: pulldown-cmark for markdown, syntect for syntax highlighting
  • Export: Multi-format export system (Markdown, HTML, JSON, CSV)
  • JSON: serde_json with streaming support for large files
  • Caching: Intelligent hash-based caching with LRU eviction
  • Performance: Smart filtering and hierarchical cache lookups
Project Structure
claude_code/
β”œβ”€β”€ src/                       # Source code
β”‚   β”œβ”€β”€ cli/                   # Command-line interface
β”‚   β”‚   β”œβ”€β”€ args.rs           # CLI argument definitions
β”‚   β”‚   └── commands.rs       # Command implementations
β”‚   β”œβ”€β”€ claude/               # Claude-specific functionality
β”‚   β”‚   β”œβ”€β”€ analytics.rs      # Conversation analytics
β”‚   β”‚   β”œβ”€β”€ cache.rs          # Timeline caching system
β”‚   β”‚   β”œβ”€β”€ conversation.rs   # Data structures and parsing
β”‚   β”‚   β”œβ”€β”€ directory.rs      # Directory detection
β”‚   β”‚   β”œβ”€β”€ export.rs         # Export functionality
β”‚   β”‚   β”œβ”€β”€ search.rs         # Search engine
β”‚   β”‚   └── timeline.rs       # Activity timeline
β”‚   β”œβ”€β”€ mcp/                  # MCP server management
β”‚   β”‚   β”œβ”€β”€ discovery.rs      # Server discovery
β”‚   β”‚   └── server.rs         # Server management
β”‚   β”œβ”€β”€ ui/                   # Terminal user interface
β”‚   β”‚   β”œβ”€β”€ app.rs            # Main application state
β”‚   β”‚   └── conversation_display.rs # Rendering
β”‚   β”œβ”€β”€ errors.rs             # Error handling
β”‚   β”œβ”€β”€ lib.rs                # Library exports
β”‚   └── main.rs               # Application entry point
β”œβ”€β”€ tasks/                    # Task management
β”‚   β”œβ”€β”€ active/               # Current work items
β”‚   β”œβ”€β”€ completed/            # Finished tasks
β”‚   └── backlog/              # Future tasks
β”œβ”€β”€ tests/                    # Integration tests
β”œβ”€β”€ CLAUDE.md                 # Development guidance
└── README.md                 # Project documentation
Contributing

This project follows a structured task management approach. See tasks/tasks-directive.md for guidelines on creating and managing tasks.

License

[License TBD]


This project is in early development. Star and watch for updates!