@dietrichgebert/ponytail 4.8.2 → 4.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.es.md CHANGED
@@ -14,10 +14,16 @@
14
14
  <p align="center">
15
15
  <img src="https://img.shields.io/github/stars/DietrichGebert/ponytail?style=flat-square&color=111111&label=stars" alt="Stars">
16
16
  <img src="https://img.shields.io/github/v/release/DietrichGebert/ponytail?style=flat-square&color=111111&label=release" alt="Release">
17
- <img src="https://img.shields.io/badge/funciona%20con-14%20agentes-111111?style=flat-square" alt="Works with 14 agents">
17
+ <img src="https://img.shields.io/npm/v/@dietrichgebert/ponytail?style=flat-square&color=111111&label=npm" alt="npm">
18
+ <img src="https://img.shields.io/badge/funciona%20con-15%20agentes-111111?style=flat-square" alt="Works with 15 agents">
18
19
  <img src="https://img.shields.io/badge/licencia-MIT-111111?style=flat-square" alt="MIT license">
19
20
  </p>
20
21
 
22
+ <p align="center">
23
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/daily" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
24
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/weekly" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
25
+ </p>
26
+
21
27
  <p align="center">
22
28
  <strong>~54% menos código (hasta 94%) &middot; ~20% más barato &middot; ~27% más rápido &middot; 100% seguro</strong><br>
23
29
  <sub>Medido en sesiones reales de Claude Code editando un repo open-source real (FastAPI + React), contra el mismo agente sin skill. ~54% es el promedio de 12 tareas de feature (Haiku 4.5, n=4); llega al 94% cuando un agente sobre-construye (un selector de fechas) y es casi cero cuando el código ya es mínimo. ponytail mantiene cada guarda de seguridad, mientras que un prompt pelado de "escribe one-liners" se salta una. (El benchmark anterior de un solo disparo reportaba 80-94% como cifra plana; contra un baseline agéntico justo, ese es el techo por tarea, no el promedio.) <a href="benchmarks/results/2026-06-18-agentic.md">Reporte completo</a> &middot; <a href="benchmarks/">reprodúcelo</a>.</sub>
@@ -29,6 +35,10 @@
29
35
 
30
36
  ---
31
37
 
38
+ <p align="center">
39
+ <a href="https://ponytail.dev/soon"><img src="assets/waitlist-banner-es.png" alt="Algo nuevo está por llegar, únete a la lista" width="760"></a>
40
+ </p>
41
+
32
42
  Lo conoces. Cola de caballo larga. Lentes ovalados. Lleva más tiempo en la empresa que el control de versiones. Le muestras cincuenta líneas; las mira, no dice nada, y las reemplaza por una.
33
43
 
34
44
  Ponytail lo pone dentro de tu agente de IA.
@@ -150,7 +160,13 @@ pi install git:github.com/DietrichGebert/ponytail
150
160
 
151
161
  ### OpenCode
152
162
 
153
- Ejecuta OpenCode desde un checkout de este repo (el plugin reutiliza sus `hooks/` y `skills/`), y agrega esto a `opencode.json`:
163
+ Agrega esto a `opencode.json`:
164
+
165
+ ```json
166
+ { "plugin": ["@dietrichgebert/ponytail"] }
167
+ ```
168
+
169
+ O ejecútalo desde un checkout (el plugin reutiliza sus `hooks/` y `skills/`):
154
170
 
155
171
  ```json
156
172
  { "plugin": ["./.opencode/plugins/ponytail.mjs"] }
@@ -182,6 +198,14 @@ Reutiliza el `gemini-extension.json` de este repo. Una diferencia: Antigravity c
182
198
 
183
199
  Lee `AGENTS.md` desde la raíz del proyecto, sin configuración. Copia [`AGENTS.md`](AGENTS.md) a tu proyecto, o ejecuta `codewhale` desde un checkout de este repo. Eso es todo.
184
200
 
201
+ ### Devin CLI
202
+
203
+ ```bash
204
+ devin plugins install DietrichGebert/ponytail
205
+ ```
206
+
207
+ Instala ponytail como plugin de Devin; los skills quedan disponibles como `/ponytail:ponytail`, `/ponytail:ponytail-review`, etc.
208
+
185
209
  ### OpenClaw
186
210
 
187
211
  ```bash
