This guide walks a team through adopting PUDO across shared codebases, from first installation to consistent daily use.
standard)Run once in the repository root:
npx pudo-code-system init --yes --tools=cursor,claude,codex,copilot,gemini,opencode,kiro --project=<PROJECT_TYPE> --strictness=standard
This creates agent configuration files, PR templates, quality checklists, and session handoff files.
git add .
git commit -m "chore: initialize PUDO operating layer"
Everyone on the team now has PUDO available when they open the repo in their AI tool.
npx pudo-code-system check
npx pudo-code-system score
npx pudo-code-system doctor
All three should pass. If doctor reports gaps, address them before moving to Phase 2.
| Task Size | Mode | Expectation |
|---|---|---|
| Typo fix, one-liner | PUDO Lite | Minimal ceremony, verify and move on |
| Feature, bug fix, refactor | PUDO Standard | Full P-U-D-O cycle, tests required |
| Production incident, migration | PUDO Enterprise | Full cycle plus owner, rollback, monitoring |
Every PR targeting main should include evidence of the PUDO cycle. For Standard tasks, the session handoff file (.pudo/session.md) documents:
| Gate | When | What it proves |
|---|---|---|
| Plan Gate | Before starting | Scope, success criteria, constraints are clear |
| Understand Gate | Before coding | Relevant files and patterns were verified |
| Develop Gate | Before review | Implementation stays in scope with tests |
| Optimize Gate | Before merge | Refactors preserve behavior, risks documented |
| Release Gate | Before deploy | Changelog, rollback, monitoring handled |
Add a team rule: do not merge a PR if the relevant gate was not passed.
pudo.createContextPack or manually read relevant files before asking the AI to implement (Understand).npx pudo-code-system score before opening a PR (Optimize)..pudo/session.md before requesting review.When reviewing an AI-assisted PR:
npx pudo-code-system doctor if the PR touches infrastructure or security.| Check | Frequency | Command |
|---|---|---|
| Score | Every PR | npx pudo-code-system score --json |
| Doctor | Weekly | npx pudo-code-system doctor |
| Full check | Before release | npx pudo-code-system check && npx pudo-code-system score --strict |
Use the Benchmark Kit to measure token waste and dev time reduction. Set a baseline in month 1 and review monthly:
| Month | Token Waste | Time to Verified Implementation | Bugs After AI Output |
|---|---|---|---|
| Month 1 (baseline) | … | … | … |
| Month 2 | … | … | … |
| Month 3 | … | … | … |
If the team score drops or AI output quality declines, review:
Run npx pudo-code-system init --force to regenerate agent rules if the project structure has changed significantly.
As the codebase evolves, agent rules should evolve too. Regenerate after major refactors:
npx pudo-code-system init --force --yes
git commit -m "chore: refresh PUDO agent rules after refactor"
| Team Size | Recommended Approach |
|---|---|
| 2-5 developers | Everyone follows the same strictness level. One person reviews session handoffs. |
| 6-15 developers | Assign a PUDO champion per squad. Review score trends monthly. |
| 16+ developers | Use enterprise strictness. Integrate score into CI. Require session handoffs for all PRs. |
Add to your GitHub Actions workflow (see .github/workflows/pudo-check.yml):
- name: PUDO score check
run: npx pudo-code-system score --strict --json
This blocks merges when the score falls below 80.
| Pitfall | Fix |
|---|---|
| Skipping Understand to “save time” | Enforce context pack requirement in PR template |
| Using PUDO Lite for everything | Team agreement: Standard is default for any change > 30 minutes |
| Not updating session handoff | Add session handoff check to PR review checklist |
| Stale agent rules after refactoring | Run pudo init --force after major structural changes |
| Over-engineering with Enterprise mode | Reserve Enterprise for production incidents, migrations, security |
After 3 months of consistent PUDO use, expect to see: