cd /news/developer-tools/show-hn-learning-mode-claude-refuses… · home topics developer-tools article
[ARTICLE · art-77610] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Learning Mode – Claude refuses to write code

A developer released Learning Mode, an agent-agnostic plugin for Claude Code and Codex that refuses to write code for the learner, instead forcing them to own the learning target through prediction, attempt, feedback, and retry cycles. The plugin checks prerequisites, uses a four-rung hint ladder, and validates transfer before completion, with the assistant only removing incidental friction. The project is available via a local marketplace for Codex development and testing.

read6 min views1 publishedJul 28, 2026
Show HN: Learning Mode – Claude refuses to write code
Image: source

An agent-agnostic guided-learning skill that makes the learner own the selected learning target. The assistant defines one outcome, checks the smallest prerequisite, guides prediction and attempts, reviews without rewriting, verifies consequential technical claims, and optionally preserves progress across sessions.

The same behavioral core is packaged for Claude Code and Codex.

/plugin marketplace add melsayedx/learning-mode
/plugin install learning-mode@learning-mode-marketplace
/reload-plugins

Add the repository as a marketplace, then install the plugin:

codex plugin marketplace add melsayedx/learning-mode
codex plugin add learning-mode@learning-mode-marketplace

During local development, replace melsayedx/learning-mode

with the absolute path to your clone.

OpenAI uses one universal public plugin directory for ChatGPT and Codex. The .agents/plugins/marketplace.json

file in this repository is the local/repository marketplace used for Codex development and testing; it is not a separate public submission.

Start a new conversation after installing or updating the plugin.

Learning Mode first determines intent:

Quick answer: answer directly.Guided learning: activate Learning Mode.Delivery: build or fix the result normally.

In guided learning, it follows this flow:

Determine intent: quick answer, guided learning, or delivery
    ↓
Define one learning outcome
    ↓
Check the smallest relevant prerequisite
    ↓
Select the next missing concept
    ↓
Predict → attempt → feedback → retry
    ↓
Validate against the defined outcome
    ├─ Fails → diagnose, revise, and retry
    └─ Passes → continue
    ↓
Can the learner explain and transfer it?
    ├─ No → hint ladder or analogous example
    └─ Yes → next checkpoint or finish
    ↓
Update journal only if previously enabled

Example request:

Redis Streams are new to me. Guide me through building a worker, but leave the load-bearing implementation and reasoning to me.

The skill defines the learning target before deciding what the assistant may write.

If the target is React form state, the learner owns the state model, transitions, and important tests. The assistant may prepare unrelated project files or an empty test harness.

If the target is build-tool configuration, that configuration becomes load-bearing and the learner owns it.

The boundary is:

The learner owns the target. The assistant may remove incidental friction.

The skill does not start with a giant syllabus. It checks one prerequisite, selects the next missing concept, and runs a short cycle:

predict → attempt → feedback → retry

When the learner is stuck, the assistant climbs a four-rung hint ladder. If the learner still lacks the underlying schema, it shows one fully worked analogous problem and then returns to the original target.

Before completion, the learner explains the mechanism and handles one changed example, transfer question, or counterexample.

Learning Mode prefers the smallest useful visual when relationships are easier to inspect together than explain serially:

  • diagrams or trees for structure, hierarchy, dependencies, and data flow;
  • flows, state diagrams, or timelines for sequence, state, concurrency, and timing;
  • tables for comparisons and exact mappings;
  • plots for quantities, trends, and distributions;
  • interactive models only when manipulating the system teaches more than a static visual.

The learner predicts, sketches, traces, or annotates when constructing the representation is part of the target. The assistant may provide a partial scaffold or a reference visual, then asks the learner to explain or modify it for a changed case. Short facts, syntax, and linear steps stay as text when a visual would add noise.

For each substantial concept, Learning Mode offers one authentic way to apply it: implementation, design, prediction, diagnosis, critique, simulation, or decision. The learner performs the load-bearing reasoning, compares one plausible alternative, and explains what the concept improves, what it costs, and when it should not be used. One relevant constraint then changes so the learner can reconsider the choice.

