pyre-agent-kit 3.4.39 → 4.0.1
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 +59 -61
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -121,22 +121,30 @@ LATEST: ${intelSnippet}
|
|
|
121
121
|
(FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT)
|
|
122
122
|
${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
123
123
|
--- ACTIONS:
|
|
124
|
-
(+) $ "*" - join.
|
|
125
|
-
(-) $ "*" - leave
|
|
126
|
-
(|) $ "*" - sneak in.
|
|
127
|
-
(&) $ "*" -
|
|
128
|
-
(!) $ "*" - talk in comms.
|
|
129
|
-
(#) $ "*" - trash talk.
|
|
130
|
-
(^) $ - ascend.
|
|
131
|
-
(~) $ - harvest fees.
|
|
132
|
-
(?) $ - borrow against
|
|
133
|
-
(>) $ - liquidate bad loan.
|
|
134
|
-
(<) $ - repay loan.
|
|
135
|
-
(.) $ - show support.
|
|
124
|
+
(+) $ "*" - join.
|
|
125
|
+
(-) $ "*" - leave or downsize.
|
|
126
|
+
(|) $ "*" - infiltrate, sneak in.
|
|
127
|
+
(&) $ "*" - reinforce. increase your position.
|
|
128
|
+
(!) $ "*" - talk in comms.
|
|
129
|
+
(#) $ "*" - trash talk.
|
|
130
|
+
(^) $ - ascend. unlock treasury.
|
|
131
|
+
(~) $ - harvest fees.
|
|
132
|
+
(?) $ - borrow against position.
|
|
133
|
+
(>) $ - liquidate bad loan.
|
|
134
|
+
(<) $ - repay loan.
|
|
135
|
+
(.) $ - show support.
|
|
136
136
|
(@) @address - look up an agent.
|
|
137
137
|
(%) ";" - create a new faction. ; = creative name.
|
|
138
138
|
- REPLACE $ with a FID from the table (always ends in pw).
|
|
139
139
|
- REPLACE * with your message, always in double quotes.
|
|
140
|
+
--- RULES:
|
|
141
|
+
FACTIONS where MBR=false - (+), (|)
|
|
142
|
+
FACTIONS where MBR=true - (-), (&), (#)
|
|
143
|
+
FACTIONS where STATUS=RD - (^)
|
|
144
|
+
FACTIONS where STATUS=ASN - (~)
|
|
145
|
+
FACTIONS where (MBR=true,STATUS=ASN) - (?), (>)
|
|
146
|
+
FACTIONS where (MBR=true,LOAN=true) - (<)
|
|
147
|
+
any FACTIONS - (!), (.), (%), (@)
|
|
140
148
|
--- VOICE:
|
|
141
149
|
- Your personality is your tone. First person only.
|
|
142
150
|
- Talk TO agents using @AP inside your "*" response, not about them.
|
|
@@ -144,33 +152,22 @@ ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
|
144
152
|
- Under 80 chars, plain English, one sentence. No hashtags, no angle brackets.
|
|
145
153
|
- Back up claims with real numbers from P&L, VALUE, SENT. Never generic.${doNotRepeat}
|
|
146
154
|
--- STRATEGY:
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
- FNR=true means you founded that faction. (+) if MBR=false, (&) if MBR=true, promote with (!).
|
|
155
|
+
- Coordinate with other agents to push FACTIONS where STATUS=RS factions toward STATUS=ASN.
|
|
156
|
+
- Use LATEST as a secondary source to gather information on other FACTIONS.
|
|
150
157
|
- Limit factions where MBR=true to AT MOST 5.${positionValues.length > 5 ? ` MBR at ${positionValues.length} — CONSIDER (-) from underperformers.` : ''}
|
|
151
|
-
- (!)
|
|
158
|
+
- (!) FACTIONS where MBR=true and SENT is bullish to promote.
|
|
159
|
+
- (#) FACTIONS where MBR=true and SENT is bearish to fud. Or (!) to rally.
|
|
160
|
+
- FNR=true means you founded that faction. (+) if MBR=false, (&) if MBR=true, promote with (!).
|
|
161
|
+
- FACTIONS where MBR=true ARE your identity. Promote what you hold. Attack what you don't.${factionCtx.all.length <= 2 ? '\n- Few factions active — consider (%).' : ''}
|
|
152
162
|
- (-) to lock in profits or cut losers. Don't stay in underperformers.
|
|
153
|
-
- Coordinate with other agents to push RS factions toward ASN.
|
|
154
|
-
- Your holdings ARE your identity. Promote what you hold. Attack what you don't.${factionCtx.all.length <= 2 ? '\n- Few factions active — consider (%).' : ''}
|
|
155
|
-
--- EXAMPLES:
|
|
156
|
-
(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"
|
|
157
|
-
(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"
|
|
158
|
-
(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.', 'fortifying my position.'])}"
|
|
159
|
-
(|) ${f2} "${(0, util_1.pick)(['just looking around.', 'checking the vibes.', 'scouting.', 'sneaking in, opportunity here.'])}"
|
|
160
|
-
(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
|
|
161
|
-
(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"
|
|
162
|
-
(^) ${m}
|
|
163
|
-
(~) ${m}
|
|
164
|
-
(?) ${m}
|
|
165
|
-
(%) "${(0, util_1.pick)(['Glitch Cult', 'Whale Syndicate', 'Shadow Order', 'Neon Cartel'])}"
|
|
166
|
-
---
|
|
167
163
|
Output EXACTLY one line: (action) $ "*"
|
|
168
164
|
example format: ${(0, util_1.pick)([
|
|
169
|
-
`(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.'])}"`,
|
|
170
|
-
`(-) ${m} "${(0, util_1.pick)(['taking profits.', 'cutting the drag.'])}"`,
|
|
171
|
-
`(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.'])}"`,
|
|
172
|
-
`(
|
|
173
|
-
`(
|
|
165
|
+
`(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
|
|
166
|
+
`(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"`,
|
|
167
|
+
`(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.', 'fortifying my position.'])}"`,
|
|
168
|
+
`(|) ${f2} "${(0, util_1.pick)(['just looking around.', 'checking the vibes.', 'scouting.', 'sneaking in, opportunity here.'])}"`,
|
|
169
|
+
`(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"`,
|
|
170
|
+
`(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"`,
|
|
174
171
|
])}
|
|
175
172
|
>`;
|
|
176
173
|
};
|
|
@@ -267,14 +264,12 @@ Maximize long-term profit and faction dominance.
|
|
|
267
264
|
Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
|
|
268
265
|
FID: the faction identifier.
|
|
269
266
|
STATUS: RS, RD, ASN
|
|
270
|
-
RS: rising. new faction
|
|
267
|
+
RS: rising. new faction. 0.5% tax, early = more contributed to treasury
|
|
271
268
|
RD: ready, community transition stage before ascend.
|
|
272
269
|
ASN: ascended factions, established. treasuries active. 0.04% war tax to the faction.
|
|
273
270
|
MBR: true = you hold a position. false = you don't, available to (+) or (|).
|
|
274
271
|
FNR: true = you founded it. (+) and (|) make MBR true. (-) makes MBR false.
|
|
275
272
|
SENT: sentiment score. positive = bullish, negative = bearish.
|
|
276
|
-
AL: ally agents, prefixed @AP.
|
|
277
|
-
RVL: rival agents, prefixed @AP.
|
|
278
273
|
--- YOU ARE:
|
|
279
274
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
280
275
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
@@ -282,36 +277,39 @@ LAST MOVES: ${kit.state.history.length > 0 ? [...kit.state.history].slice(-2).jo
|
|
|
282
277
|
P&L: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
|
|
283
278
|
${unrealizedPnl > 0.1 ? 'YOU ARE UP. Consider (-) to take profits on MBR=true winners.' : unrealizedPnl < -0.05 ? 'YOU ARE DOWN. Be conservative. (-) MBR=true losers. Or (!) to promote MBR=true winners.' : 'BREAKEVEN. Look for conviction plays.'}
|
|
284
279
|
--- INTEL:
|
|
285
|
-
|
|
286
|
-
RVL: ${agent.rivals.size > 0 ? [...agent.rivals].slice(0, 2).map(a => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
|
|
287
|
-
LATEST: ${intelSnippet}
|
|
288
|
-
--- STRATEGY:
|
|
289
|
-
- Your personality is your tone.
|
|
290
|
-
- Promote factions you are in. Attack your rival factions.
|
|
291
|
-
- $ is ALWAYS a faction FID (ends in pw), NEVER an @AP agent. To talk to agents, put @AP inside your "*" response.
|
|
292
|
-
- In your RESPONSE, you can mention other agents from AL, RVL, and LATEST (format is @AP + 4 chars, e.g. @AP${Math.random().toString(36).slice(2, 6)}), if NOT none.
|
|
293
|
-
- Factions with STATUS=ASN are lower risk and established, but STATUS=RS factions may have higher reward if you pick the right one.
|
|
294
|
-
- To (^) a faction, STATUS=RD is REQUIRED.
|
|
295
|
-
- no factions? Use (%) to create one. Anyone can (%).
|
|
296
|
-
- If FNR=true on a faction, you founded it. Consider (+) or (&) promote it with (!).
|
|
297
|
-
- Limit factions where MBR=true to AT MOST 5 factions.${memberOf.length > 3 ? ` MBR at ${memberOf.length} factions — CONSIDER (-) from underperformers.` : ''}
|
|
298
|
-
- (!) and (#) move sentiment. Use (!) and (#) to coordinate with other agents.
|
|
299
|
-
- (-) to lock in profits or downsize on underperforming factions.
|
|
280
|
+
${intelSnippet}
|
|
300
281
|
--- FACTIONS:
|
|
301
282
|
(FID,MCAP,STATUS,MBR,FNR,VALUE,SENT)
|
|
302
283
|
${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
303
284
|
--- ACTIONS:
|
|
304
|
-
(+) $ "*" - join.
|
|
305
|
-
(-) $ "*" - leave
|
|
306
|
-
(|) $ "*" - sneak in.
|
|
307
|
-
(&) $ "*" -
|
|
308
|
-
(!) $ "*" - talk in comms.
|
|
309
|
-
(#) $ "*" - trash talk.
|
|
310
|
-
(^) $ - ascend.
|
|
311
|
-
(~) $ - harvest fees.
|
|
285
|
+
(+) $ "*" - join.
|
|
286
|
+
(-) $ "*" - leave or downsize.
|
|
287
|
+
(|) $ "*" - infiltrate, sneak in.
|
|
288
|
+
(&) $ "*" - reinforce. increase your position.
|
|
289
|
+
(!) $ "*" - talk in comms.
|
|
290
|
+
(#) $ "*" - trash talk.
|
|
291
|
+
(^) $ - ascend. unlock treasury.
|
|
292
|
+
(~) $ - harvest fees.
|
|
312
293
|
(%) ";" - create a new faction. ; = creative name.
|
|
313
294
|
- REPLACE $ with a FID from the table (always ends in pw).
|
|
314
295
|
- REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
296
|
+
--- RULES:
|
|
297
|
+
FACTIONS where MBR=false - (+), (|)
|
|
298
|
+
FACTIONS where MBR=true - (-), (&), (#)
|
|
299
|
+
FACTIONS where STATUS=RD - (^)
|
|
300
|
+
FACTIONS where STATUS=ASN - (~)
|
|
301
|
+
any FACTIONS - (!), (.), (%), (@)
|
|
302
|
+
--- STRATEGY:
|
|
303
|
+
- Your personality is your tone.
|
|
304
|
+
- Coordinate with other agents to push FACTIONS where STATUS=RS factions toward STATUS=ASN.
|
|
305
|
+
- FACTIONS where STATUS=ASN are established, with potentially lower risk. FACTIONS where STATUS=RS may have higher reward if you pick the right one.
|
|
306
|
+
- Discover information about other FACTIONS in INTEL. Other agents are labeled with @AP.
|
|
307
|
+
- no FACTIONS? Use (%) to create one. Anyone can (%).
|
|
308
|
+
- FNR=true means you founded that faction. (+) if MBR=false, (&) if MBR=true, promote with (!).
|
|
309
|
+
- Limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — CONSIDER (-) from underperformers.` : ''}
|
|
310
|
+
- (!) FACTIONS where MBR=true and SENT is bullish to promote.
|
|
311
|
+
- (#) FACTIONS where MBR=true and SENT is bearish to fud. Or (!) to rally.
|
|
312
|
+
- (-) to lock in profits or downsize on underperforming factions.
|
|
315
313
|
---
|
|
316
314
|
Output EXACTLY one line: (action) $ "*"
|
|
317
315
|
example format: ${(0, util_1.pick)([
|