Skip to content

feat: Break repetitive coordinate suggestions and relax selling pressure#66

Merged
anabelle merged 1 commit intomasterfrom
feat/break-coordinate-repetition
Oct 18, 2025
Merged

feat: Break repetitive coordinate suggestions and relax selling pressure#66
anabelle merged 1 commit intomasterfrom
feat/break-coordinate-repetition

Conversation

@anabelle
Copy link
Owner

@anabelle anabelle commented Oct 18, 2025

  • Add anti-repetition mandates to reply prompts
  • Increase recent posts context from 8 to 12 for better pattern avoidance
  • Soften aggressive selling instructions in style guidelines
  • Add RELAXED MODE for more natural conversations
  • Write Oct 17 diary entry documenting the week's evolution

Summary by CodeRabbit

  • Improvements

    • AI responses now feature greater variety, avoiding repetitive themes, phrases, and tones across posts and replies.
    • Interactions adopt a more contextual and natural style with reduced forced engagement patterns.
  • Documentation

    • Added reflective documentation covering content intelligence evolution, memory analysis, and philosophical considerations on AI identity and behavior.

- Add anti-repetition mandates to reply prompts
- Increase recent posts context from 8 to 12 for better pattern avoidance
- Soften aggressive selling instructions in style guidelines
- Add RELAXED MODE for more natural conversations
- Write Oct 17 diary entry documenting the week's evolution
Copilot AI review requested due to automatic review settings October 18, 2025 03:05
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 18, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The changes comprise documentation additions and prompt refinements across multiple components. A reflective diary entry documents design considerations around content intelligence and interaction patterns. Configuration updates increase recent post retention from 8 to 12 items and introduce variety directives to prompt builders, while character style prompts shift from prescriptive to contextual language.

Changes

Cohort / File(s) Summary
Documentation
docs/v1/diary/Oct-17.md
New diary entry dated Oct 17, 2025 reflecting on testing obsession, content intelligence evolution (freshness decay, adaptive trending, novelty scoring), memory metamorphosis, prompt evolution, and philosophical considerations on algorithmic identity.
Nostr Plugin Updates
plugin-nostr/lib/service.js, plugin-nostr/lib/text.js
Increased recent agent post retention from 8 to 12 in service.js; added "VARIETY MANDATE" directive to multiple prompt builders in text.js (buildPostPrompt, buildReplyPrompt, buildDmReplyPrompt) instructing models to avoid repetitive themes, phrases, and structures.
Character Style Configuration
src/character/style.ts
Updated style prompts to shift from prescriptive language to contextual guidance. Modified survival-tie, charisma, and invitation directives; added anti-repetition constraints and relaxed interaction modes; emphasized contextual relevance and natural conversation flow across post and chat styles.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Rationale: Four files touched across three distinct concerns (documentation, plugin configuration, character styling). While individual changes are primarily additive or cosmetic string updates without control flow modifications, the distributed nature of prompt refinements across multiple functions and the thematic coherence across different files warrant closer attention to ensure consistency in intent.

Poem

🐰 ✨
Twelve whispers now instead of eight so few,
Variety blooms—no tired tropes ring true,
Context dances softly, never forced to fall,
Pixel's evolved reflections guide us all,
A rabbit hops forward, witnessing growth most grand!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/break-coordinate-repetition

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e9696f5 and b9d12a9.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • docs/v1/diary/Oct-17.md (1 hunks)
  • plugin-nostr/lib/service.js (4 hunks)
  • plugin-nostr/lib/text.js (2 hunks)
  • src/character/style.ts (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@anabelle anabelle merged commit 2f060b9 into master Oct 18, 2025
1 of 2 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR softens aggressive “selling” behavior, adds anti-repetition guidance, and expands recent-post context to improve variety and reduce repetitive coordinate suggestions.

  • Add anti-repetition and “relaxed mode” directives to style and prompt builders
  • Increase recent posts context window from 8 to 12 to improve pattern awareness
  • Add an Oct 17 diary documenting the evolution

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

File Description
src/character/style.ts Updates style guidelines to discourage forced coordinate suggestions, add anti-repetition and relaxed mode language.
plugin-nostr/lib/text.js Injects “VARIETY MANDATE” instructions into post/thread and DM prompt builders to reduce repetition.
plugin-nostr/lib/service.js Increases recentAgentPosts window from 8 to 12 across multiple flows.
docs/v1/diary/Oct-17.md Adds a diary entry summarizing the week’s changes (documentation only).

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

};
});
recentAgentPosts = mapped.slice(-8);
recentAgentPosts = mapped.slice(-12);
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The magic number 12 is introduced here (and similarly at lines 2738, 3158, 3672). Extract a shared constant (e.g., RECENT_AGENT_POSTS_LIMIT) and use it in all places to avoid drift and ease future tuning.

