---
title: AI エージェントのアジャイルな哲学における 4W1H の不確実性コーンの削減と Why 付きコマンドパターンによる振る舞い制御の検討
tags: 
author: [bulldra](https://www.docswell.com/user/bulldra)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/47Z1NY82J3.jpg?width=480
description: https://www.du-soleil.com/entry/ai-agent-agile-philosophy
published: January 10, 26
canonical: https://www.docswell.com/s/bulldra/574WY1-ai-agent-agile-philosophy
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/47Z1NY82J3.jpg)

AIエージェントのアジャイルな哲学
UNIX哲学と不確実性コーンから導く、自律的振る舞いの制御と設計
CONE OF UNCERTAINTY - AGILE EVOLUTION
INITIAL UNCERTAINTY
ITERATION
ADAPTATION
ADAPTATION
STRUCTURED OUTPUT
SELF-ORGANIZING SYSTEMS
Based on the analysis of Claude Code, GoF Design Patterns, and UNIX Philosophy.

# Page. 2

![Page Image](https://bcdn.docswell.com/page/YJ6L8DK6EV.jpg)

AIオーケストレーションの未来は、UNIXの過去にある
Claude Codeなどの最新のエージェント実装を観察すると、そこには「車輪の再発明」ではなく「原則の再発見」がある。
現代的な対話型AIインターフェイスにおいて、UNIX的な「コマンド」や「認証認可」の設計思想が再び重要になっている。
Return to Roots
(Mike Gancarz &quot;The UNIX Philosophy&quot;)
1970s
UNIX Philosophy
1990s
Design Patterns
2000s
Agile Manifesto
2020s
AI Orchestration
Small tools, plain text
Command Pattern,
Encapsulation
Managing Uncertainty
Synthesis of Principles
PROJECT NUMBER
#1A1011
REVISION
#1
APPROVED

# Page. 3

![Page Image](https://bcdn.docswell.com/page/GJ5193P574.jpg)

伝統的な4W1Hと、AIにおける「Why」の欠落
UNIX Model (Explicit)
AI Agent Model (Implicit)
テストを実行して
What (Action)
sudo cp source.txt dest.txt
Who (Rights)
Where (Target)
Why?
デバッグ?
デプロイ確認?
Risk?
失敗時の
挙動は?
Context?
対象範囲は?
前提: ユーザーは「Why (意図)」を理解しており、
コマンドは手段に過ぎない。すべてが明示的。
課題: 指示は曖昧であり、「Why」が欠けている。
意図が不明なままでは、安全な4W1Hを導出できない。
PROJECT NUMBER
#1A1012
REVISION
#1
APPROVED

# Page. 4

![Page Image](https://bcdn.docswell.com/page/LE31Y63575.jpg)

UNIXが実装してきた「不確実性解消」の3つのメカニズム
UNIXですら、毎回全ての情報を求めているわけではない。以下の仕組みで情報の欠落を補完している。
Standard
Input
Process
&gt;_[y/N]?
1. Context (Where)
Current Directory (cd)
ユーザーの「現在の関心事」を
表現。プロジェクトAとBでは、同じ
`make` コマンドでもビルド対象
が異なる。
2. Defaults (What)
Standard Input / Conventions
最も一般的なユースケースを暗黙
的に適用。例: `grep` は引数がな
ければ標準入力を読む。
3. Interactive (How)
Safety Checks
危険・不可逆な操作に対する確
認。例: `rm -i` (削除確認) や
`git commit` のエディタ起動。
AIエージェントはこの3つに加え、新たに「Why」を理解するメカニズムが必要となる。
PROJECT NUMBER
#1A1032
REVISION
#1
APPROVED

# Page. 5

![Page Image](https://bcdn.docswell.com/page/8EDX5V4YJG.jpg)

エージェントの挑戦：不確実性コーンの縮減
Vague Intent
(よしなに頼む)
Variance / Uncertainty
4x
Goal &amp;
Method
Unknown
Gathering Context
(Why/Who/Where)
Why
Who
Where
Dialogue &amp; Harness
Gathering Context
(Why/Who/Where)
Why
Who
Where
Deterministic
Execution
0
1x
Safe to Run
(4W1H Clear)
Time / Dialogue Steps
アジャイルの教訓: 不確実性を踏まえない計画は計画ではない。実行・シミュレーション・
対話を通じて知識を得ることでしか、不確実性は解消できない。
PROJECT NUMBER
#1A1032
REVISION
#1
APPROVED

# Page. 6

![Page Image](https://bcdn.docswell.com/page/V7PPGVM278.jpg)

Whyの発見：追加質問ハーネスによる意図の明確化
User Request
曖昧な指示 (Vague Instruction)
Ambiguity
Check
Clear
Execute
Unclear
The Why Harness
Agent asks &quot;Why?&quot; / Context Finding (/dig plugin)
Option A
Option B
Option C
Intent Clarification
ユーザー自身も気づいていなかった「意図」の言語化
Deterministic 4W1H
UNIX logic applies: Functionally Dependent Derivation
「Whyを明確にすることで、
UNIX的な決定論的システム
へ安全に着地できる」
Project
#1A1034
Revision
#3
Approvsl
Date
(Date), 2023

# Page. 7

![Page Image](https://bcdn.docswell.com/page/2JV26Z9XJQ.jpg)

Command Pattern 2.0：不確実性解消フェーズの導入
Deep Ink Black (#1A1A1A) (#2B4C7E)
Traditional GoF Command Pattern
[Request]
[Encapsulate
(Command Object)]
[Execute]
Blueprint Blue (#2B4C7E)
AI Agent Command Pattern
Uncertainty Reduction Phase
[Request]
[Encapsulate
(Incomplete Object)]
Gather Info /
Dialogue
ユーザーとの対話とシステムの推論で、
コマンドオブジェクトの空欄(パラメータ)
を埋める
[Authorize]
[Execute]
Claude Codeは「実行可能な状態になるまで情報を集める」という設計。
過度な対話を避けつつ生産性を維持する。
PROJECT NUMBER
#1A1034
REVISION
#2
APPROVAL
[Signature/Initials]
DATE
[Date]

# Page. 8

![Page Image](https://bcdn.docswell.com/page/5EGRN4ZRJL.jpg)

UNIX的認証認可と最小権限の原則
The Risks (God Mode)
破壊的変更 (Destruction):
`rm -rf` equivalents.
情報漏洩 (Leakage):
Unauthorized file access.
リソース浪費 (Waste):
Infinite loops.
The Solution (Scope &amp; Permissions)
// Claude Code Policy Example
permission_scope {
allow_network: [&quot;api.partner.com&quot;, &quot;github.com&quot;];
allow_filesystem: [&quot;./src/*&quot;, &quot;./tests/*&quot;];
require_confirmation: [&quot;delete_file&quot;, &quot;deploy&quot;];
}
「できる範囲」の明示。
WebFetchは特定ドメインのみ、
EnterPlanModeはユーザー承
認必須(sudo的動作)。
Project
#1A1034
Revision
#3
Approvsl
Date
(Date), 2023
PROJECT NUMBER
#1A1034
REVISION
#2
APPROVAL
[Signature/Initials]
DATE
[Date]

# Page. 9

![Page Image](https://bcdn.docswell.com/page/4JQVQGLY7P.jpg)

Everything as Fileへの回帰とセマンティックメモリ
Modern Agent
Everything as File
(Semantic Layer)
AI Era
Everything as Code
Cloud / DevOps
Infrastructure as Code (IaC)
UNIX
Everything is a File
(Universal Abstraction)
Geological Layer
インテントベースのアクセス。
「あの時の設計判断」という意図
で、マークダウンファイルとして
記憶を読み書きする。
Benefits: Semantic Search,
Delayed Loading, Gradual
Disclosure.
PROJECT NUMBER
#1A1034
REVISION
#4
APPROVAL
[Date]

# Page. 10

![Page Image](https://bcdn.docswell.com/page/K74MN5DZJ1.jpg)

アジャイルなエージェント哲学を支える4つの柱
1. Encapsulation
Command Pattern
要求をオブジェクト化。
履歴管理とロールバック。
2. Process
Cone of Uncertainty
対話による段階的な
不確実性の削減。
3. Security
UNIX Auth
最小権限の原則。
破壊的変更の防止。
4. Storage
Semantic Memory
Everything as Fileへの回帰。
インテントベース記憶。
Project
#1A1034
Revision
#3
Approvsl
Date
(Date), 2023
PROJECT NUMBER
#1A1034
REVISION
#5
APPROVAL
[Signature/Initials]
DATE
[Date]

# Page. 11

![Page Image](https://bcdn.docswell.com/page/LJ185WZDEG.jpg)

「実行」から「協働」へのパラダイムシフト
Old Model (CLI)
User
Command
Machine
User (Knows Everything) -&gt; Machine (Obeys)
不確実性の削減責任は100%ユーザーにある。
New Model (Agile Agent)
User
Agent
Dialogue/
Memory
User (Vague Intent) &lt;-&gt; Agent (Collaborator)
依頼時点ではユーザー自身もなかった論点を、
コンテキストから再生成し、ユーザーに内省を促す。
Agent acts as a &quot;Wall Partner&quot; (壁打ち相手)
to generate the execution plan.
Project
#1A1034
Revision
83
Approvsl
Date
(Date), 2022
PROJECT NUMBER
#1A1034
REVISION
#6
APPROVAL
[Signature/Initials]
DATE
[Date]

# Page. 12

![Page Image](https://bcdn.docswell.com/page/GJWZ5698J2.jpg)

未来を築くために、過去を洗練させる
「AIエージェントのアジャイルな哲学」とは、不確実性を無視するのではなく、
それを認めた上で、安全で予測可能なシステムを構築することである。
曖昧さを許容する「長期記憶」と「自然言語対話」が注入されることで、
UNIXの枯れた技術は、かつてない柔軟性と強固さを手に入れる。
Based on &quot;AI エージェントのアジャイルな哲学&quot; by bulldra (太陽がまぶしかったから).
Influenced by Mike Gancarz &quot;The UNIX Philosophy&quot; &amp; Mike Cohn &quot;Agile Estimating and Planning&quot;.
Project
#1A1034
Revision
87
Approvsl
Date
(Date), 2022
PROJECT NUMBER
#1A1034
REVISION
#7
APPROVAL
[Signature/Initials]
DATE
[Date]

