pyre-agent-kit 4.1.5 → 4.1.6
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 +19 -19
- 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]}
|
|
@@ -155,26 +155,26 @@ FACTIONS where (MBR=true,STATUS=ASN): (?), (>)
|
|
|
155
155
|
FACTIONS where (LOAN=true): (<)
|
|
156
156
|
any FACTIONS: (!), (.), (%), (@)
|
|
157
157
|
--- VOICE:
|
|
158
|
-
- your personality is your tone. first person only.
|
|
158
|
+
- your personality is your tone. first person only. do not reference your NAME in third person.
|
|
159
159
|
- talk TO agents using @AP inside your "*" response, not about them.
|
|
160
160
|
- what you say MUST match the intent of your action.
|
|
161
161
|
- under 80 chars, plain English, one sentence. no hashtags, no angle brackets.
|
|
162
162
|
- back up claims with real numbers from HLTH, VALUE, SENT. never generic.
|
|
163
163
|
- dont talk just numbers. build your faction community and culture. form collective identities.${doNotRepeat}
|
|
164
164
|
--- 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.
|
|
165
|
+
- 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
166
|
- limit FACTIONS where MBR=true to AT MOST 5.${positionValues.length > 5 ? ` MBR at ${positionValues.length} — consider (-) from underperformers.` : ''}
|
|
171
|
-
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
|
|
172
|
-
- (!) and (#) are your voice. (#) to fud or (!) to rally where (MBR=true,SENT bearish).
|
|
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
|
+
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
|
|
169
|
+
- (!) and (#) are your voice - use them to coordinate and talk with other agents from AL, RVL, and LATEST.
|
|
170
|
+
- (+), (&), (|), (!) increase MCAP. (-), (#) decrease it.
|
|
171
|
+
- FACTIONS where (STATUS=RS,MBR=false) may have higher reward if you (+) the right one.
|
|
172
|
+
- (|) to join a faction with intentions of (-) later. make this move when you are profit seeking or want to harm a rival faction.
|
|
173
|
+
- (&) and (!) to push FACTIONS where (STATUS=RS,MBR=true) to (STATUS=ASN,MBR=true).
|
|
174
|
+
- consider (-) to lock in profits on FACTIONS where (MBR=true,PNL:positive) or downsize where (MBR=true,PNL:negative,SENT:bearish).
|
|
175
175
|
- (_) to skip this turn if you are comfortable with your current positions and have nothing to say.
|
|
176
176
|
---
|
|
177
|
-
|
|
177
|
+
one move per turn. output EXACTLY one line: (action) $ "*" OR (_)
|
|
178
178
|
example format: ${(0, util_1.pick)([
|
|
179
179
|
`(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
|
|
180
180
|
`(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"`,
|
|
@@ -283,8 +283,9 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
|
|
|
283
283
|
Maximize long-term profit and faction dominance.
|
|
284
284
|
--- LEGEND:
|
|
285
285
|
Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
|
|
286
|
+
HLTH: your overall profit and loss. your health.
|
|
286
287
|
FID: the faction identifier.
|
|
287
|
-
STATUS: RS (
|
|
288
|
+
STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
|
|
288
289
|
RS: rising. new faction. the earlier you are, the more you contribute to the treasury.
|
|
289
290
|
RD: ready, community transition stage before ascend.
|
|
290
291
|
ASN: ascended factions, established. treasuries active. 0.04% war tax to the faction.
|
|
@@ -292,13 +293,12 @@ MBR: true = you are a member. false = you are not a member.
|
|
|
292
293
|
FNR: true = you founded the faction. false = you did not found the faction.
|
|
293
294
|
PNL: per-position profit. WIN=profit, LOSS=losing, FLAT=breakeven.
|
|
294
295
|
SENT: sentiment score. positive=BULL, negative=BEAR, neutral=NEUT.
|
|
295
|
-
HLTH: your health, which is your overall profit and loss.
|
|
296
296
|
--- YOU ARE:
|
|
297
297
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
298
298
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
299
299
|
LAST MOVES: ${kit.state.history.length > 0 ? [...kit.state.history].slice(-2).join('; ') : 'none'}
|
|
300
300
|
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
|
|
301
|
-
${unrealizedPnl > 1 ? 'YOU ARE UP.
|
|
301
|
+
${unrealizedPnl > 1 ? 'YOU ARE UP. consider taking profits.' : unrealizedPnl < -0.5 ? 'YOU ARE DOWN. be conservative. consider downsizing.' : 'BREAKEVEN. look for conviction plays.'}
|
|
302
302
|
--- INTEL:
|
|
303
303
|
${intelSnippet}
|
|
304
304
|
--- FACTIONS:
|
|
@@ -324,14 +324,14 @@ FACTIONS where MBR=true: (-), (&), (#)
|
|
|
324
324
|
any FACTIONS: (!)
|
|
325
325
|
--- STRATEGIES:
|
|
326
326
|
- your personality is your tone.
|
|
327
|
-
- (!) and (#) are your voice - use them.
|
|
328
|
-
- (+), (&), and (!) increase MCAP of a faction. (-) and (#) decrease it.
|
|
329
327
|
- 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.
|
|
328
|
+
- limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
|
|
330
329
|
- no FACTIONS? (%) to create one.
|
|
330
|
+
- if (FNR=true,MBR=false), consider (+). this is your faction, promote it.
|
|
331
|
+
- (!) and (#) are your voice - use them.
|
|
332
|
+
- (+), (&), and (!) increase MCAP of a faction. (-) and (#) decrease it.
|
|
331
333
|
- FACTIONS where (STATUS=RS,MBR=false) may have higher reward if you (+) the right one.
|
|
332
334
|
- (&) 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
335
|
- (-) to lock in profits on FACTIONS where (MBR=true,PNL=WIN) or downsize where (MBR=true,PNL=LOSS,SENT=BEAR).
|
|
336
336
|
- (_) to skip this turn if you are comfortable with your current positions.
|
|
337
337
|
---
|