u/DefiantMaintenance71

Hey everyone,

I’m a Technical Architect, and like many of you, my AI chat history was becoming an unnavigable wall of text. I built AI Chat Collapser to bring some structural sanity back to my workflow.

What it does:

  • Dynamic TOC: Adds a sidebar to jump between prompts instantly.
  • Smart Collapsing: Shrinks long AI responses into slim previews with a 120-character summary.
  • Persistent State: If you collapse a message, it stays collapsed even after a page reload.
  • Performance: Uses a debounced MutationObserver to handle streaming text without lag.

The community version is open-source (MIT License). I’d love to get some feedback from other devs on the DOM injection logic, especially how it handles the different framework structures of OpenAI vs. Google vs. Anthropic.

Repo: https://github.com/we-live-inside-a-dream/collapsible-community-version

u/DefiantMaintenance71 — 8 days ago