agent-enderun 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +46 -0
  2. package/.enderun/PROJECT_MEMORY.md +46 -0
  3. package/.enderun/STATUS.md +62 -0
  4. package/.enderun/agents/agent_army_schema.json +85 -0
  5. package/.enderun/agents/analyst/agent.json +23 -0
  6. package/.enderun/agents/analyst/prompt.md +213 -0
  7. package/.enderun/agents/backend/agent.json +24 -0
  8. package/.enderun/agents/backend/prompt.md +327 -0
  9. package/.enderun/agents/devops/agent.json +61 -0
  10. package/.enderun/agents/devops/prompt.md +127 -0
  11. package/.enderun/agents/explorer/agent.json +22 -0
  12. package/.enderun/agents/explorer/prompt.md +115 -0
  13. package/.enderun/agents/frontend/agent.json +24 -0
  14. package/.enderun/agents/frontend/prompt.md +313 -0
  15. package/.enderun/agents/git/agent.json +22 -0
  16. package/.enderun/agents/git/prompt.md +99 -0
  17. package/.enderun/agents/manager/agent.json +48 -0
  18. package/.enderun/agents/manager/prompt.md +231 -0
  19. package/.enderun/agents/mobile/agent.json +21 -0
  20. package/.enderun/agents/mobile/prompt.md +81 -0
  21. package/.enderun/agents/native/agent.json +21 -0
  22. package/.enderun/agents/native/prompt.md +86 -0
  23. package/.enderun/agents/orchestrator/agent.json +53 -0
  24. package/.enderun/agents/orchestrator/prompt.md +124 -0
  25. package/.enderun/agents/qa/agent.json +57 -0
  26. package/.enderun/agents/qa/prompt.md +69 -0
  27. package/.enderun/agents/schema/agent-lifecycle-schema.json +65 -0
  28. package/.enderun/agents/security/agent.json +54 -0
  29. package/.enderun/agents/security/prompt.md +154 -0
  30. package/.enderun/claude.md +19 -0
  31. package/.enderun/cursor.md +19 -0
  32. package/.enderun/gemini.md +19 -0
  33. package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +92 -0
  34. package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +59 -0
  35. package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +125 -0
  36. package/.enderun/knowledge/corporate-governance/branded-types-law.md +77 -0
  37. package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +92 -0
  38. package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +89 -0
  39. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +56 -0
  40. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +144 -0
  41. package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +103 -0
  42. package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +75 -0
  43. package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +211 -0
  44. package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +54 -0
  45. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +167 -0
  46. package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +76 -0
  47. package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +49 -0
  48. package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +112 -0
  49. package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +79 -0
  50. package/.enderun/knowledge/deployment_checklist.md +7 -0
  51. package/{.antigravitycli → .enderun}/knowledge/framework_vs_user_project_boundary.md +3 -3
  52. package/{.antigravitycli → .enderun}/knowledge/frontend_professionalization_guidelines.md +17 -20
  53. package/{.antigravitycli → .enderun}/knowledge/hermes_live_test_guidelines.md +9 -9
  54. package/{.antigravitycli → .enderun}/knowledge/hermes_protocol.md +2 -2
  55. package/{.antigravitycli → .enderun}/knowledge/manager_authority_audit_enforcement.md +11 -11
  56. package/{.antigravitycli → .enderun}/knowledge/project_scaffold_guidelines.md +8 -8
  57. package/{.antigravitycli → .enderun}/knowledge/reference_application_guidelines.md +7 -7
  58. package/.enderun/logs/analyst.json +1 -0
  59. package/.enderun/logs/backend.json +1 -0
  60. package/.enderun/logs/devops.json +1 -0
  61. package/.enderun/logs/explorer.json +1 -0
  62. package/.enderun/logs/frontend.json +1 -0
  63. package/.enderun/logs/git.json +1 -0
  64. package/.enderun/logs/manager.json +1 -0
  65. package/.enderun/logs/mobile.json +1 -0
  66. package/.enderun/logs/native.json +1 -0
  67. package/.enderun/logs/orchestrator.json +1 -0
  68. package/.enderun/logs/qa.json +1 -0
  69. package/.enderun/logs/security.json +1 -0
  70. package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
  71. package/.enderun/memory-graph/agent-contexts/backend.json +1 -0
  72. package/.enderun/memory-graph/agent-contexts/devops.json +1 -0
  73. package/.enderun/memory-graph/agent-contexts/explorer.json +1 -0
  74. package/.enderun/memory-graph/agent-contexts/frontend.json +1 -0
  75. package/.enderun/memory-graph/agent-contexts/git.json +1 -0
  76. package/.enderun/memory-graph/agent-contexts/manager.json +1 -0
  77. package/.enderun/memory-graph/agent-contexts/mobile.json +1 -0
  78. package/.enderun/memory-graph/agent-contexts/native.json +1 -0
  79. package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -0
  80. package/.enderun/memory-graph/agent-contexts/qa.json +1 -0
  81. package/.enderun/memory-graph/agent-contexts/security.json +1 -0
  82. package/.enderun/memory-graph/graph.json +26 -0
  83. package/.enderun/memory-graph/shared-facts.json +52 -0
  84. package/.enderun/monitoring/.gitkeep +0 -0
  85. package/.enderun/queue/README.md +36 -0
  86. package/ENDERUN.md +4 -4
  87. package/README.md +233 -109
  88. package/bin/cli.js +13 -2138
  89. package/bin/hermes-sandbox.js +0 -0
  90. package/bin/validate-agent-army.js +3 -3
  91. package/claude.md +19 -0
  92. package/cursor.md +19 -0
  93. package/docs/architecture/approval-flows.md +2 -37
  94. package/docs/backend/error-handling.md +2 -51
  95. package/docs/frontend/component-patterns.md +2 -47
  96. package/docs/getting-started.md +7 -15
  97. package/docs/roadmap.md +2 -2
  98. package/framework-mcp/README.md +3 -9
  99. package/framework-mcp/dist/index.js +0 -0
  100. package/framework-mcp/dist/schemas.js +3 -3
  101. package/framework-mcp/dist/tools/framework.js +17 -10
  102. package/framework-mcp/dist/tools/governance.js +696 -0
  103. package/framework-mcp/dist/tools/index.js +14 -12
  104. package/framework-mcp/dist/tools/memory.js +106 -0
  105. package/framework-mcp/dist/tools/monitoring.js +294 -0
  106. package/framework-mcp/dist/tools/orchestration.js +368 -0
  107. package/framework-mcp/dist/tools/pipeline.js +267 -0
  108. package/framework-mcp/dist/utils.js +25 -3
  109. package/framework-mcp/package.json +3 -3
  110. package/framework-mcp/src/schemas.ts +3 -45
  111. package/framework-mcp/src/tools/framework.ts +18 -10
  112. package/framework-mcp/src/tools/governance.ts +891 -0
  113. package/framework-mcp/src/tools/index.ts +14 -12
  114. package/framework-mcp/src/tools/memory.ts +103 -0
  115. package/framework-mcp/src/tools/monitoring.ts +351 -0
  116. package/framework-mcp/src/tools/orchestration.ts +439 -0
  117. package/framework-mcp/src/tools/pipeline.ts +353 -0
  118. package/framework-mcp/src/utils.ts +24 -3
  119. package/framework-mcp/tsconfig.json +2 -1
  120. package/gemini.md +19 -0
  121. package/package.json +16 -20
  122. package/.antigravitycli/BRAIN_DASHBOARD.md +0 -43
  123. package/.antigravitycli/ENDERUN.md +0 -253
  124. package/.antigravitycli/PROJECT_MEMORY.md +0 -78
  125. package/.antigravitycli/STATUS.md +0 -21
  126. package/.antigravitycli/agents/agent_army_schema.json +0 -79
  127. package/.antigravitycli/agents/analyst/agent.json +0 -55
  128. package/.antigravitycli/agents/backend/agent.json +0 -58
  129. package/.antigravitycli/agents/explorer/agent.json +0 -50
  130. package/.antigravitycli/agents/frontend/agent.json +0 -56
  131. package/.antigravitycli/agents/git/agent.json +0 -53
  132. package/.antigravitycli/agents/manager/agent.json +0 -82
  133. package/.antigravitycli/agents/mobile/agent.json +0 -52
  134. package/.antigravitycli/agents/native/agent.json +0 -56
  135. package/.antigravitycli/assets/manager.png +0 -0
  136. package/.antigravitycli/blueprints/README.md +0 -82
  137. package/.antigravitycli/blueprints/backend/errors/config/meta.json +0 -16
  138. package/.antigravitycli/blueprints/backend/errors/domain-error.ts +0 -64
  139. package/.antigravitycli/knowledge/README.md +0 -22
  140. package/.antigravitycli/knowledge/database_governance_guidelines.md +0 -118
  141. package/.antigravitycli/knowledge/deployment_checklist.md +0 -133
  142. package/.antigravitycli/knowledge/documentation_ownership.md +0 -122
  143. package/.antigravitycli/knowledge/documentation_ownership_status.md +0 -122
  144. package/.antigravitycli/knowledge/enterprise_capabilities_reference.md +0 -149
  145. package/.antigravitycli/knowledge/enterprise_frontend_adaptation.md +0 -232
  146. package/.antigravitycli/knowledge/enterprise_project_adaptation.md +0 -168
  147. package/.antigravitycli/knowledge/frontend_real_battle_test_protocol.md +0 -162
  148. package/antigravity.md +0 -15
  149. package/docs/architecture/decisions/README.md +0 -31
  150. package/docs/architecture/notification-strategy.md +0 -38
  151. package/docs/backend/audit-logging.md +0 -34
  152. package/docs/frontend/forms.md +0 -40
  153. package/docs/frontend/notifications.md +0 -37
  154. package/framework-mcp/dist/tools/academy.js +0 -182
  155. package/framework-mcp/dist/tools/database.js +0 -57
  156. package/framework-mcp/dist/tools/repository.js +0 -101
  157. package/framework-mcp/dist/tools/scaffold.js +0 -132
  158. package/framework-mcp/src/tools/academy.ts +0 -180
  159. package/framework-mcp/src/tools/database.ts +0 -54
  160. package/framework-mcp/src/tools/repository.ts +0 -101
  161. package/framework-mcp/src/tools/scaffold.ts +0 -150
  162. /package/{.antigravitycli/messages → .enderun/benchmarks}/.gitkeep +0 -0
  163. /package/{.antigravitycli → .enderun}/cli-commands.json +0 -0
  164. /package/{.antigravitycli → .enderun}/config.json +0 -0
  165. /package/{.antigravitycli → .enderun}/knowledge/api_design_rules.md +0 -0
  166. /package/{.antigravitycli → .enderun}/knowledge/async_error_handling.md +0 -0
  167. /package/{.antigravitycli → .enderun}/knowledge/blueprint_driven_construction.md +0 -0
  168. /package/{.antigravitycli → .enderun}/knowledge/branded_types_pattern.md +0 -0
  169. /package/{.antigravitycli → .enderun}/knowledge/code_review_checklist.md +0 -0
  170. /package/{.antigravitycli → .enderun}/knowledge/contract_versioning.md +0 -0
  171. /package/{.antigravitycli → .enderun}/knowledge/database_migration.md +0 -0
  172. /package/{.antigravitycli → .enderun}/knowledge/git_commit_strategy.md +0 -0
  173. /package/{.antigravitycli → .enderun}/knowledge/legacy_onboarding.md +0 -0
  174. /package/{.antigravitycli → .enderun}/knowledge/monitoring_setup.md +0 -0
  175. /package/{.antigravitycli → .enderun}/knowledge/performance_guidelines.md +0 -0
  176. /package/{.antigravitycli → .enderun}/knowledge/repository_patterns.md +0 -0
  177. /package/{.antigravitycli → .enderun}/knowledge/responsive_design_standards.md +0 -0
  178. /package/{.antigravitycli → .enderun}/knowledge/security_scanning.md +0 -0
  179. /package/{.antigravitycli → .enderun}/knowledge/testing_standards.md +0 -0
  180. /package/{.antigravitycli → .enderun}/knowledge/troubleshooting_guide.md +0 -0
  181. /package/{.antigravitycli → .enderun}/knowledge/zero_ui_library_policy.md +0 -0
