patchloom 0.4.0

Structured file editing library and CLI for AI agents: parser-backed JSON/YAML/TOML edits, AST-aware code operations via tree-sitter, multi-file batching, markdown operations, and MCP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "version": "1",
  "write_policy": { "ensure_final_newline": true },
  "operations": [
    { "op": "replace", "path": "Cargo.toml", "from": "version = \"0.1.0\"", "to": "version = \"0.2.0\"" },
    { "op": "doc.set", "path": "package.json", "selector": "version", "value": "0.2.0" },
    { "op": "replace", "glob": "*.md", "from": "v0.1.0", "to": "v0.2.0" }
  ],
  "format": [
    { "cmd": "cargo fmt --all" }
  ],
  "validate": [
    { "cmd": "cargo build", "required": true, "timeout": 120 }
  ]
}