opencode-sit
v0.1.2
Published
Socratic Intelligent Tutor agent plugin for OpenCode
Maintainers
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
semwhen 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 --globalInstall into a project:
./install.sh --project /path/to/projectDocumentation
docs/design.md— MVP scope, product thesis, and distribution modeldocs/research-spec.md— full rationale and learning-science backgrounddocs/local-install.md— installer behavior and manual install pathsdocs/ledger-schema.md— mastery ledger conventiondocs/micro-homework.md— disposable homework conventionexamples/first-session.md— example SIT examination flowexamples/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 artifactsSafety 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-sitSee 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 checkPublish a patch release with:
make publishThis 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.xreleases. - Consider a separate
sit-writehomeworkvariant 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.
