feat(plugins): enable Impeccable hooks for Codex and trim extensions

- Register Impeccable's design-detector PostToolUse and Stop hooks in the
  Codex config through new no-op-safe wrappers; Claude already gets them
  from the Impeccable plugin.
- Make Caveman Claude-only: a '-' codex_method marks Claude-only entries,
  which the Codex selector omits and sync removes from owned Codex
  installs. Drop the thinkhome Caveman Windows hook repair.
- Remove Anthropic Frontend Design from the manifest, plugin workflow,
  and docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian LechnerandClaude Opus 5.5 committed 2026-11-16 10:57:56 +01:00
1 parent eb7cecaaa2
commit f7222a90c2
20 files changed
+109 -95

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ from personal_instructions import CLIENT_FILES, render
# Hook scripts this configuration installs; merges replace these and keep any foreign hooks.
OWNED_HOOK_PATTERN = r'(?:flashbang|statusline|record-compact|session-state-pointer|qmd-warm|Start-QmdWarm|completion-?evidence|correction-?prompt|command-?safety)\.(?:ps1|sh)'
OWNED_HOOK_PATTERN = r'(?:flashbang|statusline|record-compact|session-state-pointer|qmd-warm|Start-QmdWarm|completion-?evidence|correction-?prompt|command-?safety|impeccable-?hook)\.(?:ps1|sh)'
def is_flashbang(hook):
+6 -28
View File
@@ -424,30 +424,6 @@ class Manager:
self.state['resources'].append(dict(client='shared', name=entry['name'], kind='cli', package=package, clients=[client]))
self.save()
def repair_caveman_windows_hooks(self):
if self.dry_run or os.name != 'nt':
return
if not any(r['client'] == 'codex' and r['kind'] == 'plugin'
and r['selector'] == 'caveman@thinkhome-caveman' for r in self.state['resources']):
return
# ponytail: only the known 1.0.0 command; remove when upstream ships a portable launcher.
path = safe_path(self.home, '.codex/plugins/cache/thinkhome-caveman/caveman/1.0.0/hooks/hooks.json')
if not path.is_file():
return
content = json.loads(path.read_text(encoding='utf-8'))
changed = False
for groups in content.get('hooks', {}).values():
for group in groups:
for hook in group.get('hooks', []):
if hook.get('commandWindows') == 'node "%PLUGIN_ROOT%\\hooks\\caveman-hook.mjs"':
hook['commandWindows'] = ('node -e "import(require(\'node:url\').pathToFileURL('
'require(\'node:path\').join(process.env.PLUGIN_ROOT,'
'\'hooks\',\'caveman-hook.mjs\')).href)"')
changed = True
if changed:
atomic_write(path, (json.dumps(content, indent=2) + '\n').encode('utf-8'))
print('Repaired Caveman Windows hook commands; review the changed hooks in Codex /hooks.')
def ensure_mcporter(self, entry, clients):
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):
@@ -540,11 +516,14 @@ class Manager:
use_mcporter = 'MCPorter' in desired
mcporter_entries = {name: entry for name, entry in desired.items() if use_mcporter and entry.get('mcporter_name') and entry.get('mcporter_url') not in ('', '-')}
direct_entries = {name: entry for name, entry in desired.items() if name not in mcporter_entries}
# codex_method '-' marks a Claude-only extension; owned Codex installs of it are removed.
claude_only = {name for name, entry in direct_entries.items() if entry['codex_method'] == '-'}
for record in sorted(self.state['resources'], key=lambda record: record['kind'] != 'mcp'):
if record['client'] != 'shared' and record['client'] not in clients:
continue
selected_entries = mcporter_entries if record['kind'] == 'mcp' else direct_entries
if (action == 'sync' and record['name'] not in selected_entries) or (action == 'remove' and record['name'] in selected):
if ((action == 'sync' and record['name'] not in selected_entries) or (action == 'remove' and record['name'] in selected)
or (action != 'remove' and record['client'] == 'codex' and record['name'] in claude_only)):
if record['client'] == 'shared':
remaining = [client for client in record.get('clients', ['claude', 'codex']) if client not in clients]
if remaining:
@@ -555,9 +534,8 @@ class Manager:
if action != 'remove':
for client in clients:
for entry in direct_entries.values():
self.ensure(client, entry)
if client == 'codex' and entry.get('codex_plugin') == 'caveman@thinkhome-caveman':
self.repair_caveman_windows_hooks()
if client != 'codex' or entry['name'] not in claude_only:
self.ensure(client, entry)
for entry in mcporter_entries.values():
self.ensure_mcporter(entry, clients)
print('EXTENSIONS: reconciliation complete' + (' (dry run)' if self.dry_run else ''))
+3
View File
@@ -121,6 +121,8 @@ function Select-ConfiguredPlugins {
[switch]$DryRun
)
$entries = @(Get-ConfiguredPluginEntries -RepositoryRoot $RepositoryRoot)
# codex_method '-' marks a Claude-only extension.
if ($Client -eq 'Codex') { $entries = @($entries | Where-Object { $_.codex_method -ne '-' }) }
$toggleable = @($entries)
$fixed = @($entries | Where-Object { $toggleable -notcontains $_ })
if ($toggleable.Count -eq 0 -or ($DryRun -and $Mode -eq 'Install')) { return @{ Selected = $entries; Deselected = @() } }
@@ -136,6 +138,7 @@ function Select-ConfiguredPlugins {
Test-InstalledMCPServer -HomePath $HomePath -Name $entry.mcporter_name -Url $entry.mcporter_url
} else { $false }
foreach ($referenceClient in $referenceClients) {
if ($referenceClient -eq 'Codex' -and $entry.codex_method -eq '-') { continue }
$selector = if ($referenceClient -eq 'Claude') { $entry.claude_plugin } else { $entry.codex_plugin }
if ($referenceClient -eq 'Codex' -and $entry.codex_method -ne 'plugin') {
$found = $found -or (Test-Path -LiteralPath (Join-Path $HomePath ('.agents/skills/' + $entry.codex_skill))) -or (Test-Path -LiteralPath (Join-Path $HomePath ('.codex/skills/' + $entry.codex_skill)))
+3
View File
@@ -146,6 +146,8 @@ select_configured_plugins() {
local name all_names=() toggle_names=() fixed_names=()
while IFS= read -r name; do
# codex_method '-' marks a Claude-only extension.
if [ "$client" = codex ] && [ "$(plugin_field "$root" "$name" codex_method)" = - ]; then continue; fi
all_names+=("$name")
if plugin_toggleable "$root" "$name" "$client"; then toggle_names+=("$name"); else fixed_names+=("$name"); fi
done < <(get_plugin_names "$root")
@@ -178,6 +180,7 @@ select_configured_plugins() {
else status=$?; [ "$status" -eq 1 ] || return "$status"; fi
fi
for reference_client in "${reference_clients[@]}"; do
if [ "$reference_client" = codex ] && [ "$(plugin_field "$root" "$name" codex_method)" = - ]; then continue; fi
if [ "$reference_client" = claude ]; then selector=$(plugin_field "$root" "$name" claude_plugin); else selector=$(plugin_field "$root" "$name" codex_plugin); fi
if [ "$reference_client" = codex ] && [ "$(plugin_field "$root" "$name" codex_method)" != plugin ]; then
local skill_name