@@ -216,7 +240,7 @@ Qué archivos corresponden a qué agente: [Portabilidad de agentes](docs/agent-p
216
240
  | `/ponytail-debt` | Recolecta los atajos marcados con `ponytail:` que dejaste pendientes en un registro, para que "después" no se convierta en "nunca". |
217
241
  | `/ponytail-help` | Referencia rápida de los comandos anteriores. |
218
242
 
219
- Los comandos requieren un host compatible con skills (Claude Code, Codex, OpenCode, Gemini, pi). En Codex son skills; se invocan con `@` (`@ponytail-review`). Los adaptadores de solo instrucciones (Cursor, Windsurf, Cline, Copilot, Kiro, Antigravity) cargan el ruleset permanente sin los comandos.
243
+ Los comandos requieren un host compatible con skills (Claude Code, Codex, Devin CLI, OpenCode, Gemini, pi, Swival). En Codex son skills; se invocan con `@` (`@ponytail-review`). Los adaptadores de solo instrucciones (Cursor, Windsurf, Cline, Copilot, Kiro, Antigravity) cargan el ruleset permanente sin los comandos.
220
244
 
221
245
  ## Desarrollo
222
246
 
@@ -245,6 +269,27 @@ El código que nunca escribiste escala infinitamente. Cero bugs, cero CVEs, 100%
245
269
  **¿Por qué "ponytail"?**
246
270
  Ya sabes exactamente por qué.
247
271
 
272
+ ## Patrocinadores
273
+
274
+ <p align="center">
275
+ <a href="https://greenpt.com/">
276
+ <picture>
277
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-greenpt-dark.svg">
278
+ <img src="assets/logo-greenpt.svg" width="260" alt="GreenPT">
279
+ </picture>
280
+ </a>
281
+ </p>
282
+
248
283
  ## Licencia
249
284
 
250
285
  [MIT](LICENSE). La licencia más corta que funciona.
286
+
287
+ ## Historial de estrellas
288
+
289
+ <a href="https://www.star-history.com/dietrichgebert/ponytail#history">
290
+ <picture>
291
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date&theme=dark" />
292
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
293
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
294
+ </picture>
295
+ </a>
package/README.ko.md ADDED
@@ -0,0 +1,315 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png">
4
+ <img src="assets/logo.png" width="220" alt="Ponytail, the lazy senior dev">
5
+ </picture>
6
+ </p>
7
+
8
+ <h1 align="center">Ponytail</h1>
9
+
10
+ <p align="center">
11
+ <em>말이 없다. 한 줄을 쓴다. 돌아간다.</em>
12
+ </p>
13
+
14
+ <p align="center">
15
+ <img src="https://img.shields.io/github/stars/DietrichGebert/ponytail?style=flat-square&color=111111&label=stars" alt="Stars">
16
+ <img src="https://img.shields.io/github/v/release/DietrichGebert/ponytail?style=flat-square&color=111111&label=release" alt="Release">
17
+ <img src="https://img.shields.io/npm/v/@dietrichgebert/ponytail?style=flat-square&color=111111&label=npm" alt="npm">
18
+ <img src="https://img.shields.io/badge/works%20with-15%20agents-111111?style=flat-square" alt="Works with 15 agents">
19
+ <img src="https://img.shields.io/badge/license-MIT-111111?style=flat-square" alt="MIT license">
20
+ </p>
21
+
22
+ <p align="center">
23
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/daily" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
24
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/weekly" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <strong>코드 약 54% 감소(최대 94%) &middot; 약 20% 저렴 &middot; 약 27% 빠름 &middot; 100% 안전</strong><br>
29
+ <sub>실제 오픈소스 저장소(FastAPI + React)를 고치는 실제 Claude Code 세션에서, 스킬을 끈 같은 에이전트와 견줘 측정했다. 약 54%는 기능 작업 12건의 평균이다(Haiku 4.5, n=4). 에이전트가 과하게 짤 여지가 있는 곳(날짜 선택기)에선 94%까지 오르고, 코드가 이미 최소한인 곳에선 0에 가깝다. ponytail은 안전 가드를 하나도 빼놓지 않지만, 그냥 "한 줄로 써"라고만 시킨 프롬프트는 그중 하나를 놓친다. (예전 단발성 벤치마크는 80-94%를 단일 수치로 내세웠는데, 공정한 에이전트 기준선에 견주면 그건 평균이 아니라 작업별 상한이다.) <a href="benchmarks/results/2026-06-18-agentic.md">전체 보고서</a> &middot; <a href="benchmarks/">직접 재현하기</a>.</sub>
30
+ </p>
31
+
32
+ <p align="center">
33
+ <sub>커뮤니티 번역이다. 기준이 되는 최신 버전은 <a href="README.md">영어 README</a>다.</sub>
34
+ </p>
35
+
36
+ ---
37
+
38
+ <p align="center">
39
+ <a href="https://ponytail.dev/soon"><img src="assets/waitlist-banner-ko.png" alt="새로운 것이 다가오고 있습니다, 대기자 명단 신청" width="760"></a>
40
+ </p>
41
+
42
+ 이런 사람, 다들 알 거다. 긴 포니테일에 타원형 안경. 버전 관리 시스템보다 회사에 오래 있었다. 코드 쉰 줄을 들이밀면 잠깐 보더니, 말없이 한 줄로 바꿔 놓는다.
43
+
44
+ Ponytail은 그를 당신의 AI 에이전트 안에 앉혀 둔다.
45
+
46
+ ## Before / after
47
+
48
+ 날짜 선택기 하나 만들어 달라고 한다. 에이전트는 flatpickr를 깔고, 래퍼 컴포넌트를 짜고, 스타일시트를 붙이더니, 타임존 얘기를 꺼내기 시작한다.
49
+
50
+ ponytail이라면:
51
+
52
+ ```html
53
+ <!-- ponytail: browser has one -->
54
+ <input type="date">
55
+ ```
56
+
57
+ 살아남은 것들이 더 궁금하다면 [examples/](examples/)로.
58
+
59
+ ## Numbers
60
+
61
+ 공정하게 재려면 실제 에이전트에게 실질적인 작업을 시켜 봐야 한다. 헤드리스 Claude Code 세션에게 [tiangolo의 full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template)(진짜 FastAPI + React 저장소)을 맡기고, 남긴 `git diff`로 점수를 매겼다. 기능 티켓 12건, 같은 에이전트를 스킬만 켜고 끄며 비교, n=4, Haiku 4.5.
62
+
63
+ <p align="center">
64
+ <img src="assets/benchmark-agentic.svg" width="860" alt="Each arm as a percent of the no-skill baseline across LOC, tokens, cost and time (Haiku 4.5). ponytail is lowest on every metric (LOC 46%, tokens 78%, cost 80%, time 73%); caveman rises above 100% on tokens, cost and time; yagni-oneliner LOC 67%. Safety, separate adversarial tier: baseline, caveman and ponytail 100%, yagni-oneliner 95%.">
65
+ </p>
66
+
67
+ | 스킬 없는 기준선 대비 | LOC | tokens | cost | time | safe |
68
+ |---|--:|--:|--:|--:|--:|
69
+ | **ponytail** | **-54%** | **-22%** | **-20%** | **-27%** | **100%** |
70
+ | caveman (간결한 산문 대조군) | -20% | +7% | +3% | +2% | 100% |
71
+ | "YAGNI + one-liners" 프롬프트 | -33% | -14% | -21% | -30% | 95% |
72
+
73
+ 모든 지표를 깎은 건 ponytail뿐이고, 그러면서 안전까지 온전히 지킨 것도 ponytail뿐이다. 깎이는 폭은 과잉 구현의 함정이 실제로 있는 곳에서 가장 크다. 컴포넌트 대신 네이티브 `<input>`으로 손이 가니 날짜 선택기는 404줄에서 23줄로, 색상 선택기는 287줄에서 23줄로 줄어든다. 반대로 이미 군더더기 없는 코드에선 거의 0이다. 전체 방법론, 작업별 표, 한계는 [benchmarks/results/2026-06-18-agentic.md](benchmarks/results/2026-06-18-agentic.md)에 있다.
74
+
75
+ <details>
76
+ <summary><strong>예전 단발성 수치 (격리된 생성)</strong></summary>
77
+
78
+ 일상적인 작업 다섯 가지, 모델 셋, 비교군 셋(스킬 없음, [caveman](https://github.com/JuliusBrussee/caveman), ponytail), 10회 실행, 중앙값 기준. 프롬프트 하나에 응답 하나, 답변의 줄 수를 셌다:
79
+
80
+ <p align="center">
81
+ <img src="assets/benchmark-3model.svg" width="860" alt="Median lines of code per arm across Haiku, Sonnet and Opus">
82
+ </p>
83
+
84
+ 여기선 **코드 80-94% 감소**가 나왔다. 다만 [#126](https://github.com/DietrichGebert/ponytail/issues/126)이 맞게 짚었듯, 스킬을 전혀 안 붙인 기준선 모델은 답변을 설명과 선택지로 부풀린다. 그래서 그 격차의 일부는 대화형 기준선이 만들어 낸 착시다. 위의 에이전트 수치가 그걸 바로잡은, 근거 있는 버전이다. 단발성 실행은 `npx promptfoo eval -c benchmarks/promptfooconfig.yaml`로 재현할 수 있다.
85
+
86
+ </details>
87
+
88
+ **규칙은 애초에 "토큰 최소화"가 아니었다.** 작업에 필요한 만큼만 쓰되, 검증·에러 처리·보안·접근성은 절대 덜어내지 않는다는 것이다. 코드가 작아지는 건 억지로 줄여서가 아니라 딱 그만큼만 필요해서다. 비용과 지연이 낮아지는 것도 단계를 충실히 밟는 모델에서나 부수적으로 딸려 오는 효과일 뿐이다. 그 단계를 고민하느라 사고 토큰을 쏟는 간결한 추론 모델은 오히려 거꾸로 갈 수도 있다(GPT-5.5가 그렇다).
89
+
90
+ ## How it works
91
+
92
+ 코드를 쓰기 전에, 에이전트는 가장 먼저 들어맞는 단계에서 멈춘다:
93
+
94
+ ```
95
+ 1. 이게 있을 필요가 있나? → 없다: 건너뛴다 (YAGNI)
96
+ 2. 이미 이 코드베이스에 있나? → 다시 짜지 말고 가져다 쓴다
97
+ 3. 표준 라이브러리로 되나? → 쓴다
98
+ 4. 네이티브 플랫폼 기능인가? → 쓴다
99
+ 5. 깔려 있는 의존성이 푸나? → 쓴다
100
+ 6. 한 줄로 되나? → 한 줄
101
+ 7. 그제서야: 돌아가는 최소한
102
+ ```
103
+
104
+ 단계를 밟는 건 문제를 이해한 *다음*이지, 이해를 대신하는 게 아니다. 변경이 닿는 코드를 읽고 실제 흐름을 따라가 본 뒤에야 단계를 고른다. 해법에는 게을러도, 읽는 데는 절대 게으르지 않다.
105
+
106
+ 게으른 거지 부주의한 게 아니다. 신뢰 경계의 검증, 데이터 손실 방지, 보안, 접근성은 결코 잘려 나가지 않는다.
107
+
108
+ ## Install
109
+
110
+ ponytail이 당신에게 요구할 수고의 최대치:
111
+
112
+ Claude Code와 Codex 플러그인은 자그마한 Node.js 라이프사이클 훅 두 개를 돌리니, `node`가 PATH에 잡혀 있어야 한다(Nix/nvm 사용자라면 비대화형 셸의 PATH에 있어야 한다). 없어도 스킬은 멀쩡히 돌아간다. 다만 늘 켜져 있던 자동 활성화가 매 프롬프트마다 에러를 뱉는 대신 조용히 비활성으로 남을 뿐이다.
113
+
114
+ ### Claude Code
115
+
116
+ ```
117
+ /plugin marketplace add DietrichGebert/ponytail
118
+ ```
119
+ ```
120
+ /plugin install ponytail@ponytail
121
+ ```
122
+ (설치가 되려면 두 프롬프트를 따로 보내야 한다)
123
+
124
+ 데스크톱 앱에는 `/plugin` 명령이 없다. 대신 UI에서 설치한다: Customize, 개인 플러그인 옆의 +, Create plugin and add marketplace, Add from repository, 그다음 저장소 URL 입력(감사합니다 @NiklasDHahn, #98).
125
+
126
+ ### Codex
127
+
128
+ ```bash
129
+ codex plugin marketplace add DietrichGebert/ponytail
130
+ codex
131
+ ```
132
+
133
+ `/plugins`를 열어 Ponytail 마켓플레이스를 고르고 Ponytail을 설치한다. 그런 다음
134
+ `/hooks`를 열어 라이프사이클 훅 두 개를 검토하고 신뢰한 뒤, 새 스레드를 시작한다.
135
+
136
+ 이 설치 한 번이면 Codex 데스크톱 앱도 같이 잡힌다. 설치 후 앱을 다시 켜면 플러그인을 알아챈다.
137
+
138
+ ### GitHub Copilot CLI
139
+
140
+ ```bash
141
+ copilot plugin marketplace add DietrichGebert/ponytail
142
+ copilot plugin install ponytail@ponytail
143
+ ```
144
+
145
+ 대화형 Copilot CLI 세션에서는 슬래시 명령으로 똑같이 하면 된다:
146
+
147
+ ```
148
+ /plugin marketplace add DietrichGebert/ponytail
149
+ /plugin install ponytail@ponytail
150
+ ```
151
+
152
+ Copilot CLI는 플러그인 명령에 그 이름을 네임스페이스로 붙인다. 예를 들면:
153
+
154
+ ```text
155
+ /ponytail:ponytail ultra
156
+ /ponytail:ponytail-review
157
+ ```
158
+
159
+ ### Pi agent harness
160
+
161
+ ```
162
+ pi install git:github.com/DietrichGebert/ponytail
163
+ ```
164
+
165
+ ### OpenCode
166
+
167
+ `opencode.json`에 다음을 더한다:
168
+
169
+ ```json
170
+ { "plugin": ["@dietrichgebert/ponytail"] }
171
+ ```
172
+
173
+ 체크아웃에서 직접 돌려도 된다(플러그인이 `hooks/`와 `skills/`를 그대로 쓴다):
174
+
175
+ ```json
176
+ { "plugin": ["./.opencode/plugins/ponytail.mjs"] }
177
+ ```
178
+
179
+ 매 턴마다 지금 레벨의 룰셋을 주입하고, `/ponytail` 명령들을 붙여 준다([Commands](#commands) 참고). OpenCode는 이 저장소의 `AGENTS.md`도 알아서 불러오니, 플러그인이 없어도 규칙은 살아 있다. 플러그인은 `lite/full/ultra/off` 레벨을 얹어 준다.
180
+
181
+ `./` 경로는 프로젝트의 `opencode.json`을 기준으로 풀린다. 체크아웃 하나를 여러 프로젝트에서 같이 쓰려면, 대신 `.mjs`의 절대 경로를 가리키면 된다(그 파일은 제 위치를 기준으로 `hooks/`와 `skills/`를 찾는다).
182
+
183
+ ### Gemini CLI
184
+
185
+ ```bash
186
+ gemini extensions install https://github.com/DietrichGebert/ponytail
187
+ ```
188
+
189
+ 매 세션 룰셋을 늘 켜진 컨텍스트로 불러오고 `/ponytail` 명령들을 등록한다. `skills/`도 함께 실리며, 작업에 필요할 때 켜진다.
190
+ Gemini 어댑터는 일부러 루트 `hooks/hooks.json`을 두지 않는다. Gemini는 그 경로를 자동으로 불러오는데, ponytail의 라이프사이클 훅은 Claude/Codex 이벤트 이름을 쓰기 때문이다.
191
+
192
+ ### Antigravity CLI
193
+
194
+ Google이 Gemini CLI를 Antigravity CLI(`agy` 바이너리)로 이름을 바꾸는 중인데, 같은 확장이 거기에도 설치된다:
195
+
196
+ ```bash
197
+ agy plugin install https://github.com/DietrichGebert/ponytail
198
+ ```
199
+
200
+ 이 저장소의 `gemini-extension.json`을 그대로 재사용한다. 차이는 하나다. Antigravity는 `/ponytail` 명령들을 스킬로 바꿔 버려서, 슬래시 메뉴에서 고르는 대신 채팅에 직접 친다(예: `/ponytail-review`를 메시지로). 전환이 마무리될 때까지(2026년 6월 18일경)는 `gemini extensions install`도 여전히 먹힌다. 늘 켜진 규칙으로 돌리고 싶으면, 룰셋을 `.agents/rules/`에 넣으면 된다.
201
+
202
+ ### CodeWhale
203
+
204
+ 프로젝트 루트의 `AGENTS.md`를 읽고, 설정은 전혀 필요 없다. [`AGENTS.md`](AGENTS.md)를 프로젝트에 복사하거나, 이 저장소를 체크아웃한 곳에서 `codewhale`을 돌리면 된다. 그게 끝이다.
205
+
206
+ ### Swival
207
+
208
+ 먼저 컬렉션을 라이브러리에 스테이징한 다음, 원하는 스킬을 더한다:
209
+
210
+ ```bash
211
+ swival skills add --global https://github.com/DietrichGebert/ponytail # ~/.config/swival/library에 스테이징
212
+ swival skills add ponytail # 이 프로젝트에 컬렉션 설치
213
+ swival skills add --global ponytail # 또는 모든 프로젝트에서 켜기
214
+ ```
215
+
216
+ Swival도 프로젝트 루트의 `AGENTS.md`와 전역의 `~/.config/swival/AGENTS.md`를 읽는다. 지시문 전용 폴백이다.
217
+
218
+ 명령줄에서는 `$` 접두사로 스킬을 명시적으로 켠다. 예: `$ponytail-review`.
219
+
220
+ ### Devin CLI
221
+
222
+ ```bash
223
+ devin plugins install DietrichGebert/ponytail
224
+ ```
225
+
226
+ ponytail을 Devin 플러그인으로 설치한다. 스킬은 `/ponytail:ponytail`, `/ponytail:ponytail-review` 등으로 쓸 수 있다.
227
+
228
+ ### OpenClaw
229
+
230
+ ```bash
231
+ clawhub install ponytail
232
+ ```
233
+
234
+ ClawHub에서 ponytail을 OpenClaw 스킬로 설치한다. review, audit, debt, gain, help 스킬도 같은 식으로 깐다(`clawhub install ponytail-review` 등). OpenClaw는 코딩 작업에 이를 적용하고 `/ponytail` 명령으로도 열어 준다. ClawHub가 없으면 [`.openclaw/skills/ponytail`](.openclaw/skills/)을 `~/.openclaw/skills/`에 복사하면 된다.
235
+
236
+ 이게 끝이었다. 그 사람이라면 흐뭇해할 거다. 입 밖으로 내진 않겠지만.
237
+
238
+ 매 세션 켜져 있고, 명령 몇 개가 딸려 온다([Commands](#commands) 참고). `/ponytail ultra`는 코드베이스가 당신에게 단단히 밉보인 날을 위해 있다. 시작할 때와 모드를 바꿀 때 지금 모드를 보여 준다.
239
+
240
+ 새 세션마다 적용할 레벨은 `PONYTAIL_DEFAULT_MODE` 환경 변수(`lite`/`full`/`ultra`/`off`)로, 또는 `~/.config/ponytail/config.json`의 `defaultMode` 필드(Windows에선 `%APPDATA%\ponytail\config.json`)로 정한다. 기본값은 `full`이다.
241
+
242
+ Cursor, Windsurf, Cline, GitHub Copilot(에디터), Aider, Kiro, Zed, CodeWhale: 이 저장소에서 맞는 규칙 파일을 복사하면 된다([`.cursor/rules/`](.cursor/rules/), [`.windsurf/rules/`](.windsurf/rules/), [`.clinerules/`](.clinerules/), [`.github/copilot-instructions.md`](.github/copilot-instructions.md), [`AGENTS.md`](AGENTS.md), [`.kiro/steering/`](.kiro/steering/)).
243
+
244
+ Kiro: `.kiro/steering/ponytail.md`를 `~/.kiro/steering/`(전역)이나 프로젝트의 `.kiro/steering/`에 복사한다.
245
+
246
+ GitHub Copilot CLI 폴백(지시문 전용 모드): 프로젝트의 `AGENTS.md`와 `.github/copilot-instructions.md`를 읽거나, 모든 프로젝트에서 ponytail을 돌리려면 규칙을 `~/.copilot/copilot-instructions.md`에 복사한다. 이 경로는 늘 켜진 가이드는 살리지만, 플러그인 모드 전환이나 훅은 더해 주지 않는다.
247
+
248
+ Codex 확장을 쓰는 VS Code는 이 저장소가 함께 싣는 `AGENTS.md`를 읽으니, 저장소 루트에서 설정 없이 돌아간다(`~/.codex/AGENTS.md`를 두면 Codex 전역으로 잡힌다).
249
+
250
+ 어떤 파일이 어느 에이전트에 매핑되는지: [Agent portability](docs/agent-portability.md).
251
+
252
+ ## Commands
253
+
254
+ | 명령 | 하는 일 |
255
+ |---------|--------------|
256
+ | `/ponytail [lite \| full \| ultra \| off]` | 강도를 정하거나, 끈다. 인수가 없으면 지금 레벨을 알려 준다. |
257
+ | `/ponytail-review` | 지금 diff를 과잉 구현 관점에서 훑고, 삭제 목록을 돌려준다. |
258
+ | `/ponytail-audit` | diff만이 아니라 저장소 전체를 과잉 구현 관점에서 감사한다. |
259
+ | `/ponytail-debt` | 미뤄 둔 `ponytail:` 간소화들을 장부로 모아, "나중에"가 "영영"이 되지 않게 한다. |
260
+ | `/ponytail-gain` | 벤치마크로 잰 효과 스코어보드(코드 절감, 비용 절감, 속도 향상)를 보여 준다. |
261
+ | `/ponytail-help` | 위 명령들의 빠른 참조. |
262
+
263
+ 명령들은 스킬을 지원하는 호스트가 있어야 돈다(Claude Code, Codex, Devin CLI, OpenCode, Gemini, pi, Swival). Codex에선 스킬이라 `@`로 부른다(`@ponytail-review`). 지시문 전용 어댑터(Cursor, Windsurf, Cline, Copilot, Kiro, Antigravity)는 명령 없이 늘 켜진 룰셋만 불러온다.
264
+
265
+ ## Development
266
+
267
+ 압축 규칙 텍스트를 바꿀 때는, 에이전트 사본들을 같은 상태로 맞춰 둔다:
268
+
269
+ ```bash
270
+ node scripts/check-rule-copies.js
271
+ npm test
272
+ ```
273
+
274
+ OpenClaw 스킬 패키지(`.openclaw/skills/`)는 `skills/`에서 생성된다. 스킬을 바꾼 뒤에는 `node scripts/build-openclaw-skills.js`를 다시 돌린다. 묵은 상태면 테스트 스위트가 실패한다.
275
+
276
+ 정확성 벤치마크는 이메일·CSV 검사를 위해 Python을 띄운다. `python`보다 `python3`를 먼저 시도한다. CSV 검사는 로컬에 `pandas`가 깔려 있어야 한다.
277
+
278
+ ## FAQ
279
+
280
+ **설정 파일이 필요한가?**
281
+ 아니다. 선택 사항인 `~/.config/ponytail/config.json`이나 `PONYTAIL_DEFAULT_MODE` 환경 변수로 기본 레벨을 정할 순 있지만, 꼭 있어야 하는 건 없다.
282
+
283
+ **그래도 120줄짜리 캐시 클래스가 정말 필요하다면?**
284
+ 필요 없다. 그래도 우기면 그가 만들어 준다. 천천히. 정확하게. 당신을 쳐다보면서.
285
+
286
+ **확장은 되나?**
287
+ 당신이 안 쓴 코드는 무한히 확장된다. 버그 0, CVE 0, 가동률 100%. 예나 지금이나.
288
+
289
+ **왜 하필 "ponytail"인가?**
290
+ 당신은 이유를 정확히 안다.
291
+
292
+ ## Sponsors
293
+
294
+ <p align="center">
295
+ <a href="https://greenpt.com/">
296
+ <picture>
297
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-greenpt-dark.svg">
298
+ <img src="assets/logo-greenpt.svg" width="260" alt="GreenPT">
299
+ </picture>
300
+ </a>
301
+ </p>
302
+
303
+ ## License
304
+
305
+ [MIT](LICENSE). 돌아가는 가장 짧은 라이선스.
306
+
307
+ ## Star History
308
+
309
+ <a href="https://www.star-history.com/dietrichgebert/ponytail#history">
310
+ <picture>
311
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date&theme=dark" />
312
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
313
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
314
+ </picture>
315
+ </a>
package/README.md CHANGED
@@ -14,21 +14,31 @@
14
14
  <p align="center">
15
15
  <img src="https://img.shields.io/github/stars/DietrichGebert/ponytail?style=flat-square&color=111111&label=stars" alt="Stars">
16
16
  <img src="https://img.shields.io/github/v/release/DietrichGebert/ponytail?style=flat-square&color=111111&label=release" alt="Release">
17
- <img src="https://img.shields.io/badge/works%20with-14%20agents-111111?style=flat-square" alt="Works with 14 agents">
17
+ <img src="https://img.shields.io/npm/v/@dietrichgebert/ponytail?style=flat-square&color=111111&label=npm" alt="npm">
18
+ <img src="https://img.shields.io/badge/works%20with-16%20agents-111111?style=flat-square" alt="Works with 16 agents">
18
19
  <img src="https://img.shields.io/badge/license-MIT-111111?style=flat-square" alt="MIT license">
19
20
  </p>
20
21
 
22
+ <p align="center">
23
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/daily" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
24
+ <a href="https://trendshift.io/repositories/50668" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/50668/weekly" alt="DietrichGebert/ponytail | Trendshift" width="250" height="55"/></a>
25
+ </p>
26
+
21
27
  <p align="center">
22
28
  <strong>~54% less code (up to 94%) &middot; ~20% cheaper &middot; ~27% faster &middot; 100% safe</strong><br>
23
29
  <sub>Measured on real Claude Code sessions editing a real open-source repo (FastAPI + React), against the same agent with no skill. ~54% is the mean across 12 feature tasks (Haiku 4.5, n=4); it reaches 94% where an agent over-builds (a date picker) and is near zero where the code is already minimal. ponytail keeps every safety guard while a bare "write one-liners" prompt drops one. (The earlier single-shot benchmark reported 80-94% as a flat figure; against a fair agentic baseline that is the per-task ceiling, not the average.) <a href="benchmarks/results/2026-06-18-agentic.md">Full writeup</a> &middot; <a href="benchmarks/">reproduce it</a>.</sub>
24
30
  </p>
25
31
 
26
32
  <p align="center">
27
- <sub><a href="README.es.md">Español</a></sub>
33
+ <sub><a href="README.es.md">Español</a> &middot; <a href="README.ko.md">한국어</a></sub>
28
34
  </p>
29
35
 
30
36
  ---
31
37
 
38
+ <p align="center">
39
+ <a href="https://ponytail.dev/soon"><img src="assets/waitlist-banner.png" alt="Something's coming, join the waitlist" width="760"></a>
40
+ </p>
41
+
32
42
  You know him. Long ponytail. Oval glasses. Has been at the company longer than the version control. You show him fifty lines; he looks at them, says nothing, and replaces them with one.
33
43
 
34
44
  Ponytail puts him inside your AI agent.
@@ -170,8 +180,6 @@ Injects the ruleset every turn at the active level; adds the `/ponytail` command
170
180
 
171
181
  The `./` path resolves against your project's `opencode.json`; to share one checkout across projects, point it at the absolute path of the `.mjs` instead (it finds its `hooks/` and `skills/` relative to its own file).
172
182
 
173
- The plugin path loads the ruleset everywhere, but the `/ponytail` commands are separate files in `.opencode/command/` that OpenCode only discovers from your project or the global commands dir. To use them outside this checkout, link them once: `ln -sf /absolute/path/to/ponytail/.opencode/command/* ~/.config/opencode/command/`.
174
-
175
183
  ### Gemini CLI
176
184
 
177
185
  ```bash
@@ -191,6 +199,14 @@ agy plugin install https://github.com/DietrichGebert/ponytail
191
199
 
192
200
  It reuses this repo's `gemini-extension.json`. One difference: Antigravity converts the `/ponytail` commands into skills, so you type them into the chat (e.g. `/ponytail-review` as a message) instead of picking them from a slash menu. Until the migration completes (around June 18, 2026), `gemini extensions install` still works too. To run it as an always-on rule instead, drop the ruleset into `.agents/rules/`.
193
201
 
202
+ ### Hermes Agent
203
+
204
+ ```bash
205
+ hermes plugins install DietrichGebert/ponytail --enable
206
+ ```
207
+
208
+ Restart Hermes after installing. The plugin injects the active Ponytail mode before each LLM turn, registers the bundled skills as `ponytail:<skill>`, and adds `/ponytail`, `/ponytail-review`, `/ponytail-audit`, `/ponytail-debt`, `/ponytail-gain`, and `/ponytail-help`. In shared gateways, restrict `/ponytail` to trusted users with Hermes slash-command access controls; runtime mode is process-local.
209
+
194
210
  ### CodeWhale
195
211
 
196
212
  Reads `AGENTS.md` from the project root, zero setup. Copy [`AGENTS.md`](AGENTS.md) to your project, or run `codewhale` from a checkout of this repo. That's it.
@@ -209,6 +225,14 @@ Swival also reads `AGENTS.md` from the project root and `~/.config/swival/AGENTS
209
225
 
210
226
  On the command line, use a `$` prefix to explicitly activate a skill. For example: `$ponytail-review`.
211
227
 
228
+ ### Devin CLI
229
+
230
+ ```bash
231
+ devin plugins install DietrichGebert/ponytail
232
+ ```
233
+
234
+ Installs ponytail as a Devin plugin; skills are available as `/ponytail:ponytail`, `/ponytail:ponytail-review`, and so on.
235
+
212
236
  ### OpenClaw
213
237
 
214
238
  ```bash
@@ -239,6 +263,7 @@ Which files map to which agent: [Agent portability](docs/agent-portability.md).
239
263
  |------|---------|
240
264
  | Claude Code | `/plugin remove ponytail` |
241
265
  | Codex | `codex plugin remove ponytail` |
266
+ | Devin CLI | `devin plugins remove ponytail` |
242
267
  | Pi agent | `pi uninstall ponytail` |
243
268
  | Cursor / Windsurf / Cline / etc. | Delete the copied rule file |
244
269
 
@@ -255,7 +280,7 @@ These remove the plugin's own files. They leave behind a small amount of state p
255
280
  | `/ponytail-gain` | Show the measured impact scoreboard (less code, less cost, more speed) from the benchmark. |
256
281
  | `/ponytail-help` | Quick reference for the commands above. |
257
282
 
258
- Commands need a skill-capable host (Claude Code, Codex, OpenCode, Gemini, pi, Swival). In Codex they're skills, invoke with `@` (`@ponytail-review`). The instruction-only adapters (Cursor, Windsurf, Cline, Copilot, Kiro, Antigravity) load the always-on ruleset without the commands.
283
+ Commands need a skill-capable host (Claude Code, Codex, Devin CLI, OpenCode, Gemini, pi, Swival, Hermes Agent). In Codex they're skills, invoke with `@` (`@ponytail-review`). The instruction-only adapters (Cursor, Windsurf, Cline, Copilot, Kiro, Antigravity) load the always-on ruleset without the commands.
259
284
 
260
285
  ## Development
261
286
 
@@ -284,6 +309,27 @@ The code you never wrote scales infinitely. Zero bugs, zero CVEs, 100% uptime si
284
309
  **Why "ponytail"?**
285
310
  You know exactly why.
286
311
 
312
+ ## Sponsors
313
+
314
+ <p align="center">
315
+ <a href="https://greenpt.com/">
316
+ <picture>
317
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-greenpt-dark.svg">
318
+ <img src="assets/logo-greenpt.svg" width="260" alt="GreenPT">
319
+ </picture>
320
+ </a>
321
+ </p>
322
+
287
323
  ## License
288
324
 
289
325
  [MIT](LICENSE). The shortest license that works.
326
+
327
+ ## Star History
328
+
329
+ <a href="https://www.star-history.com/dietrichgebert/ponytail#history">
330
+ <picture>
331
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date&theme=dark" />
332
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
333
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=DietrichGebert/ponytail&type=Date" />
334
+ </picture>
335
+ </a>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="394px" height="86px" viewBox="0 0 394 86" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>logo-greengpt-white</title>
4
+ <defs>
5
+ <linearGradient x1="46.5850926%" y1="13.9833492%" x2="59.2369668%" y2="85.5111279%" id="linearGradient-1">
6
+ <stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"></stop>
7
+ <stop stop-color="#000000" stop-opacity="0.3" offset="100%"></stop>
8
+ </linearGradient>
9
+ </defs>
10
+ <g id="logo-greengpt-white" stroke="none" fill="none">
11
+ <g id="GreenPT" stroke-width="1" fill-rule="evenodd" transform="translate(108, 18)" fill="#FFFFFF">
12
+ <path d="M50,22.2527473 L25.7261411,22.2527473 L25.7261411,31.8681319 L38.6583679,31.8681319 C36.9294606,36.4697802 32.7109267,39.2857143 26.2793914,39.2857143 C16.8741355,39.2857143 11.0650069,33.3104396 11.0650069,25.1373626 C11.0650069,16.6895604 17.1507607,10.7142857 25.3112033,10.7142857 C30.7745505,10.7142857 35.131397,13.1868132 37.1369295,16.3461538 L46.5421853,10.989011 C42.461964,4.53296703 34.6473029,0 25.3803596,0 C11.1341632,0 0,11.1263736 0,25.0686813 C0,38.8736264 10.9266943,50 26.1410788,50 C39.6957123,50 50,41.0714286 50,26.3736264 L50,22.2527473 Z" id="Path" fill-rule="nonzero"></path>
13
+ <path d="M65.5,20.7941176 L65.5,14.6862745 L55,14.6862745 L55,49 L65.5,49 L65.5,33.4901961 C65.5,26.6960784 71.66,24.9803922 76,25.6666667 L76,14 C71.59,14 66.9,16.1960784 65.5,20.7941176 Z" id="Path" fill-rule="nonzero"></path>
14
+ <path d="M89.0076923,36.0909091 L113.584615,36.0909091 C113.861538,34.7954545 114,33.4318182 114,32 C114,21.7045455 106.523077,14 96.4153846,14 C85.4769231,14 78,21.8409091 78,32 C78,42.1590909 85.3384615,50 97.1769231,50 C103.753846,50 108.876923,47.6136364 112.269231,42.9772727 L103.961538,38.2727273 C102.576923,39.7727273 100.153846,40.8636364 97.3153846,40.8636364 C93.5076923,40.8636364 90.3230769,39.6363636 89.0076923,36.0909091 Z M88.8,28.4545455 C89.7692308,24.9772727 92.4,23.0681818 96.3461538,23.0681818 C99.4615385,23.0681818 102.576923,24.5 103.684615,28.4545455 L88.8,28.4545455 Z" id="Shape" fill-rule="nonzero"></path>
15
+ <path d="M128.007692,36.0909091 L152.584615,36.0909091 C152.861538,34.7954545 153,33.4318182 153,32 C153,21.7045455 145.523077,14 135.415385,14 C124.476923,14 117,21.8409091 117,32 C117,42.1590909 124.338462,50 136.176923,50 C142.753846,50 147.876923,47.6136364 151.269231,42.9772727 L142.961538,38.2727273 C141.576923,39.7727273 139.153846,40.8636364 136.315385,40.8636364 C132.507692,40.8636364 129.323077,39.6363636 128.007692,36.0909091 Z M127.8,28.4545455 C128.769231,24.9772727 131.4,23.0681818 135.346154,23.0681818 C138.461538,23.0681818 141.576923,24.5 142.684615,28.4545455 L127.8,28.4545455 Z" id="Shape" fill-rule="nonzero"></path>
16
+ <path d="M178.14375,14 C173.60625,14 170.16875,15.6342412 168.3125,18.1536965 L168.3125,14.9533074 L158,14.9533074 L158,49 L168.3125,49 L168.3125,30.4105058 C168.3125,25.5758755 170.925,23.3968872 174.70625,23.3968872 C178.00625,23.3968872 180.6875,25.3715953 180.6875,29.5933852 L180.6875,49 L191,49 L191,28.0953307 C191,18.9027237 185.0875,14 178.14375,14 Z" id="Path" fill-rule="nonzero"></path>
17
+ <path d="M216.186275,1 L198,1 L198,49 L208.980392,49 L208.980392,33.9142857 L216.186275,33.9142857 C225.656863,33.9142857 233,26.5771429 233,17.4571429 C233,8.33714286 225.656863,1 216.186275,1 Z M216.186275,23.6285714 L208.980392,23.6285714 L208.980392,11.2857143 L216.186275,11.2857143 C219.54902,11.2857143 222.019608,13.96 222.019608,17.4571429 C222.019608,20.9542857 219.54902,23.6285714 216.186275,23.6285714 Z" id="Shape" fill-rule="nonzero"></path>
18
+ <polygon id="Path" fill-rule="nonzero" points="270 1 234 1 234 11.56 246.461538 11.56 246.461538 49 257.538462 49 257.538462 11.56 270 11.56"></polygon>
19
+ </g>
20
+ <path d="M206.333333,218 C146.502603,218 98,169.198738 98,109 C98,48.8004798 146.502603,0 206.333333,0 C266.164063,0 314.666667,48.8004798 314.666667,109 C314.666667,169.198738 266.164063,218 206.333333,218 Z" id="Path"></path>
21
+ <g id="2993679_brand_brands_logo_logos_opera_icon" stroke-width="1" fill-rule="evenodd">
22
+ <path d="M43,0 C19.2516683,0 0,19.2516683 0,43 C0,66.7481131 19.2516683,86 43,86 C66.7483317,86 86,66.7481131 86,43 C86,19.2516683 66.7483317,0 43,0 Z M44.3616667,66.5066667 C31.4980597,66.5066667 21.07,56.0143953 21.07,43.0716667 C21.07,30.1287698 31.4980597,19.6366667 44.3616667,19.6366667 C57.2252736,19.6366667 67.6533333,30.1287698 67.6533333,43.0716667 C67.6533333,56.0143953 57.2252736,66.5066667 44.3616667,66.5066667 Z" id="Shape" fill="#9BE755" fill-rule="nonzero"></path>
23
+ <path d="M56.6038685,78.8333333 C37.0655323,78.8333333 21.2264507,62.7901304 21.2264507,43 C21.2264507,23.2096506 37.0655323,7.16666667 56.6038685,7.16666667 C60.972064,7.16666667 65.1372887,8.006729 69,9.4731752 C61.7278074,3.55796298 52.5057972,0 42.4529014,0 C19.006725,0 0,19.2516683 0,43 C0,66.7481131 19.006725,86 42.4529014,86 C52.5057972,86 61.7278074,82.4422556 69,76.5268248 C65.1372887,77.993271 60.972064,78.8333333 56.6038685,78.8333333 Z" id="Path" fill="#9BE755" fill-rule="nonzero"></path>
24
+ <path d="M56.6038685,78.8333333 C37.0655323,78.8333333 21.2264507,62.7901304 21.2264507,43 C21.2264507,23.2096506 37.0655323,7.16666667 56.6038685,7.16666667 C60.972064,7.16666667 65.1372887,8.006729 69,9.4731752 C61.7278074,3.55796298 52.5057972,0 42.4529014,0 C19.006725,0 0,19.2516683 0,43 C0,66.7481131 19.006725,86 42.4529014,86 C52.5057972,86 61.7278074,82.4422556 69,76.5268248 C65.1372887,77.993271 60.972064,78.8333333 56.6038685,78.8333333 Z" id="Path" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
25
+ </g>
26
+ </g>
27
+ </svg>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="394px" height="86px" viewBox="0 0 394 86" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>logo-greengpt-black</title>
4
+ <defs>
5
+ <linearGradient x1="46.5850926%" y1="13.9833492%" x2="59.2369668%" y2="85.5111279%" id="linearGradient-1">
6
+ <stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"></stop>
7
+ <stop stop-color="#000000" stop-opacity="0.3" offset="100%"></stop>
8
+ </linearGradient>
9
+ </defs>
10
+ <g id="logo-greengpt-black" stroke="none" fill="none">
11
+ <g id="GreenPT" stroke-width="1" fill-rule="evenodd" transform="translate(108, 18)" fill="#000000">
12
+ <path d="M50,22.2527473 L25.7261411,22.2527473 L25.7261411,31.8681319 L38.6583679,31.8681319 C36.9294606,36.4697802 32.7109267,39.2857143 26.2793914,39.2857143 C16.8741355,39.2857143 11.0650069,33.3104396 11.0650069,25.1373626 C11.0650069,16.6895604 17.1507607,10.7142857 25.3112033,10.7142857 C30.7745505,10.7142857 35.131397,13.1868132 37.1369295,16.3461538 L46.5421853,10.989011 C42.461964,4.53296703 34.6473029,0 25.3803596,0 C11.1341632,0 0,11.1263736 0,25.0686813 C0,38.8736264 10.9266943,50 26.1410788,50 C39.6957123,50 50,41.0714286 50,26.3736264 L50,22.2527473 Z" id="Path" fill-rule="nonzero"></path>
13
+ <path d="M65.5,20.7941176 L65.5,14.6862745 L55,14.6862745 L55,49 L65.5,49 L65.5,33.4901961 C65.5,26.6960784 71.66,24.9803922 76,25.6666667 L76,14 C71.59,14 66.9,16.1960784 65.5,20.7941176 Z" id="Path" fill-rule="nonzero"></path>
14
+ <path d="M89.0076923,36.0909091 L113.584615,36.0909091 C113.861538,34.7954545 114,33.4318182 114,32 C114,21.7045455 106.523077,14 96.4153846,14 C85.4769231,14 78,21.8409091 78,32 C78,42.1590909 85.3384615,50 97.1769231,50 C103.753846,50 108.876923,47.6136364 112.269231,42.9772727 L103.961538,38.2727273 C102.576923,39.7727273 100.153846,40.8636364 97.3153846,40.8636364 C93.5076923,40.8636364 90.3230769,39.6363636 89.0076923,36.0909091 Z M88.8,28.4545455 C89.7692308,24.9772727 92.4,23.0681818 96.3461538,23.0681818 C99.4615385,23.0681818 102.576923,24.5 103.684615,28.4545455 L88.8,28.4545455 Z" id="Shape" fill-rule="nonzero"></path>
15
+ <path d="M128.007692,36.0909091 L152.584615,36.0909091 C152.861538,34.7954545 153,33.4318182 153,32 C153,21.7045455 145.523077,14 135.415385,14 C124.476923,14 117,21.8409091 117,32 C117,42.1590909 124.338462,50 136.176923,50 C142.753846,50 147.876923,47.6136364 151.269231,42.9772727 L142.961538,38.2727273 C141.576923,39.7727273 139.153846,40.8636364 136.315385,40.8636364 C132.507692,40.8636364 129.323077,39.6363636 128.007692,36.0909091 Z M127.8,28.4545455 C128.769231,24.9772727 131.4,23.0681818 135.346154,23.0681818 C138.461538,23.0681818 141.576923,24.5 142.684615,28.4545455 L127.8,28.4545455 Z" id="Shape" fill-rule="nonzero"></path>
16
+ <path d="M178.14375,14 C173.60625,14 170.16875,15.6342412 168.3125,18.1536965 L168.3125,14.9533074 L158,14.9533074 L158,49 L168.3125,49 L168.3125,30.4105058 C168.3125,25.5758755 170.925,23.3968872 174.70625,23.3968872 C178.00625,23.3968872 180.6875,25.3715953 180.6875,29.5933852 L180.6875,49 L191,49 L191,28.0953307 C191,18.9027237 185.0875,14 178.14375,14 Z" id="Path" fill-rule="nonzero"></path>
17
+ <path d="M216.186275,1 L198,1 L198,49 L208.980392,49 L208.980392,33.9142857 L216.186275,33.9142857 C225.656863,33.9142857 233,26.5771429 233,17.4571429 C233,8.33714286 225.656863,1 216.186275,1 Z M216.186275,23.6285714 L208.980392,23.6285714 L208.980392,11.2857143 L216.186275,11.2857143 C219.54902,11.2857143 222.019608,13.96 222.019608,17.4571429 C222.019608,20.9542857 219.54902,23.6285714 216.186275,23.6285714 Z" id="Shape" fill-rule="nonzero"></path>
18
+ <polygon id="Path" fill-rule="nonzero" points="270 1 234 1 234 11.56 246.461538 11.56 246.461538 49 257.538462 49 257.538462 11.56 270 11.56"></polygon>
19
+ </g>
20
+ <path d="M206.333333,218 C146.502603,218 98,169.198738 98,109 C98,48.8004798 146.502603,0 206.333333,0 C266.164063,0 314.666667,48.8004798 314.666667,109 C314.666667,169.198738 266.164063,218 206.333333,218 Z" id="Path"></path>
21
+ <g id="2993679_brand_brands_logo_logos_opera_icon" stroke-width="1" fill-rule="evenodd">
22
+ <path d="M43,0 C19.2516683,0 0,19.2516683 0,43 C0,66.7481131 19.2516683,86 43,86 C66.7483317,86 86,66.7481131 86,43 C86,19.2516683 66.7483317,0 43,0 Z M44.3616667,66.5066667 C31.4980597,66.5066667 21.07,56.0143953 21.07,43.0716667 C21.07,30.1287698 31.4980597,19.6366667 44.3616667,19.6366667 C57.2252736,19.6366667 67.6533333,30.1287698 67.6533333,43.0716667 C67.6533333,56.0143953 57.2252736,66.5066667 44.3616667,66.5066667 Z" id="Shape" fill="#9BE755" fill-rule="nonzero"></path>
23
+ <path d="M56.6038685,78.8333333 C37.0655323,78.8333333 21.2264507,62.7901304 21.2264507,43 C21.2264507,23.2096506 37.0655323,7.16666667 56.6038685,7.16666667 C60.972064,7.16666667 65.1372887,8.006729 69,9.4731752 C61.7278074,3.55796298 52.5057972,0 42.4529014,0 C19.006725,0 0,19.2516683 0,43 C0,66.7481131 19.006725,86 42.4529014,86 C52.5057972,86 61.7278074,82.4422556 69,76.5268248 C65.1372887,77.993271 60.972064,78.8333333 56.6038685,78.8333333 Z" id="Path" fill="#9BE755" fill-rule="nonzero"></path>
24
+ <path d="M56.6038685,78.8333333 C37.0655323,78.8333333 21.2264507,62.7901304 21.2264507,43 C21.2264507,23.2096506 37.0655323,7.16666667 56.6038685,7.16666667 C60.972064,7.16666667 65.1372887,8.006729 69,9.4731752 C61.7278074,3.55796298 52.5057972,0 42.4529014,0 C19.006725,0 0,19.2516683 0,43 C0,66.7481131 19.006725,86 42.4529014,86 C52.5057972,86 61.7278074,82.4422556 69,76.5268248 C65.1372887,77.993271 60.972064,78.8333333 56.6038685,78.8333333 Z" id="Path" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
25
+ </g>
26
+ </g>
27
+ </svg>
Binary file
Binary file
Binary file
@@ -14,6 +14,19 @@
14
14
  ]
15
15
  }
16
16
  ],
17
+ "SubagentStart": [
18
+ {
19
+ "hooks": [
20
+ {
21
+ "type": "command",
22
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/ponytail-subagent.js\"; exit 0",
23
+ "commandWindows": "if (Get-Command node -ErrorAction SilentlyContinue) { node \"$env:CLAUDE_PLUGIN_ROOT\\hooks\\ponytail-subagent.js\" }",
24
+ "timeout": 5,
25
+ "statusMessage": "Loading ponytail mode..."
26
+ }
27
+ ]
28
+ }
29
+ ],
17
30
  "UserPromptSubmit": [
18
31
  {
19
32
  "hooks": [
@@ -21,6 +21,15 @@ function clearMode() {
21
21
  try { fs.unlinkSync(statePath); } catch (e) {}
22
22
  }
23
23
 
24
+ // Live mode written by activate/mode-tracker. Absent flag = ponytail off.
25
+ function readMode() {
26
+ try {
27
+ return fs.readFileSync(statePath, 'utf8').trim() || null;
28
+ } catch (e) {
29
+ return null;
30
+ }
31
+ }
32
+
24
33
  function writeHookOutput(event, mode, context = '') {
25
34
  if (isCopilot) {
26
35
  // Copilot reads additionalContext on SessionStart; ignores output elsewhere.
@@ -39,6 +48,13 @@ function writeHookOutput(event, mode, context = '') {
39
48
  process.stdout.write(JSON.stringify(output));
40
49
  return;
41
50
  }
51
+ // Native Claude: SessionStart accepts raw stdout, but SubagentStart needs the
52
+ // hookSpecificOutput JSON form or the context is dropped.
53
+ if (event === 'SubagentStart') {
54
+ process.stdout.write(JSON.stringify(
55
+ { hookSpecificOutput: { hookEventName: event, additionalContext: context } }));
56
+ return;
57
+ }
42
58
  process.stdout.write(context);
43
59
  }
44
60
 
@@ -46,6 +62,7 @@ module.exports = {
46
62
  clearMode,
47
63
  isCodex,
48
64
  isCopilot,
65
+ readMode,
49
66
  setMode,
50
67
  writeHookOutput,
51
68
  };
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ // ponytail — Claude Code SubagentStart hook
3
+ //
4
+ // SessionStart context is parent-thread only and never reaches subagents, so
5
+ // without this every Task-spawned agent runs ponytail-unaware (issue #252).
6
+ // When ponytail mode is active, inject the same ruleset into each subagent.
7
+
8
+ const { getPonytailInstructions } = require('./ponytail-instructions');
9
+ const { readMode, writeHookOutput } = require('./ponytail-runtime');
10
+
11
+ const mode = readMode();
12
+
13
+ // Absent flag or off → ponytail isn't active; inject nothing.
14
+ if (!mode || mode === 'off') {
15
+ process.exit(0);
16
+ }
17
+
18
+ try {
19
+ writeHookOutput('SubagentStart', mode, getPonytailInstructions(mode));
20
+ } catch (e) {
21
+ // Silent fail — a stdout error at hook exit must not surface as a hook failure.
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dietrichgebert/ponytail",
3
- "version": "4.8.2",
3
+ "version": "4.8.4",
4
4
  "description": "Lazy senior dev mode for AI agents. The best code is the code you never wrote.",
5
5
  "keywords": ["opencode-plugin", "opencode", "ponytail", "pi-package", "pi", "skills"],
6
6
  "license": "MIT",
@@ -5,11 +5,14 @@ description: >
5
5
  minimal. Channels a senior dev who has seen everything: question whether the
6
6
  task needs to exist at all (YAGNI), reach for the standard library before
7
7
  custom code, native platform features before dependencies, one line before
8
- fifty. Supports intensity levels: lite, full (default), ultra. Use whenever
9
- the user says "ponytail", "be lazy", "lazy mode", "simplest solution",
10
- "minimal solution", "yagni", "do less", or "shortest path", and whenever
11
- they complain about over-engineering, bloat, boilerplate, or unnecessary
12
- dependencies.
8
+ fifty. Supports intensity levels: lite, full (default), ultra. Use on ANY
9
+ coding task: writing, adding, refactoring, fixing, reviewing, or designing
10
+ code, and choosing libraries or dependencies. Also use whenever the user
11
+ says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal
12
+ solution", "yagni", "do less", or "shortest path", or complains about
13
+ over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT
14
+ use for non-coding requests (general knowledge, prose, translation,
15
+ summaries, recipes).
13
16
  argument-hint: "[lite|full|ultra]"
14
17
  license: MIT
15
18
  ---