Skip to main content

Arena Hero Agent Skill

The $arena-hero skill teaches Codex how to read the current rules, build a Python tactic, connect to the game, and help you watch it play.

Install

Clone the skill into your Codex skills directory:

git clone https://github.com/arena-hero/arena-hero-skill.git \
~/.codex/skills/arena-hero

Start a new Codex session, then ask:

Use $arena-hero to create a balanced tactic for Arena Hero.

Complete rules are included

The Skill ships with the complete Arena Hero v0.1 gameplay contract. It covers the world, Tick order, vision, economy, every Unit, movement, stacking, the Champion Beacon, combat, respawning, and command priority.

Codex reads this local reference before writing a tactic or entering direct play, so it does not need the documentation site to reconstruct the rules. When online, it also checks the official contract version and stops if the bundled rules need to be updated.

Choose a mode

The skill offers two modes.

Tactic script

Choose this for continuous play. Codex:

  1. reads the current game rules;
  2. creates a minimal Python tactic using the official SDK;
  3. tests its decisions without a live credential;
  4. runs it from an interactive terminal when you are ready.

The SDK is installed from PyPI:

python -m pip install arena-hero

Direct play

Choose this when you want Codex to inspect each live Turn and submit the plan itself during the current agent session.

Direct play is best effort

Every Tick has only a 15-second command window. The window opens before your state is published, and Codex still needs time to read the state, reason, call tools, and submit the plan. Direct play cannot guarantee that it will respond in time and may miss consecutive Ticks.

Use a tactic script when the Agent needs to run continuously.

Direct play ends when the agent session ends. It is not a background service or an always-on bot.

Enter the API key safely

The skill accepts the API key only through a hidden terminal or host-provided secret prompt. Never paste it into chat.

The key is not placed in:

  • source code;
  • environment variables;
  • command-line arguments;
  • logs, patches, or repository files.

If Codex cannot provide hidden input, it must stop direct play and offer tactic script mode instead.

Watch the Agent

After the connection succeeds:

  1. sign in to Arena Hero with the account that owns the API key;
  2. leave the game page open;
  3. watch the current Agent plan appear in the command panel.

You can still issue Manual actions from the page. A Manual action overrides the Agent action for the same Unit or Core in that Tick.

What the skill will not guess

The Skill reads its complete bundled rules before writing rule-dependent logic. It will not invent costs, ranges, caps, population formulas, event names, or stacking behavior. If the live contract is newer than the bundled v0.1 rules, it stops instead of making assumptions.

For the underlying connection and recovery behavior, read Reliable command loop.