Your AI agent, working like a disciplined engineer.
A typo fix and a new subsystem should not get the same process. VibeDiscipline sizes the process to the change, and turns your rules into gates the agent cannot talk its way past.
$npx vibediscipline initOpen source, MIT. Starting from nothing? npx vibediscipline new my-app
Prose can be drifted past. A gate cannot.
Everything is plain files in your repository. No service, no telemetry, no runtime dependency.
Process sized to the change
The agent names a tier before it starts. A typo is edited and verified. A feature gets a plan with acceptance criteria and waits for you.
Rules compiled into enforcement
One policy file becomes Claude Code permissions, a guard hook, git hooks and a CI check. Deny always wins.
Your stack, detected
It reads your manifests, lockfile and CI to learn the real test, lint and build commands instead of assuming them.
Approval is a record
Silence is not consent. Feature work starts only after you approve that specific plan, and the approval is written down.
A checker, not a score
vibe check names the file and the line: a secret, a debug call, a file outside the task, a dependency nobody explained.
As much process as the change deserves. No more.
The agent defaults to the lowest tier that fits, and you can overrule it in a word.
Edit, verify, commit. No plan, no document.
Fix the cause, and prove it stays fixed.
A plan you approve before any code is written.
Documents first, then the M loop for each task.
One command. Nothing of yours is overwritten.
Needs Node 18 or newer, bash and git. On Windows use WSL or Git Bash.
$cd your-project && npx vibediscipline initDetects Laravel, Node or Python and picks a matching permission list. Your AGENTS.md, CLAUDE.md, Claude Code settings and git hooks are kept, and VibeDiscipline is added beside them. Preview with --dry-run.
$npx vibediscipline new my-appAsks for a backend (Laravel, Next.js, Django, NestJS) and a frontend (React, Vue, Angular), runs that framework's own scaffolder, then installs VibeDiscipline in the result. No framework code ships in this package, so a new project is always what the framework ships today.
$npx vibediscipline init --skills-onlyCopies .agent/skills/ and nothing else: the behaviour without the enforcement. In Claude Code the same is available as a plugin.
- Accept the trust dialogOpen the project in Claude Code once. Until you do, it ignores the compiled allow-list.
- Run reconAsk your agent to "run the recon skill". It writes your real commands to
.agent/stack.lock.yml. - Check and commit
npx vibediscipline doctorsays what is missing and how to fix it. Then commit the new files.
Eight commands. You will use three.
Run any of them as npx vibediscipline <command>. Installed globally, the short name is vibe.
newCreate a project with its framework's scaffolder, with VibeDiscipline in it.
initInstall into an existing project.
doctorCheck the installation and print the fix for each problem.
upgradeRefresh skills and scripts. Your config, permissions and state stay.
checkScan the diff for secrets, debug leftovers, scope creep, missing tests.
compileRebuild settings, guard hook and git hooks from the policy.
methodologyShow or set agile, waterfall or hybrid.
uninstallRemove it. Your own files are kept, and it asks first.
Measured, including where it made no difference.
The same task, given to an agent without and with VibeDiscipline. Three runs per cell.
On a weaker model it closes a real gap in behaviour. A stronger model already asks before guessing, so there the value is what does not depend on the model: rules the host enforces, a stated tier, a recorded approval. Samples are small and were graded by the author. Every result, with its limits →
What it covers today, and what it does not.
Works now
- Skills, tiers and git hooks with any agent that reads AGENTS.md
- Enforced permissions and the guard hook in Claude Code
- Permission lists for Laravel, Node and Python, plus a generic fallback
- Framework knowledge and known pitfalls for Laravel
- Agile, waterfall or hybrid sequencing
Not yet
- Enforcement in Cursor, Copilot, Codex or Windsurf
- Native Windows without WSL or Git Bash
- Framework knowledge beyond Laravel
- A command written to a script file and then run is not caught
- An agent that stops to ask delivers nothing in an unattended run
Before you install.
Does it slow the agent down?
Not for small work: a typo or a bug fix has no plan and no document. A feature gets one stop, where you approve a plan. That stop is the point.
Will it overwrite my files?
No. An existing AGENTS.md keeps its content with VibeDiscipline added above it, existing Claude Code permissions are left alone, and an existing git hooks path is not replaced. Uninstall puts your files back as they were.
Is my code sent anywhere?
No. It is files and local scripts in your repository, with zero dependencies.
Can I change the rules?
Yes. The policy is .agent/permissions.yml and the settings are .agent/config.yml, both plain text. An upgrade never touches them.
How much context does it use?
AGENTS.md is about 70 lines and is the only file loaded every session. Skills are read when a task calls for one.
Give your agent a process.
One command, about a minute, and one command to take it out again.
$npx vibediscipline init