Skip to content

[Epic] AI agent hub inside the Code-XR IDE #189

Backlog
0 of 17 issues completed
Backlog

Description

@aMonteSl

Goal

Turn the Code-XR IDE into a controller for AI agents. The developer connects any number of LLM providers with their own API keys, defines agents (provider, model, instructions and allowed tools), and chats with them about the open project. They can also run orchestrations where a supervisor agent splits a task among sub-agents. Agents can query Code-XR's analyses, so their answers are grounded in the project's metrics and structure.

Reference: "like Hermes"

The reference is Hermes Agent by Nous Research (MIT). It works with Nous Portal, OpenRouter, OpenAI, Anthropic, Google or any OpenAI-compatible endpoint. It also offers:

  • persistent, searchable sessions
  • named bots/profiles, each with its own model, memory and skills
  • delegate_task to spawn isolated child agents in parallel
  • a multi-agent kanban
  • 60+ tools: terminal, files, browser and MCP

What we take: multi-provider agents with the user's own keys, named agent profiles, persistent chats, tools with approval, an orchestrator that delegates to sub-agents, and MCP.

What we add (the TFM contribution): agents that read Code-XR's own analyses (metrics, dependency graph, evolution) to give the developer project context.

Out of scope: messaging gateways (Telegram/Slack), self-improving skills, cron, and voice. Voice belongs to a future immersive-interaction epic.

Principles

  • Bring your own key. There is no Code-XR server: calls go straight from the user's machine to the provider they chose. No network call happens until a provider is configured.
  • Keys are stored with Electron safeStorage: Keychain on macOS, DPAPI on Windows, libsecret/kwallet on Linux. Keys are never written as plain JSON and never sent back to the renderer. If Linux has no secret store (the basic_text backend), the IDE says so and keeps the key in memory for the session only.
  • Everything runs in the main process. The renderer only sees the window.codexr.agents contract.
  • Approval model. Read-only tools run freely. Anything that writes files, runs commands or leaves the machine (other than the model call itself) asks for approval, with a per-agent "always allow" option.
  • Same look as the rest of the IDE: the tokens in styles.css, dark and light themes, and the same icons. It must work on Windows, macOS and Linux.

Architecture (apps/ide)

  • src/main/agents/: providers, vault, sessions, tools and orchestrator.
  • src/renderer/agents/: Agents view, chat panel and run tree.
  • src/shared/agents.ts: the contract.

Provider adapters normalise streaming and tool calls into one internal event stream.

Order

  1. MVP: A1-A5, chat with any provider.
  2. Agents that act on the project: A6-A10.
  3. Orchestration, MCP and usage: A11-A13.

The draft this was created from is in the project folder: kanban/ai-agents-epic-draft.md.

Sub-issues

Sub-issues

0 of 17 Issues completed
Loading 17 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicstream: ai-agentstfm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions