Skip to main content

Module smart

Module smart 

Source
Expand description

๐Ÿง  Smart Tools - Revolutionary AI-Driven Context-Aware Features

This module contains the next-generation Smart Tools that provide context-aware, AI-optimized functionality with 70-90% token reduction.

ยงSmart Tools Overview:

  • SmartRead: Context-aware file reading focusing on relevant sections
  • SemanticEdit: Intent-based code modifications understanding code intent
  • SmartLS: Task-aware directory listings prioritizing relevant files
  • Unified Search: Natural language queries replacing multiple tool calls

These tools work together to drastically improve AI-human collaboration by reducing typical 10+ tool workflows to just 3 smart calls while improving accuracy and reducing token usage.

Re-exportsยง

pub use context::ContextAnalyzer;
pub use git_relay::GitOperation;
pub use git_relay::GitRelay;
pub use git_relay::GitRelayResponse;
pub use git_relay::GitResult;
pub use nlp::ParsedQuery;
pub use nlp::QueryParser;
pub use nlp::SearchIntent;
pub use relevance::ProjectContext;
pub use relevance::ProjectType;
pub use relevance::RelevanceEngine;
pub use smart_ls::SmartDirEntry;
pub use smart_ls::SmartLS;
pub use smart_ls::SmartLSResponse;
pub use smart_read::FileSection;
pub use smart_read::SmartReadResponse;
pub use smart_read::SmartReader;
pub use unified_search::SearchResult;
pub use unified_search::SearchResultType;
pub use unified_search::UnifiedSearch;
pub use unified_search::UnifiedSearchResponse;

Modulesยง

context
๐Ÿง  Context Analysis Engine
git_relay
๐Ÿ”„ GiT Relay - Smart Git CLI Integration with Compression
nlp
๐Ÿง  Natural Language Processing for Smart Tools
relevance
๐Ÿ“Š Relevance Engine - Advanced Scoring Algorithms
smart_ls
๐Ÿ“‚ SmartLS - Task-Aware Directory Intelligence
smart_read
๐Ÿ“– SmartRead - Context-Aware File Reading
unified_search
๐Ÿ” Unified Search - Natural Language Query Engine

Structsยง

RelevanceScore
๐Ÿ“Š Relevance scoring for files/sections
SmartResponse
๐ŸŽญ Smart response with context awareness
TaskContext
๐ŸŽฏ Core context analysis for understanding user intent and task focus
TokenSavings
๐Ÿ’ฐ Token efficiency metrics

Enumsยง

FocusArea
๐Ÿ” Areas of focus for context-aware analysis