seniormode
v0.1.1
Published
Senior-dev rules for AI coding agents.
Maintainers
Readme
SeniorMode
SeniorMode is a behavior package for AI coding agents.
It makes agents work more like a practical senior developer:
- Reuse existing code.
- Prefer small focused changes.
- Avoid unnecessary abstractions.
- Avoid new dependencies unless they clearly pay for themselves.
- Fix root causes instead of symptoms.
- Keep safeguards around security, validation, data loss, accessibility, and explicit requirements.
Install
npm install -D seniormode
npx seniormode initFor Claude Code or Codex-style plugin installs, use:
hooks/claude-codex-hooks.jsonFor OpenCode, add:
{
"plugin": ["seniormode/opencode/plugin"]
}For instruction-only agents, copy or reference AGENTS.md, .cursor/rules,
.windsurf/rules, .clinerules, or .github/copilot-instructions.md.
Commands
npx seniormode status
npx seniormode mode full
npx seniormode mode strict
npx seniormode off
npx seniormode doctor
npx seniormode instructionsAgent slash commands:
/seniormode
/seniormode lite
/seniormode full
/seniormode strict
/seniormode off
/seniormode review
/seniormode audit
/seniormode debt
/seniormode gainAliases such as /seniormode-review and /seniormode-audit are also shipped
as command adapter files.
Modes
| Mode | Purpose |
|------|---------|
| off | Disable SeniorMode |
| lite | Build what was asked and mention the simpler option |
| full | Default senior-dev behavior |
| strict | Stronger anti-overengineering mode |
| review | Review-only mode |
| audit | Project complexity audit |
| debt | Inspect intentional simplifications |
| gain | Summarize complexity avoided |
Config
Project config:
{
"defaultMode": "full",
"stateFile": ".seniormode-active",
"enableSubagents": true,
"enableReviewCommand": true,
"enableAuditCommand": true
}Resolution order:
- Explicit command input
SENIORMODE_MODEorSENIORMODE_DEFAULT_MODE- Project
.seniormoderc.jsonorseniormode.config.json - User config at
~/.config/seniormode/config.json - Fallback
full
Development
npm install
npm testThe runtime package has no production dependencies.
