Skip to content

v2.5.0

Choose a tag to compare

@ShunL12324 ShunL12324 released this 31 Jan 09:17
· 17 commits to master since this release

What's New

Prompt System for Explore AI Customization

Each account now has customizable prompt files that control AI behavior during explore:

  • persona.txt - Character definition (interests, comment style)
  • select.txt - Note selection prompt template
  • comment.txt - Comment generation prompt template

Prompts use LiquidJS templating with variables like {{ persona }}, {{ notes }}, {{ title }}.

New Tools

  • xhs_get_account_prompt - Get prompt file content (persona/select/comment)
  • xhs_set_account_prompt - Update prompt file content

Explore Enhancements

  • Cross-session deduplication - Previously interacted notes are excluded (configurable via deduplicate parameter)
  • Random behavior patterns - More human-like browsing:
    • 10% quick scroll mode
    • 5% scroll back to check earlier content
    • 15% quick close (pretend not interested)
    • 10% long pause / deep reading

Configuration Changes

  • Removed DEBUG environment variable
  • Use XHS_MCP_HEADLESS (default: true) to control browser visibility
  • Use XHS_MCP_KEEP_OPEN (default: false) to keep browser open after operation

Other Changes

  • Prompt files auto-initialize on first access
  • Prompt directory cleaned up on account deletion
  • Updated documentation