Skip to main content

Crate limit_cli

Crate limit_cli 

Source
Expand description

§limit-cli

AI-powered terminal coding assistant with TUI interface.

This crate provides the main entry point for the Limit AI coding assistant. It includes session management, tool execution, and TUI interface.

§Features

  • Multi-provider LLM: Anthropic Claude, OpenAI GPT, z.ai GLM, and local models
  • 18 built-in tools: File I/O, bash execution, git operations, code analysis
  • Session persistence: Auto-save and restore conversations
  • File autocomplete: Type @ to quickly reference files

§Usage

lim

§Modules

ModuleDescription
agent_bridgeBridge between LLM agent and CLI
sessionSession management and persistence
toolsBuilt-in tool implementations
tuiTerminal UI components
syntaxSyntax highlighting
file_finderFile autocomplete with fuzzy matching
session_shareExport sessions to various formats

Re-exports§

pub use session_tree::generate_entry_id;
pub use session_tree::SerializableMessage;
pub use session_tree::SessionEntry;
pub use session_tree::SessionEntryType;
pub use session_tree::SessionTree;
pub use agent_bridge::AgentBridge;
pub use agent_bridge::AgentEvent;
pub use error::CliError;
pub use file_finder::FileFinder;
pub use file_finder::FileMatch;
pub use logging::init_logging;
pub use session::SessionManager;
pub use session_share::ExportFormat;
pub use session_share::SessionExport;
pub use session_share::SessionShare;
pub use syntax::SyntaxHighlighter;
pub use tui::FileAutocompleteState;
pub use tui::TuiState;
pub use tui_bridge::TuiApp;
pub use tui_bridge::TuiBridge;

Modules§

agent_bridge
clipboard
Clipboard operations for the TUI
error
file_finder
logging
session
session_share
session_tree
syntax
system_prompt
tools
tui
TUI (Terminal User Interface) module for limit-cli
tui_bridge
Legacy TUI module - Re-exports from modular structure