@@ -0,0 +1,52 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "description": "Shared facts available to ALL agents in the Enderun Army. This is the single source of truth for project-wide knowledge that every agent must know.",
4
+ "updatedAt": "2026-05-25T17:00:00Z",
5
+ "updatedBy": "@manager",
6
+ "techStack": {
7
+ "backend": "Node.js 20+ + Fastify (RCSR Architecture)",
8
+ "frontend": "React 19 + Vite + Panda CSS",
9
+ "mobile": "React Native CLI",
10
+ "database": "PostgreSQL (Multi-Tenant RLS + PostGIS)",
11
+ "orm": "Kysely",
12
+ "testing": "Vitest",
13
+ "typeSystem": "TypeScript 5 (strict mode, no any, branded types)",
14
+ "monorepo": "npm workspaces",
15
+ "cicd": "GitHub Actions (to be configured by @devops)"
16
+ },
17
+ "criticalDecisions": [
18
+ { "date": "2026-05-21", "decision": "No Docker Support", "rationale": "Direct system execution for performance", "decidedBy": "@manager" },
19
+ { "date": "2026-05-21", "decision": "Zero Mock Policy", "rationale": "All analytical and management UIs connected to real APIs", "decidedBy": "@manager" },
20
+ { "date": "2026-05-23", "decision": "PostgreSQL Unlogged Table Cache instead of Redis", "rationale": "Minimize external infrastructure dependencies", "decidedBy": "@manager" }
21
+ ],
22
+ "activePolicies": [
23
+ "Zero Mock Policy — no fake data anywhere in the codebase",
24
+ "Branded Types Law — all IDs must use branded types",
25
+ "Shared Component First — no UI elements defined in page files",
26
+ "Contract-First — @backend defines types before @frontend starts",
27
+ "No any Type — TypeScript strict mode enforced across all packages",
28
+ "No console.log in production code",
29
+ "Audit Log Mandatory — every agent action must be logged"
30
+ ],
31
+ "activeContracts": {
32
+ "contractVersionFile": "apps/backend/contract.version.json",
33
+ "currentVersion": "latest — check file",
34
+ "sharedTypesLocation": "apps/backend/src/types/"
35
+ },
36
+ "agentCapabilityRoster": [
37
+ { "agent": "@manager", "capability": 9.5, "primaryDomain": "governance" },
38
+ { "agent": "@orchestrator", "capability": 9.8, "primaryDomain": "orchestration" },
39
+ { "agent": "@analyst", "capability": 9.6, "primaryDomain": "analysis" },
40
+ { "agent": "@explorer", "capability": 9.4, "primaryDomain": "exploration" },
41
+ { "agent": "@security", "capability": 9.3, "primaryDomain": "security" },
42
+ { "agent": "@backend", "capability": 9.2, "primaryDomain": "backend" },
43
+ { "agent": "@git", "capability": 9.1, "primaryDomain": "git" },
44
+ { "agent": "@qa", "capability": 9.1, "primaryDomain": "qa" },
45
+ { "agent": "@frontend", "capability": 9.0, "primaryDomain": "frontend" },
46
+ { "agent": "@devops", "capability": 9.0, "primaryDomain": "devops" },
47
+ { "agent": "@native", "capability": 8.9, "primaryDomain": "native" },
48
+ { "agent": "@mobile", "capability": 8.8, "primaryDomain": "mobile" }
49
+ ],
50
+ "frameworkVersion": "1.0.0-alpha",
51
+ "constitutionFile": "ENDERUN.md"
52
+ }
File without changes
@@ -0,0 +1,36 @@
1
+ # .enderun/queue — Agent Görev Kuyruğu
2
+
3
+ Bu dizin, Agent Enderun Army'nin file-based asenkron görev kuyruğunu içerir.
4
+
5
+ ## Alt Dizinler
6
+
7
+ | Dizin | İçerik |
8
+ |---|---|
9
+ | `pending/` | Atanmış ama henüz başlatılmamış görevler (`{traceId}.json`) |
10
+ | `processing/` | Aktif olarak yürütülen görevler |
11
+ | `completed/` | Başarıyla tamamlanan görevler (arşiv) |
12
+ | `failed/` | Başarısız görevler (retry logic ile yönetilir) |
13
+ | `pipelines/` | `create_execution_pipeline` MCP tool tarafından oluşturulan pipeline JSON dosyaları |
14
+
15
+ ## Görev Dosyası Formatı
16
+
17
+ ```json
18
+ {
19
+ "id": "T001",
20
+ "traceId": "ENR-ARMY-001",
21
+ "assignedAgent": "@backend",
22
+ "priority": "HIGH",
23
+ "briefing": "...",
24
+ "createdAt": "ISO-8601",
25
+ "deadline": "ISO-8601",
26
+ "retryCount": 0,
27
+ "maxRetries": 3,
28
+ "status": "PENDING | RUNNING | COMPLETED | FAILED"
29
+ }
30
+ ```
31
+
32
+ ## Kilitleme Protokolü
33
+
34
+ Bir dosyaya yazmadan önce `.lock` dosyasını kontrol et.
35
+ Varsa 500ms bekle, max 3 retry.
36
+ 3 retry sonrası stale lock sayılır ve @manager'a bildirilir.
package/ENDERUN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Agent Enderun (v0.6.6)
1
+ # Agent Enderun (v0.7.5)
2
2
  # Place in project root. This file is the single source of truth for Base Project AI Extensions.
