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

opencode-sit

v0.1.2

Published

Socratic Intelligent Tutor agent plugin for OpenCode

Readme

OpenCode SIT

SIT — Socratic Intelligent Tutor — is a read-only OpenCode agent for reducing comprehension debt in AI-assisted codebases.

SIT does not write production code. It examines a developer's understanding of the local repository through Socratic questioning, trace exercises, brain-dumps, debug prediction, and optional disposable micro-homework prompts.

Features

  • Local-code-first comprehension exams
  • Guided gap discovery from recent commits, local docs, OpenAgent/Superpowers artifacts, and sem when available
  • Low-confidence mode for "I don't know" moments: tiny maps, smaller questions, and scaffolded retry
  • Tutor dialogue moves: pumps, prompts, elaborations, corrections, and compact summaries
  • Strict hint ladder for focused questions: raw recall → directional hint → structural hint → surrender
  • Exercise modes for viva, trace, brain-dump, spot-the-gap, debug prediction, and invariant checks
  • Project-local mastery ledger convention
  • Disposable micro-homework convention
  • Read-only default OpenCode permissions
  • Registry metadata separated from OpenCode agent frontmatter

Quick Start

Add SIT to your OpenCode config as a normal plugin:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-sit"]
}

Restart OpenCode, then select the sit agent from the agent list.

Manual / Development Install

If you are working from a local checkout of this repository, you can also install the agent file directly.

Install globally:

./install.sh --global

Install into a project:

./install.sh --project /path/to/project

Documentation

  • docs/design.md — MVP scope, product thesis, and distribution model
  • docs/research-spec.md — full rationale and learning-science background
  • docs/local-install.md — installer behavior and manual install paths
  • docs/ledger-schema.md — mastery ledger convention
  • docs/micro-homework.md — disposable homework convention
  • examples/first-session.md — example SIT examination flow
  • examples/sit-ledger.md — example mastery ledger artifact

Repository Layout

.opencode/agent/learning/sit.md       # source agent for distribution
.opencode/config/agent-metadata.json  # registry/discovery metadata
registry.json                         # package registry entry
install.sh                            # local installer
docs/                                 # design and conventions
examples/                             # example ledger/session artifacts

Safety Model

The default SIT agent denies:

  • file edits
  • arbitrary bash
  • subagent delegation
  • web fetch/search
  • todo writes

It allows local read/search/list/LSP/question tools plus limited read-only discovery commands for git log, git show, git diff, git status, and sem when available.

Local Development

After creating this directory, move it wherever you keep projects:

mv ./opencode-sit ~/projects/.
cd ~/projects/opencode-sit

See docs/local-install.md for installer behavior and manual install steps.

Validation

Run the package validation checks before publishing or changing SIT behavior:

npm run check

Publish a patch release with:

make publish

This syncs release metadata, creates the release commit and tag, runs a package dry-run, and publishes to npm.

The checks verify the OpenCode agent frontmatter, read-only permission model, metadata separation, installer invariants, prompt safety rules, and version consistency.

For manual validation, use SIT to examine this repository itself. Start with architecture mode for the package layout or module mode for .opencode/agent/learning/sit.md.

TODO / Roadmap

  • Validate global and project install flows on a fresh OpenCode setup.
  • Add lightweight prompt checks that confirm SIT refuses edits, shell commands, web access, and subagent delegation.
  • Review registry compatibility before first public submission.
  • Add release notes and tag workflow for 0.1.x releases.
  • Consider a separate sit-writehomework variant that can write only under .opencode/homework/**.
  • Consider stale-ledger detection using file fingerprints in a future read-only-safe workflow.
  • Polish examples after the first real SIT sessions.

Contributing

Contributions are welcome. Start with CONTRIBUTING.md, especially the safety rules for preserving SIT's read-only examiner behavior.

Security

SIT is designed to be read-only, but prompt/tool permission regressions are security-relevant. See SECURITY.md for reporting guidance.

License

MIT. See LICENSE.