Skip to content

feat(context-mode): add context-mode plugin — context window optimizer - #27

Open
creativerezz wants to merge 3 commits into
StackOneHQ:mainfrom
creativerezz:context-mode-plugin
Open

feat(context-mode): add context-mode plugin — context window optimizer#27
creativerezz wants to merge 3 commits into
StackOneHQ:mainfrom
creativerezz:context-mode-plugin

Conversation

@creativerezz

@creativerezzcreativerezz commented Jun 10, 2026

Copy link
Copy Markdown

Summary

Adds context-mode as a new plugin under plugins/integrations/ — a context window optimizer that saves 40–60% of agent context by auto-indexing tool output into a persistent FTS5 knowledge base, persisting session state through compaction, and enabling cross-session search.

Background

Context Mode (npm:context-mode) is a Pi extension + MCP tool suite by mksglu that solves a universal pain point for AI coding agents: tool output consuming 40%+ of the context window. It runs on 15+ agent platforms (Pi, Claude Code, Cursor, Codex, Gemini CLI, etc.).

What's included

FilePurpose
plugins/integrations/context-mode/.claude-plugin/plugin.jsonPlugin manifest (v1.0.0, category: integrations)
plugins/integrations/context-mode/skills/context-mode/SKILL.mdFull skill with install guides for all platforms, tool reference, usage patterns, session continuity docs
.claude-plugin/marketplace.jsonRegistered under the integrations category
README.mdAdded install commands, table row, repo structure entry

Install

# Claude Code
/plugin install context-mode@stackone-agent-plugins
# Any agent (Skills CLI)
npx skills add stackonehq/agent-plugins@context-mode
# Standalone install
npx skills add mksglu/context-mode

Checklist

  • Plugin follows existing directory structure (.claude-plugin/plugin.json + skills/<name>/SKILL.md)
  • Marketplace manifest updated
  • README install instructions, table, and repo tree updated

Summary by cubic

Adds the context-mode integration plugin to cut context window usage by 40–60% via FTS5 indexing, with session compaction and cross‑session search. Also adds repo skills for plugin authoring/reviews and fixes release version tracking for context-mode.

  • New Features

    • New plugin at plugins/integrations/context-mode/ with plugin.json and skills/context-mode/SKILL.md; registered in .claude-plugin/marketplace.json and README updated with install commands and table entry.
    • Works on 15+ platforms (Pi, Claude Code, Cursor, Codex) via hooks/MCP; ships ctx_execute, ctx_batch_execute, ctx_search, ctx_index, ctx_stats, ctx_insight.
    • Repo tooling: adds .claude/agents/skill-reviewer.md, .claude/skills/new-plugin/, .claude/skills/skill-conventions/, and enables plugin-dev@claude-plugins-official in .claude/settings.json.
  • Bug Fixes

    • Tracks plugins/integrations/context-mode/.claude-plugin/plugin.json in .release-please-config.jsonextra-files so its version stays in sync with releases.

Written for commit 44557d3. Summary will update on new commits.

Review in cubic

@creativerezz
creativerezz marked this pull request as ready for review June 10, 2026 08:29
CopilotAI review requested due to automatic review settings June 10, 2026 08:29

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds the new context-mode integration plugin/skill to the repository and exposes it via the Claude plugin marketplace and repo README so users can install/discover it.

Changes:

  • Added context-mode skill documentation (tools, install options, usage patterns).
  • Added Claude plugin manifest for context-mode and registered it in the marketplace.
  • Updated root README to include context-mode in install instructions and the plugin directory list.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

FileDescription
plugins/integrations/context-mode/skills/context-mode/SKILL.mdAdds the Context Mode skill doc (overview, tools, install, usage).
plugins/integrations/context-mode/.claude-plugin/plugin.jsonAdds the Claude plugin manifest metadata for context-mode.
README.mdDocuments context-mode installation and lists it among available plugins.
.claude-plugin/marketplace.jsonRegisters context-mode in the Claude plugin marketplace index.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadREADME.md
…r for 15+ agent platforms
Context Mode saves 40-60% of agent context by intercepting tool output
and auto-indexing it into a persistent FTS5 knowledge base. It provides
session continuity across compaction, cross-session search, and an
analytics dashboard.
Package: npm:context-mode (v1.0.162, author: mksglu)
Homepage: https://pi.dev/packages/context-mode
License: Elastic-2.0
Adds:
- plugins/integrations/context-mode/ — plugin.json + SKILL.md
- marketplace.json — registers under 'integrations' category
- README.md — install instructions, table entry, repo structure
cubic-dev-ai[bot]
cubic-dev-aiBot previously approved these changes Jun 10, 2026

@cubic-dev-aicubic-dev-aiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Auto-approved: This PR adds a new integration plugin with only metadata, documentation, and config files—no logic changes, no impact on existing systems, and no security risks, making it safe to auto-approve.

Re-trigger cubic

creativerezzand others added 2 commits June 10, 2026 14:11
…files
The context-mode plugin's .claude-plugin/plugin.json was missing from the
release-please extra-files list, so its version would silently stop
tracking repo releases unlike every other plugin.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…enablement
- /new-plugin skill: five-place scaffold checklist (plugin dir, SKILL.md,
README, marketplace.json entry, release-please extra-files entry)
- skill-conventions skill: Claude-only house style for SKILL.md authoring
- skill-reviewer agent: reviews SKILL.md changes for frontmatter validity,
trigger quality, broken references/ links, and marketplace drift
- enable plugin-dev from the official marketplace for contributors
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@cubic-dev-aicubic-dev-aiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 5 files (changes from recent commits).

Auto-approved: This PR adds documentation, plugin manifest, skills, and repository metadata for a third-party context-mode integration, with no changes to core business logic, production infrastructure, or security-sensitive code.

Re-trigger cubic

Sign up for freeto 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.

2 participants

@creativerezz