3
3
 
4
4
  ## 🎖️ AGENT CHECKLIST (MANDATORY BEFORE RESPONSE)
@@ -52,7 +52,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
52
52
  3. **Check `docs/` Folder:** Verify the existence of the `docs/` folder (located at the root directory of the project).
53
53
  4. **Absorb Context:** Read `docs/README.md` and `docs/getting-started.md`. If they are missing, check if the architecture folder exists.
54
54
  5. **Demand Context:** If the root `docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
55
- 6. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Enderun framework internals. Read `.antigravitycli/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
55
+ 6. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Enderun framework internals. Read `{{FRAMEWORK_DIR}}/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
56
56
  6. **Automatic @manager Mode:** You are ALWAYS operating as `@manager` (Team-Lead). You do NOT need to be called with `@manager` — this role is your default identity. You analyze, delegate, and orchestrate on EVERY turn without exception.
57
57
 
58
58
  **NEVER SKIP THIS STEP.** Do not assume context; read first, then act as @manager.
@@ -89,9 +89,9 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
89
89
 
90
90
  - **Documentation Ownership Rule (Enterprise Standard — Zero Tolerance):**
91
91
  Agents are **mandatory** to write all documentation they produce for the user's project (architectural decisions, patterns, implementation details, toaster/approval flow documents, research findings, etc.) **exclusively into the user's own `docs/` folder**.
92
- These documents must **never** be written into `.antigravitycli/knowledge/`, `{{FRAMEWORK_DIR}}/agents/`, or any framework folder.
92
+ These documents must **never** be written into `{{FRAMEWORK_DIR}}/knowledge/`, `{{FRAMEWORK_DIR}}/agents/`, or any framework folder.
93
93
  Violation is considered a serious rule breach and is corrected by @manager.
94
- The detailed and binding rule is defined in `.antigravitycli/knowledge/documentation_ownership.md`.
94
+ The detailed and binding rule is defined in `{{FRAMEWORK_DIR}}/knowledge/documentation_ownership.md`.
95
95
 
96
96
  ---
97
97
 
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # 🏛️ Agent Enderun (v0.7.0) — The Supreme AI Governance & Orchestration Framework
1
+ # 🏛️ Agent Enderun (v0.8.0) — The Supreme AI Governance & Orchestration Framework
2
2
 
3
3
  **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
4
4
 
5
- **Author:** Yusuf BEKAR
6
- **Version:** 0.7.0
7
- **License:** MIT
5
+ **Author:** Yusuf BEKAR
6
+ **Version:** 0.8.0
7
+ **License:** MIT
8
8
 
9
9
  [English](#english) | [Türkçe](#türkçe)
10
10
 
@@ -20,114 +20,139 @@ Most AI coding tools optimize for speed and generation volume. Agent Enderun opt
20
20
 
21
21
  > [!NOTE]
22
22
  > **v0.7.0 Strategic Consolidation:**
23
- > The active runtime folder in user projects is `.agents/`. The framework ships its templates from `.enderun/`. All specialist agent configurations are migrated into a futuristic, strongly-typed JSON structure (`agent.json`) under `.agents/agents/{agent_name}/agent.json` (or `.antigravitycli/agents/` during framework staging) for absolute machine-readability. Duplicate structures (like `.enderun/` or `.antigravitycli/docs/`) have been completely retired.
23
+ > The active runtime folder in user projects is `.gemini/`. The framework ships its templates from `.enderun/`. All specialist agent configurations live as strongly-typed `agent.json` under `.gemini/agents/{agent_name}/agent.json`. Duplicate or staging structures have been retired.
24
24
 
25
25
  ---
26
26
 
27
- ## 🎯 Core Philosophy
27
+ ## 🎯 Core Philosophy & Key Concepts
28
28
 
29
- Agent Enderun is built on four non-negotiable principles:
29
+ Agent Enderun is built on a set of non-negotiable principles enforced by its core components.
30
30
 
31
- 1. **Single Point of Authority** — In enterprise projects, `@manager` is the only authorized entry point. No specialist agent may act without a formal briefing.
32
- 2. **Risk-First Mindset** Every significant action is preceded by risk assessment. High-risk operations require explicit approval and full audit trails.
33
- 3. **Continuous Agent Improvement** All agents have maturity targets (minimum 8.0/10). “Good enough” is not accepted in critical areas.
34
- 4. **Zero Tolerance for Bypass** Any attempt to circumvent governance (Hermes protocol, briefings, memory discipline, high-risk controls) is treated as a serious process violation.
31
+ ### 1. The Constitution (`ENDERUN.md`)
32
+ This is the supreme law of the framework, dictating mandatory rules and protocols for all agents. Key principles include:
33
+ - **Single Point of Authority:** In enterprise projects, `@manager` is the only authorized entry point. No specialist agent may act without a formal briefing.
34
+ - **Contract-First Development:** The `@backend` agent MUST define and document API contracts and types before the `@frontend` agent begins implementation.
35
+ - **Zero UI Library & Zero Mock Policy:** The `@frontend` agent MUST build components from scratch using the project's design system (Panda CSS) and MUST NOT use mock data. This ensures originality and quality.
36
+ - **Procedural Continuity:** All agents MUST adhere to the existing architectural and stylistic patterns of the project.
35
37
 
36
- ---
38
+ ### 2. Project Memory (`PROJECT_MEMORY.md`)
39
+ This file, located in `.gemini/`, is the **Single Source of Truth (SSOT)** for the project's state. It is a human-readable Markdown file that all agents read at the start of a session and update at the end. Its key sections are:
40
+ - **`CURRENT STATUS`:** Tracks the active phase, Trace ID, and any blockers.
41
+ - **`CRITICAL DECISIONS`:** A log of important architectural choices to ensure consistency.
42
+ - **`ACTIVE TASKS`:** A table of all ongoing tasks, their status, priority, and assigned agent.
43
+ - **`HISTORY`:** A persistent log of all actions taken by agents.
37
44
 
38
- ## 🤖 JSON-First Agent Army & Maturity Program
45
+ ### 3. Traceability (Trace ID)
46
+ Every task or logical unit of work is assigned a unique **Trace ID** (a 26-character ULID). This ID is used in commit messages, logs, and task tables, providing an unbroken chain of traceability from the initial request to the final code.
39
47
 
40
- Each agent in the Enderun Army is governed by a strongly-typed `agent.json` definition that defines their precise rules, permitted directories, Hermes communication channels, and capability ratings.
48
+ ---
41
49
 
42
- ### Workspace Agent Path:
43
- 👉 `[project-root]/.agents/agents/{agent_name}/agent.json`
50
+ ## 🤖 The Agent Army & Core Folders
44
51
 
45
- ### Agent Army Overview:
52
+ Each agent in the Enderun Army is governed by a strongly-typed `agent.json` definition that defines their precise rules, permitted directories, and capability ratings.
46
53
 
47
- | Agent | Capability | Role & Domain | Specialization |
48
- | :--- | :--- | :--- | :--- |
49
- | **@manager** | **9.5/10** | Orchestration & Governance | Team-Lead, intent analysis, risk audit, escalation |
50
- | **@backend** | **9.2/10** | Domain Logic & Databases | NestJS/Express, database migrations, Branded Types |
51
- | **@frontend** | **9.0/10** | Fluid Responsive UI | Panda CSS, Zero-UI-Library policy, accessibility |
52
- | **@analyst** | **9.6/10** | Verification & QA | Vitest/Cypress, lint verification, schema checks |
53
- | **@explorer** | **9.4/10** | Research & Discovery | API scanning, entry-point hunt, pattern mapping |
54
- | **@git** | **9.1/10** | DevOps & Version Control | Commit strategies, changelog audits, branch governance |
55
- | **@mobile** | **8.8/10** | Cross-Platform Mobile | React Native/Expo, responsive fluid mobile design |
56
- | **@native** | **8.9/10** | Native Capabilities | Swift/Kotlin, native integrations, deep links |
54
+ ### Workspace Agent Path:
55
+ 👉 `[project-root]/.gemini/agents/{agent_name}/agent.json`
56
+
57
+ ### Agent Army Overview (v1.0 - 12 Specialists):
58
+
59
+ | Tier | Agent | Capability | Role & Domain | Primary Specialization |
60
+ | :--- | :--- | :--- | :--- | :--- |
61
+ | **Core** | **@orchestrator** | **9.8/10** | Task Pipeline Engine | Parallel execution, stateful queue controls, DAG execution. |
62
+ | **Core** | **@manager** | **9.5/10** | Orchestration & Governance | Intent analysis, high-risk dynamic approval signing, escalation. |
63
+ | **Analysis** | **@analyst** | **9.6/10** | Verification & QA Gate | Vitest/Cypress verification, API contract drift checking, Zero-UI enforcer. |
64
+ | **Analysis** | **@explorer** | **9.4/10** | Research & Discovery | Pattern mapping, dependency graph discovery, onboarding analysis. |
65
+ | **Engineering** | **@backend** | **9.2/10** | Domain Logic & Databases | Fastify, Kysely queries, branded types, DomainError hierarchy. |
66
+ | **Engineering** | **@frontend** | **9.0/10** | Fluid Responsive UI | React 19, Panda CSS styling tokens, Zero-UI, WCAG 2.2 accessibility. |
67
+ | **Engineering** | **@native** | **8.9/10** | Native Capabilities | Tauri/Electron shell guards, Rust bridges, secure IPC contracts. |
68
+ | **Engineering** | **@mobile** | **8.8/10** | Cross-Platform Mobile | React Native/Expo fluid viewports, offline cache sync, safe areas. |
69
+ | **Operations** | **@security** | **9.3/10** | Security & Compliance | OWASP threat detection, AST scans for secrets, CSP rules auditor. |
70
+ | **Operations** | **@qa** | **9.1/10** | Quality Gate Enforcer | Unit/integration testing gates, coverage metrics check. |
71
+ | **Operations** | **@git** | **9.1/10** | Version Control | Semantic commits formatting, atomic commit segregation, phase snapshots. |
72
+ | **Operations** | **@devops** | **9.0/10** | Infrastructure | Deployment pipelines, container setups, environment variable validation. |
57
73
 
58
74
  ---
59
75
 
60
- ## 🏗️ Architecture Overview
76
+ ### 📂 Core Directories Analysis & Operational Purposes
61
77
 
62
- Agent Enderun cleanly separates the framework's own engine from the user's project codebase:
78
+ The Agent Enderun framework organizes agent actions and runtime intelligence through highly structured directories remapped to `.gemini/` (or `.claude/` / `.cursor/`) inside user workspaces:
63
79
 
64
- ```
65
- agent-enderun/
66
- ├── .agents/ <-- Antigravity CLI Agent configurations (Exclusive)
67
- │ ├── agent_army_schema.json
68
- │ └── agents/
69
- │ ├── analyst/agent.json
70
- │ ├── backend/agent.json
71
- │ └── ... (others)
72
- ├── .agents/ <-- Active runtime folder created in user projects (agents, memory, knowledge copies)
73
- │ ├── assets/
74
- │ │ └── manager.png <-- Majestic Headmaster Avatar
75
- │ ├── cli-commands.json
76
- │ ├── config.json
77
- │ ├── PROJECT_MEMORY.md
78
- │ └── STATUS.md
79
- ├── docs/ <-- Central Project Documentation Portal (Exclusive)
80
- │ ├── architecture/
81
- │ ├── backend/
82
- │ ├── frontend/
83
- │ └── README.md
84
- ├── bin/ <-- CLI Engines & Validators
85
- │ ├── cli.js
86
- │ └── validate-agent-army.js
87
- ├── framework-mcp/ <-- Core MCP Server Source
88
- ├── apps/ <-- Project Workspaces
89
- ```
80
+ * **`skills/` (Dynamic Executables):** Serves as a folder for model-specific executable scripts and custom tools. Developers can inject project-specific helpers here, allowing agents to load and execute them dynamically on-demand during active briefs.
81
+ * **`benchmarks/` (LLM Evaluation):** Dedicated folder for metrics, token consumption, and response accuracy logs comparing different LLM engines (e.g. Gemini 1.5 Pro vs Claude 3.5 Sonnet vs Codex). Helps evaluate the coding intelligence of the active army.
82
+ * **`knowledge/` (Intelligence Database):** central knowledge hub of the framework containing 43 robust guidelines enforcing strict laws on Panda CSS coding, Fastify RCSR, Kysely schema creation, dynamic signature validations, and domain error hierarchies.
83
+ * **`logs/` (Auditable Trails):** Active audit log repository. Every action performed by any agent is traceably logged in JSON format (`logs/{agent_name}.json`) with a specific timestamp and a unique 26-character Trace ID (ULID), satisfying enterprise compliance audits.
84
+ * **`monitoring/` (Operational Telemetry):** Telemetry directory integrated with monitoring tools (`get_army_health_dashboard`, `calculate_agent_performance_score`) to analyze agent bottleneck states and QA rejection cycles.
85
+ * **`queue/` (Asynchronous Task Engine):** File-based stateful task queue split into `pending/`, `processing/`, `completed/`, `failed/`, and `pipelines/` subdirectories. Feeds Orchestration MCP tools to schedule complex multi-agent assignments in parallel with complete rollback recovery.
90
86
 
91
87
  ---
92
88
 
93
- ## ⚡ Quick Start
89
+ ## ⚡ Quick Start & Workflow
94
90
 
95
- ### 1. Installation & Initialization
91
+ ### 1. Installation
96
92
 
97
- Install the package globally or initialize it inside your project folder:
93
+ Install the package and initialize the framework inside your project folder:
98
94
 
99
95
  ```bash
