Skip to main content

Agent Builder

Agent Builder is the planned HyperionX environment for creating specialized AI agents inside the trading platform.

The goal is to move beyond a single generic chat assistant. Traders should be able to create agents for specific jobs, give them safe context, connect them to approved tools, and control what they are allowed to do.

Agent Types

Examples of useful HyperionX agents:

AgentPurpose
Code Lab AgentDrafts, explains, debugs, and validates HyperionX scripts.
Strategy Research AgentReviews backtests, optimization results, and parameter behavior.
Chart Analyst AgentExplains chart state, indicators, visible candles, and trade setups.
Risk AgentWatches account state, open positions, order exposure, and configured limits.
Journal AgentConverts trades and notes into structured journal entries.
Support AgentHelps users understand platform windows, settings, errors, and logs.
Client Account AgentMonitors multi-account state with restricted read access.

Agent Configuration

An agent should have a clear configuration model:

  • Name.
  • Description.
  • Role.
  • System instructions.
  • Allowed tools.
  • Allowed data sources.
  • Workspace root.
  • Memory policy.
  • Model/provider selection.
  • Risk limits.
  • Trading permissions.
  • Audit logging.
  • Enabled/disabled state.

Workspace Root

Agents need a controlled workspace root for files they are allowed to read or write.

Recommended default:

~/.hyperionx/agents/workspace

The exact path should be configurable in platform settings. Agents should not receive unrestricted filesystem access by default.

Prompt Files

Agents can be configured with prompt files that define behavior and tool rules.

Possible prompt files:

FilePurpose
AGENTS.mdGlobal agent operating rules.
SOUL.mdBrand, tone, personality, and user preference context.
TOOLS.mdTool contracts, permissions, and safety rules.
RISK.mdTrading risk rules and account limits.
SCRIPTING.mdHyperionX Code Lab scripting rules.

These files should be visible and editable by advanced users, but the platform should still enforce hard safety limits in code.

Skills

Skills are reusable instruction packs for agents.

Recommended skill layout:

~/.hyperionx/agents/skills/{skill-name}/SKILL.md

Example skills:

  • Build a HyperionX indicator.
  • Port an indicator from another platform.
  • Review strategy risk.
  • Summarize a backtest.
  • Diagnose a connection error.
  • Prepare a trade journal entry.
  • Explain chart trader order behavior.

Tool Permissions

Agent tools should be staged by risk.

StageTool TypeRisk
1Read-only chart contextLow
2Code Lab script draft generationLow/medium
3Code Lab compile diagnosticsMedium
4Simulation-only order draftsMedium
5Confirmed chart trader actionsHigh
6Live order submissionHighest

Live trading tools should require explicit enablement, user confirmation, risk limits, and audit logs.

Trading Settings

The advanced agent section should include live trading settings, but keep them collapsed by default.

Useful fields:

  • Trading enabled.
  • Simulation only.
  • Max order value.
  • Max daily loss.
  • Max position size.
  • Allowed instruments.
  • Allowed accounts.
  • Allowed order types.
  • Require confirmation before order.
  • Stop trading after error.
  • Stop trading after disconnection.
  • Journal every action.

Strategy And Indicator Integration

An agent should be able to work with trading logic in several ways:

  • Watch signals from a selected indicator.
  • Watch signals from a selected strategy.
  • Open Code Lab to build or edit a script.
  • Create a draft strategy from a prompt.
  • Explain why a signal fired.
  • Review a strategy's parameters.
  • Compare strategy performance across tests.

The first implementation should be read-only and simulation-first. Live execution should come after the signal, risk, confirmation, and audit systems are stable.

Agent Builder UI

The Agent Builder window should include:

  • Agent list.
  • Create agent button.
  • Edit agent form.
  • Delete agent action.
  • Provider/model selection.
  • System prompt editor.
  • Tool permissions.
  • Memory settings.
  • Workspace path.
  • Skills.
  • Advanced trading settings.
  • API usage and cost summary.
  • Performance and uptime summary.
  • Recent actions/audit log.

The page should follow HyperionX dark theme rules and should not refer to third-party project names in the public UI.

Safe Build Order

Recommended implementation order:

  1. Agent list and create/edit/delete UI.
  2. Prompt and model settings.
  3. Read-only chart context.
  4. Code Lab script drafting.
  5. Code Lab compile diagnostics.
  6. Skills and prompt files.
  7. Agent memory.
  8. Backtest and optimizer result review.
  9. Simulation-only actions.
  10. Permissioned live trading actions.