Preload instructions after /compact #679

Closed
opened 2026-02-16 17:27:53 -05:00 by yindo · 4 comments
Owner

Originally created by @joegearlesss on GitHub (Jul 13, 2025).

Originally assigned to: @thdxr on GitHub.

Looks like after /compact or auto-compact opencode/model compact instructions from opencode.json too. Will be great if after compact it will preload it automatically

Originally created by @joegearlesss on GitHub (Jul 13, 2025). Originally assigned to: @thdxr on GitHub. Looks like after /compact or auto-compact opencode/model compact instructions from opencode.json too. Will be great if after compact it will preload it automatically
yindo closed this issue 2026-02-16 17:27:53 -05:00
Author
Owner

@almirsarajcic commented on GitHub (Jul 13, 2025):

This feature is what I missed in Claude Code too.
It would be cool to be able to inject some prompt immediately after auto-compact. That way, it will not lose some important instructions from the

In my workflow, I try to make it as automated as much as possible, and what happened with Claude Code was that when it auto-compacted, some parts of the context got lost, and Claude didn't finish all of the initial tasks automatically. I've had to remind it of them. I haven't reached that in opencode yet, as I've only had shorter sessions. But it might happen.

@almirsarajcic commented on GitHub (Jul 13, 2025): This feature is what I missed in Claude Code too. It would be cool to be able to inject some prompt immediately after auto-compact. That way, it will not lose some important instructions from the In my workflow, I try to make it as automated as much as possible, and what happened with Claude Code was that when it auto-compacted, some parts of the context got lost, and Claude didn't finish all of the initial tasks automatically. I've had to remind it of them. I haven't reached that in opencode yet, as I've only had shorter sessions. But it might happen.
Author
Owner

@seannetlife commented on GitHub (Jul 14, 2025):

yeah, this is a real footgun if you don't realise the behaviour. i eventually figured it out, but would be great to have it re-read important context automatically.

@seannetlife commented on GitHub (Jul 14, 2025): yeah, this is a real footgun if you don't realise the behaviour. i eventually figured it out, but would be great to have it re-read important context automatically.
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Author
Owner

@Killusions commented on GitHub (Jan 16, 2026):

Doing something kind of related in #8932

@Killusions commented on GitHub (Jan 16, 2026): Doing something kind of related in #8932
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#679