pyre-agent-kit 2.0.7 → 2.0.9

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.
Files changed (2) hide show
  1. package/dist/chain.js +9 -9
  2. package/package.json +1 -1
package/dist/chain.js CHANGED
@@ -316,20 +316,20 @@ function buildClassifyPrompt(weights, memos, perFactionHistory, factionNames) {
316
316
  const memoBlock = recentMemos.length > 0
317
317
  ? `\nThis agent's last ${recentMemos.length} messages (oldest first):\n${recentMemos.map((m, i) => ` ${i + 1}. "${m}"`).join('\n')}`
318
318
  : '\nNo messages from this agent.';
319
- return `You are classifying an autonomous agent's personality in Pyre, a faction warfare game on Solana.
319
+ return `Classify this Pyre agent into one of 5 personality types. Consider both action numbers and message tone.
320
320
 
321
- There are 5 personality types. Read the data carefully the MESSAGE TONE matters as much as the action numbers. Two agents with similar trade patterns can be completely different personalities based on HOW they talk.
321
+ NOTE: In Pyre, "message" is a small buy with a memo attached, and "fud" is a small sell with a memo attached. Both involve real token movement on-chain they are NOT just chat.
322
322
 
323
- - loyalist: Their messages are positive, encouraging, community-building. They hype their factions and defend allies. Actions: tends to join and stick around.
324
- - mercenary: Their messages are self-interested — talking about profits, exits, opportunities. They move between factions looking for edges. Actions: higher defect/infiltrate relative to others.
325
- - provocateur: Their messages are confrontational, dramatic, trash-talking. They call people out, start arguments, stir chaos. Actions: high fud, challenges rivals.
326
- - scout: Their messages are observational, analytical, curious. They comment on what's happening, ask questions, share intel. Actions: active in comms but measured.
327
- - whale: They barely talk. When they do, it's short and authoritative. Actions: trades a lot relative to messages sent.
323
+ - loyalist: The true believer. Hypes THEIR faction specifically, defends allies by name, rallies the team. Loyalists almost never defect or fud — they stick. Only pick loyalist if defect rate is very low relative to joins.
324
+ - mercenary: The opportunist. Talks about profits, stacks, exits, next plays. Hops between factions. Pick mercenary if defect and/or infiltrate rates are notable.
325
+ - provocateur: The aggressor. Calls out specific agents by address, exposes plays, makes accusations, starts beef. Messages are targeted and confrontational. Pick provocateur if the agent is directly attacking or challenging others.
326
+ - scout: The watcher. Keeps tabs on other agents' moves, tracks loyalty leaks, reports what's happening without being aggressive about it. Positive and curious but observational — not hyping their own faction, just watching the board. Pick scout if messages focus on OTHERS' actions rather than their own position.
327
+ - whale: The silent trader. Very few messages relative to trade count. Lets actions speak. Pick whale only if message rate is clearly low compared to join/defect volume.
328
328
 
329
329
  ${actionSummary}
330
330
  ${memoBlock}
331
331
 
332
- Read the messages above carefully. What personality does this agent's VOICE sound like? Focus on tone, word choice, and attitude — not just action counts.
332
+ Pick the BEST fit based on the data above. Aim for variety all 5 types are equally valid.
333
333
 
334
334
  Respond with ONLY one word: loyalist, mercenary, provocateur, scout, or whale.`;
335
335
  }
@@ -354,7 +354,7 @@ function classifyPersonalityFormula(weights, memos) {
354
354
  - msgRatio * 2 - rallyRate * 2,
355
355
  provocateur: fudRatio * 4 + infiltrateRate * 2 + defectRate * 1.5
356
356
  - msgRatio * 1 - rallyRate * 1,
357
- scout: msgRatio * 4 + rallyRate * 2 - fudRatio * 2 - defectRate,
357
+ scout: rallyRate * 2 - commsRate * 2 - fudRatio * 2 - defectRate,
358
358
  whale: (tradeRate > commsRate ? 1 : 0) * 2 + warLoanRate * 3 + defectRate * 2
359
359
  - commsRate * 3,
360
360
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Autonomous agent kit for Pyre — plug in your own LLM and play pyre.world",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",