How lenovolquser15-ai/local-ai-ide works
LocalHarness is a local-LLM agent application with a browser UI, HTTP/SSE server, persistent sessions, and tool execution. The main workflow is a user submitting a request through the UI; the server exposes the application API, the agent coordinates model calls and tools, and session storage retains the conversation. The README also describes model management, file/RAG workflows, voice, training, plugins, scheduling, dashboards, and clustering. Some subsystem links are omitted where the sampled source does not establish their runtime caller.
Main entry points: server.py HTTP and SSE Server · tools.py Tool Execution · llm.py LLM Client · lms.py LM Studio Management
Components 22
Interface and API
- Web UI
webui/app.js - HTTP and SSE Server
harness/server.py
Agent Runtime
- Agent Loop
harness/agent.py - Tool Execution
harness/tools.py - Session History
harness/session.py
Local Models
- LLM Client
harness/llm.py - LM Studio and Ollama
- LM Studio Management
harness/lms.py - Configuration
harness/config.py - DNS Workaround
harness/dnsfix.py
Workspace Capabilities
- File Editor
harness/files.py - RAG Knowledge Base
harness/rag.py - Web Search
harness/search.py - Voice Call
harness/voice.py
Studio Extensions
- Wi-Fi Cluster
harness/cluster.py - System Dashboard
harness/dashboard.py - GPU Thermal Control
harness/thermal.py - LoRA Training Studio
harness/unsloth_trainer.py - Plugin System
harness/plugins.py - MCP Servers
harness/mcp_client.py - Prompt and Shell Scheduler
harness/scheduler.py
Other components
- User
Connections 28
- User → Web UI: submits requests
README.md - Web UI → HTTP and SSE Server: uses API
harness/server.py - HTTP and SSE Server → LLM Client: handles model requests
harness/server.py - HTTP and SSE Server → Session History: serves session history
harness/server.py - Agent Loop → LLM Client: calls model
harness/agent.py - Agent Loop → Tool Execution: dispatches tools
harness/agent.py - Agent Loop → Session History: persists turns
harness/agent.py - LLM Client → LM Studio and Ollama: sends completions
README.md - LLM Client → LM Studio Management: checks readiness
harness/llm.py - LM Studio Management → Configuration: reads settings
harness/lms.py - HTTP and SSE Server → LM Studio Management: queries model status
harness/server.py - HTTP and SSE Server → GPU Thermal Control: reads thermal status
harness/server.py - HTTP and SSE Server → RAG Knowledge Base: reports RAG status
harness/server.py - HTTP and SSE Server → File Editor: routes file requests
harness/server.py - Tool Execution → Web Search: runs web search
harness/tools.py - Tool Execution → RAG Knowledge Base: uses RAG tools
harness/tools.py - Tool Execution → Wi-Fi Cluster: uses cluster tools
harness/tools.py - Tool Execution → LoRA Training Studio: uses training tools
harness/tools.py - Tool Execution → MCP Servers: invokes MCP tools
harness/tools.py - Plugin System → Configuration: loads settings
harness/plugins.py - System Dashboard → GPU Thermal Control: reads GPU status
harness/dashboard.py - GPU Thermal Control → LM Studio Management: unloads models
harness/thermal.py - HTTP and SSE Server → DNS Workaround: applies DNS workaround
harness/server.py - User → Voice Call: starts voice calls
README.md - User → LoRA Training Studio: starts fine-tuning
README.md - User → Prompt and Shell Scheduler: configures schedules
README.md - User → Plugin System: manages plugins
README.md - User → Wi-Fi Cluster: connects workers
README.md