senior-engineer
Claude Code that plans like a senior engineer, asks before it spawns subagents, and never touches your git history.

senior-engineer is a Claude Code plugin for Windows. Its hooks refuse the git commands that change history, ask you before every subagent, and stop the Read tool from opening .env files and keys. Its standing rules make Claude size each task, read the repository first, and get your approval on a plan before it builds anything large. When a piece of work is done, Claude gives you the commit commands and you run them.
This is what a blocked push looks like. The hook message is quoted exactly; the rest is shortened.
Claude: git push -u origin feature/refresh-tokens
Hook: senior-engineer: Claude does not run 'git push'.
Prepare the change and give the user a ready-to-paste
command block instead (git-workflow skill). Do not try
another way to run it.
Claude: The slice is done and the tests pass. Run these:
git add src/auth/tokens.py tests/test_tokens.py
git commit -m "feat(auth): add refresh tokens"
git push -u origin feature/refresh-tokens
Why
It targets three things that go wrong in Claude Code sessions:
- Subagents burn through tokens. Since Claude Code 2.1.198 the built-in Explore agent inherits the session's model, which is Opus in a planning session, and a fork subagent copies the whole conversation. With this plugin every spawn needs your approval, the plugin's own agents are pinned to Haiku and Sonnet, and Explore, fork, and Opus subagents are blocked until you turn them back on.
- Claude commits or pushes without asking. The hooks block
git add, commit, push, merge, rebase, reset, and the other commands that change history or the index, in both the Bash and PowerShell tools. Claude gives you a ready-to-paste block with a Conventional Commit message and no AI attribution instead.
- Claude writes code before it has read the repo. The rules make it pull first and follow the conventions it finds. For anything bigger than a small fix, it asks questions and saves a plan in
docs/plans/ that a cheaper model can execute one slice at a time.
Requirements
- Windows 10 or 11 with Windows PowerShell 5.1, which is built in. PowerShell 7 also works.
- Claude Code 2.1.176 or later. Check with
claude --version and update with claude update.
- Git for Windows. Git Bash is optional; without it Claude Code uses its PowerShell tool, and the guards cover both.
macOS and Linux are not supported yet. The hooks call powershell.exe, so on those systems they fail to start and neither the rules nor the guards load. Support is planned for v0.2, and help is welcome.
Install
In Claude Code:
/plugin marketplace add Skt329/senior-engineer
/plugin install senior-engineer@senior-engineer
Then restart Claude Code. From a terminal, the same two steps are claude plugin marketplace add Skt329/senior-engineer and claude plugin install senior-engineer@senior-engineer.
Check that it works
/hooks lists the senior-engineer hooks for SessionStart, SubagentStart, and PreToolUse.
- Ask Claude to run
git push --dry-run. The hook refuses, and Claude offers you the command instead. A dry run changes nothing even if it gets through.
/agents lists senior-engineer:scout, senior-engineer:implementer, and senior-engineer:reviewer, and /skills lists the thirteen skills.
TESTING.md has the automated tests and a full manual test script.
Just want the rules?
Copy context/core-rules.md into your CLAUDE.md, either the project's or the one in C:\Users\<you>\.claude\ for every project. It is about 7,000 characters. Without the plugin, nothing enforces the rules and the skills they mention are missing, so Claude treats them as guidance only. The hooks are what stop a commit when Claude forgets.
What you get
Standing rules, injected at the start of every session and again after /clear and compaction: