Intelligent CLI Agent Infused with Eastern Philosophy
Installation | Quick Start | Documentation | Examples
English | δΈζ
RealConsole is an intelligent command-line agent built with Rust, based on the "One Divides into Three" (δΈεδΈΊδΈ) philosophy. It combines LLM-powered conversation, proactive suggestions, task orchestration, and DevOps tools to provide a seamless CLI experience. Now with Web Terminal support!
git clone https://github.com/hongxin/RealConsole.git
cd RealConsole
make installThe binary will be installed to ~/.local/bin/realconsole.
cargo build --release
./target/release/realconsoleRequirements: Rust 1.70+, LLM Provider (Ollama/Deepseek/Gemini/OpenAI)
π Detailed instructions: Installation Guide
Run the interactive wizard:
realconsole wizard --quickOr manually copy configuration files:
cp .env.example .env
cp config/realconsole.yaml.example realconsole.yaml
# Edit .env and realconsole.yamlCLI Mode:
realconsoleWeb Terminal Mode (NEW):
realconsole web
# Visit http://127.0.0.1:7788% hello # Chat with AI
% ls -la # Execute shell commands (smart routing)
% /suggest # Get proactive suggestions
% /plan create a Rust project # Task orchestration
% /trace # Unified trackingπ Full guide: Quick Start Guide
Cross-platform Web Terminal - Access RealConsole anywhere (17 versions of continuous optimization):
realconsole web --bind 0.0.0.0 --port 7788Core Features:
- β¨ Smart Routing: Auto-detects shell commands, no
!prefix needed - π― Intent Understanding: 50+ built-in intents, natural language task execution
- π§ Tool Calling: Full LLM tool calling capability
- π Jupyter-like Experience: Round cards, collapsible output, one-click rerun (v1.28.0+)
- π€ Intent Decomposition Visualization: Visualize AI thinking process, auto-execute tools (v1.39.0)
- ποΈ Eye Protection Colors: Professional dark theme, inspired by GitHub/Binance, comfortable for long-term use (v1.39.0)
- π¨ Beautiful UI: Real-time streaming output, command history, auto-completion
- π± Mobile Friendly: Responsive design with touch support
- π LAN Access: Team collaboration across devices
Use Cases:
- Remote server management
- Mobile device access
- Team collaboration demos
- Quick testing without installation
π Detailed docs: Web Terminal User Guide
Complete bilingual support (English/Chinese):
- CLI Interface: All command outputs and prompts
- LLM Prompts: System prompts in both languages
- YAML Config: Internationalized configuration files
- Dynamic Switching:
REALCONSOLE_LANG=zh-CN|en-USenvironment variable
- LLM Integration: Ollama (local) / Deepseek / Gemini / OpenAI support
- Streaming Output: Real-time token-by-token display
- Multi-turn Context: Automatic context management (Auto/Manual/Disabled modes)
- Tool Calling: 14+ built-in tools (calculator, file ops, datetime, etc.)
- Context-Aware: Intelligent suggestions based on project type, command history, and errors
- Quick Execute: Number shortcuts (e.g.,
1,2,3) to run suggestions instantly - Spell Checking: Automatic typo correction with Levenshtein distance algorithm
- Feedback Learning: Adapts to your preferences through user feedback
% /suggest
π‘ Based on your context:
1. cargo build - Build the project
2. cargo test - Run tests
3. git commit - Commit changes
% 1 # Quick execute- Natural Language Goals: Describe what you want, AI decomposes into tasks
- Intelligent Parallel Execution: Automatic dependency analysis and optimization
- Task Persistence: Save and load tasks across sessions
- Visual Progress: Tree-structured task display with real-time status
% /plan create a Rust project with src and tests
π€ Decomposed into 6 tasks
% /execute
β 6/6 Β· 100% Β· 10s
% /task save my_build # Save for later
% /task list # List all saved tasks
% /task load 0 # Load task- Four-Dimensional Observation: History + Log + LLM-Log + Context
- Smart Deduplication: Content hash + time window algorithm
- Multi-dimensional Query: By dimension, time, keyword
% /trace
π 20 records from 4 sources
π Statistics | π Coordination | π€ BlackBox | π Memory- Git Assistant: Smart status, diff analysis, commit message generation
- Log Analyzer: Multi-format parsing, error aggregation, health assessment
- System Monitor: CPU/Memory/Disk monitoring, process TOP list
- Project Context: Auto-detect project type, recommend build/test/run commands
- Shell Blacklist: Block dangerous commands (
rm -rf /,dd, fork bombs) - Timeout Control: Default 30s execution limit
- Output Limits: Max 100KB to prevent resource exhaustion
- API Key Security: Environment variable storage,
.envexcluded from version control
% ls # Auto-detected as shell
% pwd # No ! prefix needed for common commands
% git status # 100+ commands auto-recognized% cagro build
β Command not found: cagro
π‘ Did you mean?
1. cargo (0.93) - Rust package manager
2. cat (0.65) - Display file
% 1 # Execute: cargo build# RealConsole learns from your choices
% /suggest
1. cargo check (0.85) - Fast syntax check
2. cargo build (0.80) - Full build
% 1 # Choose cargo check
# After multiple uses
% /suggest
1. cargo check (0.92) β¬οΈ # Boosted!
2. cargo build (0.80)% /plan setup a web API project with routes, models, tests
π Execution Plan:
βΈ 4 stages Β· 8 tasks Β· β‘ 25s
ββ β Stage 1: Create root
ββ β Stage 2: Create dirs [parallel]
ββ β Stage 3: Create files [parallel]
ββ β Stage 4: Init config
% /execute
β 8/8 Β· 100% Β· 15s% /gs # Git status (colorized)
% /gd # Diff analysis
% /ga # Auto-generate commit message
% /la app.log # Analyze logs
% /sys # System overviewπ More examples: Examples Directory
- Quick Start - Get up and running in 5 minutes
- User Guide - Complete feature documentation
- Web Terminal Guide - Web version usage
- One Divides into Three Philosophy - Design principles
- Product Vision - Goals and positioning
- Architecture - System design
- Developer Guide - Contributing and extending
- API Reference - Code documentation
- Project Structure - Codebase organization
- Command Reference - All commands
- Configuration - Config file options
- Roadmap - Future plans
- Changelog - Version history
π Documentation Hub: docs/README.md
User Input
β
Smart Router βββ¬ββ Shell Execution (auto-detected 100+ commands)
βββ System Commands (/help, /suggest, /trace, etc.)
βββ LLM + Tool Calling (streaming output)
β
Proactive Suggestion System
βββ Context Analyzer (project type, history)
βββ Spell Checker (Levenshtein distance)
βββ Feedback Learner (user preferences)
βββ Suggestion Cache (smart lifecycle)
Key Components:
- Agent: Unified entry point, command routing
- LLM Client: Streaming output, tool calling
- Task System: Dependency analysis, parallel execution
- Suggestion Engine: Three-source fusion (Context + History + LLM)
- Tracer: Four-dimensional observation system
- Web Server: Axum framework, WebSocket real-time communication
AI Thinking Visualization + Comfortable Long-Term Use
Intent Decomposition Auto-Execute:
- β
/decomposecommand now actually executes tools and returns real results (not just visualization) - β See both AI thinking process (intent understanding, step planning) and get actual results
- β Consistent intelligent experience with direct execution mode, preserves teaching and debugging value
Eye Protection Color System Optimization:
- β Significantly reduced blue/cyan usage (blue light intensity reduced by 83%)
- β Adopted GitHub/Binance professional dark theme style
- β Removed 25+ glow effects, reducing eye fatigue
- β Long-term comfort increased by 113% (40 β 85 score)
# Try intent decomposition auto-execute
% /decompose calculate 2 + 3
β Show intent understanding β Show step plan β Auto-execute β Return result: 5
# Eye protection colors are enabled by default, no configuration neededπ Details: CHANGELOG.md v1.39.0
Jupyter-like Experience Upgrade
- β One-click rerun of any historical command/conversation (Cell Rerun Feature)
- β Cyberpunk UI - Simple icon-style buttons
- β Real-time feedback - Loading state, error handling, button disabled
- β WebSocket communication - Complete frontend-backend message flow
π Details: CHANGELOG.md v1.38.0
Jupyter-ification of Conversation History
- β Jupyter-like conversation round cards
- β Dual view mode (round view/traditional view) switching
- β Complete metadata display (time, duration, token statistics)
- β Cell collapse/expand for optimized long output display
π Details: CHANGELOG.md v1.28.0
Seamless Bilingual Experience
- β Complete CLI internationalization: All command outputs, prompts, error messages
- β Bilingual LLM prompts: System prompts support Chinese context
- β Internationalized YAML config: Configuration file comments in both languages
- β
Environment variable control:
REALCONSOLE_LANG=zh-CN|en-USfor dynamic switching
Access RealConsole Anywhere
- β Complete web terminal implementation (Axum + WebSocket)
- β Smart routing and Intent understanding
- β Beautiful UI with real-time streaming output
- β Mobile-friendly responsive design
- β LAN access support
π Complete Web Terminal Documentation: Web Terminal User Guide
More historical features see CHANGELOG.md | Complete version history: docs/03-evolution/version-history.md
This program is implemented using Claude Code's Vibe Coding approach. It is intended for educational, research, and technical exploration purposes only. Not recommended for production use.
By using this program, you acknowledge its experimental nature and assume full responsibility for any consequences.
Contributions welcome! See Developer Guide and Contributing Guide.
# Run tests
cargo test
# Format code
cargo fmt
# Lint
cargo clippy- Inspiration: SmartConsole (Python version)
- Community: Rust Community, LLM Providers (Ollama, Deepseek, Gemini, OpenAI)
- Development: Built with Claude Code
RealConsole - Where Philosophy Meets Technology
GitHub β’ Documentation β’ Examples β’ Issues