feat: add <protect> tags to slash commands for DCP context preservation - #75
Merged
jflowers merged 2 commits intoAug 16, 2026
Merged
Conversation
Wrap the entire content of all 5 slash command files in <protect> tags to prevent DCP from compressing critical workflow instructions during long sessions. Enable protectTags in opencode.json. Files modified: - internal/agentkit/content/commands/forge.md - internal/agentkit/content/commands/handoff.md - internal/agentkit/content/commands/inbox.md - internal/agentkit/content/commands/forge-status.md - internal/agentkit/content/commands/org.md - opencode.json (protectTags: true) Closes unbound-force#74 Generated-by: claude-opus
jflowers
force-pushed
the
opsx/protect-tags-slash-commands
branch
from
August 16, 2026 16:39
31606f4 to
fb7624c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
<protect>tags to all 5 slash command files to prevent DCP from compressing critical workflow instructions during long sessions. EnablesprotectTags: trueinopencode.json.Changes
<protect><protect><protect><protect><protect>"protectTags": trueat top levelContext
Slash commands are delivered as user messages, not
tool_usepairs. Unlike skills (protected byprotectedTools), command content is subject to DCP compression, which can cause agents to lose critical invariants, skip workflow steps, or violate ordering constraints in long sessions.The
<protect>tag mechanism tells DCP to preserve tagged content verbatim during compression, while still allowing compression of other conversation content.Spec Artifacts
Full OpenSpec change at
openspec/changes/protect-tags-slash-commands/with proposal, design, specs, and tasks.Closes #74