Development Guide

Follow an agent task from the web workspace to the task runtime and find where to extend skills, experts, scheduled tasks, and collaboration channels.

Architecture

The React/Vite workspace uses the same-origin web gateway for REST endpoints and /rpc. The gateway forwards JSON-RPC requests to the task runtime and handles workspaces, scheduling, channel connections, and proxying to upstream services.

Services and ports
Browser · React/Vite
    │ Same-origin HTTP / WebSocket
    ▼
Rust web gateway · 127.0.0.1:21956
    ├── REST · Workspaces / Skills / Experts / Scheduled tasks / Channels
    └── /rpc → Task runtime · 127.0.0.1:18705
  • web/ui/ contains the routes, task interface, and entity data layer.
  • web/server/ contains the Axum gateway. Find the entry points in src/main.rs and their implementations in directories such as handlers/, cron/, and channels/.
  • codex-rs/ contains the task runtime and app server protocol.
  • website/ contains the project website and documentation.

Environment and configuration

Use GILDATA_BASE_URL for the WarrenQ upstream and GILDATA_FRONT_BASE_URL for frontend services such as the trading calendar. Pass the same values to the web gateway and app server, and set CODEX_WEB_SERVER_URL on the app server to point to the gateway.

The web gateway defaults GILDATA_LOGIN_ENV to test. For production, set it to production and update the upstream URLs to match.

Keep actual secrets in the deployment configuration. Save custom models in your account settings. MCP supports local stdio processes and HTTP services. The service environment must provide any required executables.

In development mode, the browser accesses Vite through the gateway. To deploy the web workspace, run pnpm --dir web/ui build from the repository root. The web gateway serves web/server/dist/.

Extension points

  • Skills. Put instructions and usage conditions in SKILL.md within each skill directory. You can store workspace skills under .agents/skills/.
  • Expert catalog. For each local expert, put agent.json and AGENTS.md in CODEX_EXPERTS_DIR/<slug>/. The gateway's expert module reads both files.
  • Scheduling and delivery. web/server/src/cron/ manages schedules, run logs, and execution. web/server/src/channels/ handles messaging and account management for connected channels.
  • Models and MCP. Manage configuration in your account settings. For changes to persistence or app server synchronization, start with handlers/model_providers.rs and handlers/mcp.rs.

Create scheduled tasks from the web workspace or let an agent manage them through the built-in Cron MCP. When testing a new template, run it manually first and check the task output, run logs, and delivery results.

Maintain the protocol and feature maps

Web JSON-RPC fields use camelCase. Include modelProviders: [] when listing conversations. When opening an existing conversation, call thread/resume before listening for subsequent streaming events.

When updating the backend protocol, use the project's app server to regenerate frontend types. Follow the maps and verification workflow in the repository root's AGENTS.md when maintaining existing features.

Repository root · Regenerate types and check the maps
pnpm --dir web/ui gen:protocol
python agents/scripts/check-all.py

Preview and publish the website

To preview the site, open the homepage directly in a browser. Keep the entire website/ directory structure when moving or sharing the site.

Set up GitHub Pages in the project repository and publish this directory as the static site.

Documentation and assets use relative paths, so the site works under a GitHub Pages project path. Before publishing, point links marked data-repository to the official repository and set the 404 page's return link to the site root. GitHub Pages custom workflow documentation

Source and contributions

See LICENSE and NOTICE in the source repository for the project license and third-party notices.

When submitting an issue or a change, include reproduction steps, details about the environment, and relevant logs. Remove account identifiers, secrets, and internal links from screenshots and logs before sharing them.

Back to Quick Start