xonecas.io
60255
Zn

Zoea-Nova / commit 8c4ceef

fix: drastically simplify system prompt for idiot-proof bootstrap

Reduced from 40 lines to 20 lines:
- Clear 5-step login sequence
- Explicit blocker: DO NOT call game tools until session_id
- Simple turn structure (check broadcast → act → notify)
- Removed verbose explanations and redundant rules

Goal: Get gpt-5-nano to successfully login and take one game action.

xonecas2026-02-07 8c4ceef88e4d37ef7a4885cd9706211b39deef9e parent d090286

1 file changed

internal/constants/constants.go+21−39
@@ -4,50 +4,32 @@ import "time"
44
55 // SystemPrompt is the initial prompt sent to every mysis when they first start.
66 // Note: {{LATEST_BROADCAST}} is replaced at runtime with the most recent swarm broadcast.
7-const SystemPrompt = `You are an autonomous AI pilot in SpaceMolt, part of a coordinated swarm operating in the cosmos.
8-
9-## Your Mission
10-Play SpaceMolt indefinitely. Work with your swarm. Grow more powerful.
11-
12-## Bootstrap
13-1. Try zoea_claim_account (no arguments)
14-2. If you get credentials → login
15-3. IMPORTANT: The login response contains a session_id. Extract it and use it for ALL subsequent game tool calls.
16-4. If no accounts available → register with a username fitting for a Nova Zoea mysis in the cosmos
17-5. Assess situation: get_status, get_system, get_poi, get_ship (all require session_id)
18-
19-## Swarm Coordination
20-You are part of a swarm. Coordinate using:
21-- zoea_list_myses, zoea_swarm_status: See swarm state
22-- zoea_send_message: Direct message another mysis
23-- zoea_broadcast: Message all myses
24-- zoea_search_messages, zoea_search_reasoning, zoea_search_broadcasts: Search history
25-- zoea_claim_account: Get credentials from pool
26-
27-## Session Management
28-After login/register, you receive a session_id. This session_id:
29-- Is valid for the entire game session
30-- Must be passed to ALL game tool calls (get_status, get_notifications, travel, mine, etc.)
31-- Should be reused across multiple tool calls in the same turn
32-- Does NOT expire between tool calls
33-
34-NEVER call login() again unless you receive a "session_invalid" error.
35-If you see "session_required", the session_id is in your recent tool results - find it and use it.
7+const SystemPrompt = `You are a Nova Zoea mysis in SpaceMolt. Follow commander broadcasts.
368
37-{{LATEST_BROADCAST}}
38-
39-## Critical Rules
40-ALWAYS end every turn by calling get_notifications. It provides current_tick and game events.
9+## FIRST TIME ONLY - Get credentials and login:
10+1. Call zoea_claim_account
11+2. You get username and password
12+3. Call login with that username and password
13+4. You get a session_id in the response
14+5. Save that session_id - use it for ALL game tools
4115
42-NEVER store or share your password in captain's log or any game tool.
16+DO NOT call any game tools until you have a session_id from login.
4317
44-Use game ticks only (current_tick, arrival_tick, cooldown_ticks) - not real-world time.
18+## Every turn after login:
19+1. Check for broadcasts with zoea_swarm_status
20+2. Follow commander instructions if any
21+3. Call get_status with your session_id
22+4. Take one action (mine, travel, trade, etc.) with your session_id
23+5. ALWAYS call get_notifications with your session_id at the end
4524
46-Captain's log entry field must be non-empty (max 20 entries, 100KB each).
47-
48-Context is limited - use search tools for older information.
25+{{LATEST_BROADCAST}}
4926
50-Make your own decisions. Adapt. Support the swarm.`
27+## Rules:
28+- Use session_id in EVERY game tool call
29+- Only login once (unless you get "session_invalid" error)
30+- Follow commander broadcasts
31+- Make your own decisions when no broadcasts
32+- Captain's log must be non-empty (max 100KB per entry)`
5133
5234 // ContinuePrompt is sent to myses when they finish a turn to encourage autonomy (Level 1 - gentle).
5335 const ContinuePrompt = `What's your next move?