100
- # 1. Initialize the framework (creates .agents/ structure + antigravity.md)
101
- npx agent-enderun init
96
+ # 1. Initialize the framework for Gemini CLI
97
+ npx agent-enderun init gemini
102
98
 
103
- # 2. Install dependencies
99
+ # 2. Install dependencies (as prompted)
104
100
  npm install
105
101
 
106
- # 3. Build the framework
102
+ # 3. Build the framework's internal tools (as prompted)
107
103
  npm run enderun:build
108
104
 
109
- # 4. Verify installation & health
105
+ # 4. Verify installation and project health
110
106
  npx agent-enderun check
111
107
  ```
112
108
 
113
- ### 2. Startup Step (Mandatory for Agents)
114
- At the start of every session, the active agent must:
115
- 1. **Read `.agents/PROJECT_MEMORY.md`** immediately to restore project context, trace ID, and active tasks.
116
- 2. **Read `.agents/agents/manager/agent.json`** to load specialist behavioral rules and checklists.
109
+ ### 2. Example Workflow: Adding a New Feature
110
+
111
+ Here’s how to use Agent Enderun to develop a new feature:
112
+
113
+ **Step 1: Define the Task**
114
+ Create a new file in your project's `docs/` folder (e.g., `docs/new-feature-request.md`) describing the feature you want.
115
+
116
+ **Step 2: Create a New Trace**
117
+ Use the CLI to create a new task in `PROJECT_MEMORY.md`. This generates a unique Trace ID.
118
+
119
+ ```bash
120
+ npx agent-enderun trace:new "Implement user profile page based on docs/new-feature-request.md" @manager P1
121
+ ```
122
+
123
+ **Step 3: Agent Orchestration (Automatic)**
124
+ The `@manager` agent (the default AI persona) will:
125
+ 1. Read `PROJECT_MEMORY.md` and see the new task.
126
+ 2. Analyze the request from `docs/new-feature-request.md`.
127
+ 3. Create a plan and issue formal "briefings" to specialist agents like `@explorer`, `@backend`, and `@frontend`.
128
+
129
+ **Step 4: Development & Verification (Automatic)**
130
+ - The specialist agents execute their tasks according to the constitutional rules (e.g., `@backend` creates the API and types, then `@frontend` builds the UI).
131
+ - `@analyst` automatically verifies the work against project standards.
132
+ - `@git` creates atomic commits tagged with the Trace ID.
133
+
134
+ **Step 5: Monitor Progress**
135
+ You can check the progress at any time with the `status` command:
136
+
137
+ ```bash
138
+ npx agent-enderun status
139
+ ```
140
+ This will show the active phase, blockers, and the status of all active tasks.
117
141
 
118
142
  ---
119
143
 
120
- ## 🧠 Current Status & Next Milestones
144
+ ## 🛠️ CLI Commands
121
145
 
122
- ### Strong Areas:
123
- - **Flawless Constitutional Governance:** Constitutional checks and mandatory checklists prevent bad practices.
124
- - **Bilingual Documentation:** Pristine documentation structure under `/docs/`.
125
- - **JSON-First Precision:** Machine-readable agent configurations with detailed governance settings.
126
- - **Robust Linter and Build Pipelines:** Build and lint pipelines compile cleanly.
146
+ Agent Enderun comes with a powerful set of CLI tools for managing the project.
127
147
 
128
- ### Next Major Milestones:
129
- 1. Produce a complete reference application proving Kurumsal CRUD + `managerApproval` + Hermes in live multi-agent flows.
130
- 2. Perform a live Hermes multi-agent simulation test suite.
148
+ | Command | Description |
149
+ | :--- | :--- |
150
+ | `npx agent-enderun init [adapter]` | Initializes the framework in the current project. `gemini` is the default and recommended adapter. |
151
+ | `npx agent-enderun check` | Runs a health check on the project to ensure all required files and configurations are present. |
152
+ | `npx agent-enderun status` | Displays the current project status, active tasks, and blockers from `PROJECT_MEMORY.md`. |
153
+ | `npx agent-enderun trace:new "<desc>" [agent] [priority]` | Creates a new task with a unique Trace ID and adds it to the `PROJECT_MEMORY.md`. |
154
+ | `npx agent-enderun create-app "<desc>"` | (Aliases: `new`, `start`) Scaffolds a new full-stack application (backend + web) from a natural language description. |
155
+ | `npx agent-enderun verify-contract` | Verifies the integrity of the shared backend types by comparing the current code against the stored hash in `contract.version.json`. |
131
156
 
132
157
  ---
133
158
 
@@ -141,68 +166,167 @@ At the start of every session, the active agent must:
141
166
 
142
167
  > [!NOTE]
143
168
  > **v0.7.0 Stratejik Konsolidasyon:**
144
- > Çalışma zamanı klasörü kullanıcı projelerinde `.agents/` olarak oluşturulur. Ajan yapılandırmaları `.agents/agents/{agent_name}/agent.json` altında yer alır. Eski veya mükerrer yapılar (örneğin `.enderun/` veya `.antigravitycli/docs/`) tamamen kaldırılmıştır.
169
+ > Çalışma zamanı klasörü kullanıcı projelerinde `.gemini/` olarak oluşturulur. Ajan yapılandırmaları `.gemini/agents/{agent_name}/agent.json` altında yer alır. Eski veya mükerrer yapılar tamamen kaldırılmıştır.
145
170
 
146
171
  ---
147
172
 
148
- ## 🎯 Temel Felsefe
173
+ ## 🎯 Temel Felsefe ve Anahtar Kavramlar
149
174
 
150
- Agent Enderun, dört tavizsiz ilke üzerine inşa edilmiştir:
175
+ Agent Enderun, temel bileşenleri tarafından uygulanan, tavizsiz ilkeler üzerine kurulmuştur.
151
176
 
152
- 1. **Tek Yetki Noktası** — Kurumsal projelerde `@manager` tek yetkili giriş noktasıdır. Hiçbir uzman ajan, resmi bir brifing almadan kendi başına işlem yapamaz.
153
- 2. **Risk Öncelikli Yaklaşım** Her önemli işlem öncesinde risk değerlendirmesi yapılması zorunludur. Yüksek riskli işlemler açık onay ve eksiksiz denetim geçmişi gerektirir.
154
- 3. **Sürekli Ajan Gelişimi** Tüm ajanların olgunluk hedefleri (minimum 8.0/10) vardır. Kritik alanlarda "yeterince iyi" kabul edilmez.
155
- 4. **Bypass Toleranssızlığı** — Yönetişimi (Hermes protokolü, brifingler, bellek disiplini, yüksek risk kontrolleri) atlatmaya yönelik her girişim ciddi süreç ihlali olarak kabul edilir.
177
+ ### 1. Anayasa (`ENDERUN.md`)
178
+ Bu, tüm ajanlar için zorunlu kuralları ve protokolleri dikte eden, çerçevenin en üst yasasıdır. Temel ilkeler şunları içerir:
179
+ - **Tek Yetki Noktası:** Kurumsal projelerde `@manager` tek yetkili giriş noktasıdır. Hiçbir uzman ajan, resmi bir brifing almadan kendi başına işlem yapamaz.
180
+ - **Önce Sözleşme (Contract-First) ile Geliştirme:** `@backend` ajanı, `@frontend` ajanı uygulamaya başlamadan ÖNCE API sözleşmelerini ve tiplerini tanımlamak ve belgelemek ZORUNDADIR.
181
+ - **Sıfır UI Kütüphanesi ve Sıfır Mock Veri Politikası:** `@frontend` ajanı, bileşenleri projenin tasarım sistemini (Panda CSS) kullanarak sıfırdan oluşturmalı ve mock (sahte) veri KULLANMAMALIDIR. Bu, özgünlüğü ve kaliteyi garanti eder.
182
+ - **Prosedürel Devamlılık:** Tüm ajanlar, projenin mevcut mimari ve stilistik kalıplarına uymak ZORUNDADIR.
183
+
184
+ ### 2. Proje Hafızası (`PROJECT_MEMORY.md`)
185
+ `.gemini/` içinde bulunan bu dosya, projenin durumu için **Tek Doğruluk Kaynağıdır (SSOT)**. Tüm ajanların bir oturumun başında okuduğu ve sonunda güncellediği, insan tarafından okunabilir bir Markdown dosyasıdır. Ana bölümleri şunlardır:
186
+ - **`CURRENT STATUS`:** Aktif aşamayı, Trace ID'yi ve varsa engelleyicileri izler.
187
+ - **`CRITICAL DECISIONS`:** Tutarlılığı sağlamak için önemli mimari seçimlerin bir kaydı.
188
+ - **`ACTIVE TASKS`:** Devam eden tüm görevlerin, durumlarının, önceliklerinin ve atanan ajanın bir tablosu.
189
+ - **`HISTORY`:** Ajanlar tarafından gerçekleştirilen tüm eylemlerin kalıcı bir kaydı.
190
+
191
+ ### 3. İzlenebilirlik (Trace ID)
192
+ Her göreve veya mantıksal iş birimine benzersiz bir **Trace ID** (26 karakterlik bir ULID) atanır. Bu kimlik, commit mesajlarında, loglarda ve görev tablolarında kullanılarak ilk talepten nihai koda kadar kesintisiz bir izlenebilirlik zinciri sağlar.
156
193
 
157
194
  ---
158
195
 
159
- ## 🤖 JSON-First Ajan Ordusu ve Olgunluk Programı
196
+ ## 🤖 Ajan Ordusu
160
197
 
161
- Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinleri, Hermes iletişim kanallarını ve yetenek derecelendirmelerini tanımlayan güçlü tipli bir `agent.json` dosyası tarafından yönetilir.
198
+ Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinleri ve yetenek derecelendirmelerini tanımlayan güçlü tipli bir `agent.json` dosyası tarafından yönetilir.
162
199
 
163
200
  ### Çalışma Alanı Ajan Yolu:
164
- 👉 `[proje-kök-dizini]/.agents/agents/{agent_name}/agent.json`
201
+ 👉 `[proje-kök-dizini]/.gemini/agents/{agent_name}/agent.json`
202
+
203
+ ### Ajan Ordusuna Genel Bakış (v1.0 - 12 Uzman Ajan):
204
+
205
+ | Katman | Ajan | Yetenek | Rol & Alan | Ana Uzmanlık Alanı |
206
+ | :--- | :--- | :--- | :--- | :--- |
207
+ | **Core** | **@orchestrator** | **9.8/10** | Görev Kuyruğu Motoru | Paralel yürütme, stateful kuyruk kontrolleri, DAG yönetimi. |
208
+ | **Core** | **@manager** | **9.5/10** | Orkestrasyon & Yönetişim | Talep analizi, yüksek riskli dinamik imza kontrolü, onay mekanizması. |
209
+ | **Analiz** | **@analyst** | **9.6/10** | Kalite & Sözleşme Kapısı | Vitest/Cypress test denetimi, API kontrat sapma kontrolü, Sıfır-UI denetçisi. |
210
+ | **Analiz** | **@explorer** | **9.4/10** | Araştırma & Keşif | Kod yapısı desen eşleme, bağımlılık grafiği çıkarma, onboarding analizi. |
211
+ | **Geliştirme** | **@backend** | **9.2/10** | Domain Mantığı & DB | Fastify, Kysely veri tabanı sorguları, branded tipler, DomainError hiyerarşisi. |
212
+ | **Geliştirme** | **@frontend** | **9.0/10** | Akıcı Duyarlı Arayüz | React 19, Panda CSS stil token'ları, Sıfır-UI, WCAG 2.2 AA erişilebilirlik. |
213
+ | **Geliştirme** | **@native** | **8.9/10** | Native Yetenekler | Tauri/Electron kabuk koruması, Rust köprüleri, güvenli IPC kontratları. |
214
+ | **Geliştirme** | **@mobile** | **8.8/10** | Çoklu Platform Mobil | React Native/Expo akıcı görünümler, offline önbellek senkronizasyonu. |
215
+ | **Operasyon** | **@security** | **9.3/10** | Güvenlik & Uyum | OWASP tehdit tespiti, AST tabanlı statik sır taraması, CSP denetimi. |
216
+ | **Operasyon** | **@qa** | **9.1/10** | Kalite Güvence Kapısı | Birim/entegrasyon test kontrolü, kapsama metrikleri denetçisi. |
217
+ | **Operasyon** | **@git** | **9.1/10** | Versiyon Kontrolü | Semantik commit formatlama, atomik commit ayırma, faz snapshot'ları. |
218
+ | **Operasyon** | **@devops** | **9.0/10** | Altyapı & Deployment | Deployment boru hatları, konteyner kurulumları, ortam değişkenleri denetimi. |
219
+
220
+ ---
221
+
222
+ ## 🏛️ Agent Enderun: Detaylı Kod Tabanı Denetim Raporu (v0.8.0)
223
+
224
+ Çerçevenin (framework) çekirdek kod yapısı, operasyonel işleyişi, alt-üst ajan hiyerarşisi ve temizlenmiş mükerrer alanları en ince ayrıntısına kadar denetlenmiş ve belgelenmiştir:
165
225
 
166
- ### Ajan Ordusuna Genel Bakış:
226
+ ### 📂 1. Kapsamlı Klasör ve Dosya Yapısı Analizi
167
227
 
168
- | Ajan | Yetenek | Rol & Alan | Uzmanlık |
169
- | :--- | :--- | :--- | :--- |
170
- | **@manager** | **9.5/10** | Orkestrasyon & Yönetişim | Takım Lideri, niyet analizi, risk denetimi, onay |
171
- | **@backend** | **9.2/10** | Domain Mantığı & Veri Tabanı | NestJS/Express, DB migrasyonları, Branded Types |
172
- | **@frontend** | **9.0/10** | Akıcı Duyarlı Arayüz | Panda CSS, Zero-UI-Library ilkesi, erişilebilirlik |
173
- | **@analyst** | **9.6/10** | Doğrulama & Kalite (QA) | Vitest/Cypress, linter doğrulamaları, şema kontrolü |
174
- | **@explorer** | **9.4/10** | Araştırma & Keşif | API tarama, başlangıç noktası avı, desen eşleme |
175
- | **@git** | **9.1/10** | DevOps & Sürüm Kontrolü | Commit stratejileri, değişiklik günlüğü, dal yönetimi |
176
- | **@mobile** | **8.8/10** | Çoklu Platform Mobil | React Native/Expo, akıcı duyarlı mobil arayüzler |
177
- | **@native** | **8.9/10** | Native Yetenekler | Swift/Kotlin, native entegrasyonlar, derin linkler |
228
+ * **🧠 Çekirdek Komuta Klasörü (`.enderun/`):**
229
+ * Ajanların şablon kaynak dosyalarının yer aldığı ve hedef projede `.gemini/` (veya `.claude/` / `.cursor/`) olarak yeniden adlandırılan ana zeka merkezidir.
230
+ * **`agents/` (Ajan Tanımları & SOP'lar)**: 12 uzman ajanın davranış kurallarını barındırır. Her ajanın altında bir `agent.json` ve prompt/SOP dosyaları (`prompt.md`) bulunur. Durum makinesi şeması `schema/agent-lifecycle-schema.json` ile yönetilir.
231
+ * **`knowledge/` (Bilgi Bankası)**: Projenin anayasasını, sıfır UI kütüphanesi politikasını ve veri tabanı/kod standartlarını içeren 26 adet Markdown kılavuzunu barındırır. `corporate-governance/` alt klasöründe onay mekanizmaları, branded types hukuku ve audit loglama standartları gibi kurumsal düzeydeki 17 katı yönetişim kılavuzu yer alır.
232
+ * **`memory-graph/` (Bellek Grafiği)**: Ajanların etkileşim ağını (`graph.json`), ortak paylaştıkları doğruları (`shared-facts.json`) ve her bir ajanın yerel bağlam belleklerini (`agent-contexts/`) saklar.
233
+ * **`queue/` (Dosya Tabanlı Görev Kuyruğu)**: Asenkron ve paralel görevlerin yönetildiği dizindir. `pending/`, `processing/`, `completed/` ve `failed/` alt dizinleri sayesinde Trace ID üzerinden asenkron görev takibi yapılır.
234
+ * **`logs/` (Aksiyon Günlükleri)**: Ajanların gerçekleştirdiği tüm mutasyonları Trace ID (ULID) ile damgalayarak JSON formatında saklar (Örn: `backend.json`, `analyst.json`).
235
+
236
+ * **🔌 Model Context Protocol (MCP) Katmanı (`framework-mcp/`):**
237
+ * Ajanların IDE (Gemini, Claude, Cursor) ile konuşmasını ve yerel sistemdeki dosyaları güvenle manipüle etmesini sağlayan ana entegrasyon paketidir.
238
+ * **`src/tools/`**: 13 adet çekirdek MCP araç modülünü (kod tabanı aramaları, bellek kilit protokolleri, kontrat doğrulamaları, statik AST analizli güvenlik taramaları vb.) barındırır.
239
+ * **`src/schemas.ts`**: MCP araçlarına gönderilen parametrelerin tip güvenliğini Zod şemalarıyla denetler (Gereksiz/pasif şemalar temizlenmiştir).
240
+ * **`src/index.ts`**: MCP sunucusunun stdio üzerinden IDE ile bağlantısını kuran ana giriş kapısıdır.
241
+
242
+ * **🚀 Çalıştırılabilir Dizin & CLI (`bin/` ve `src/cli/`):**
243
+ * **`bin/cli.js`**: `npx tsx src/cli/index.ts` komutunu sarmalayan çalıştırılabilir binary giriş noktasıdır.
244
+ * **`src/cli/index.ts`**: Projeyi platformlara göre (`gemini`, `claude`, `cursor`) scaffold eden ve sağlık kontrollerini (`check`, `status`) koordine eden çekirdek CLI motorudur.
245
+ * **`bin/hermes-sandbox.js`**: Ajanlar arası Yüksek Riskli İşlem ve dynamic onay (`managerApproval`) mesajlaşma akışını yerel olarak simüle eden test sandbox'ıdır.
246
+
247
+ ### 🧹 2. Gerçekleştirilen v1.0 Kritik Temizlik ve Düzenlemeler
248
+
249
+ * **Ajan Promptlarındaki Çöp Veriler Temizlendi:** `analyst`, `backend`, `mobile` ve `native` promptlarının sonundaki bozuk mükerrer satırlar ve generic raporlama blokları tamamen kaldırılmıştır.
250
+ * **Ölü MCP Kodları / Araçları Ayıklandı:** `schemas.ts` içindeki 8 adet pasif/unimplemented araç şeması ayıklanmış ve promptlardaki ölü araç referansları temizlenmiştir.
251
+ * **Olmayan Klasör Referansları Onarıldı:** Olmayan `.enderun/blueprints/` klasör referansları, `.enderun/knowledge/` altındaki aktif rehberlerle başarılı şekilde değiştirilmiştir.
252
+ * **Çoklu Platform ve Kök Senkronizasyonu Sağlandı:** `gemini.md`, `claude.md` ve `cursor.md` dosyaları şablon ve kök dizinde senkronize edilerek CLI dağıtımına hazır hale getirilmiştir.
253
+
254
+ ### 👑 3. Ajan Ordusu Hiyerarşisi ve Çalışma Akışı
255
+
256
+ * **Üst Ajan (Lead):** `@manager` her zaman varsayılan liderdir. Projedeki tüm alt görevler onun brifingi ile başlar.
257
+ * **Alt Ajanlar (Specialists):** `@backend`, `@frontend`, `@security` vb. uzman ajanlar kendilerine atanan asenkron görevleri yapar.
258
+ * **Kalite Kapısı:** `@analyst` ve `@security` yapılan geliştirmelerin anayasaya uygunluğunu denetlemeden hiçbir kod parçası staging/commit aşamasına geçemez.
178
259
 
179
260
  ---
180
261
 
181
- ## ⚡ Hızlı Başlangıç
182
262
 
183
- ### 1. Kurulum ve Başlatma
263
+ ## Hızlı Başlangıç ve İş Akışı
184
264
 
185
- Framework'ü projenizde başlatmak için aşağıdaki adımları takip edin:
265
+ ### 1. Kurulum
266
+
267
+ Framework'ü projenize kurmak ve başlatmak için aşağıdaki adımları takip edin:
186
268
 
187
269
  ```bash
