Agentedit cli
CLI utilities for AI agents - fast Go replacements for common Python tools
npx -y skills add SebastianBoehler/agent-cli-utils --skill agentedit-cliAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Apply deterministic targeted file edits with the local `agentedit` CLI. Use when an agent needs exact-match replacements, anchored inserts, line-range updates, or whole-file writes from a JSON or YAML edit spec.
SKILL.md
1.7 KB, 366 tokens by cl100k_base, as published. Nobody here has run it
AgentEdit CLI
Use agentedit for safe, targeted file changes. Prefer it over broad patch parsing when the caller can describe edits as explicit replacements, inserts, line-range updates, appends, or writes.
Invoke the Tool
Prefer the installed binary when it exists:
agentedit -spec edits.yaml
If working inside this repository or the binary is not installed, run:
go run ./cmd/agentedit -- -spec edits.yaml
Choose Actions
- Use
replacefor one exact old-to-new substitution. - Use
replacewithreplace_all: trueonly when every match should change. - Use
insert_beforeorinsert_afterwith one exactanchor. - Use
replace_linesfor deterministic line-range rewrites. - Use
appendto add content at the end of a file. - Use
writefor full-file replacement or creation.
Apply Good Defaults
- Keep
-fail-on-noop=trueso missed matches fail loudly. - Use
-dry-runfirst when the edit target may have drifted. - Prefer narrow anchors and exact old strings to avoid ambiguity.
- Set
create: trueonly when the task really intends to create a file.
Example Spec
edits:
- path: README.md
action: replace
old: "Small Go CLIs"
new: "Small, deterministic Go CLIs"
- path: config.toml
action: insert_after
anchor: "[server]\n"
new: "port = 8080\n"
Run it:
go run ./cmd/agentedit -- -spec edits.yaml -dry-run -format text
What ships with it: 1 file
209 B alongside SKILL.md
agents/
- openai.yaml209 B