Home Docs Blog Product Contact

API Reference

OmniIDE exposes internal APIs for extension developers and advanced customization.

Agent API

// Access the Omni-Agent programmatically
const agent = vscode.extensions.getExtension('omniide.omni-agent');

// Send a task to the agent
await agent.exports.execute({
  instruction: "Create a utility function for date formatting",
  workspace: vscode.workspace.rootPath
});

Sandbox API

// Execute a command in the sandbox
const result = await sandbox.run({
  command: "npm test",
  timeout: 60000,
  allowNetwork: false
});
Note: These APIs are subject to change between major versions. Use at your own risk in production extensions.

Related