# Moderation tool for formatting code with AI

**URL:** https://meta.discourse.org/t/moderation-tool-for-formatting-code-with-ai/347980
**Category:** Feature
**Tags:** ai
**Created:** [January 20, 2025, 8:35am UTC](https://meta.discourse.org/t/moderation-tool-for-formatting-code-with-ai/347980 "2025-01-20T08:35:38Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 3, 2025, 6:08am UTC](https://meta.discourse.org/t/moderation-tool-for-formatting-code-with-ai/347980/11 "2025-04-03T06:08:16Z")

</div>

We could swing something like this with persona triage and a custom tool

Persona triage (gpt 4o mini) → custom tool → llm to fix (gpt 4o) → api to submit edit

The challenge though is how comfortable are we allowing the llm to apply the edit with zero hallucinations?

A possibility could be having the llm to fix call return 2 line numbers (where code starts and where it ends) and then use that information to add backticks, that way there is a lot less risk of destruction.

Will have a further think about this, but I do think something is workable here.

---

_[View the full topic](https://meta.discourse.org/t/moderation-tool-for-formatting-code-with-ai/347980)._
