How sathvik-srivathsan/ai-agent-control-panel works
AI Agent Control Panel is a React/FastAPI application for configuring agents, running them against an OpenAI-compatible model gateway, and reviewing execution history and metrics. Users enter through the web UI; agent runs are handled by the API, which invokes the agent loop, persists run artifacts, and returns a result. The graph also shows the workspace tools and monitoring views. Source excerpts establish the backend calls; UI-to-API links and provider options are supported by the README and indexed references.
Main entry points: App.jsx Application routes · routes_runs.py Run and metrics endpoints · client.js API client · main.py FastAPI application
Components 23
Web interface
- Application routes
frontend/src/App.jsx - Dashboard metrics
frontend/src/pages/Dashboard.jsx - Agent list
frontend/src/pages/AgentList.jsx - Agent detail and run
frontend/src/pages/AgentDetail.jsx - Run history
frontend/src/pages/RunHistory.jsx - Run timeline
frontend/src/pages/RunDetail.jsx - API client
frontend/src/api/client.js
HTTP API
- FastAPI application
backend/app/main.py - Agent endpoints
backend/app/api/routes_agents.py - Run and metrics endpoints
backend/app/api/routes_runs.py
Agent execution
- Agent tool loop
backend/app/ai/agent.py - Prompt and tool definitions
backend/app/ai/prompts.py
Model and tools
- LLM client
backend/app/ai/client.py - OmniRoute gateway
- Cloud or local LLM
- Tool registry
backend/app/tools/registry.py - Workspace filesystem tools
backend/app/tools/filesystem.py
Persistence
- Runtime configuration
backend/app/core/config.py - Database sessions
backend/app/db/database.py - Agent and run records
backend/app/db/models.py - SQLite database
- Default agent seeding
backend/app/db/seed.py
Other components
- User
Connections 34
- User → Application routes: uses
README.md - Application routes → Dashboard metrics: routes to
frontend/src/App.jsx - Application routes → Agent list: routes to
frontend/src/App.jsx - Application routes → Agent detail and run: routes to
frontend/src/App.jsx - Application routes → Run history: routes to
frontend/src/App.jsx - Application routes → Run timeline: routes to
frontend/src/App.jsx - Dashboard metrics → API client: fetches metrics
frontend/src/pages/Dashboard.jsx - Agent list → API client: fetches agents
frontend/src/pages/AgentList.jsx - Agent detail and run → API client: loads and runs
frontend/src/pages/AgentDetail.jsx - Run history → API client: fetches runs
frontend/src/pages/RunHistory.jsx - Run timeline → API client: fetches run details
frontend/src/pages/RunDetail.jsx - API client → FastAPI application: calls HTTP API
frontend/src/api/client.js - FastAPI application → Agent endpoints: registers router
backend/app/main.py - FastAPI application → Run and metrics endpoints: registers router
backend/app/main.py - FastAPI application → Database sessions: initializes database
backend/app/main.py - FastAPI application → Default agent seeding: seeds agents
backend/app/main.py - Agent endpoints → Database sessions: queries agents
backend/app/api/routes_agents.py - Run and metrics endpoints → Database sessions: reads and writes
backend/app/api/routes_runs.py - Run and metrics endpoints → Agent tool loop: executes agent
backend/app/api/routes_runs.py - Run and metrics endpoints → LLM client: creates client
backend/app/api/routes_runs.py - Agent tool loop → LLM client: requests completions
backend/app/ai/agent.py - Agent tool loop → Prompt and tool definitions: builds prompt and tools
backend/app/ai/agent.py - Agent tool loop → Tool registry: dispatches tools
backend/app/ai/agent.py - Run and metrics endpoints → Workspace filesystem tools: registers tools on import
backend/app/api/routes_runs.py - Workspace filesystem tools → Tool registry: registers functions
backend/app/tools/filesystem.py - LLM client → Runtime configuration: loads settings
backend/app/ai/client.py - Workspace filesystem tools → Runtime configuration: loads workspace path
backend/app/tools/filesystem.py - LLM client → OmniRoute gateway: posts completions
backend/app/ai/client.py - OmniRoute gateway → Cloud or local LLM: routes requests
README.md - Database sessions → Agent and run records: creates ORM tables
backend/app/db/database.py - Database sessions → SQLite database: stores records
backend/app/db/database.py - Default agent seeding → Agent and run records: creates agents
backend/app/db/seed.py - Agent endpoints → Agent and run records: queries agent records
backend/app/api/routes_agents.py - Run and metrics endpoints → Agent and run records: persists run artifacts
backend/app/api/routes_runs.py