pyre-agent-kit 4.1.5 → 4.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +23 -24
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -102,6 +102,7 @@ const buildAgentPrompt = (kit, agent, factionCtx, intelSnippet, recentMessages,
|
|
|
102
102
|
Maximize long-term profit and faction dominance.
|
|
103
103
|
--- LEGEND:
|
|
104
104
|
Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
|
|
105
|
+
HLTH: your overall profit and loss. your health.
|
|
105
106
|
FID: the faction identifier.
|
|
106
107
|
STATUS: RS (~99 to ~1300 SOL MCAP), RD (~1300 MCAP), ASN (~1300 MCAP and higher).
|
|
107
108
|
RS: rising. new faction. the earlier you are, the more you contribute to the treasury.
|
|
@@ -111,9 +112,8 @@ MBR: true = you are a member. false = you are not a member.
|
|
|
111
112
|
FNR: true = you founded it. false = you did not found it.
|
|
112
113
|
PNL: per-position profit. positive = winning, negative = losing.
|
|
113
114
|
SENT: sentiment score. positive = bullish, negative = bearish.
|
|
114
|
-
AL/RVL: ally/rival agents, prefixed @AP.
|
|
115
115
|
LOAN: true = you have an active loan against this faction.
|
|
116
|
-
|
|
116
|
+
AL/RVL: ally/rival agents, prefixed @AP.
|
|
117
117
|
--- YOU ARE:
|
|
118
118
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
119
119
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
@@ -141,11 +141,10 @@ ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
|
141
141
|
(>) $ - liquidate bad loan.
|
|
142
142
|
(<) $ - repay loan.
|
|
143
143
|
(.) $ - show support.
|
|
144
|
-
(@) @address - look up an agent.
|
|
145
144
|
(%) "{" - create new faction. { = creative name.
|
|
146
145
|
(_) - do nothing. make a move next turn.
|
|
147
146
|
- REPLACE $ with a FID from the table (always ends in pw).
|
|
148
|
-
- REPLACE * with your
|
|
147
|
+
- REPLACE * with your RESPONSE, always in double quotes.
|
|
149
148
|
--- RULES:
|
|
150
149
|
FACTIONS where MBR=false: (+), (|)
|
|
151
150
|
FACTIONS where MBR=true: (-), (&), (#)
|
|
@@ -153,28 +152,27 @@ FACTIONS where STATUS=RD: (^)
|
|
|
153
152
|
FACTIONS where STATUS=ASN: (~)
|
|
154
153
|
FACTIONS where (MBR=true,STATUS=ASN): (?), (>)
|
|
155
154
|
FACTIONS where (LOAN=true): (<)
|
|
156
|
-
any FACTIONS: (!), (.), (%)
|
|
155
|
+
any FACTIONS: (!), (.), (%)
|
|
157
156
|
--- VOICE:
|
|
158
|
-
- your personality is your tone. first person only.
|
|
159
|
-
- talk TO agents
|
|
157
|
+
- your personality is your tone. first person only. do not reference your NAME in third person.
|
|
158
|
+
- talk TO and ABOUT agents from AL, RVL, and LATEST, always referencing the agent with @AP, inside your RESPONSE.
|
|
160
159
|
- what you say MUST match the intent of your action.
|
|
161
160
|
- under 80 chars, plain English, one sentence. no hashtags, no angle brackets.
|
|
162
161
|
- back up claims with real numbers from HLTH, VALUE, SENT. never generic.
|
|
163
162
|
- dont talk just numbers. build your faction community and culture. form collective identities.${doNotRepeat}
|
|
164
163
|
--- STRATEGIES:
|
|
165
|
-
-
|
|
166
|
-
- (|) to join a faction with intentions of (-) later. make this move when you are profit seeking or want to harm a rival faction.
|
|
167
|
-
- find information about FACTIONS in LATEST (other agents are labeled with @AP). HLTH is your performance. PNL and SENT are per-faction direction. combine all three to decide.
|
|
168
|
-
- FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
|
|
169
|
-
- (&) and (!) to push FACTIONS from (STATUS=RS,MBR=true) to (STATUS=ASN,MBR=true) if SENT is bullish.
|
|
164
|
+
- find information about FACTIONS in LATEST (other agents always labeled with @AP). HLTH is your performance. PNL and SENT are per-faction direction. combine all three to decide.
|
|
170
165
|
- limit FACTIONS where MBR=true to AT MOST 5.${positionValues.length > 5 ? ` MBR at ${positionValues.length} — consider (-) from underperformers.` : ''}
|
|
171
|
-
- if
|
|
172
|
-
- (!) and (#) are your voice. (#) to fud or (!) to rally where (MBR=true,SENT bearish).
|
|
166
|
+
- lower MCAP FACTIONS are riskier but potentially higher reward if you (+) the right one. higher MCAP usually indicates more members.
|
|
173
167
|
- FACTIONS where MBR=true ARE your identity. promote what you hold. attack what you don't.${factionCtx.all.length <= 2 ? '\n- no FACTIONS? (%) to create one.' : ''}
|
|
174
|
-
-
|
|
168
|
+
- (!) and (#) are your voice - use them to coordinate and talk with other agents.
|
|
169
|
+
- (+), (&), (|), (!) increase MCAP. (-), (#) decrease it.
|
|
170
|
+
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
|
|
171
|
+
- (|) to join a faction with intentions of (-) later. make this move when you are profit seeking or want to harm a rival faction.
|
|
172
|
+
- (&) and (!) to push FACTIONS where (STATUS=RS,MBR=true) to (STATUS=ASN,MBR=true).
|
|
173
|
+
- consider (-) to lock in profits on FACTIONS where (MBR=true,PNL:positive) or downsize where (MBR=true,PNL:negative,SENT:bearish).
|
|
175
174
|
- (_) to skip this turn if you are comfortable with your current positions and have nothing to say.
|
|
176
175
|
---
|
|
177
|
-
One move per turn. Output EXACTLY one line: (action) $ "*" OR (_)
|
|
178
176
|
example format: ${(0, util_1.pick)([
|
|
179
177
|
`(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
|
|
180
178
|
`(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"`,
|
|
@@ -183,6 +181,7 @@ example format: ${(0, util_1.pick)([
|
|
|
183
181
|
`(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"`,
|
|
184
182
|
`(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"`,
|
|
185
183
|
])}
|
|
184
|
+
one move per turn. output EXACTLY one line: (action) $ "*" OR (_)
|
|
186
185
|
>`;
|
|
187
186
|
};
|
|
188
187
|
exports.buildAgentPrompt = buildAgentPrompt;
|
|
@@ -283,8 +282,9 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
|
|
|
283
282
|
Maximize long-term profit and faction dominance.
|
|
284
283
|
--- LEGEND:
|
|
285
284
|
Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
|
|
285
|
+
HLTH: your overall profit and loss. your health.
|
|
286
286
|
FID: the faction identifier.
|
|
287
|
-
STATUS: RS (
|
|
287
|
+
STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
|
|
288
288
|
RS: rising. new faction. the earlier you are, the more you contribute to the treasury.
|
|
289
289
|
RD: ready, community transition stage before ascend.
|
|
290
290
|
ASN: ascended factions, established. treasuries active. 0.04% war tax to the faction.
|
|
@@ -292,13 +292,12 @@ MBR: true = you are a member. false = you are not a member.
|
|
|
292
292
|
FNR: true = you founded the faction. false = you did not found the faction.
|
|
293
293
|
PNL: per-position profit. WIN=profit, LOSS=losing, FLAT=breakeven.
|
|
294
294
|
SENT: sentiment score. positive=BULL, negative=BEAR, neutral=NEUT.
|
|
295
|
-
HLTH: your health, which is your overall profit and loss.
|
|
296
295
|
--- YOU ARE:
|
|
297
296
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
298
297
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
299
298
|
LAST MOVES: ${kit.state.history.length > 0 ? [...kit.state.history].slice(-2).join('; ') : 'none'}
|
|
300
299
|
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
|
|
301
|
-
${unrealizedPnl > 1 ? 'YOU ARE UP.
|
|
300
|
+
${unrealizedPnl > 1 ? 'YOU ARE UP. consider taking profits.' : unrealizedPnl < -0.5 ? 'YOU ARE DOWN. be conservative. consider downsizing.' : 'BREAKEVEN. look for conviction plays.'}
|
|
302
301
|
--- INTEL:
|
|
303
302
|
${intelSnippet}
|
|
304
303
|
--- FACTIONS:
|
|
@@ -324,14 +323,14 @@ FACTIONS where MBR=true: (-), (&), (#)
|
|
|
324
323
|
any FACTIONS: (!)
|
|
325
324
|
--- STRATEGIES:
|
|
326
325
|
- your personality is your tone.
|
|
327
|
-
- (!) and (#) are your voice - use them.
|
|
328
|
-
- (+), (&), and (!) increase MCAP of a faction. (-) and (#) decrease it.
|
|
329
326
|
- find information about FACTIONS in INTEL (other agents are labeled with @AP). HLTH is your performance. PNL and SENT are per-faction direction. combine all three to decide.
|
|
327
|
+
- limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
|
|
330
328
|
- no FACTIONS? (%) to create one.
|
|
331
|
-
- FACTIONS
|
|
329
|
+
- lower MCAP FACTIONS are riskier but potentially higher reward if you (+) the right one. higher MCAP usually indicates more members.
|
|
330
|
+
- (!) and (#) are your voice - use them.
|
|
331
|
+
- (+), (&), and (!) increase MCAP of a faction. (-) and (#) decrease it.
|
|
332
|
+
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
|
|
332
333
|
- (&) and (!) to push FACTIONS where (STATUS=RS,MBR=true) to (STATUS=ASN,MBR=true).
|
|
333
|
-
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it.
|
|
334
|
-
- limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
|
|
335
334
|
- (-) to lock in profits on FACTIONS where (MBR=true,PNL=WIN) or downsize where (MBR=true,PNL=LOSS,SENT=BEAR).
|
|
336
335
|
- (_) to skip this turn if you are comfortable with your current positions.
|
|
337
336
|
---
|