fix(v9.0): START_PROMPT _header/_footer を v8.5 → v9.0 に修正・再ビルド - #276
Conversation
_header.md: - タイトルを「ClaudeOS v8.5 Ultimate」→「ClaudeOS v9.0 Goal-Driven + Agent Teams + Agent View」へ更新 - 本質ブロックを v9.0 設計思想(/goal 委任・Agent Teams・Agent View・動的判断)へ更新 - 最重要原則に「/goal でゴールを設定」「同一原因エラー2回→Issue化」を追加 - 基本制約表に /goal コマンド・Agent View・CI修復3回・エラー2回を反映 - 最上位指令に /goal 設定・claude agents 起動・パターン A/B/C を追加 _footer.md: - セッション開始時の必須コマンド(state.json 確認→/goal 設定→claude agents)を追加 - 自動停止条件を v9.0 版(/goal 達成・同一原因2回・修復3回)に更新 - 旧「以降、全てをCTOの判断に〜」の v8 テキストを v9.0 形式に刷新 START_PROMPT.md: 更新済み _header.md + _footer.md から再ビルド Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Note
|
| Layer / File(s) | Summary |
|---|---|
v9.0 ヘッダー框組みと原則 Claude/templates/claude/instructions/_header.md |
_header.md が完全に書き直され、v9.0 の基本框組み、読み込み順序(01-session-startup.md から 10-webui-final-verification.md)、最重要原則、基本的な制約が定義されます。/goal ドリブン委譲、Agent Teams A/B/C パターン、Agent View モニタリング、5 時間のセッション時間制限が強調されます。 |
START_PROMPT v9.0 メイン更新 Claude/templates/claude/START_PROMPT.md (lines 1-80) |
START_PROMPT.md のコア部分がアップグレードされ、v9.0 の目的、推奨読み順、コア原則、基本的な制約、最上位指令が改定されます。or stop after 20 turns フレーズ、claude agents 起動、セッション開始時間確認と 5 時間上限の強制、Agent Teams スポーニングパターンが明示的に要件化されます。 |
セッション開始/終了プロトコルとデプロイメントワークフロー Claude/templates/claude/START_PROMPT.md (lines 1278-1320), Claude/templates/claude/instructions/_footer.md |
START_PROMPT.md に v9.0 セッション開始・終了プロトコルが追加され、state.json 検査、/goal テンプレート、Agent View 起動、CTO フル委譲の手順が定義されます。_footer.md が再構成され、セッション開始チェックリスト、CTO 運用要件(5 時間厳格制限、Agent Teams スポーニング、Auto Mode 実行、GitHub Projects 更新)、deploy.ready=true 条件付きデプロイメント手順自動生成、ユーザーによる手動デプロイメント実行、メンテナンス移行が含まれます。自動停止条件(ゴール達成判定、繰り返しエラー処理、修復試行上限、5 時間タイムアウト、コンテキスト/トークン枯渇、セキュリティ重大事象の即時対応)が明確に定義されます。 |
Possibly related PRs
- Kensan196948G/ClaudeCode-StartUpTools-New#275: ClaudeOS v9.0 テンプレート移行と state.json・セッション開始プロトコルの実行時契約の同期が関連
- Kensan196948G/ClaudeCode-StartUpTools-New#252: 同じテンプレートファイル(START_PROMPT.md)が別のバージョン更新で変更されているため直接関連
- Kensan196948G/ClaudeCode-StartUpTools-New#244: START_PROMPT.md と _header.md の同じセッション開始フレーズと
/loop・/scheduleコマンド削除で関連
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | タイトルは v8.5 から v9.0 への更新という主要な変更を明確に示しており、変更内容を適切に要約している。 |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/start-prompt-header-footer-v9
Comment @coderabbitai help to get the list of available commands and usage tips.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Claude/templates/claude/instructions/_footer.md`:
- Around line 7-19: The `/goal` instruction is embedded inside a bash code
block, which is invalid shell syntax; remove the `/goal "<達成条件>..."` line from
the bash block and create a separate non-shell block (e.g., ```text``` or
```claude```) containing the `/goal` line so shell commands remain pure bash and
the Claude command is presented as plain text; locate the mixed block by looking
for the bash fenced block that contains the `/goal` line and update it
accordingly.
- Around line 37-45: The fenced code block in the footer (the triple-backtick
block shown in the diff) triggers MD040 because it lacks a language tag; fix it
by adding a language identifier (e.g., `text`) after the opening backticks so
the block becomes ```text ... ```; update the block shown in the diff that
contains the lines starting with "/goal 達成(Haiku が条件充足を判定)" accordingly to
satisfy the linter.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c78a34fe-dfd1-4e57-9bdf-d56205d36303
📒 Files selected for processing (3)
Claude/templates/claude/START_PROMPT.mdClaude/templates/claude/instructions/_footer.mdClaude/templates/claude/instructions/_header.md
| ```bash | ||
| # 1. 状態確認 | ||
| cat state.json 2>/dev/null || echo "{}" | ||
| gh issue list --state open --limit 20 | ||
| gh run list --limit 5 | ||
| gh pr list --state open | ||
|
|
||
| # 2. /goal 設定 | ||
| /goal "<達成条件>。全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns" | ||
|
|
||
| # 3. Agent View 起動 | ||
| claude agents | ||
| ``` |
There was a problem hiding this comment.
bash コードブロック内に非シェル構文 (/goal) が混在しています
Line 15 の /goal はシェルコマンドではないため、利用者がそのまま実行すると失敗します。bash と text(または claude)でブロックを分けてください。
修正案
-```bash
+```bash
# 1. 状態確認
cat state.json 2>/dev/null || echo "{}"
gh issue list --state open --limit 20
gh run list --limit 5
gh pr list --state open
-# 2. /goal 設定
-/goal "<達成条件>。全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns"
-
# 3. Agent View 起動
claude agents+text +# 2. /goal 設定(Claudeコマンド) +/goal "<達成条件>。全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns" +
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @Claude/templates/claude/instructions/_footer.md around lines 7 - 19, The
/goal instruction is embedded inside a bash code block, which is invalid shell
syntax; remove the /goal "<達成条件>..." line from the bash block and create a
separate non-shell block (e.g., text or claude) containing the
/goal line so shell commands remain pure bash and the Claude command is
presented as plain text; locate the mixed block by looking for the bash fenced
block that contains the /goal line and update it accordingly.
</details>
<!-- fingerprinting:phantom:triton:hawk -->
<!-- 4e71b3a2 -->
<!-- This is an auto-generated comment by CodeRabbit -->
| ``` | ||
| /goal 達成(Haiku が条件充足を判定) | ||
| 同一原因エラー 2 回連続 → Issue 化して次タスクへ | ||
| 修復試行 3 回到達 → Blocked | ||
| 5 時間到達 → 終了処理 | ||
| コンテキスト圧迫 → 即終了処理 | ||
| Token 枯渇 → 安全終了 | ||
| Security Critical → 即時対応 | ||
| ``` |
There was a problem hiding this comment.
フェンス付きコードブロックに言語指定を追加してください
Line 37 のコードフェンスは MD040 対象です。text などを明示してください。
修正案
-```
+```text
/goal 達成(Haiku が条件充足を判定)
同一原因エラー 2 回連続 → Issue 化して次タスクへ
修復試行 3 回到達 → Blocked
5 時間到達 → 終了処理
コンテキスト圧迫 → 即終了処理
Token 枯渇 → 安全終了
Security Critical → 即時対応</details>
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.22.1)</summary>
[warning] 37-37: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @Claude/templates/claude/instructions/_footer.md around lines 37 - 45, The
fenced code block in the footer (the triple-backtick block shown in the diff)
triggers MD040 because it lacks a language tag; fix it by adding a language
identifier (e.g., text) after the opening backticks so the block becomes
text ... ; update the block shown in the diff that contains the lines
starting with "/goal 達成(Haiku が条件充足を判定)" accordingly to satisfy the linter.
</details>
<!-- fingerprinting:phantom:triton:hawk -->
<!-- d98c2f50 -->
<!-- This is an auto-generated comment by CodeRabbit -->
📌 概要
PR #274 で instructions/01〜08 は v9.0 更新済みだったが、
_header.mdと_footer.mdが v8.5 のままだったため START_PROMPT.md の先頭・末尾が旧版のままだった。本 PR でこれを修正する。🔧 変更内容
_header.mdClaudeOS v8.5 Ultimate→ClaudeOS v9.0 Goal-Driven + Agent Teams + Agent View/goal設定・同一原因エラー 2 回→Issue 化 を追加/goal・claude agents・CI 修復 3 回・エラー 2 回 を反映/goal 設定→claude agents 起動→Agent Teams パターン A/B/Cを追加_footer.mdSTART_PROMPT.md_header.md+_footer.mdから再ビルド🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート
新機能
ドキュメント