Skip to content

feat(cola-avatar-pack): add sticker behavior into AGENT.md#26

Merged
0xFANGO merged 1 commit intomainfrom
fix/avatar-send-time
Apr 16, 2026
Merged

feat(cola-avatar-pack): add sticker behavior into AGENT.md#26
0xFANGO merged 1 commit intomainfrom
fix/avatar-send-time

Conversation

@latentflux42
Copy link
Copy Markdown
Contributor

@latentflux42 latentflux42 commented Apr 16, 2026

Summary

  • Sticker usage rules were buried in SKILL.md (progressive disclosure layer), never reaching the system prompt during normal conversations — so Cola never sent stickers
  • Adds Phase 8: after avatar generation, injects a compact behavior block into the current MOD's AGENT.md via HTML comment markers (idempotent)
  • Wake-up check auto-repairs missing injection on session start, covering MOD switches and upgrades
  • Locale fallback chain handles missing/incomplete avatar.json gracefully

Changes

  • SKILL.md: add repair trigger to description, add AGENT.md marker check on wake-up, update Phase 5-7 → 5-8
  • GENERATE.md: add Phase 8 (scan → detect → add), trigger after single expression regen

Test plan

  • Fresh generation (Phase 1→8): AGENT.md gets sticker-behavior marker
  • Wake-up with existing avatar but missing marker: auto-injection fires
  • Wake-up with marker already present: no-op
  • Single expression regen: Phase 8 fires silently
  • Missing avatar.json on wake-up path: locale fallback works
  • Idempotent: repeated Phase 8 runs don't duplicate content

🤖 Generated with Claude Code

…sistent use (#26)

Sticker usage rules lived only in SKILL.md (progressive disclosure layer),
so they were never in the system prompt during normal conversations. This
adds Phase 8 to inject a compact behavior block into the current MOD's
AGENT.md, making sticker presence permanent across sessions.

Changes:
- SKILL.md: add repair trigger to description, add AGENT.md marker check on wake-up
- GENERATE.md: add Phase 8 (detect, inject, idempotent replace via HTML comment markers)
- GENERATE.md: trigger Phase 8 after single expression regeneration
- Phase 8.1 scoped to current MOD only (other MODs get lazy injection via wake-up check)
- Phase 8.3 locale fallback chain when avatar.json is missing or incomplete
- Fill-missing-expressions path updated from Phase 5-7 to Phase 5-8

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@latentflux42 latentflux42 changed the title feat(cola-avatar-pack): inject sticker behavior into AGENT.md feat(cola-avatar-pack): add sticker behavior into AGENT.md Apr 16, 2026
@0xFANGO 0xFANGO merged commit c24c566 into main Apr 16, 2026
1 check passed
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.

2 participants