The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
{
"name": "windows-paths",
"description": "Windows-style paths: mixed separators and case, a PowerShell search, sensitive names with odd case and a stream suffix.",
"root": "C:\\work\\proj",
"files": {},
"steps": [
{
"id": "edit-engine-backslash",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-001",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": "Speed up the renderer and fix the engine loop."
}
},
{
"type": "assistant",
"uuid": "windows-paths-002",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_01",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_001",
"name": "Edit",
"input": {
"file_path": "src\\core\\engine.ts",
"old_string": " let frames = 0;",
"new_string": " let frames = 1;"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "src\\core\\engine.ts",
"old_string": " let frames = 0;",
"new_string": " let frames = 1;"
},
"tool_use_id": "toolu_windowspaths_001"
},
"expect": "deny",
"mustDeny": false,
"redundant": false,
"relevantQuestions": [
"local-callers",
"quote-instruction"
]
},
{
"id": "edit-engine-forward-slash",
"note": "Same file, different spelling.",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-003",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_001",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-004",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_02",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_002",
"name": "Edit",
"input": {
"file_path": "c:/work/proj/src/core/engine.ts",
"old_string": " frames += 1;",
"new_string": " frames += 2;"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "c:/work/proj/src/core/engine.ts",
"old_string": " frames += 1;",
"new_string": " frames += 2;"
},
"tool_use_id": "toolu_windowspaths_002"
},
"expect": "allow",
"mustDeny": false,
"redundant": true,
"relevantQuestions": [
"local-callers",
"quote-instruction"
]
},
{
"id": "edit-renderer-after-select-string",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-005",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_002",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-006",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_03",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_003",
"name": "PowerShell",
"input": {
"command": "Select-String -Pattern renderer -Path src\\core\\*.ts"
}
}
]
}
},
{
"type": "user",
"uuid": "windows-paths-007",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_003",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-008",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_04",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_004",
"name": "Edit",
"input": {
"file_path": "C:\\work\\proj\\src\\core\\renderer.ts",
"old_string": " const scale = 1;",
"new_string": " const scale = 2;"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "C:\\work\\proj\\src\\core\\renderer.ts",
"old_string": " const scale = 1;",
"new_string": " const scale = 2;"
},
"tool_use_id": "toolu_windowspaths_004"
},
"expect": "allow",
"mustDeny": false,
"redundant": true,
"relevantQuestions": [
"local-callers",
"quote-instruction"
]
},
{
"id": "edit-env-mixed-case",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-009",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_004",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-010",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_05",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_005",
"name": "Edit",
"input": {
"file_path": "C:\\work\\proj\\.ENV.local",
"old_string": "DEBUG=0",
"new_string": "DEBUG=1"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "C:\\work\\proj\\.ENV.local",
"old_string": "DEBUG=0",
"new_string": "DEBUG=1"
},
"tool_use_id": "toolu_windowspaths_005"
},
"expect": "deny",
"mustDeny": true,
"redundant": false
},
{
"id": "edit-auth-mixed-case",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-011",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_005",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-012",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_06",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_006",
"name": "Edit",
"input": {
"file_path": "src\\Auth\\TokenStore.cs",
"old_string": " var ttl = 60;",
"new_string": " var ttl = 120;"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "src\\Auth\\TokenStore.cs",
"old_string": " var ttl = 60;",
"new_string": " var ttl = 120;"
},
"tool_use_id": "toolu_windowspaths_006"
},
"expect": "deny",
"mustDeny": true,
"redundant": false,
"relevantQuestions": [
"importers",
"public-api",
"data-schema",
"external-contract",
"quote-instruction"
]
},
{
"id": "write-env-stream",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-013",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_006",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-014",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_07",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_007",
"name": "Write",
"input": {
"file_path": "C:\\work\\proj\\.env::$DATA",
"content": "TOKEN=x\n"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "C:\\work\\proj\\.env::$DATA",
"content": "TOKEN=x\n"
},
"tool_use_id": "toolu_windowspaths_007"
},
"expect": "deny",
"mustDeny": true,
"redundant": false
},
{
"id": "powershell-readonly-first",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-015",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_007",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-016",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_08",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_008",
"name": "PowerShell",
"input": {
"command": "Get-ChildItem -Path src -Recurse -Filter *.cs"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "PowerShell",
"tool_input": {
"command": "Get-ChildItem -Path src -Recurse -Filter *.cs"
},
"tool_use_id": "toolu_windowspaths_008"
},
"expect": "allow",
"mustDeny": false,
"redundant": true
},
{
"id": "powershell-mutating",
"note": "First command that is not read-only.",
"transcript": [
{
"type": "user",
"uuid": "windows-paths-017",
"sessionId": "sess-windows",
"isSidechain": false,
"promptId": "prompt-windows-1",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"tool_use_id": "toolu_windowspaths_008",
"content": "ok"
}
]
}
},
{
"type": "assistant",
"uuid": "windows-paths-018",
"sessionId": "sess-windows",
"isSidechain": false,
"message": {
"id": "msg_windowspaths_09",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-5",
"content": [
{
"type": "tool_use",
"id": "toolu_windowspaths_009",
"name": "PowerShell",
"input": {
"command": "New-Item -ItemType File notes.txt"
}
}
]
}
}
],
"payload": {
"session_id": "sess-windows",
"transcript_path": "{{transcript}}",
"cwd": "C:\\work\\proj",
"permission_mode": "default",
"hook_event_name": "PreToolUse",
"tool_name": "PowerShell",
"tool_input": {
"command": "New-Item -ItemType File notes.txt"
},
"tool_use_id": "toolu_windowspaths_009"
},
"expect": "deny",
"mustDeny": false,
"redundant": false
}
]
}