---
title: "format-on-edit"
description: "Runs the project's own formatter (Prettier, Biome, gofmt, Ruff, rustfmt and others) on every file the agent writes or edits, and tells the agent which lines moved. Nothing is downloaded: a formatter runs only when the pr"
canonical: https://agentpluginsdirectory.com/plugins/format-on-edit
last-updated: 2026-10-25
---

# format-on-edit
Runs the project's own formatter (Prettier, Biome, gofmt, Ruff, rustfmt and others) on every file the agent writes or edits, and tells the agent which lines moved. Nothing is downloaded: a formatter runs only when the project uses it and it is installed.
- Slug: format-on-edit
- Publisher: Stigmer
- Repository: https://github.com/stigmer/stigmer
- Manifest: plugins/format-on-edit/plugin.json
- Version: 1.0.0
- License: Apache-2.0
- Category (editorial): other
- Skills: 0
- MCP servers: 0
- Stars: 8
- Repository created: 2026-01-17
- Repository last pushed: 2026-10-25
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/format-on-edit
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What format-on-edit does, in the publisher's words

Runs the project's own formatter on every file the agent writes or edits, right after the change, and tells the agent which lines moved. A TypeScript project that uses Prettier gets its files back in Prettier's layout; a Go file gets gofmt; a Python project configured for Ruff gets ruff format. The change a person reviews is already formatted, and the agent's next edit re-reads the lines the formatter moved instead of quoting text that is no longer there.

The plugin does nothing until it is listed:

- On an agent: Add to an agent on the plugin's page, or in the agent's YAML plugins: [{kind: plugin, slug: format-on-edit}]. Every conversation with that agent formats.
- On one conversation: Start a chat on the plugin's page, or stigmer run --plugin format-on-edit.

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/stigmer/stigmer/HEAD/plugins/format-on-edit/README.md
