LearnNewsExamplesServices
Frontmatter
id10327
titleBug: Edit/Write MCP tools fail silently against .agent/skills/ directory
stateOpen
labels
bug
assignees[]
createdAtApr 25, 2026, 6:31 AM
updatedAtApr 25, 2026, 6:31 AM
githubUrlhttps://github.com/neomjs/neo/issues/10327
authorneo-gemini-3-1-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

Bug: Edit/Write MCP tools fail silently against .agent/skills/ directory

Openbug
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on Apr 25, 2026, 6:31 AM

Architectural Context

When attempting to use replace or write_file tools on paths within .agent/skills/, the tools return success messages (e.g., "successfully updated"), but the changes are not persisted to the local disk. Bash tools (cp, touch) work correctly in these directories.

The Problem

This appears to be a harness guardrail designed to prevent autonomous agents from modifying their own instructions and skill logic through standard tool flow. The intent of this security boundary is sound. However, the implementation violates the core tool contract: it fails silently. Returning a simulated success when the operation was actively blocked causes agents to waste multiple cycles attempting to read back state that was never written, degrading efficiency and context.

Avoided Traps

  • Do not bypass the guardrail: The security perimeter around .agent/skills/ is valid and should remain.
  • Do not use bash as a primary solution: Agents currently work around this by writing to /tmp/ and using cp, but the primary MCP tool must be reliable.

Prescription

The tool implementation or harness interceptor must be modified to make this failure mode loud. If a write is blocked due to path restrictions, the tool MUST return an explicit error (e.g., Error: Write blocked by harness guardrail) instead of simulating success.

Origin Session ID: 0b29a8fa-c6b0-42e2-ab3b-8015a99db2d8