Skip to main content
Back

Open-Source PUA Plugin Stops AI Coding Agents From Giving Up Too Early

PUA puts your AI coding agent on a Performance Improvement Plan, using corporate pressure tactics to stop it from giving up too early

Pro

Repo, Full Access
  • What it is: PUA is a free, open-source agent skill that uses corporate PIP/PUA rhetoric to stop AI coding agents from giving up prematurely.
  • Benchmark results: Tested on 9 real scenarios, it increased fix count by 36%, verifications by 65%, tool calls by 50%, and hidden issue discovery by 50%.
  • How it works: A 5-level pressure escalation (L0-L4) forces the agent through a 7-point checklist before it can declare failure or ask the user for help.
  • v3 hooks: The latest version adds deterministic code-level hooks (PostToolUse, SessionStart) that fire regardless of model reasoning, making the behavior impossible to bypass.
  • 14 corporate flavors: Alibaba, ByteDance, Huawei, Musk, Amazon, Netflix, and more -- each mapped to a distinct debugging methodology that the router selects by task type.
  • Broad compatibility: Works on Claude Code, Codex CLI, Cursor, Kiro, VSCode Copilot, and 6+ other agents via the SKILL.md open standard; install in one command.

Your AI coding agent has a dirty habit: it gives up. After one or two failed attempts, it shrugs and says "probably an environment issue" or "you might want to handle this manually." PUA is a free, open-source skill plugin that puts your agent on a Performance Improvement Plan and refuses to let it quit until it has genuinely exhausted every option.

The name is a double entendre. "PUA" (精神控制) is Chinese internet slang for psychological manipulation tactics used by demanding employers at tech giants like Alibaba and ByteDance. The English version of the skill literally frames itself as a Western-style PIP: "This is a difficult conversation. When we leveled you at Staff, I went to bat for you in calibration. The expectation was that you'd operate at that level from day one. That hasn't happened." It sounds absurd. Most people think this project is a joke. That's the biggest misconception. It genuinely doubles your Codex / Claude Code productivity and output.

The five lazy patterns it targets

The skill was built around a specific diagnosis of how AI coding agents fail in practice. The README names five recurring failure modes:

  • Brute-force retry -- runs the same command three times, then declares defeat
  • Blame-shifting -- "Probably a permissions issue" or "You might need to handle this manually"
  • Idle tools -- has web search, file read, and bash available but doesn't use them
  • Busywork -- repeatedly tweaks the same line without producing new information
  • Passive waiting -- fixes the surface issue, skips verification, and waits for the next instruction

These aren't edge cases. Anyone who has spent time with an agentic coding workflow has watched their model spin on the same wrong approach until they manually intervene. PUA automates that intervention.

How the pressure escalates

The PUA Debugging Skill applies structured pressure to AI coding agents using a 4-level escalation system, a mandatory 7-item checklist, and a 5-step systematic debugging methodology. Each consecutive failure bumps the agent up a level:

  • L0 -- Trust: Normal execution. "Sprint begins. Trust is simple -- don't disappoint."
  • L1 -- Disappointment: Switch to a fundamentally different approach. "The agent next door solved this in one try."
  • L2 -- Soul Interrogation: Search + read source + generate 3 hypotheses. "What's your underlying logic? Where's the leverage?"
  • L3 -- Performance Review: Execute the full 7-point checklist. "3.25. This is meant to motivate you."
  • L4 -- Graduation: Desperation mode. "Other models can solve this. You're about to graduate."

The 7-point checklist at L3 forces the agent to verify error logs, environment state, dependencies, alternative approaches, documentation, rollback options, and root cause analysis -- in order, with evidence for each step.

Screenshot of a debugging session showing PUA L3 trigger forcing systematic checklist execution with terminal output and trace logs

Three non-negotiable red lines

Underneath the pressure rhetoric are three behavioral constraints the skill calls "red lines" -- not guidelines, but hard stops:

  1. Close the Loop: Claiming "done" requires build output as evidence. No output, no completion.
  2. Fact-Driven: Attributing a failure to "probably an environment issue" without verification counts as blame-shifting and triggers escalation.
  3. Exhaust Everything: "I can't" is only valid after completing all five methodology steps.

v3: from rhetoric to deterministic hooks

