Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
The open-source advisory instruction layer for AI coding agents. Risk-tiered workflows (L0-L3), JIT stack playbooks, persistent project state, bounded autonomy, and evidence-gated verification. No runtime, no daemon, no model lock-in.
Jump to setup instructionsFetched from the repository for this visit.
The open-source advisory instruction layer for AI coding agents.
A lightweight, repository-native system for risk, context, state, autonomy, and verification.
No runtime. No daemon. No model lock-in. No required API.
Generates native directives for nine AI coding hosts plus a universal AGENTS.md fallback — three of its eleven host configurations carry live captures and eight remain Untested for live runtime fidelity (see Host Compatibility & Live Conformance).
Run in your project root:
# Recommended (zero prerequisite setup):
npx promptkit-os
# Or via Git submodule (canonical):
git submodule add https://github.com/lowqualityloey/promptkit-os.git .promptkit && ./.promptkit/init.sh
# (Windows PowerShell: .\.promptkit\init.ps1)
In an interactive terminal, use ↑/↓ and Enter for profile and task-tracker choices, then Space and Enter to toggle AI-host files. Existing settings are kept on reruns; rerunning init.sh or init.ps1 refreshes the managed directive block while preserving custom content outside it. Already installed? See Updating PromptKit.
Pass flags directly to bypass interactive prompts in automated environments:
# Balanced profile (full 26 workflows)
./.promptkit/init.sh --balanced
# Lite profile (smallest footprint, 6 workflows)
./.promptkit/init.sh --lite
# Specify assistant directly
./.promptkit/init.sh --balanced --host=cursor
# Or via npx
npx promptkit-os@latest --balanced
npx promptkit-os@latest --lite
[!NOTE] The git submodule flow above is canonical. The npm package is a courier, not a dependency — it fetches the release tarball matching its version into
.promptkit/and runs the same installer, producing an identical tree.npx promptkit-os@X.Y.Zalways resolves to release tagvX.Y.Z. It requires Node 18+ (and PowerShell 7 on Windows), and it refuses to overlay a non-empty.promptkit/: a courier install updates in place withnpx promptkit-os@latest --update(download, SHA-verify, extract to staging, then swap with rollback), while any other install is told the command that matches how it went in. Removal (there is no--uninstallflag). The kit directory comes out differently depending on how it went in. A courier install just deletes.promptkit/. A submodule install must unregister it, and the kit is a real repository that may hold work of its own, so inspect it before you discard anything.Anything you want to keep should be copied out or pushed first —
deinit -fdiscards both, and it deletes untracked files too. Without-f,git submodule deinit .promptkitrefuses while the kit has modified tracked files or untracked files, but it does not refuse for ignored files: it printsCleared directory '.promptkit', exits 0, and the ignored files are gone. That is why the inspection below passes--ignored— a plainstatus --shortprints nothing for a file your.gitignorecovers.Resolve the submodule name first — it need not match the path, and the removal empties
.gitmodules, so this is the only moment it can be read. Then inspect the module repository directly rather than through the work tree:--allis what catches a detached HEAD, which--branchesmisses. Git Bash (or any POSIX shell):name=$(git config --file .gitmodules --list --name-only | sed -n 's/^submodule\.\(.*\)\.path$/\1/p' | while IFS= read -r n; do if [ "$(git config --file .gitmodules --get "submodule.$n.path")" = .promptkit ]; then printf '%s' "$n"; fi; done) git --git-dir="$(git rev-parse --git-path "modules/$name")" log --oneline --all --not --remotes git --git-dir="$(git rev-parse --git-path "modules/$name")" --work-tree=.promptkit status --short --ignored git submodule deinit .promptkit git rm .promptkitPowerShell 7 (Windows):
$name = git config --file .gitmodules --list --name-only | ForEach-Object { if ($_ -match '^submodule\.(.*)\.path$') { $candidate = $Matches[1]; if ((git config --file .gitmodules --get "submodule.$candidate.path") -eq '.promptkit') { $candidate } } } | Select-Object -First 1 $gitDir = git rev-parse --git-path "modules/$name" git "--git-dir=$gitDir" log --oneline --all --not --remotes git "--git-dir=$gitDir" --work-tree=.promptkit status --short --ignored git submodule deinit .promptkit git rm .promptkitDo not reach for
git -C .promptkithere: once the kit is deinitialized its directory is empty, so git walks up and answers about the host repository instead. Then commit the.gitmoduleschange; deleting only the directory instead leaves a registered160000gitlink behind and the nextgit submodule addfails with'.promptkit' already exists in the index. The module repository under.git/modules/is optional cleanup, not part of removal: leave it alone if you are unsure — a leftover copy only makes a later re-add ask for--force, andgit submodule add --forcereuses it. Then remove the<!-- PROMPTKIT_START -->…<!-- PROMPTKIT_END -->block from every host directive file the installer wrote to — leaving it behind points the agent at a.promptkit/that no longer exists.bash .promptkit/init.sh --strip-directivesdoes this transactionally (add--dry-runto preview; PowerShell:pwsh -File .promptkit/init.ps1 --strip-directives --dry-run), preserving your own content and line endings and deleting a host file only when the block was all it held.PROMPTKIT.mdanddocs/STATE.mdare yours after install, not regenerated files: the installer preserves custom content inPROMPTKIT.mdand only rewrites itsprofile/tracking/projectionfields, and it createsdocs/STATE.mdonly when absent, so delete either one only if you added nothing worth keeping. Also deletedocs/tasks/,docs/specs/,docs/adrs/,docs/tests/, plus.github/pull_request_template.mdand.github/ISSUE_TEMPLATE/task.md(GitHub tracking only) if the installer created them and you have added nothing of your own. Nothing keeps running afterwards: no daemon, no service, no scheduled task.
The installer creates PROMPTKIT.md (project commands, stack constraints, invariants) and docs/STATE.md (living project state). Run pk:onboard for a guided setup interview (Balanced profile) and verify any install anytime with pk:doctor (a read-only audit that reports drift and never writes).
You do not need to memorize commands — prompt your agent naturally ("The checkout endpoint is returning 500 errors") and PromptKit routes it to the right ceremony level and workflow (pk:route).
Once installed, most solo work runs on five commands:
| Command | Job |
|---|---|
pk:plan | Shape the change: scope, acceptance criteria, and the implementation plan |
pk:auto | Chain plan → tasks → code → tests → review up to the declared terminal boundary (the default stops before any commit) |
pk:review | Two-axis audit of the change before it lands |
pk:commit | Secret scan, gates, and atomic Conventional Commits |
pk:checkpoint | Persist active state and hand off before a context reset |
Set preset: solo-fast in ./PROMPTKIT.md (or run pk:profile --solo-fast) for the tight loop: concise routine status, halt callouts reserved for ACTION REQUIRED or BLOCKED, and Level 2 Lite records by default. Hard gates — push, PR, destructive operations, and Level 3 — are unchanged.
PromptKit standardizes routine status output into three compact Markdown lines without conversational fluff:
> 📊 **Milestone**: 02-user-auth [■■■■□□] 4/6 — source: STATE.md read this turn
> 🎯 **Active**: Task 2.3 — Implement JWT refresh token rotation
> 🟢 **Quality Gate**: measured this turn (flutter test: 14 passed, exit 0)
AI coding agents are increasingly capable of writing code. The harder problem is controlling everything around the code:
PromptKit separates engineering control from engineering capability:
flowchart TD
H["Human intent"] --> P["PromptKit OS — policy and control"]
P -->|"JIT: only what the task needs"| A["AI coding agent"]
A -->|"execute, edit, verify"| E["Executed evidence"]
E --> Q{"Exit code 0?"}
Q -->|"pass"| R["Human acceptance: merge, release"]
Q -->|"fail"| F["Bounded repair"]
F -->|"attempts remain"| A
F -->|"limit reached"| X["HALT"]
PromptKit does not try to become the model, IDE, compiler, or autonomous runtime. It provides the engineering rules around them.
You do not need to learn all 26 workflows. Most everyday engineering tasks — bug fixes, small features, isolated component changes — are Level 1 (Standard) and need only pk:route or pk:debug to get started. Heavier ceremony kicks in only when the task warrants it.
[!TIP] Start with two workflows:
pk:debug(stops guess-and-patch loops) andpk:checkpoint(preserves project state and active tasks across context compaction and resets). You do not need to learn all 26 before getting value.
Expanded trigger reference beyond the five-command loop:
| Command | Purpose | When to Use |
|---|---|---|
pk:route | Task Intake | Classifies incoming tasks into Ceremony Levels 0–3 and routes to the right workflow |
pk:onboard | Project Discovery | First install on greenfield or brownfield codebases; detects stack & sets rules |
pk:brainstorm | Divergent Ideation | Widening the option space before requirements converge; zero artifacts, then one direction into pk:plan |
pk:plan | Feature RFC | Designing architectural changes, data contracts, and schema boundaries |
pk:test | Test Strategy & TDD | Allocating seams, mocking boundaries, and writing tests before code |
pk:debug | Root-Cause Analysis | Systematic 5-step falsifiable debugging (stops infinite hallucinated edits) |
pk:commit | Pre-Commit Gate | Secret scanning, running test suites, and authoring atomic conventional commits |
pk:checkpoint | Session Handover | Saving active tasks and state to Git before ending your chat session |
pk:onboard, pk:plan, and pk:test are Balanced-profile workflows: their files ship in every install, but the Lite directive advertises only its six utility triggers (pk:route, pk:debug, pk:commit, pk:checkpoint, pk:sync, pk:profile), so switch to Balanced first (.promptkit/init.sh --balanced, or .\.promptkit\init.ps1 --balanced in PowerShell) if you rely on them.
Every task is routed through four ceremony levels before work begins — using the minimum ceremony appropriate to the risk:
docs/tasks/<task-id>.md).docs/tasks/<task-id>.md before implementation.For authoritative Level 0–3 classification, escalation, downgrade, and Task Record rules, see workflows/route.md.
The core instruction layer stays small; workflows, stack playbooks, and boundary recipes load only when triggered:
These figures use the bytes/4 proxy (measure-tokens.sh), whose cap is set below the real tokenizer cap so both directives clear both conventions (Balanced 2,409 proxy vs 2,429 cl100k_base; Lite 1,431 vs 1,475, against 2,500/1,500 caps — see docs/BENCHMARKS.md §9 and docs/BENCHMARK-METHODOLOGY.md).
PromptKit couples JIT loading with the Context Economy Protocol (protocols/context-economy.md), governing Minimum Sufficient Context and adaptive Z0–Z4 context zoom (decoupled from L0–L3 risk ceremony). These are advisory agent instructions: CI asserts that the invariant text is present and that the directive token budgets hold, but PromptKit does not enforce this protocol at runtime.
PROMPTKIT.md, docs/STATE.md, docs/tasks/, docs/specs/, docs/adrs/), surviving context compaction, new sessions, and agent changes.exit code 0 required) before marking tasks complete. The human remains the sole authority for acceptance, commit approval, and release decisions..promptkit/
├── protocols/ # Core control — risk routing, evidence gates, context sync
├── workflows/ # 26 engineering procedures (pk:route → pk:ship)
├── docs/
│ ├── stacks/ # JIT stack playbooks — Next.js, Supabase, Vercel, Expo, Flutter, Rust, Go, Python
│ ├── recipes/ # Boundary contracts — auth sessions, form mutations, webhooks, env, test isolation
│ └── adrs/ # Architecture decisions
├── templates/ # 29 durable engineering templates (.md; excluding `terminal-banner.txt`)
├── scripts/ # Validation, token measurement, CPAC benchmarking (.sh + .ps1 twins)
└── examples/ # Reference implementations
The architectural boundary: PromptKit owns engineering policy and control. The host agent owns capability and execution.
PromptKit generates native instructions and directives for nine installer targets — claude, gemini, cursor, windsurf, copilot, cline, trae, opencode, aider (Claude Code, Gemini CLI/Antigravity, Cursor, Windsurf, GitHub Copilot, Cline/Roo Code, Trae IDE, OpenCode, and Aider) — with AGENTS.md created as the universal fallback for any other AGENTS.md-reading host, such as Codex CLI.
See docs/HOST-CONFORMANCE.md for the full host matrix: three of its eleven host configurations carry live single-host captures and eight are registered Untested for live runtime fidelity:
PARTIAL on vocabulary alone), plus the repository's first two-turn resume capture — a behavioural failure where the model accepted its own requested token as human sign-off and advanced into M2 without verifying M1.Every capture is single-host and excluded from cross-host comparison. Staged fixture grades validate the scoring rubric, not live runtime behaviour.
| Document | Audience |
|---|---|
| QUICKSTART.md | I want to use it — 5-minute guided tour |
| FAQ.md | I have a specific question — 20 common questions |
| docs/ARCHITECTURE.md | I want to understand how it works |
| docs/BENCHMARKS.md | I want static token budget evidence |
| docs/BENCHMARK-METHODOLOGY.md | I want the CPAC engineering benchmark methodology |
| docs/COMPARISONS.md | I want to compare it with other tools |
| docs/ENFORCEMENT.md | I want to know what is actually enforced, and where |
| docs/stacks/ | I want JIT stack playbooks (25 — Web, DB, Cloud, Mobile, Systems, CLI) |
| docs/recipes/ | I want reusable boundary contracts (12 — Auth, Forms, Webhooks, Env, Testing, State, Realtime, LLM, Supply Chain + 3 pk:auto utilities) |
| docs/ADOPTION-GUIDE.md | I want to add it to an existing project gradually |
| docs/MAXIMS.md | I want the quotable invariants — 9 one-line maxims with canonical links |
| CHANGELOG.md | I want what changed, release by release |
| SECURITY.md | I want to report a vulnerability or understand the supply-chain model |
| CONTRIBUTING.md | I want to extend or contribute |
PromptKit's own CI validates on every PR across Linux and Windows:
validate-references.sh)measure-tokens.sh --strict), bounding the bytes/4 proxy rather than a tokenizer (see §9 of docs/BENCHMARKS.md)run-behavioral-contract-tests.sh)run-playbook-contract-tests.sh)PromptKit applies its own engineering principles to itself.
The temptation in AI tooling is to add more agents, more skills, more prompts, more context. PromptKit takes the opposite approach:
What is the minimum context, ceremony, and autonomy required to safely complete this task?
Workflows, stack knowledge, and recipes stay separate and load just in time. The goal is not the largest AI engineering framework — it is a small advisory layer that makes any AI coding agent safer and more efficient to use.
If you find PromptKit OS valuable for your engineering workflow, consider supporting its open-source development:
Released under the MIT License. Created by Jonell (lowqualityloey).
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.