Omni-Agent
The Omni-Agent is the core autonomous engine inside OmniIDE. It is a goal-oriented AI system that writes, runs, debugs, and fixes code without requiring human intervention at every step.
How It Works
The Omni-Agent operates on a simple but powerful loop:
- Understand — Parse the user's natural language instruction and decompose it into actionable development tasks
- Plan — Generate a step-by-step execution plan for code generation, file creation, and command execution
- Execute — Write code, create files, and run terminal commands inside the Hardened Sandbox
- Verify — Check the output for errors or unexpected behavior
- Heal — If errors are detected, analyze root cause, generate fixes, and re-execute (the Self-Healing Loop)
LLM Backend
The agent supports two AI backends:
- Google Gemini API — State-of-the-art cloud reasoning for complex tasks
- Ollama — Local model execution for offline, privacy-first development
Capabilities
| Capability | Description |
|---|---|
| Code Generation | Writes complete files, functions, and modules from natural language |
| File Management | Creates, reads, modifies, and deletes files across the workspace |
| Terminal Execution | Runs shell commands, installs dependencies, starts servers |
| Error Recovery | Catches terminal errors and generates corrective code automatically |
| Multi-File Editing | Handles refactors that span multiple files simultaneously |
| Context Awareness | Understands your codebase structure, dependencies, and coding patterns |
Agent Invocation
Invoke the agent through the Omni-Agent panel with natural language:
// Example instructions:
"Create a REST API with authentication using JWT"
"Refactor the database module to use connection pooling"
"Fix the failing test in user.test.js and re-run the test suite"
"Add error handling to all API endpoints"
Autonomy levels: The agent operates fully autonomously by default. You can configure
omni.agent.confirmBeforeExecute to require approval before running terminal commands.Related Concepts
- Agentic Loop — The execution cycle powering the agent
- Self-Healing Terminal — Automatic error recovery
- Hardened Sandbox — Secure execution environment
- Execution Kernel — Low-level command execution engine