You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Post-compaction reload for skills, AGENTS.md and instruction files #37627
I have searched the existing issues and confirmed this is not a duplicate
Problem
When using OpenCode in long sessions, the context eventually fills up and triggers automatic compaction. Compaction creates a summary of the conversation and discards old messages. However, after compaction:
AGENTS.md is not re-read — project-specific rules are lost
SKILL.md files are not re-loaded — skill instructions disappear from context
instructions from opencode.json are not re-injected
This means after compaction the agent may start behaving as if no project rules exist, ignoring formatting conventions, build commands, and skill-based workflows.
Suggested solution
Add a post-compaction hook or configuration option to specify files that should be re-read after compaction:
changed the title [-]Skills and AGENTS.md lost after context compaction - no reload mechanism[/-][+][FEATURE]: Post-compaction reload for skills, AGENTS.md and instruction files[/+]on Jul 18, 2026
Activity
github-actions commentedon Jul 18, 2026
This issue might be a duplicate of existing issues. Please check:
Please review these issues and consider adding a reaction or comment there instead of opening a new one.
[-]Skills and AGENTS.md lost after context compaction - no reload mechanism[/-][+][FEATURE]: Post-compaction reload for skills, AGENTS.md and instruction files[/+]github-actions commentedon Sep 18, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.