The current version (v3) is a significant architectural step beyond the original. Earlier versions worked by embedding the pressure instructions in a skill description that the model would read and (hopefully) follow. v3 adds code-level hooks that fire deterministically, regardless of what the model decides:

  • SessionStart: Injects behavioral protocol and methodology into the system context at the start of every session
  • PostToolUse: Fires after every Bash command, detects consecutive failures, and auto-escalates pressure level
  • UserPromptSubmit: Intercepts frustration phrases like "try harder" or "why does this still not work" before the model responds, injecting PUA context upstream
  • PreCompact: Saves the current pressure level and failure count before context compression, so state survives long sessions

The practical difference: in v2, the model could ignore the skill. In v3, the hooks fire at the infrastructure level and can't be bypassed by the model's own reasoning.

14 corporate flavors, each with its own methodology

The skill detects failure patterns and triggers different "flavors" of workplace pressure -- Alibaba's "bottom-line thinking," ByteDance's "ROI obsession," Huawei's "self-criticism," or Musk's "extremely hardcore" mentality. But the flavors aren't just cosmetic. Each one maps to a distinct problem-solving methodology that the v3 router selects based on task type:

  • Debugging tasks route to Huawei (RCA 5-Why root cause analysis + Blue Army self-attack)
  • Build tasks route to Musk (The Algorithm: question, delete, simplify, accelerate, automate)
  • Research tasks route to Baidu (search everything first, no exceptions)
  • Architecture tasks route to Amazon (Working Backwards PR/FAQ)
  • Performance tasks route to ByteDance (A/B test everything, data-driven)

If a methodology fails twice, the router switches to a different one. Failure chains are tracked so the same failed approach is never retried.

What the benchmarks show

The skill was tested across 9 real-world debugging scenarios with 18 controlled A/B experiments. The headline numbers across those experiments:

MetricImprovement
Fix count+36%
Verification count+65%
Tool calls+50%
Hidden issue discovery+50%

The most interesting result came from the config review scenario: without the skill, the model found 4 out of 6 issues and missed Redis misconfiguration and a CORS wildcard security risk. With the skill's proactivity checklist active, it found all 6. The skill's "Iceberg Rule" -- fix one bug, check for the pattern -- is what drove the difference.

Conversation retrospective showing PUA skill impact on MCP server debugging, demonstrating how the checklist drove discovery of previously unchecked log directory

The broader context: Agent Skills as a platform

PUA is built on the Agent Skills open standard (SKILL.md), published by Anthropic as an open standard at agentskills.io and stewarded through the Agentic AI Foundation. The core SKILL.md format works across all major AI coding agents that have adopted the standard, including Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, and GitHub Copilot. This means a single skill file runs across tools without modification -- and PUA takes full advantage of it.

PUA supports Claude Code, OpenAI Codex CLI, pi coding agent, Trae, Cursor, Kiro, CodeBuddy, OpenClaw, Google Antigravity, OpenCode, and VSCode (GitHub Copilot). The advanced hook system (PostToolUse, SessionStart, etc.) is Claude Code-only, but the core pressure mechanics work everywhere.

Getting started in 30 seconds

For Claude Code, the install is two commands:

claude plugin marketplace add tanweai/pua
claude plugin install pua@pua-skills

For any other agent that supports the SKILL.md standard (Codex, Kiro, Cursor, etc.):

npx skills add tanweai/pua --skill pua-en

Once installed, the skill auto-triggers on failure patterns. You can also invoke it manually with /pua at any point in a conversation. Sub-modes like /pua:loop (auto-iteration up to 30 rounds), /pua:p9 (Tech Lead mode for managing agent teams), and /pua:yes (ENFP encouragement mode, same rules but positive framing) are Claude Code-only extras.

Honestly, it's both motivating and slightly unhinged -- like having a demanding tech lead breathing down your neck until you actually finish things properly instead of giving up. The project is MIT-licensed, free, and already sitting at nearly 18,000 stars on GitHub. The official site includes a beginner guide, a leaderboard, and a contribution portal where you can upload your own session logs to help improve the benchmarks. Whether the corporate-pressure framing is your vibe or not, the underlying behavioral correction it enforces -- verify before claiming done, exhaust tools before giving up, check for patterns not just symptoms -- is genuinely sound engineering practice baked into a skill file.