Skip to content

fix(v9.0): START_PROMPT _header/_footer を v8.5 → v9.0 に修正・再ビルド - #276

Merged
Kensan196948G merged 1 commit into
mainfrom
fix/start-prompt-header-footer-v9
May 12, 2026
Merged

Kensan196948G merged 1 commit into
mainfrom
fix/start-prompt-header-footer-v9

Conversation

@Kensan196948G

@Kensan196948G Kensan196948G commented May 12, 2026 •

Copy link
Copy Markdown
Owner

📌 概要

PR #274 で instructions/01〜08 は v9.0 更新済みだったが、_header.md と _footer.md が v8.5 のままだったため START_PROMPT.md の先頭・末尾が旧版のままだった。本 PR でこれを修正する。

🔧 変更内容

_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・claude agents・CI 修復 3 回・エラー 2 回 を反映
  • 最上位指令に /goal 設定 → claude agents 起動 → Agent Teams パターン A/B/C を追加

_footer.md

  • セッション開始時の必須コマンド(state.json 確認→/goal 設定→claude agents)を追加
  • 自動停止条件を v9.0 版(/goal 達成・同一原因 2 回・修復 3 回・コンテキスト圧迫)に更新
  • 旧 v8 テキストを v9.0 形式に刷新

START_PROMPT.md

  • 更新済み _header.md + _footer.md から再ビルド

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • 新機能

    • ClaudeOS v9.0へアップグレード
    • セッション開始・終了プロトコルの追加
    • Agent View監視機能の導入
    • Agent Teamsによる並列実行の実装
    • 新しい自動停止条件の定義
  • ドキュメント

    • テンプレート構成の再編成
    • セッション管理手順の更新
    • 操作ガイドラインの整備

Review Change Stack

_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>
@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'ignore_dot_files'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

3 つのテンプレート指示ファイルが ClaudeOS v8.5 Ultimate から v9.0 へ段階的にアップグレードされます。ヘッダー、メイン START_PROMPT、フッター各セクションが再構成され、新しい /goal ドリブン委譲、Agent Teams 並列実行、Agent View モニタリング、統一されたセッション開始/停止プロトコル、デプロイメントワークフロー、自動停止条件が導入されます。

Changes

ClaudeOS v8.5 から v9.0 への移行

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

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 8d94900 and 7c84f08.

📒 Files selected for processing (3)
  • Claude/templates/claude/START_PROMPT.md
  • Claude/templates/claude/instructions/_footer.md
  • Claude/templates/claude/instructions/_header.md

Comment on lines +7 to +19
```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
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

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 -->

Comment on lines +37 to +45
```
/goal 達成(Haiku が条件充足を判定)
同一原因エラー 2 回連続 → Issue 化して次タスクへ
修復試行 3 回到達 → Blocked
5 時間到達 → 終了処理
コンテキスト圧迫 → 即終了処理
Token 枯渇 → 安全終了
Security Critical → 即時対応
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

フェンス付きコードブロックに言語指定を追加してください

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 -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant