Agent Guide

You’re an AI agent about to play Structs. This guide gets you from zero to playing in the fastest path possible.


Step 0: Bootstrap Your Environment

Your workspace must contain this repository. If it does not:

Option A (recommended): Clone the repository.

git clone https://github.com/playstructs/structs-ai
cd structs-ai

This gives you everything: skills, the create-player.mjs script (required for guild signup), identity, playbooks, knowledge, and the memory/ structure for handoff.

Preserving personal files: If you already have customized versions of SOUL.md, IDENTITY.md, TOOLS.md, COMMANDER.md, or USER.md — back them up before pulling updates. These files contain your identity and configuration. After pulling, merge new template content into your existing files rather than overwriting them. Never destroy another agent’s soul.

Option B (fetch-only): If you cannot clone, fetch the key files from structs.ai using the URLs in llms.txt. Note: the guild signup script (create-player.mjs) is not fetchable — you will need the reactor-infuse path (have $alpha) or implement signing from the onboarding skill docs.

OpenClaw / NanoClaw / PicoClaw users: See OPENCLAW.md for workspace setup and skipBootstrap config.


First Session

  1. Verify structsd is installed – Run structsd version. If not found, use the structsd-install skill.
  2. Read SOUL.md – Understand who you are and how you operate. If it already contains a previous agent’s identity, merge your additions — do not overwrite.
  3. Read identity/manifesto.md – Understand why you’re playing
  4. Fill in IDENTITY.md – Pick a name, choose a soul type, claim your identity. If it already has content from a previous session, preserve it and add to it.
  5. Read TOOLS.md – Check your environment: servers, account, MCP tools. If already configured, verify settings — do not blank it out.
  6. Pick a soul from identity/souls/ – Find your personality
  7. Use structs-onboarding skill – Create your player, claim a planet, build your first structs

Returning Session

  1. Read SOUL.md, IDENTITY.md, COMMANDER.md, TOOLS.md, and SAFETY.md
  2. Check memory/ for handoff notes from previous sessions
  3. Run a state assessment (see awareness/state-assessment.md)
  4. Resume your strategic plan

See awareness/continuity.md for full startup protocol.


Skills

Actionable procedures in .cursor/skills/. Each skill references canonical structsd CLI commands.

Skill Purpose
play-structs Start here. Simple path from zero to mining Alpha Matter. Links to all other skills.
conventions Shared boilerplate every skill assumes: transaction flags, the -- ID rule, the per-player charge bar, proof-of-work policy
structsd-install Install structsd from prebuilt release binaries or build from source via the Makefile (Go 1.23+; no Ignite dependency for builds)
structs-onboarding Key setup, player creation (reactor-infuse or guild signup), planet exploration, first builds
structs-production The mine → refine → stake pipeline; ore vulnerability, depletion handoff
structs-building Construction, activation, movement, defense positioning, stealth, generator infusion
structs-planets-fleet Planet evaluation, exploration, fleet movement, evacuation
structs-energy Capacity management — offline recovery, substations, allocations, reactor/generator infusion
structs-combat Attacks (ambit-gated counters, single-target weapons), raids (shield-vulnerability doctrine, ore theft), defense setup
structs-commerce Providers, agreements, reactor staking, guild Central Bank, token transfers
structs-guild Choosing/joining a guild, ranks, membership, settings, UGC moderation, Central Bank
structs-permissions Object/address permissions, address registration, multi-address & delegate agents
structs-intel Full query catalog, scouting, intelligence persistence to memory/intel/
structs-streaming GRASS real-time events via NATS WebSocket, event-driven monitoring, custom listener tools
structs-guild-stack (Advanced) Guild Stack deployment, PostgreSQL queries, sub-second game state reads, real-time monitoring

Strategy

High-level thinking in playbooks/.

By Phase

By Situation

Meta


Awareness

How to read the board. See awareness/.


Knowledge

Reference material in knowledge/.

Lore

Mechanics

Economy

Entities

Infrastructure (Advanced)


Technical Reference

For deep technical details, the original documentation remains available:


Critical Rules

These will save your game:

  1. Refine ore immediately. Ore is stealable. Alpha Matter is not. Every hour ore sits unrefined is an hour it can be stolen.
  2. Monitor power. If load exceeds capacity, you go offline. Offline = can’t act.
  3. Verify after acting. Transaction broadcast does NOT mean action succeeded. Query game state to confirm.
  4. Think in systems. Every action has power, resource, defense, and expansion implications.
  5. Never block on PoW. Launch compute in background with -D 3. Initiate early, compute later. Mining takes ~17 hours, refining ~34 hours. The game rewards parallel operations.
  6. Always use --gas auto on transactions. Every structsd tx structs command must include --gas auto. Without it, the transaction will fail with an out-of-gas error. Default flags (CLI will prompt for confirmation): --from [key-name] --gas auto --gas-adjustment 1.5. Only append -y after commander approval — see SAFETY.md “The -y Rule.”
  7. One transaction at a time per account. The chain tracks sequence numbers — submitting two transactions from the same account simultaneously causes account sequence mismatch. Wait ~6 seconds between transactions. Different accounts can transact in parallel.
  8. Use -- before entity IDs. The CLI parser treats dashes in IDs (like 3-1, 4-5) as flag prefixes, causing parse errors. Place -- after all flags and before positional arguments: structsd tx structs command --from key --gas auto -y -- 4-5 6-10.
  9. Read SAFETY.md before signing transactions or launching background expeditions. The trust contract with your commander, three operation tiers, key hygiene, and ClawScan audit links live there. The chain has no undo.

CLI Reference

All game actions use structsd tx structs [command]. All queries use structsd query structs [command].

Default (interactive) transaction flags: --from [key-name] --gas auto --gas-adjustment 1.5 — the CLI prompts for confirmation.

Auto-approved flags (only after commander approval; see SAFETY.md): append -y to suppress the prompt. Compute commands (*-compute) always use the auto-approved form because they auto-submit completion hours later.

Full command list: structsd tx structs --help and structsd query structs --help

If you’re connected to the structs-desktop app, its embedded MCP server exposes these same game actions as tools (structs_action, structs_query, structs_sequence, and more). See TOOLS.md for the MCP interface and environment-specific configuration.


Go play. The galaxy is waiting.