npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gauravsaini/opencode-plugin-gcc-memory

v1.1.0

Published

[![npm version](https://img.shields.io/npm/v/@gauravsaini/opencode-plugin-gcc-memory)](https://www.npmjs.com/package/@gauravsaini/opencode-plugin-gcc-memory) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/lic

Downloads

31

Readme

GCC-Enhanced OpenCode Memory Plugin

npm version License: MIT

A Git-Context-Controller (GCC) enhanced memory plugin for OpenCode. This plugin transforms simple persistent memory into a versioned, navigable reasoning hierarchy, based on the paper: "Git-Context-Controller: Manage the Context of LLM-Based Agents Like Git" (arXiv:2508.00031v1).

[!IMPORTANT] This is a major evolution from the original opencode-plugin-simple-memory, introducing Git-like branching, committing, and multi-level retrieval.

Table of Contents

Setup

  1. Add the plugin to your OpenCode config:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["@gauravsaini/opencode-plugin-gcc-memory"]
    }
  2. The plugin automatically injects a GCC System Prompt into the AI's context to guide its use of memory tools.

Core Concepts

GCC organizes agent memory into a three-tiered hierarchy:

  1. High-level (main.md): Global project roadmap and milestones.
  2. Mid-level (commit.md): Structured summaries of progress per branch.
  3. Low-level (log.md): Fine-grained Observation-Thought-Action (OTA) traces.

Memory Directory Structure

.opencode/memory/.GCC/
├── main.md                 # Project roadmap
├── current_branch           # Active branch marker
└── branches/
    └── [branch_name]/
        ├── commit.md        # Commit history
        ├── log.md           # OTA reasoning traces
        └── metadata.yaml    # Branch metadata

GCC Tools

| Tool | Action | Description | | ---------------- | ----------- | ----------------------------------------------------------------- | | memory_commit | COMMIT | Checkpoint a meaningful milestone. Summarizes recent logs. | | memory_branch | BRANCH | Create a new branch to explore alternatives in isolation. | | memory_merge | MERGE | Synthesize a branch's results back into the current branch. | | memory_context | CONTEXT | Multi-level retrieval (roadmap, branch, commits, logs, metadata). | | memory_log | LOG | Append fine-grained OTA steps to the current branch. | | memory_switch | SWITCH | Switch between existing branches. |

Legacy Tools

The original tools from opencode-plugin-simple-memory are still available but have been adapted to work with the GCC hierarchy:

  • memory_remember: Stores a memory and automatically logs it to the current GCC branch.
  • memory_recall: Searches for memories across logs and commits in specified branches.

Example Workflow

  1. Start: The agent reviews the roadmap using memory_context.
  2. Reason: The agent logs fine-grained steps with memory_log.
  3. Commit: Upon reaching a milestone, the agent calls memory_commit to summarize progress.
  4. Experiment: To try a risky design change, the agent calls memory_branch.
  5. Merge: Once the experiment succeeds, the agent calls memory_merge to integrate the work.

Local Development

git clone https://github.com/gauravsaini/opencode-plugin-simple-memory.git
cd opencode-plugin-simple-memory
bun install

Point your OpenCode config to the local checkout:

{
  "plugin": ["file:///path/to/opencode-plugin-simple-memory"]
}

Attribution

This project is a heavily enhanced version of the original opencode-plugin-simple-memory created by cnicolov.

The core architectural shift to Git-like context management is based on the research paper: "Git-Context-Controller: Manage the Context of LLM-Based Agents Like Git".


Maintained by gauravsaini