How yashchokhat/cortexai works
CortexAI’s principal product is the ESP32 edge-agent firmware, with a browser portal for device setup and management. The user configures a device, connects it to Wi-Fi, and uses the local portal to manage settings and agent capabilities; the agent can then use an LLM and invoke tools on-device. The README also describes chat coding and offline edge computing. Source excerpts establish firmware startup and portal routing, but not most capability wiring, so those relationships are shown as unverified. The separate Flutter app and Go backend are omitted because the README identifies vertex-agent as the primary product.
Main entry points: app_claw.h Claw runtime · App.tsx Portal UI · main.c Firmware startup · http_server_core.c HTTP server
Components 21
Device firmware
- Firmware startup
vertex-agent/application/edge_agent/main/main.c - Device configuration
vertex-agent/application/edge_agent/components/app_config/include/app_config.h
Local web portal
- HTTP server
vertex-agent/application/edge_agent/components/http_server/http_server_core.c - Portal UI
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal API client
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/api/client.ts - Setup wizard
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/pages/SetupWizardPage.tsx - Device status
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/pages/StatusPage.tsx - LLM settings
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/pages/LlmPage.tsx - Messaging settings
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/pages/ImPage.tsx - File manager
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/pages/FilesPage.tsx
Agent capabilities
- Claw runtime
vertex-agent/components/common/app_claw/include/app_claw.h - LLM configuration
vertex-agent/components/claw_capabilities/cap_llm_config/src/cap_llm_config.c - Messaging integrations
vertex-agent/components/claw_capabilities/cap_im_platform/src/cap_im_platform.c - Lua tools
vertex-agent/components/claw_capabilities/cap_lua/src/cap_lua.c - Skills management
vertex-agent/components/claw_capabilities/cap_skill_mgr/src/cap_skill_mgr.c - Agent memory
vertex-agent/components/claw_modules/claw_memory/src/claw_memory_storage.c - MCP services
vertex-agent/components/claw_capabilities/cap_mcp_client/src/cap_mcp_client.c
Network and services
- Wi-Fi manager
vertex-agent/components/common/wifi_manager/wifi_manager.c
Other components
- Device operator
- LLM provider
- Messaging platforms
Connections 22
- Device operator → Portal UI: manages device
- Firmware startup → Device configuration: loads configuration
vertex-agent/application/edge_agent/main/main.c - Firmware startup → Wi-Fi manager: starts Wi-Fi
vertex-agent/application/edge_agent/main/main.c - Firmware startup → HTTP server: starts server
vertex-agent/application/edge_agent/main/main.c - Firmware startup → Claw runtime: updates runtime
vertex-agent/application/edge_agent/main/main.c - Portal UI → Portal API client: calls API client
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal UI → Setup wizard: routes to
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal UI → Device status: routes to
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal UI → LLM settings: routes to
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal UI → Messaging settings: routes to
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal UI → File manager: routes to
vertex-agent/application/edge_agent/components/http_server/frontend_source/src/App.tsx - Portal API client → HTTP server: sends requests
- HTTP server → Device configuration: manages settings
- HTTP server → Claw runtime: exposes controls
- Claw runtime → LLM configuration: uses configuration
- Claw runtime → Lua tools: invokes tools
- Claw runtime → Skills management: uses skills
- Claw runtime → Agent memory: uses memory
- Claw runtime → MCP services: discovers tools
- Claw runtime → Messaging integrations: supports messaging
- LLM configuration → LLM provider: connects to
- Messaging integrations → Messaging platforms: connects to