Tool for writing files during coding tasks.
// Source: https://github.com/Bitterbot-AI/bitterbot-desktop | License: MIT | Copyright 2025-2026 Victor Michael Gil / Bitterbot AI // Provided via justclaw.it.com; keep this notice with the code. /** * PLAN-52 Phase 5: the `write` file tool. * * Vendored from pi-coding-agent 0.73.1 (MIT, Mario Zechner / pi-mono), * `core/tools/write.ts`: `createWriteTool` (pi's `createWriteToolDefinition` * passed through its `wrapToolDefinition`), `WriteOperations`, * `WriteToolOptions`, `WriteToolInput`. * * Name, label, description, parameter schema, result text and error texts are * the same as pi's, byte for byte. The description and the schema are sent to * the model, so a changed character there changes the prompt cache prefix. * * Differences from the original: * * 1. Schema library. ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key