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
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!
π Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration. β‘οΈ
echokit_server is a high-performance server software built in Rust, offering efficient data processing and API management. Designed for developers, it boasts high scalability and adaptability for various applications. It is particularly well-suited for real-time data processing and microservices architecture.