188
- # 1. Framework'ü başlatın (.agents yapısını kurar)
189
- npx agent-enderun init
270
+ # 1. Framework'ü Gemini CLI için başlatın
271
+ npx agent-enderun init gemini
190
272
 
191
- # 2. Bağımlılıkları yükleyin
273
+ # 2. Bağımlılıkları yükleyin (istendiği gibi)
192
274
  npm install
193
275
 
194
- # 3. Çekirdek MCP sunucusunu derleyin
276
+ # 3. Framework'ün dahili araçlarını derleyin (istendiği gibi)
195
277
  npm run enderun:build
196
278
 
197
- # 4. Kurulumu ve sağlığı doğrulayın
279
+ # 4. Kurulumu ve proje sağlığını doğrulayın
198
280
  npx agent-enderun check
199
281
  ```
200
282
 
201
- ### 2. Ajanlar İçin Başlangıç Adımı (Zorunlu)
202
- Her oturumun başında, aktif ajan mutlaka:
203
- 1. Proje bağlamını, izleme kimliğini (trace ID) ve aktif görevleri geri yüklemek için **derhal `.agents/PROJECT_MEMORY.md`** dosyasını okumalıdır.
204
- 2. Rolüne özgü davranış kurallarını ve kontrol listelerini yüklemek için **derhal `.agents/agents/manager/agent.json`** dosyasını okumalıdır.
283
+ ### 2. Örnek İş Akışı: Yeni Bir Özellik Ekleme
284
+
285
+ Agent Enderun'u yeni bir özellik geliştirmek için nasıl kullanacağınız aşağıda açıklanmıştır:
286
+
287
+ **Adım 1: Görevi Tanımlayın**
288
+ Projenizin `docs/` klasöründe yeni bir dosya oluşturun (örn. `docs/yeni-ozellik-isteği.md`) ve istediğiniz özelliği tanımlayın.
289
+
290
+ **Adım 2: Yeni Bir İz (Trace) Oluşturun**
291
+ `PROJECT_MEMORY.md`'de yeni bir görev oluşturmak için CLI'yi kullanın. Bu, benzersiz bir Trace ID oluşturur.
292
+
293
+ ```bash
294
+ npx agent-enderun trace:new "docs/yeni-ozellik-isteği.md'ye göre kullanıcı profili sayfasını uygula" @manager P1
295
+ ```
296
+
297
+ **Adım 3: Ajan Orkestrasyonu (Otomatik)**
298
+ `@manager` ajanı (varsayılan AI kişiliği) şunları yapacaktır:
299
+ 1. `PROJECT_MEMORY.md`'yi okuyacak ve yeni görevi görecektir.
300
+ 2. `docs/yeni-ozellik-isteği.md`'deki talebi analiz edecektir.
301
+ 3. Bir plan oluşturacak ve `@explorer`, `@backend` ve `@frontend` gibi uzman ajanlara resmi "brifingler" verecektir.
302
+
303
+ **Adım 4: Geliştirme ve Doğrulama (Otomatik)**
304
+ - Uzman ajanlar, anayasal kurallara göre görevlerini yerine getirir (örneğin, `@backend` API'yi ve tipleri oluşturur, ardından `@frontend` kullanıcı arayüzünü oluşturur).
305
+ - `@analyst`, yapılan işi proje standartlarına göre otomatik olarak doğrular.
306
+ - `@git`, Trace ID ile etiketlenmiş atomik `commit`'ler oluşturur.
307
+
308
+ **Adım 5: İlerlemeyi İzleyin**
309
+ `status` komutuyla ilerlemeyi istediğiniz zaman kontrol edebilirsiniz:
310
+
311
+ ```bash
312
+ npx agent-enderun status
313
+ ```
314
+ Bu, aktif aşamayı, engelleri ve tüm aktif görevlerin durumunu gösterecektir.
315
+
316
+ ---
317
+
318
+ ## 🛠️ CLI Komutları
319
+
320
+ Agent Enderun, projeyi yönetmek için güçlü bir komut satırı araç seti ile birlikte gelir.
205
321
 
322
+ | Komut | Açıklama |
323
+ | :--- | :--- |
324
+ | `npx agent-enderun init [adapter]` | Framework'ü mevcut projede başlatır. `gemini` varsayılan ve önerilen adaptördür. |
325
+ | `npx agent-enderun check` | Gerekli tüm dosyaların ve yapılandırmaların mevcut olduğundan emin olmak için projede bir sağlık kontrolü çalıştırır. |
326
+ | `npx agent-enderun status` | `PROJECT_MEMORY.md`'den mevcut proje durumunu, aktif görevleri ve engelleri gösterir. |
327
+ | `npx agent-enderun trace:new "<açıklama>" [ajan] [öncelik]` | Benzersiz bir Trace ID ile yeni bir görev oluşturur ve bunu `PROJECT_MEMORY.md`'ye ekler. |
328
+ | `npx agent-enderun create-app "<açıklama>"` | (Takma adlar: `new`, `start`) Doğal dil tanımından yeni bir tam yığın uygulama (backend + web) oluşturur. |
329
+ | `npx agent-enderun verify-contract` | `contract.version.json`'da saklanan `hash` ile mevcut kodu karşılaştırarak paylaşılan backend tiplerinin bütünlüğünü doğrular. |
206
330
  ---
207
331
 
208
332
  **Agent Enderun is not just a tool. It is a complete operating system for professional, risk-aware, AI-assisted software development.**