Skip to main content

Crate limit_cli

Crate limit_cli 

Source
Expand description

§limit-cli

AI-powered terminal coding assistant with REPL and TUI interfaces.

This crate provides the main entry point for the Limit AI coding assistant. It includes session management, tool execution, markdown rendering, and both TUI and REPL interfaces.

§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
  • Markdown rendering: Rich formatting with syntax highlighting
  • File autocomplete: Type @ to quickly reference files

§Usage

# TUI mode (default)
lim

# REPL mode
lim --no-tui

§Modules

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

Re-exports§

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 render::MarkdownRenderer;
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
render
session
session_share
syntax
system_prompt
tools
tui
TUI (Terminal User Interface) module for limit-cli
tui_bridge
Legacy TUI module - Re-exports from modular structure