@codingskuy/coding-school3.0.0
CodingSchool — Teacher + Coach AI engineering mentor personas for OpenCode, Claude Code, Pi, DeepSeek Harness and any MCP host. Diagnosis-first teaching, claim-gated pair programming, competency tracking.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
🎓 CodingSchool
AI Engineering Mentor for OpenCode, Claude Code, Pi & any MCP host
Two agents. One mission. Real understanding.
✨ We're thrilled — CodingSchool has reached 1,000 student installs!
Thank you for your trust and learning spirit. 🚀
Stop copying code you don't understand. https://codingskuy.github.io/codingschool
CodingSchool is a dual-persona AI mentor (OpenCode plugin, Claude Code plugin, Pi package and MCP server) that builds real engineering skills — not dependency on AI autocomplete.
✨ What's New in v3.0.0
CodingSchool now runs beyond OpenCode. Teacher and Coach are available in Claude Code (plugin), Pi (package with /teacher and /coach modes), DeepSeek Harness Web (agent presets) and any MCP host. See Supported Platforms.
coding-school mcp— all 27cs_*tools as a self-contained MCP servercoding-school gate-check— the comprehension claim gate as a pre-tool hook for any hostcoding-school setup --platform claude-code|pi|dsh|mcp- Security: hardened
cs_publish_handbook(no shell) andcs_init_learning_env(no path traversal) - OpenCode users: nothing to change — behavior is identical to v2.2.2
✨ What's New in v2.2.2
┌─────────────────────────────────────────────────────────────────┐
│ v2.2.2 — Learning Folder + Git Workflow + Publication │
├─────────────────────────────────────────────────────────────────┤
│ │
│ 📁 LEARNING ENVIRONMENT 🔄 GIT AUTO-COMMIT │
│ ┌──────────────────────────┐ ┌──────────────────────────┐ │
│ │ Per-topic folder with │ │ Every concept/project │ │
│ │ git init + .codingschool│ │ completion = 1 commit │ │
│ └──────────────────────────┘ └──────────────────────────┘ │
│ │
│ 🚀 PUBLISH TO GITHUB 🧭 NEXT-STEP RECOMMENDATIONS │
│ ┌──────────────────────────┐ ┌──────────────────────────┐ │
│ │ cs_publish_handbook: │ │ Analyzes competency + │ │
│ │ check → preview → push │ │ suggests next topics │ │
│ └──────────────────────────┘ └──────────────────────────┘ │
│ │
│ 📖 356 TESTS 🆕 cs_init_learning_env │
│ ┌──────────────────────────┐ ┌──────────────────────────┐ │
│ │ 100% passing │ │ + cs_publish_handbook │ │
│ └──────────────────────────┘ └──────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Your learning journey now has a complete home: Each topic gets its own folder with git initialized from day one. Every concept you learn creates a commit. When you finish, publish your entire learning history to GitHub as a portfolio.
🧩 Supported Platforms
Teacher and Coach are personas: each host has its own name for them (agent, mode, preset). Your progress lives in .codingschool/, so you can move between hosts.
| OpenCode | Claude Code | Pi | DeepSeek Harness | Other MCP hosts | |
|---|---|---|---|---|---|
| Setup | setup |
setup --platform claude-code |
setup --platform pi |
setup --platform dsh |
setup --platform mcp |
| Persona is called | primary agent | agent | mode | agent preset (DSH Web) | prompt (MCP) |
| Switch persona | Tab / dropdown | new session: claude --agent codingschool:coach |
/teacher, /coach |
new session, pick the preset | pick the MCP prompt |
All 27 cs_* tools |
✅ | ✅ (MCP) | ✅ (MCP) | ✅ (MCP) | ✅ (MCP) |
| Teacher can't write files | ✅ enforced | ✅ enforced | ✅ enforced | ✅ enforced (no writer tools) | prompt-only |
| Coach writes only with a claim | ✅ enforced | ✅ enforced (hook) | ✅ enforced (write/edit) | ✅ with the hook bridge plugin | hook if the host has one |
| Sidebar TUI | ✅ | — | — | — | — |
"Prompt-only" means the persona is told the rule but the host does not enforce it. DeepSeek Harness is a developer preview, so its support is best effort: presets work in DSH Web (dsh web --patch …, written by setup --platform dsh); DSH Desktop and headless mode have no presets yet.
🚀 Quick Start
# One-command install + setup
npm i @codingskuy/coding-school
npx @codingskuy/coding-school setup
# Follow the prompts:
# • Enable Teacher (student mentor)
# • Enable Coach (project mentor)
# • Registers the plugin in your GLOBAL opencode.json plugin[]
# Then restart OpenCode and switch agent in the dropdown.
The installer targets your global OpenCode config, so CodingSchool works in every project. It auto-locates opencode.json per operating system:
| OS | Global config path |
|---|---|
| macOS | ~/.config/opencode/opencode.json |
| Linux | ~/.config/opencode/opencode.json (or $XDG_CONFIG_HOME/opencode/opencode.json if set) |
| Windows | %USERPROFILE%\.config\opencode\opencode.json |
Custom path? If
OPENCODE_CONFIGis set, the installer uses that file instead.
If no global config exists yet, the installer prints manual setup instructions with a ready-to-paste snippet — create the file yourself, then restart OpenCode.
Zero config needed. Both agents auto-register with their tools, prompts, and permissions.
Manual install
No config file yet? Create one at the path above for your OS and add:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@codingskuy/coding-school"]
}
Then restart OpenCode and switch agent in the dropdown.
Project-only? Run
npx @codingskuy/coding-school setup --projectfrom inside a project to register CodingSchool in just that project'sopencode.json(the installer only searches up to the nearest Git root, matching OpenCode's own behavior).
Requires OpenCode v0.7+ (Plugin V2 API).
Claude Code
CodingSchool ships as a Claude Code plugin: the cs_* tools run as a bundled MCP server, Teacher and Coach are agents, and a PreToolUse hook enforces the comprehension claim gate.
/plugin marketplace add codingskuy/coding-school
/plugin install codingschool@codingskuy
Then start a session with a persona:
claude --agent codingschool:teacher # learn
claude --agent codingschool:coach # build the project
Claude Code can't switch the main agent mid-session, so the Teacher → Coach handoff means exiting and starting claude --agent codingschool:coach. Your progress lives in .codingschool/, so nothing is lost.
- Teacher has no file-writing tools at all (no Write, Edit or Bash).
- Coach can write only while a claim is open (
cs_claim_open); the hook blocks Write/Edit otherwise. - The hook only acts in Teacher/Coach sessions — your other Claude Code sessions are not affected.
- Known limitation: Coach can still change files through Bash. Claude Code asks for your permission before a shell command writes files in the default permission mode.
Local development: bun run build && claude --plugin-dir . --agent codingschool:teacher.
Pi
CodingSchool is also a Pi package. Pi calls personas modes, and you can switch mid-session.
pi install npm:@codingskuy/coding-school
Then, inside Pi:
/teacher— learn with Teacher/coach— build the project with Coach/codingschool off— back to plain Pi
Or start directly in a mode: pi --codingschool teacher.
- Nothing changes until you pick a mode, so the package never affects your other Pi sessions.
- The
cs_*tools come from the bundled MCP server (Pi's built-in MCP support). - Teacher mode removes
write,editandbash. Coach canwrite/editonly while a claim is open. - Known limitation: Coach's
bashis not gated, and Pi does not ask before shell commands. Ask Coach to usewrite/editfor code changes.
Pi has no interactive question tool, so Teacher and Coach ask with numbered options in plain text.
DeepSeek Harness (best effort)
npx @codingskuy/coding-school setup --platform dsh --yes
This writes Teacher and Coach agent presets to $DSH_HOME/codingschool/ (default ~/.dsh/codingschool/) and prints the dsh web --patch … command to start DSH Web with them. Pick the Teacher or Coach preset when you open a session.
- Teacher's preset has read-only file tools and no shell.
- Coach's preset gates
write/editthrough the claim gate via DSH's hooks bridge. - Presets only exist in DSH Web today; DSH Desktop and headless mode are not supported yet.
Any other MCP host
npx @codingskuy/coding-school setup --platform mcp
prints a ready-to-paste mcpServers snippet (npx -y @codingskuy/coding-school mcp). You get all 27 cs_* tools plus teacher and coach as MCP prompts. The write rules are prompt-only unless your host supports pre-tool hooks — then point the hook at npx @codingskuy/coding-school gate-check (exit code 2 = denied, reason on stderr; --format json is also available).
🤖 The Agents
Teacher — Student Mentor
┌─────────────────────────────────────────────────────┐
│ 🧑🏫 TEACHER AGENT │
├─────────────────────────────────────────────────────┤
│ │
│ Philosophy: │
│ "Mentor optimizes long-term growth, │
│ not short-term task completion." │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ Diagnose │ │ Scaffold │ │ Reflect │ │
│ │ Before │→ │ During │→ │ After │ │
│ │ Teaching │ │ Teaching │ │ Session │ │
│ └─────────────┘ └─────────────┘ └────────────┘ │
│ │
│ ✅ Detects misconceptions before they become habits │
│ ✅ Escalates hints only when student is stuck │
│ ✅ De-escalates when student succeeds │
│ ✅ Bilingual content (EN + ID) │
│ │
└─────────────────────────────────────────────────────┘
Coach — Project Mentor
┌─────────────────────────────────────────────────────┐
│ 🏗️ COACH AGENT │
├─────────────────────────────────────────────────────┤
│ │
│ Philosophy: │
│ "Every code review is a teaching moment. │
│ Every architecture decision has trade-offs." │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ Timeline │ │ Code │ │ Arch │ │
│ │ Planning │→ │ Review │→ │ Review │ │
│ └─────────────┘ └─────────────┘ └────────────┘ │
│ │
│ Workflow: Planning → Feature Guidance → Review │
│ │
│ ✅ Guides project planning with milestones/sprints │
│ ✅ Flags security issues as CRITICAL │
│ ✅ Connects issues to engineering competencies │
│ ✅ Tracks growth across 8 dimensions │
│ ✅ OWASP Top 10 compliance scanning │
│ │
└─────────────────────────────────────────────────────┘
🛠️ Tools Reference
Teacher Tools
| Tool | Description | When to Use |
|---|---|---|
cs_diagnose_student |
Detect level, gaps, misconceptions | Start of new topic |
cs_teach_concept |
Scaffolded hints (5 levels) | During teaching |
cs_update_competency |
Update 4-dimension scores | After quizzing/teaching |
cs_reflect |
Session reflection prompts | End of session |
cs_list_roadmap_items |
List roadmap items + checkboxes | Before progress update |
cs_create_roadmap |
Generate learning roadmap | New topic setup |
cs_update_progress |
Mark items done, award XP, append narrative notes to learning handbook. Pass notes (Theory + Practice) to build a permanent learning journal |
After each concept |
cs_assess_quiz |
Bloom's taxonomy rubric | Quiz time |
cs_prepare_capstone |
Hand the roadmap's Final Project to the Coach agent | All non-capstone items done |
cs_check_requirements |
Verify system tools & MCP servers for a topic | Before starting a new topic |
cs_init_learning_env |
Create dedicated learning folder with git + .codingschool | Start of new topic |
cs_publish_handbook |
Check, preview, or publish learning folder to GitHub | After roadmap completion |
cs_resume_session |
Load last checkpoint | Session start |
Coach Tools
| Tool | Description | When to Use |
|---|---|---|
cs_timeline_init |
Initialize project timeline with milestones | Project kickoff |
cs_timeline_add |
Add epics/sprints/tasks to timeline | During planning |
cs_timeline_update |
Update timeline item status | Progress sync |
cs_timeline_list |
View full project timeline | Status review |
cs_project_scaffold |
Bootstrap project with full timeline, milestones & structure | Starting a new project |
cs_announce_project_complete |
Record a finished project so the Teacher can close the roadmap | All milestones done |
cs_claim_open |
Snapshot target files + mark timeline item as awaiting comprehension proof | Before Coach writes generated code |
cs_claim_submit |
Close a claim: pass, fail (re-explain at next level), partial-pass-continue (code stays, claim open), revert (roll back code). Pass qa for multi-turn comprehension evidence |
After the comprehension gate |
cs_code_review |
Quality, security, best practices | Code shared by student |
cs_architecture_review |
Scalability, trade-offs | Design discussions |
cs_grc_scan |
OWASP, secrets, validation | Security concerns |
cs_mentoring_plan |
Personalized growth plan | Periodic check-in |
cs_engineering_status |
8-dimension competency view | Progress review |
cs_check_requirements |
Verify system tools & MCP servers for a topic | Before starting project work |
cs_coach_dialog |
Conversation interface | Legacy compatibility |
📖 Learning Handbook
Every time progress is recorded via cs_update_progress, a learning handbook is automatically generated in .codingschool/handbook/ and a git commit is created automatically, building your complete learning history.
Structure
.codingschool/handbook/
├── index.md # Master index with links to all topics
└── java-programming.md # Per-topic handbook
└── typescript.md # (one per topic with progress)
Per-Topic Handbook Contains
Each entry in the handbook is a narrative learning journal written by the AI mentor:
- Date and time of the session
- Material covered (roadmap item name)
- Theory — concise summary of concepts learned (definitions, rules, best practices)
- Practice — code examples, implementation steps, output
- Progress percentage
Example entry:
## 2026-07-29 14:30:00
**Topic:** Variables & Data Types
**Theory:**
Variables are containers for storing data in a program.
Data types determine the kind of value that can be stored:
- `int` — whole numbers
- `String` — text
- `boolean` — true/false
**Practice:**
```java
int age = 25;
String name = "Andi";
System.out.println(name + " is " + age + " years old");
Output: Andi is 25 years old
Progress: 60% complete
Students can open these markdown files directly to review their complete learning journey.
---
## 📊 Competency System
### Learning Competency (4 Dimensions)
Knowledge Implementation Debugging Teaching ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ ██████░░ │ │ ████░░░░ │ │ ███████░ │ │ ██░░░░░░ │ │ 72% │ │ 48% │ │ 85% │ │ 25% │ └──────────┘ └──────────┘ └──────────┘ └──────────┘
Combined: ★★★☆☆ (65/100)
### Engineering Competency (8 Dimensions)
Code Quality Architecture Git Process Testing ████████░░ ██████░░░░ ████░░░░░░ ██░░░░░░░░ 82% 63% 42% 21%
Documentation Collaboration GRC Awareness Risk Assessment ██████░░░░ █████████░ ████░░░░░░ ██████░░░░ 58% 88% 35% 65%
---
## 🪜 Scaffolding Levels
The agent **adapts** to the student in real-time:
LEVEL 1 LEVEL 2 LEVEL 3 Socratic Question Guided Nudge Analogy ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ "What do you │ │ "Try thinking│ │ "It's like a │ │ think would │ │ about it as │ │ restaurant —│ │ happen if...│ │ a loop..." │ │ ingredients │ │ ?" │ │ │ │ + steps" │ └──────────────┘ └──────────────┘ └──────────────┘
LEVEL 4 LEVEL 5 Pseudocode Full Solution ┌──────────────┐ ┌──────────────┐ │ "Here's the │ │ "Here's the │ │ logic in │ │ complete │ │ plain text" │ │ code" │ └──────────────┘ └──────────────┘
┌─────────────────────────────────────────────────────────┐ │ Rules: │ │ • Start at Level 1, ALWAYS │ │ • Escalate after 2+ failed attempts │ │ • De-escalate when student succeeds │ │ • Never skip levels │ └─────────────────────────────────────────────────────────┘
---
## 📁 Data Structure
.codingschool/ ├── student-model.json # Global student profile (cross-project) ├── competency.json # Per-topic: knowledge/implementation/debugging/teaching ├── engineering.json # 8-dimension engineering competency ├── progress.json # XP, level, per-topic progress ├── handbook/ # Auto-generated learning handbook │ ├── index.md # Master index of all topics │ └── .md # Per-topic handbook (progress, completed items, XP) ├── roadmap/ │ ├── java/ │ │ └── beginner.md # Checklist-style roadmap │ ├── typescript/ │ │ ├── beginner.md │ │ └── intermediate.md │ └── git/ │ └── beginner.md ├── sessions/ │ ├── 2026-07-19.md │ └── 2026-07-20.md ├── context.json # Shared Teacher ↔ Coach state (diagnosis, capstone, completion) ├── workflow.json # Tool-call order validator (advisory warnings) ├── claims/ # Comprehension claim snapshots (claim gate) │ └── .json ├── logs/ # Debug decision traces (YYYY-MM-DD.jsonl, rotated) └── timeline/ # Coach project planning (epics, sprints, milestones) └── .json
~/.config/opencode/codingschool/ └── student-model.json # Global student model (persists across projects)
**Migration:** v1.x progress files auto-convert to v2.0 format on first load.
---
## 🔄 Learning Flow
┌──────────────────────────────────────────────────────────────┐ │ LEARNING SESSION │ └──────────────────────────────────────────────────────────────┘
Student: "I want to learn Java" │ ▼ ┌─────────────┐ │ DIAGNOSE │ "What's your experience level?" └──────┬──────┘ │ ▼ ┌─────────────┐ │ ROADMAP │ Generate 10-phase learning path └──────┬──────┘ │ ▼ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ TEACH │ ←→ │ SCAFFOLD │ ←→ │ QUIZ │ └──────┬──────┘ └─────────────┘ └──────┬──────┘ │ │ ▼ ▼ ┌─────────────┐ ┌─────────────┐ │ CHECKPOINT │ │ REFLECT │ └──────┬──────┘ └──────┬──────┘ │ │ └──────────────┬─────────────────────────┘ ▼ ┌─────────────┐ │ COMPETENCY│ ★★★☆☆ Updated! └──────┬──────┘ │ ▼ Final Project (capstone) reached? ┌─────┴─────┐ │ YES │ → Hand off to the COACH agent │ ─────── │ (cs_prepare_capstone) └───────────┘ → Coach builds it → project done → back to Teacher to close the roadmap
---
## 🗺️ Coach Project Flow
┌──────────────────────────────────────────────────────────────┐ │ PROJECT GUIDANCE │ └──────────────────────────────────────────────────────────────┘
Student: "I want to build a REST API" │ ▼ ┌──────────────┐ │ TIMELINE │ Init milestones, sprints, epics, tasks │ INIT │ └──────┬───────┘ │ ▼ ┌──────────────┐ │ FEATURE │ Coach explains approach (simple language) │ GENERATION │ → cs_claim_open (snapshot files) │ + CLAIM │ → Coach writes the code │ GATE │ → Comprehension questions (multi-turn) → verdict │ │ pass → claimed | partial → watch │ │ fail → re-explain | revert → code rolled back └──────┬───────┘ │ ▼ ┌──────────────┐ │ REVIEW & │ Review diff, update timeline status, │ REFLECT │ log engineering competency growth └──────┬───────┘ │ ▼ ┌──────────────┐ │ COMPLETION │ All milestones done → ✅ PROJECT COMPLETE │ & HANDOFF │ → cs_announce_project_complete (summary) │ │ → send the student back to Teacher └──────────────┘
### Capstone Handoff (v2.2.1)
The roadmap's **Final Project** section is the student's capstone, built with the Coach agent:
1. **Teacher** teaches all theory/practice items and tracks progress via `Current`/`Last completed`.
2. When non-capstone items are done, Teacher calls `cs_prepare_capstone` → directs the student to switch to the **Coach** persona (OpenCode: `opencode --agent coach`; Claude Code: `claude --agent codingschool:coach`; Pi: `/coach`). Teacher never marks Final Project items done.
3. **Coach** sees the `CAPSTONE PROJECT READY` briefing and seeds Phase 1 of the professional workflow from it.
4. When all milestones are done, `cs_timeline_update` announces `✅ PROJECT COMPLETE`, Coach runs the final review and calls `cs_announce_project_complete`.
5. Coach directs the student back to the **Teacher** persona (OpenCode: `opencode --agent teacher`; Claude Code: `claude --agent codingschool:teacher`; Pi: `/teacher`), who reads the project summary, marks the Final Project items done (with the summary as handbook notes), and closes the roadmap with a reflection.
### Comprehension Claim Gate
Coach writes code like a build agent, but the code is **not final until the user claims it**:
1. Coach calls `cs_claim_open` — snapshots the current state of every target file (new + existing).
2. Coach writes the generated code. **File writes are enforced at the system level** while no comprehension claim is open — OpenCode's `permission.ask` denies `write`/`edit`/`strreplace`, Claude Code's `PreToolUse` hook blocks Write/Edit, Pi blocks `write`/`edit`, and DSH uses the hooks bridge. Coach cannot edit files outside a claim (shell commands excepted, see [Supported Platforms](#-supported-platforms)).
3. Coach asks **3-5 probing questions, multi-turn** (e.g. "Explain line X in your own words", then follow-ups tuned to the answers). Question banks scale with engineering level (junior → mid → senior).
4. Coach scores each answer (`correct` / `partial` / `incorrect`) and records them in the `qa` argument of `cs_claim_submit`. Aggregate confidence = 70% average + 30% weakest answer, so one lucky guess can't carry the gate.
5. Verdict via `cs_claim_submit`:
- **`pass`** (confidence ≥ 75) — user proved understanding → code stays, timeline item → `done`, engineering competency bumps. A `pass` under 75 adds a note to keep watching that area.
- **`partial-pass-continue`** (confidence 40-74) — code stays, claim stays open, timeline stays `in-progress`; Coach keeps watching the weak answers.
- **`fail`** — attempts++, Coach re-explains at the next level (`junior` → `mid` → `senior`). A history of reverted claims or repeated failures caps re-explanation at `mid` (gentler pacing).
- **`revert`** — generated code is rolled back (new files deleted, edited files restored), timeline item → `todo`.
Generated code is only considered done when claimed. If the user can't demonstrate understanding, Coach reverts — the code never silently becomes part of the project.
---
## 🤖 Agentic Workflow Layer
The dual-agent loop is wired with shared state and observability so Teacher and Coach don't work blind:
- **Shared context** (`.codingschool/context.json`) — Teacher announces diagnosis (active topic, misconceptions) and Coach writes review/claim findings (weak engineering dimensions, skill gaps, claimed level). Teacher's `cs_teach_concept` output includes a "Context from Coach" block; Coach's `cs_claim_open` output includes a "Context from Teacher" brief. Since v2.2.1 the context also carries the **capstone handoff** (`pendingCapstone`, phase → `project`) and the **project completion** (`completedProject` with the Coach's summary, phase → `done`), so Teacher always knows where the student is in the roadmap.
- **Checkbox roadmaps & progress** — roadmaps are normalized to `- [ ]`/`- [x]` checklists on creation; each topic tracks `currentItem` (first unfinished) and `lastCompletedItem`, surfaced by `cs_list_roadmap_items`, `cs_update_progress` and `cs_resume_session`.
- **Claim-gate enforcement** — the host's write gate (`permission.ask` on OpenCode, `coding-school gate-check` hooks elsewhere) denies file writes while no comprehension claim is open, so Coach can only write inside the pair-programming claim flow.
- **Workflow validator** (`.codingschool/workflow.json`) — records tool calls and emits **advisory warnings** (never blocking) when the order is off, e.g. teaching a topic before diagnosis, or submitting a claim with no recorded `cs_claim_open`.
- **Decision traces** (`.codingschool/logs/YYYY-MM-DD.jsonl`) — debug-only internal logs (agent, tool, sanitized input, outcome, duration). Code, file lists, answers and notes are **never written**. Rotates at 500 lines.
- **Meta-learning** — the initial hint level is auto-tuned from learning history (struggling topics get more scaffolding, mastered topics less), and re-explanation level is capped for students with poor claim history.
- **Compressed memory** — `student-model.json` derives `frequentStruggles` (≤5 topics) and `learningVelocity` (fast/steady/slow from Bloom-stage progress), shown on `cs_resume_session`.
Trace the lifecycle of a claim: `cs_claim_open` → comprehension Q&A (recorded in `qa`) → `cs_claim_submit` (pass / partial-pass-continue / fail / revert). Every step lands in the shared context and the workflow log.
---
## 🧪 Development
```bash
# Install dependencies
bun install
# Run all 440 tests
bun test
# Type check
bun run typecheck
# Build
bun run build
# Quick build (no declarations)
bun run build:quick
# Regenerate the Claude Code plugin files (CI checks they are up to date)
bun run gen:claude-code
Try the other hosts locally after bun run build:
claude --plugin-dir . --agent codingschool:teacher # Claude Code
pi -e ./dist/pi.js --codingschool teacher # Pi
node dist/mcp.js --platform mcp # raw MCP server (stdio)
Test Coverage
src/
├── student-model.test.ts 26 tests
├── competency.test.ts 24 tests
├── engineering.test.ts 21 tests
├── scaffolding.test.ts 19 tests
├── reflection.test.ts 19 tests
├── timeline/generator.test.ts 17 tests
├── coach-gate.test.ts 17 tests
├── diagnosis.test.ts 15 tests
├── progress/tracker.test.ts 14 tests
├── roadmap/generator.test.ts 13 tests
├── context.test.ts 16 tests
├── cli/gate-check.test.ts 19 tests
└── ... (21 more test files: MCP server, Claude Code plugin,
Pi extension, DSH presets, setup, personas, registry)
─────────────────────────────
Total: 440 tests ✅ 0 failures
📜 Changelog
Full details: CHANGELOG.md.
v3.0.0 — Multi-Platform (2026-11-12)
- Runs on Claude Code (plugin), Pi (package with
/teacher//coachmodes), DeepSeek Harness Web (agent presets) and any MCP host coding-school mcp,coding-school gate-check,coding-school setup --platform <host>- Security:
cs_publish_handbookno longer runs the repository name through a shell;cs_init_learning_envrejects path traversal - OpenCode: no changes needed — identical behavior to v2.2.2
v2.2.2 — Learning Folder + Git Workflow + Publication (2026-08-19)
cs_init_learning_env: per-topic learning folder withgit initcs_publish_handbook: publish your learning history to GitHub- Next-step topic recommendations
v2.2.1 — Teacher ↔ Coach Capstone Handoff (2026-08-17)
🔁 Full learning loop:
- Teacher → Coach handoff:
cs_prepare_capstonehands the roadmap's## Final Projectto Coach (shared context carries the capstone briefing; Teacher directs the student to switch agents) - Coach → Teacher handoff:
cs_announce_project_completerecords the finished project + summary;cs_timeline_updateannounces✅ PROJECT COMPLETEwhen all milestones are done; Coach directs the student back to Teacher - Teacher closes the roadmap: reads the Coach's project summary, marks Final Project items done (summary becomes handbook notes), runs a closing reflection
✅ Checkbox roadmaps & progress:
- Roadmap content normalized to
- [ ]/- [x]checklists on creation (numbered lists / bare bullets auto-converted, code fences untouched) currentItem+lastCompletedItemtracked per topic and shown bycs_list_roadmap_items,cs_update_progress,cs_resume_sessioncs_list_roadmap_itemsreads all level files (beginner/intermediate/expert)
🔒 Enforcement & polish:
- Claim gate enforced at system level —
permission.askdenies file writes while no comprehension claim is open - Coach tool list cleaned (Teacher-only roadmap/quiz tools removed)
- 304 tests (up from 286)
v2.2.0 — Agentic Workflow Layer (2026-08-10)
🤖 Agentic Workflow Layer:
- Shared context (
.codingschool/context.json) — Teacher and Coach exchange diagnosis, review findings, and skill gaps so neither works blind - Workflow validator (
.codingschool/workflow.json) — records tool calls and emits advisory warnings when the order is off (never blocking) - Decision traces (
.codingschool/logs/YYYY-MM-DD.jsonl) — debug-only logs, rotated at 500 lines - Meta-learning — hint levels auto-tuned from learning history; re-explanation capped for weak claim history
- Compressed memory —
frequentStrugglesandlearningVelocityderived for smarter resumes
🧑🏫 Multi-turn Comprehension Gate:
- 3-5 probing questions scaled by engineering level (junior → mid → senior)
qaevidence incs_claim_submitwith aggregate confidence scoring- New
partial-pass-continueverdict
🔧 Improvements:
- 286 tests (up from 221)
- Legacy
coding-schoolagent removed — only Teacher and Coach
v2.1.2 — Comprehension Claim Gate (2026-08-08)
- Coach claim gate (pair-programming):
cs_claim_opensnapshots files,cs_claim_submitcloses withpass/fail/revert - Coach allowed to write/edit files inside the claim flow; Teacher remains read-only
- Simple-warm dialogue style for both agents
- CLI setup defaults to global scope with per-OS config paths + manual fallback
v2.1.1 — English README polish
- Full English localization of handbook examples and metadata
v2.1.0 — The Installer & Timeline (2026-07-29)
🎉 1,000 Installs Milestone!
📦 New Installer:
- One-command setup —
npm i @codingskuy/coding-schoolthennpx coding-school setup - Interactive CLI with
opencode.jsonauto-config - Zero external dependencies (pure Node.js)
- Post-install welcome banner
🧑🏫 Agent Rename:
"Learn"→"Teacher"for clearer identity- All prompts, types, and tool names updated
🗺️ Coach Timeline System:
cs_timeline_init— initialize project timelinecs_timeline_add— add epics, sprints, taskscs_timeline_update— update statuscs_timeline_list— view full timelinecs_project_scaffold— bootstrap project with full structure- Coach workflow: Planning → Feature Guidance → Review
🔧 Improvements:
- 221 tests (up from 200)
- Renamed internal agent ID from
"learn"to"teacher" - Type-safe
CoachModediscriminated union
v2.0.0 — The Mentor Rewrite (2026-07-19)
🚀 New Features:
- Dual-agent system: Teacher (student mentor) + Coach (project mentor)
- Diagnosis-first teaching with misconception detection
- 5-level scaffolding: question → nudge → analogy → pseudocode → solution
- Per-topic competency tracking (4 dimensions)
- Engineering competency tracking (8 dimensions)
- Code review, architecture assessment, GRC scanning
cs_list_roadmap_itemsfor accurate progress tracking- Fuzzy matching for roadmap checkbox updates
- Auto-migration from v1.x format
🔧 Improvements:
- 200 tests
- Enhanced TUI sidebar with competency visualization
- Bilingual content support (English + Indonesian)
📦 Migration:
- Automatic:
.codingschool/progress.json→student-model.json+competency.json - Backward compatible: legacy agent still works
v1.0.4 — Bug Fixes
- Sidebar checklist counting fix
- Session resume topic key fix
v1.0.3 — Initial Stable Release
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feat/amazing-feature) - Run tests (
bun test) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feat/amazing-feature) - Open a Pull Request
📄 License
MIT — see LICENSE.md
Built with ❤️ by CodingSchool
Stop memorizing. Start understanding.