Agent Protocol & Architectural Mandate — Project Management agent for Claude Code
Version: 2.10.5 Target Project: git-mcp-server Last Updated: 2026-03-25 This document defines the operational rules for contributing to this codebase.
How to install Agent Protocol & Architectural Mandate
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cyanheads/git-mcp-server and copy the folder into
~/.claude/agents/.
What Agent Protocol & Architectural Mandate does
**Version:** 2.10.5 **Target Project:** git-mcp-server **Last Updated:** 2026-03-25 This document defines the operational rules for contributing to this codebase. Follow it exactly. > **Note on File S
Alternatives in Project Management
- Fable5 Apfel Engineer — Heavy-lifting Fable-5 engineer for the apfel project (Apple on-device FoundationModels CLI + OpenAI-compatible 6.3k ★
- Contributing To MCP Apps SDK — We welcome contributions to the MCP Apps SDK 2.1k ★
- Lsp — LSP features specialist 538 ★
README
Agent Protocol & Architectural Mandate
**Version:** 2.10.5 **Target Project:** git-mcp-server **Last Updated:** 2026-03-25
This document defines the operational rules for contributing to this codebase. Follow it exactly.
**Note on File Synchronization**: `AGENTS.md` is a symlink to `CLAUDE.md`. **Edit only `CLAUDE.md`** — `AGENTS.md` will reflect changes automatically.
I. Core Principles (Non-Negotiable)
**The Logic Throws, The Handler Catches**
- Tools: Implement pure, stateless business logic inside tool logic functions. No
try/catchblocks. - Resources: Same rule — pure read logic, no
try/catch. - On Failure: Throw
new McpError(...)with the appropriateJsonRpcErrorCodeand context. - Framework's Job:
createMcpToolHandlerwraps tool logic: createsRequestContext, measures execution viameasureToolExecution, formats the response, catches errors.createToolHandlerwraps git-specific logic: resolves DI dependencies and working directory before calling your pure logic.- Resource handlers (
resourceHandlerFactory) validate params, invoke logic, applyresponseFormatter, and catch errors.
- Tools: Implement pure, stateless business logic inside tool logic functions. No
**Full-Stack Observability**
- OpenTelemetry is preconfigured. Logs and errors are automatically correlated to traces.
measureToolExecutionautomatically records duration, success, payload sizes, and error codes for every tool call.- Do not add custom spans in tool/resource logic. The framework handles instrumentation.
**Structured, Traceable Operations**
- Tool logic receives dependencies via
ToolLogicDependencies(which includesappContextandsdkContext). appContext(RequestContext): Internal logging/tracing context withrequestId,sessionId,tenantId,traceId.sdkContext(SdkContext): MCP SDK protocol capabilities —signal,sendNotification,sendRequest,authInfo.- Pass
appContextthrough your internal call stack. Use the globalloggerwithappContextin every log call.
- Tool logic receives dependencies via
**Decoupled Storage**
- Never directly access persistence backends from tool/resource logic.
- Use
StorageService(injected via DI) for session state (working directory persistence). - Git operations execute via the
IGitProviderinterface, not direct CLI calls.
**Graceful Degradation in Development**
- When
tenantIdis missing, default to permissive behavior:const tenantId = appContext.tenantId || 'default-tenant'; - Auth/scope checks default to allowed when auth is disabled.
- Production environments with auth enabled provide real
tenantIdfrom JWT claims automatically.
- When
II. Directory Structure
| Directory | Purpose |
|---|
Related Agents
Claudemd Maintainer
AUTOMATICALLY invoke after sessions where codebase changes were made (new files, updated dependencies, changed
Note Reader
Recalls the developer's local research notes - canonical knowledge about a module/topic, plus per-task context
Change Request Intake
Turns a raw, informal ETF page change request (a meeting note, email, Teams message, Jira ticket, or verbal re
Ark Protocol Orchestrator
Orchestrates multi-phase Ark feature development using the task folder protocol. Manages task lifecycle, coord
Crd Context Updater
Incremental context update agent. Uses git diff to identify changes since last context update and updates only
Project Manager Backlog
Use this agent when you need to manage project tasks using the backlog.md CLI tool. This includes creating new
Related Skills
Session Planner
You are the Session Planner Wizard. Your job is to interview the user and generate a complete, ready-to-use SE
Polywave Protocol
Language-agnostic coordination protocol for parallel AI agents. Defines invariants, execution rules, and messa
Cos
Chief of staff agent for operational tasks — cross-project status checks, routing incoming work, follow-up tra