For example, after learning Onion Architecture, the learner can map a real service, compare that design with a traditional layered architecture, identify the extra indirection and boilerplate, and revisit the decision for a smaller system or team. Theoretical topics use a decision, critique, simulation, or prediction when implementation would be artificial.

Small syntax facts, quick corrections, already-mastered concepts, and declined practice skip this step.

Validation asks whether the learner's artifact or reasoning satisfies the selected outcome in the tested conditions.

After a viable attempt:

  • Restate the success criteria.
  • Have the learner propose the important cases.
  • Run the smallest relevant test, probe, trace, build, type check, worked case, or observation.
  • Compare the result with the prediction.
  • Return failures to the feedback-and-retry loop.

A passing check proves only what was tested in that environment. It does not prove universal correctness or learner understanding.

Verification asks whether the technical claims behind the work are accurate, current, and supported by authoritative evidence.

Learning Mode verifies facts when being wrong could change the implementation or mental model:

  • version-specific APIs and defaults;
  • current service limits, guarantees, retries, quotas, and rate limits;
  • protocol, security, authorization, and data-integrity requirements;
  • claims presented as real production practice;
  • uncertain, surprising, disputed, or plausibly changed facts;
  • behavior that can be checked safely with a focused probe;
  • load-bearing facts saved into the journal.

It does not perform live lookups for stable foundational knowledge, pedagogical choices, learner preferences, or incidental facts that cannot change the outcome.

A probe establishes observed behavior in the tested environment. Documentation, specifications, and machine-readable contracts establish what is guaranteed.

The skill prefers primary sources and marks claims as verified, inferred, or unconfirmed when provenance matters.

Journaling is opt-in and agent-agnostic. The default root is:

~/learning-journals/

The assistant asks once whether journaling should apply to all Learning Mode sessions or only the current project, then remembers the choice using available durable memory, project instructions, or a preference under the journal root.

When enabled, journals are stored at:

~/learning-journals/<date>-<topic>/journal.md

The learner can journaling, disable it, or change the location at any time. If the current agent cannot write to the selected directory, it explains the limitation and asks before using another location.

If the learner asks for direct delivery after guided learning has begun, the assistant confirms before leaving Learning Mode:

You want me to leave Learning Mode and deliver the solution directly. Should I switch?

Guided struggle s when delay or incomplete guidance could worsen security, data loss, destructive changes, financial harm, privacy exposure, or an active production incident. The assistant gives immediate protective guidance, then asks whether to switch to direct remediation.

.
├── .agents/plugins/marketplace.json              # Codex repo marketplace
├── .claude-plugin/marketplace.json                # Claude marketplace
└── plugins/learning-mode/
    ├── .codex-plugin/plugin.json                  # Codex plugin manifest
    ├── .claude-plugin/plugin.json                 # Claude plugin manifest
    ├── agents/doc-verifier.md                     # optional Claude verifier wrapper
    └── skills/learning-mode/
        ├── SKILL.md                               # agent-neutral behavioral core
        ├── agents/openai.yaml                     # Codex/ChatGPT skill metadata
        ├── references/
        │   ├── verification.md                    # verification method
        │   └── examples.md                        # implementation-learning example
        └── assets/journal-template.md
  • A host that supports agent skills, such as Claude Code or Codex.
  • Context7 is recommended for version-specific library documentation. The verification method can fall back to official documentation, source, and tests.
  • Visuals use the smallest format supported by the host, with tables or text diagrams as portable fallbacks. Mermaid remains optional.

Learning Mode activates for explicit active-learning intent such as:

  • “Teach me this.”
  • “Guide me while I build it.”
  • “I want to practice or master this.”
  • “This is new to me; help me do it myself.”

A one-off “what,” “how,” or “why” question does not automatically start a workshop. Routine build, fix, and direct-delivery requests stay outside Learning Mode.

Created by Muhammad El Sayed. The skill combines diagnostic checkpoints, guided inquiry, graduated hints, self-explanation, transfer checks, and source-grounded technical verification.

── more in #developer-tools 4 stories · sorted by recency
── more on @learning mode 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-learning-mod…] indexed:0 read:6min 2026-07-28 ·