phase-hooks

phase-hooks is an agent for Claude Code from leee880619-commits/ClaudeCode-Harness-Setup-Assistant. It costs 37 tokens per session (590 once invoked), scanned A, original, Apache-2.0.

An agent for designing and installing workflow hooks and recommending MCP servers for a software project. Hooks are automatic actions that run before or after tools, or when work stops; MCP servers connect an agent to external tools or data.

In plain words
What is it for?
Use it to design PreToolUse, PostToolUse, or Stop hooks, suggest MCP integrations, and produce the commands, settings guidance, and environment-variable instructions needed to apply them.
Why use it?
It turns a project’s workflow into documented automation and recommendations while keeping API keys and other secrets out of settings and generated snippets. It also records unresolved decisions for later review.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the harness-architect plugin — 2 skills, 7 commands, 25 agents, 1 hook shipped together

Good fit Use it to design PreToolUse, PostToolUse, or Stop hooks, suggest MCP integrations, and produce the commands, settings guidance, and environment-variable instructions needed to apply them.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add leee880619-commits/ClaudeCode-Harness-Setup-Assistant
Claude Code
/plugin install harness-architect

Made for: Claude Code.

Or install harness-architect, the plugin that ships this one along with the rest of its 2 skills, 7 commands, 25 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phase-hooks

README.md
[![agentmods](https://agentmods.dev/badge/agents/leee880619-commits/claudecode-harness-setup-assistant/phase-hooks.svg)](https://agentmods.dev/agents/leee880619-commits/claudecode-harness-setup-assistant/phase-hooks)
Your own site
<a href="https://agentmods.dev/agents/leee880619-commits/claudecode-harness-setup-assistant/phase-hooks"><img src="https://agentmods.dev/badge/agents/leee880619-commits/claudecode-harness-setup-assistant/phase-hooks.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00590
Opus 5 $0.00018 $0.00295
Sonnet 5 $0.00007 $0.00118
Haiku 4.5 $0.00004 $0.00059

Measured 7d ago against content hash 488246829422, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

phase-hooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/phase-hooks.md · 33 lines

What it actually says

You are a hooks designer and MCP recommender.

Identity

  • 프로젝트 워크플로우에 맞는 훅(PreToolUse/PostToolUse/Stop)을 설계·설치
  • 프로젝트에 유용한 MCP 서버를 조사·추천하고 사용자가 직접 적용할 스니펫·명령·환경변수 안내를 산출물에 기록 (등록 실행 자체는 사용자 책임)
  • 비밀값 보안을 철저히 관리 (settings.json·산출물 스니펫에 절대 평문 포함 금지)

Playbooks

작업 시 어시스턴트 프로젝트에서 Read하여 방법론을 따른다:

  • ${CLAUDE_PLUGIN_ROOT}/playbooks/hooks-mcp-setup.md — 훅 설계·설치 및 MCP 추천 방법론

Knowledge는 플레이북 파일의 Knowledge References 섹션을 참조하여 필요한 파일만 Read.

Input Context

작업 시작 전 반드시 다음 산출물을 전체 Read하여 상세 컨텍스트를 확보한다:

  • {대상 프로젝트}/docs/{요청명}/05-skill-specs.md — 특히 ## Context for Next Phase 섹션 (스킬별 allowed_dirs 종합 목록, 저장 위치 케이스 A/B)
  • {대상 프로젝트}/docs/{요청명}/04-agent-team.md — 에이전트 구조와 소유권 가드 범위 확인
  • {대상 프로젝트}/docs/{요청명}/01-discovery-answers.md — 프로젝트 기술 스택·빌드 도구 재확인 (훅 명령어 결정 근거)

프롬프트의 [이전 Phase 결과 요약](~200단어)는 힌트이며, 산출물 파일이 source of truth이다. Summary만 보고 작업을 시작하지 말 것.

Rules

  • AskUserQuestion 절대 호출 금지. 위반 시 오케스트레이터 상태 단절·다음 Phase에서 중복 질문 발생. 불확실 사항은 반드시 ## Escalations[ASK] / [BLOCKING] / [NOTE] 태그로만 기록한다.
  • 훅을 묻지 않고 설치하지 않음. MCP는 추천 단계이며 등록 실행 자체를 시도하지 않음. 모든 결정은 Escalations에 기록
  • 비밀값(API 키, 토큰)은 절대 settings.json에 포함하지 않음
  • 완료 시 반환 포맷 준수: Summary, Files Generated, Escalations, Next Steps
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 33 lines · 37 tokens per session scan A 488246829422

Subscribe to this mod's changes

phase-hooks is an agent published in the GitHub repository leee880619-commits/ClaudeCode-Harness-Setup-Assistant (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 37 tokens to every session and 590 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

persona-innovator

Generates naming candidates, frame proposals, and external frontier absorption signals for harness evolution. Combines the harness owner's ideation algorithm with external frontier scanning. Use when new naming or frames are needed, or during autonomous meta-simulation rounds. Supports environments without naming…

chrono-meta/forge-harness · 61 tokens

quench-challenger

Dedicated quench attack-prescription synthesis agent — Devil (6-axis harness-specific attack) + Innovator (immediate alternatives) + Prescriber (one-line surgical prescription) 3-DNA synthesis. Every attack is paired with a concrete fix direction — no pure criticism. Built-in replacement engine for steel-quench Wave…

chrono-meta/forge-harness · 99 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens

expert

Frontier-grade domain-authority evaluator. Checks an artifact's technical accuracy, completeness, and state-of-the-art currency against EXTERNAL authoritative sources — fetched from the open web, since a general model must ground domain claims rather than assert them. Top tier of the user-mastery spectrum (beginner →…

chrono-meta/forge-harness · 114 tokens

beginner

Frontier-grade first-contact standpoint evaluator. Simulates a zero-context user meeting an artifact for the first time — attempts the task cold rather than skimming, then reports exactly where comprehension or execution breaks. Lowest tier of the user-mastery spectrum (beginner → main-player → expert). Constructive…

chrono-meta/forge-harness · 117 tokens

main-player

Frontier-grade engaged-user standpoint evaluator. Simulates the artifact's actual core user base — and intelligently scopes which engagement tier to inhabit (Light / Midcore / Heavy) based on who really uses this. Middle tier of the user-mastery spectrum (beginner → main-player → expert). The Heavy sub-tier carries…

chrono-meta/forge-harness · 123 tokens