Skip to content

feat: add <protect> tags to slash commands for DCP context preservation - #75

Merged
jflowers merged 2 commits into
unbound-force:mainfrom
jflowers:opsx/protect-tags-slash-commands
Aug 16, 2026
Merged

feat: add <protect> tags to slash commands for DCP context preservation#75
jflowers merged 2 commits into
unbound-force:mainfrom
jflowers:opsx/protect-tags-slash-commands

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

Adds <protect> tags to all 5 slash command files to prevent DCP from compressing critical workflow instructions during long sessions. Enables protectTags: true in opencode.json.

Changes

  • forge.md — entire command content wrapped in <protect>
  • handoff.md — entire command content wrapped in <protect>
  • inbox.md — entire command content wrapped in <protect>
  • forge-status.md — entire command content wrapped in <protect>
  • org.md — entire command content wrapped in <protect>
  • opencode.json — added "protectTags": true at top level

Context

Slash commands are delivered as user messages, not tool_use pairs. Unlike skills (protected by protectedTools), 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

@jflowers
jflowers requested a review from a team as a code owner August 15, 2026 19:33
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
jflowers force-pushed the opsx/protect-tags-slash-commands branch from 31606f4 to fb7624c Compare August 16, 2026 16:39
@jflowers
jflowers merged commit ad8f4b9 into unbound-force:main Aug 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.

chore: add <protect> tags to slash command files for DCP context preservation

2 participants