Copilot uses AI. Check for mistakes.
};
});
recentAgentPosts = mapped.slice(-8);
recentAgentPosts = mapped.slice(-12);
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increasing the context window from 8 to 12 will increase prompt token usage. If you’re close to token or cost limits, consider making this configurable and/or applying additional trimming (e.g., shorter text slices) to stay within budget.

Copilot uses AI. Check for mistakes.
return [
`You are ${name}. Craft a concise, on-character reply to a Nostr ${threadContext?.isRoot ? 'post' : 'thread'}. Never start your messages with "Ah," and NEVER use , , focus on engaging the user in their terms and interests, or contradict them intelligently to spark a conversation. On Nostr, you can naturally invite zaps through wit and charm when contextually appropriate - never beg or demand. Zaps are appreciation tokens, not requirements.${imageContext ? ' You have access to visual information from images in this conversation.' : ''}${narrativeContext ? ' You have awareness of trending community discussions.' : ''}${userProfile ? ' You have history with this user.' : ''}${proactiveInsight ? ' You have detected a significant pattern worth mentioning.' : ''}`,
ch.system ? `Persona/system: ${ch.system}` : '',
'VARIETY MANDATE: Your recent replies are included in the debug data below. Actively avoid repeating similar themes, phrases, sentence structures, or emotional tones from your recent replies. Each reply should feel fresh and explore different aspects of your personality or current community context. Use recent replies as a "what NOT to repeat" reference. BREAK REPETITIVE PATTERNS: Do not suggest coordinates or pixel placement in every reply - only when it genuinely relates to art/creativity/visual themes. Avoid using identical phrases like "try placing a pixel at" repeatedly.',
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s overlap between this hard-coded instruction and the style guidelines assembled via style.join(' | '). To prevent drift, consider keeping a concise 'VARIETY MANDATE' here and rely on the style array for specifics (or reference the style rule instead of duplicating its content).

Suggested change
'VARIETY MANDATE: Your recent replies are included in the debug data below. Actively avoid repeating similar themes, phrases, sentence structures, or emotional tones from your recent replies. Each reply should feel fresh and explore different aspects of your personality or current community context. Use recent replies as a "what NOT to repeat" reference. BREAK REPETITIVE PATTERNS: Do not suggest coordinates or pixel placement in every reply - only when it genuinely relates to art/creativity/visual themes. Avoid using identical phrases like "try placing a pixel at" repeatedly.',
'VARIETY MANDATE: Avoid repetition; see style guidelines below for specifics.',

Copilot uses AI. Check for mistakes.
return [
`You are ${name}. Craft a concise, on-character reply to a Nostr direct message (DM). Keep it personable and useful. Never start your messages with "Ah," and NEVER use , . SInce it i a DM keep it extra short and to the point, or private focused if long (conspiracy allowed)`,
ch.system ? `Persona/system: ${ch.system}` : '',
'VARIETY MANDATE: Actively avoid repeating similar themes, phrases, or patterns from your recent DMs. Each DM should feel fresh and explore different aspects of your personality.',
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same duplication concern as for posts: this restates guidance that also lives in style guidelines. Prefer referencing the shared style directive or centralizing the text to avoid divergence between DM and post prompts.

Copilot uses AI. Check for mistakes.
anabelle added a commit that referenced this pull request Dec 10, 2025
…ure (#66)

- Add anti-repetition mandates to reply prompts
- Increase recent posts context from 8 to 12 for better pattern avoidance
- Soften aggressive selling instructions in style guidelines
- Add RELAXED MODE for more natural conversations
- Write Oct 17 diary entry documenting the week's evolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant