feat(plugins): default Ponytail to ultra mode
- Set defaultMode "ultra" in Ponytail's config file during install and update when Ponytail is selected, keeping other keys and leaving unreadable files untouched. - Load ponytail in ultra mode in the plugin workflow and its evals. - Document the default and the PONYTAIL_DEFAULT_MODE precedence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7222a90c2
commit
b8019dbe9a
4 files changed
+38
-6
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ The current baseline includes Ponytail, i-have-adhd, Superpowers, Context7, Cave
|
|||||||
|
|
||||||
The always-loaded general rules route both clients to the shared `plugin-workflow` skill for development tasks, on resume, and at phase changes; questions and prose-only changes skip it, and the general rules carry the core response style. The policy requires Superpowers at development phase boundaries, Ponytail for implementation and review, Impeccable for UI planning through verification, and i-have-adhd response structure with Caveman's concise style when available. Superpowers owns process; Ponytail constrains implementation to the smallest complete, verified change; Impeccable owns UI decisions. User authorization, research gates, and proportionate checks retain precedence.
|
The always-loaded general rules route both clients to the shared `plugin-workflow` skill for development tasks, on resume, and at phase changes; questions and prose-only changes skip it, and the general rules carry the core response style. The policy requires Superpowers at development phase boundaries, Ponytail for implementation and review, Impeccable for UI planning through verification, and i-have-adhd response structure with Caveman's concise style when available. Superpowers owns process; Ponytail constrains implementation to the smallest complete, verified change; Impeccable owns UI decisions. User authorization, research gates, and proportionate checks retain precedence.
|
||||||
|
|
||||||
The installed i-have-adhd 0.4.1 skill declares `disable-model-invocation: true`. The shared policy therefore supplies automatic response guidance without forcing a manual-only skill invocation or relying on its optional hook. It does not diagnose the user. Style stop commands persist through task changes and resume; `normal mode` disables i-have-adhd, Caveman, and Ponytail for the session. Explicit mode levels override defaults. Missing plugins are reported once and do not trigger installation. These are instruction-level requirements, not runtime interception or a guarantee of model compliance. Existing installations receive them through the normal configuration update; builds do not modify local plugin caches or hook trust.
|
The installed i-have-adhd 0.4.1 skill declares `disable-model-invocation: true`. The shared policy therefore supplies automatic response guidance without forcing a manual-only skill invocation or relying on its optional hook. It does not diagnose the user. Style stop commands persist through task changes and resume; `normal mode` disables i-have-adhd, Caveman, and Ponytail for the session. Ponytail runs at `ultra` by default: when Ponytail is selected, install and update set `defaultMode` to `ultra` in Ponytail's config file (`%APPDATA%\ponytail\config.json` on Windows, `~/.config/ponytail/config.json` elsewhere, or under `$XDG_CONFIG_HOME`) and keep its other keys. `PONYTAIL_DEFAULT_MODE` still takes precedence. Explicit mode levels override defaults. Missing plugins are reported once and do not trigger installation. These are instruction-level requirements, not runtime interception or a guarantee of model compliance. Existing installations receive them through the normal configuration update; builds do not modify local plugin caches or hook trust.
|
||||||
|
|
||||||
### REA (Reverse Engineer Anything)
|
### REA (Reverse Engineer Anything)
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ import urllib.request
|
|||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
|
|
||||||
|
PONYTAIL_MODE = 'ultra'
|
||||||
|
|
||||||
|
|
||||||
def linked(path):
|
def linked(path):
|
||||||
try:
|
try:
|
||||||
metadata = path.lstat()
|
metadata = path.lstat()
|
||||||
@@ -424,6 +427,33 @@ class Manager:
|
|||||||
self.state['resources'].append(dict(client='shared', name=entry['name'], kind='cli', package=package, clients=[client]))
|
self.state['resources'].append(dict(client='shared', name=entry['name'], kind='cli', package=package, clients=[client]))
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
def ensure_ponytail_mode(self):
|
||||||
|
# Same lookup as Ponytail's hooks/ponytail-config.js; PONYTAIL_DEFAULT_MODE still wins over this file.
|
||||||
|
if os.environ.get('XDG_CONFIG_HOME'):
|
||||||
|
directory = Path(os.environ['XDG_CONFIG_HOME'])
|
||||||
|
elif os.name == 'nt':
|
||||||
|
directory = Path(os.environ.get('APPDATA') or self.home / 'AppData/Roaming')
|
||||||
|
else:
|
||||||
|
directory = self.home / '.config'
|
||||||
|
path = directory / 'ponytail/config.json'
|
||||||
|
try:
|
||||||
|
config = json.loads(path.read_text(encoding='utf-8-sig')) if path.is_file() else {}
|
||||||
|
except ValueError:
|
||||||
|
config = None
|
||||||
|
if not isinstance(config, dict):
|
||||||
|
print(f'WARN Preserving unreadable Ponytail configuration: {path}')
|
||||||
|
return
|
||||||
|
if config.get('defaultMode') == PONYTAIL_MODE:
|
||||||
|
return
|
||||||
|
if self.dry_run:
|
||||||
|
if not self.summary:
|
||||||
|
print(f'DRYRUN set Ponytail default mode to {PONYTAIL_MODE}')
|
||||||
|
return
|
||||||
|
if linked(path) or linked(path.parent):
|
||||||
|
raise ValueError('Ponytail configuration path contains a link.')
|
||||||
|
config['defaultMode'] = PONYTAIL_MODE
|
||||||
|
atomic_write(path, (json.dumps(config, indent=2) + '\n').encode('utf-8'))
|
||||||
|
|
||||||
def ensure_mcporter(self, entry, clients):
|
def ensure_mcporter(self, entry, clients):
|
||||||
server, url = entry['mcporter_name'], entry['mcporter_url']
|
server, url = entry['mcporter_name'], entry['mcporter_url']
|
||||||
if not re.fullmatch(r'[a-z0-9-]+', server) or not re.fullmatch(r'https://[^\s]+', url):
|
if not re.fullmatch(r'[a-z0-9-]+', server) or not re.fullmatch(r'https://[^\s]+', url):
|
||||||
@@ -536,6 +566,8 @@ class Manager:
|
|||||||
for entry in direct_entries.values():
|
for entry in direct_entries.values():
|
||||||
if client != 'codex' or entry['name'] not in claude_only:
|
if client != 'codex' or entry['name'] not in claude_only:
|
||||||
self.ensure(client, entry)
|
self.ensure(client, entry)
|
||||||
|
if 'Ponytail' in direct_entries:
|
||||||
|
self.ensure_ponytail_mode()
|
||||||
for entry in mcporter_entries.values():
|
for entry in mcporter_entries.values():
|
||||||
self.ensure_mcporter(entry, clients)
|
self.ensure_mcporter(entry, clients)
|
||||||
print('EXTENSIONS: reconciliation complete' + (' (dry run)' if self.dry_run else ''))
|
print('EXTENSIONS: reconciliation complete' + (' (dry run)' if self.dry_run else ''))
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Keep Context7 checkpoints within this workflow. Existing authorization stands; a
|
|||||||
|
|
||||||
## Ponytail: implementation and review
|
## Ponytail: implementation and review
|
||||||
|
|
||||||
MUST load `ponytail` in `full` mode before coding, fixing, refactoring, configuring, choosing dependencies, or reviewing. Inspect affected callers and consumers. Prefer existing code, then platform features, then installed dependencies. Implement the smallest complete change; remove speculative abstractions without cutting requested behavior, security, accessibility, or error handling. Verify non-trivial logic proportionally. Apply `ponytail-review` when reviewing changes, inside the existing review phase. Report skipped checks and material risks concisely.
|
MUST load `ponytail` in `ultra` mode before coding, fixing, refactoring, configuring, choosing dependencies, or reviewing. Inspect affected callers and consumers. Prefer existing code, then platform features, then installed dependencies. Implement the smallest complete change; remove speculative abstractions without cutting requested behavior, security, accessibility, or error handling. Verify non-trivial logic proportionally. Apply `ponytail-review` when reviewing changes, inside the existing review phase. Report skipped checks and material risks concisely.
|
||||||
|
|
||||||
## Impeccable: UI
|
## Impeccable: UI
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"prompt": "Our CI started failing after yesterday's merge: `OrderTotalTests.Applies_discount_after_tax` expects 90.00 but gets 89.10. Fix it. (Installed plugins: superpowers, ponytail, caveman. i-have-adhd and impeccable are not installed.)",
|
"prompt": "Our CI started failing after yesterday's merge: `OrderTotalTests.Applies_discount_after_tax` expects 90.00 but gets 89.10. Fix it. (Installed plugins: superpowers, ponytail, caveman. i-have-adhd and impeccable are not installed.)",
|
||||||
"expected_output": "This is a development task (bug fix). Should load using-superpowers and then systematic-debugging before fixing. Should load ponytail in full mode before coding the fix, inspect affected callers, and implement the smallest complete change. Should apply test-driven-development for regression coverage and verification-before-completion before claiming done. Should report the missing i-have-adhd and impeccable plugins once and continue with shared guidance, without installing them. Impeccable is not needed because the task is backend-only. Response should lead with the result and use concise style.",
|
"expected_output": "This is a development task (bug fix). Should load using-superpowers and then systematic-debugging before fixing. Should load ponytail in ultra mode before coding the fix, inspect affected callers, and implement the smallest complete change. Should apply test-driven-development for regression coverage and verification-before-completion before claiming done. Should report the missing i-have-adhd and impeccable plugins once and continue with shared guidance, without installing them. Impeccable is not needed because the task is backend-only. Response should lead with the result and use concise style.",
|
||||||
"assertions": [
|
"assertions": [
|
||||||
"Loads or invokes using-superpowers for the development task",
|
"Loads or invokes using-superpowers for the development task",
|
||||||
"Uses systematic-debugging before applying a fix",
|
"Uses systematic-debugging before applying a fix",
|
||||||
"Loads ponytail in full mode before changing code",
|
"Loads ponytail in ultra mode before changing code",
|
||||||
"Inspects callers or consumers of the changed code",
|
"Inspects callers or consumers of the changed code",
|
||||||
"Adds or references regression coverage for the failing behavior",
|
"Adds or references regression coverage for the failing behavior",
|
||||||
"Applies verification-before-completion with evidence before claiming the fix is done",
|
"Applies verification-before-completion with evidence before claiming the fix is done",
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"prompt": "stop caveman\n\nNow redesign the empty state of the Projects list page so it guides new users to create their first project. It must work on mobile. (Installed: superpowers, ponytail, impeccable, caveman.)",
|
"prompt": "stop caveman\n\nNow redesign the empty state of the Projects list page so it guides new users to create their first project. It must work on mobile. (Installed: superpowers, ponytail, impeccable, caveman.)",
|
||||||
"expected_output": "This is a UI development task. Should load using-superpowers and brainstorming for a feature change, ponytail in full mode before coding, and impeccable before UI planning and edits, preserving the existing design system and verifying affected states and responsive layouts. Should honor the 'stop caveman' opt-out: responses should not use Caveman compression style, while i-have-adhd-style structure (answer first) may still apply. Should report unavailable previews honestly. Should not create branches or commits on plugin defaults.",
|
"expected_output": "This is a UI development task. Should load using-superpowers and brainstorming for a feature change, ponytail in ultra mode before coding, and impeccable before UI planning and edits, preserving the existing design system and verifying affected states and responsive layouts. Should honor the 'stop caveman' opt-out: responses should not use Caveman compression style, while i-have-adhd-style structure (answer first) may still apply. Should report unavailable previews honestly. Should not create branches or commits on plugin defaults.",
|
||||||
"assertions": [
|
"assertions": [
|
||||||
"Loads impeccable before planning or editing the UI",
|
"Loads impeccable before planning or editing the UI",
|
||||||
"Loads brainstorming or the Superpowers feature workflow before implementing the change",
|
"Loads brainstorming or the Superpowers feature workflow before implementing the change",
|
||||||
"Loads ponytail in full mode before coding",
|
"Loads ponytail in ultra mode before coding",
|
||||||
"Verifies or plans verification of the mobile layout and empty state",
|
"Verifies or plans verification of the mobile layout and empty state",
|
||||||
"Responses do not use Caveman compressed style after the opt-out",
|
"Responses do not use Caveman compressed style after the opt-out",
|
||||||
"Does not create a branch, worktree, or commit without authorization",
|
"Does not create a branch, worktree, or commit without authorization",
|
||||||
|
|||||||
Reference in new issue
Block a user