Sponsored by Deepsite.site

🐢 Lazy Terminal

Created By
Heterohabilis8 months ago
An LLM-based smart terminal for lazy guys :P
Content

🐢 Lazy Terminal

Lazy Terminal is an intelligent command-line assistant that connects language models with external tools through MCP (Modular Component Protocol). It dynamically determines whether a query should be directly answered or passed to a registered tool, enabling seamless terminal automation and smart interaction (you are lazy; it isn't).


🔧 Features

  • Dynamic Tool Routing: Automatically chooses between direct response or tool invocation.
  • Contextual Memory: Maintains conversation context (default 50 interactions).
  • Multi-model Support: Easily integrate various language models via Coagent.
  • Robust JSON Handling: Extracts and processes structured model responses.
  • Secure Bash Execution: Runs safe, controlled bash scripts through MCP tools.

🚀 Quick Start

Installation

pip install -r requirements.txt

Configuration

  • Edit config/models.yaml to include your model credentials.
  • Edit config/mcp_servers.yaml to list your MCP servers.

Running

Launch the assistant with:

python main.py

Start interacting with Lazy Terminal directly from your console!


🛠 Example Usage

Start the bash runner server:

python test_servers/bash_runner.py

Sample interaction:

User input:

You: List all .txt files in ~/Documents and save output to files.txt

Assistant tool invocation:

{
  "tool_name": "run_bash_script",
  "parameters": {
    "commands": "ls ~/Documents/*.txt > files.txt"
  }
}

Lazy Terminal will then execute this safely and return the results.


🔑 Environment Variables

Set model API keys as environment variables, e.g.:

export DEEPSEEK_API_KEY="your-api-key"

Ensure they match your settings in models.yaml.


📌 Roadmap

  • Implement advanced memory compression.
  • Add interactive UI (terminal/web).
  • Enhance error handling and logging.
  • Extend toolset (e.g., file handling, browser automation).
  • Multi-tool calling

🤝 Credits

Enjoy building your intelligent terminal assistant!

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.