@lslightly/ratmon
v0.1.0
Published
Rational monitor plugins for opencode - reducing cognitive debt in AI-human collaboration
Maintainers
Readme
ratmon
Rational Monitor - Customizing AI-human interaction to reduce cognitive debt
Mission
ratmon (rational monitor) is a collection of opencode plugins designed to promote rational thinking in AI-assisted development. Our goal is to help users avoid over-reliance on AI and maintain active cognitive engagement.
Philosophy
Reading can inform you, but thinking, writing, and practice are the necessary paths to human capability improvement.
Modern AI tools are powerful, but excessive dependency creates cognitive debt and technical debt. ratmon intervenes at strategic moments in conversations to:
- Prompt users to think critically instead of passively receiving answers
- Encourage summarization and internalization of learned concepts
- Foster deeper understanding through active reflection
Plugins
summarize-by-yourself
After a threshold of conversation rounds, this plugin prompts the AI to ask you (the user) to summarize what you've learned, rather than the AI providing immediate answers.
How it works:
- Tracks conversation rounds in a session
- After N rounds (default: 2), intercepts the flow
- Prompts the AI to ask you to summarize or reflect on the discussion
- Skips the next monitoring round to allow natural conversation
Example prompt triggered:
"The round monitor noticed we've discussed N rounds. Please ask me to summarize the previous content (not you summarizing, but the user - me - summarizing, such as what was learned. Or you can ask questions to help me better internalize the repository)."
Installation
# Install dependencies
npm install
# Build the project
npm run build
# Typecheck (no emit)
npm run typecheckUsage
- Build the project:
npm run build - Configure opencode to load plugins from the
dist/directory - Plugins will automatically activate in your opencode sessions
Project Structure
ratmon/
├── src/
│ ├── index.ts # Main export
│ └── summarize-by-yourself.ts # Cognitive debt monitor plugin
├── dist/ # Compiled output (gitignored)
├── package.json
├── tsconfig.json
├── README.md
└── AGENTS.mdAdding New Plugins
- Create a new
.tsfile insrc/ - Implement the
Plugininterface from@opencode-ai/plugin - Export from
src/index.ts - Build:
npm run build
Development
# Install dependencies
npm install
# Build
npm run build
# Typecheck without emitting
npm run typecheckLicense
MIT License - see LICENSE for details.
