Gatewarden Nexus
Docs
Plugins
What's new
Roadmap
Tools
Your Nexus

OpenCode Plugin

nexus-compaction-plus

v1.8.0Published

Preserves Nexus session context across OpenCode compaction events and records each compaction as an auditable session entry.

Overview

When OpenCode compacts its context window, critical session metadata (such as the active Nexus project ID, session ID, and accumulated context) would normally be lost. nexus-compaction-plus intercepts compaction events at two stages: before compaction it injects session identifiers into the compaction prompt so the resuming agent retains full project context, and after compaction it records the event as an auditable entry in the active Nexus session via the platform REST API. This ensures continuity across compaction boundaries and provides a complete audit trail of context resets.

Registered Hooks

experimental.session.compacting

Injects active Nexus session/project IDs into the compaction prompt for context preservation. Fires before OpenCode compresses the context window.

event (session.compacted)

Records compaction event in the active Nexus session via REST API for audit trail. Fires after compaction completes successfully.

Details

DistributionTypeScript source via nexus pull into .opencode/plugins/, no npm install required.
Dependency@opencode-ai/plugin (auto-installed via .opencode/package.json).
RuntimeDistributed as an OpenCode plugin to OpenCode projects; Claude Code projects receive the equivalent Claude Code hook adapter.
StartupShows TUI toast notification confirming plugin name, version, and API connection status.

Plugin Info

Version
v1.8.0
Hooks
2
Custom Tools
0

Source Code

View the full source, report issues, or contribute on GitHub.

View repository
All pluginsBack to toolsView on GitHub

Get started

Ready to put specifications first?
Start building with Nexus.

Governed specs drive your agents. No ad-hoc prompts, no vibe coding.

Sign in with GitHub
Gatewarden Nexus

Platform

  • Documentation
  • Tools
  • What's new
  • Roadmap
  • Pricing

Resources

  • MCP Server
  • CLI
  • GitHub

Company

  • RelicFrog
  • Imprint

Legal

  • Privacy policy
  • Terms of service
© 2026 RelicFrog Holding UG (haftungsbeschränkt)·v0.17.2 (aea217e)
a Gatewarden product by RelicFrog Holding UG