Skip to content
    ↑↓ select↵ openesc close
    English中文
    Karnak19

    Ocpt

    v1.0.0Other
    @karnak19/ocpt

    Ponytail plugin for OpenCode - makes your AI agent think like the laziest senior dev

    GitHub stars

    1

    Monthly installs

    33

    5 in 7 days

    Composite scoreSCORE

    28.7

    Multi-signal model

    Last commit

    2 months ago

    2026-06-18

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["@karnak19/ocpt@1.0.0"]
    }

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    Ponytail plugin for OpenCode — makes your AI agent think like the laziest senior dev in the room.

    Install

    npm install @karnak19/ocpt
    

    Then add to your opencode.json:

    {
      "plugin": ["@karnak19/ocpt"]
    }
    

    What it does

    Before writing code, the agent stops at the first rung that holds:

    1. Does this need to exist? → no: skip it (YAGNI)
    2. Stdlib does it? → use it
    3. Native platform feature? → use it
    4. Installed dependency? → use it
    5. One line? → one line
    6. Only then: the minimum that works

    Lazy, not negligent: trust-boundary validation, data-loss handling, security, and accessibility are never on the chopping block.

    Commands

    Command What it does
    /ponytail [lite|full|ultra|off] Set the intensity, or turn it off. No argument reports the current level.
    /ponytail-review Review the current diff for over-engineering, hands back a delete-list.
    /ponytail-audit Audit the whole repo for over-engineering, not just the diff.
    /ponytail-debt Harvest the ponytail: shortcuts you've deferred into a ledger.
    /ponytail-help Quick reference for the commands above.

    Levels

    Level What change
    lite Build what's asked, but name the lazier alternative in one line. User picks.
    full The ladder enforced. Stdlib and native first. Shortest diff, shortest explanation. Default.
    ultra YAGNI extremist. Deletion before addition. Ship the one-liner and challenge the rest of the requirement in the same breath.

    Configuration

    Set the default level with the PONYTAIL_DEFAULT_MODE environment variable:

    export PONYTAIL_DEFAULT_MODE=ultra
    

    Or just use /ponytail ultra in a session to switch for that session.

    Why a standalone plugin?

    The original ponytail repo requires you to run OpenCode from a checkout of their repo. This plugin is self-contained — install it and forget it.

    License

    MIT