name: fix
description: "Use proactively โ without being asked โ in two situations: (1) when performing a document review, write findings as ๐ค{} markers inline in the file rather than a separate report; (2) when a file contains ๐ค inline markers to process, apply them. Invoked as /fix for processing markers."
Inline Review
Process ๐ค inline feedback markers in a file, following parley.nvim's review protocol.
Usage
/xx-review <path-to-file>
Marker Format
Single marker ๐ค. [] = human turns, {} = agent turns. Sections alternate in any order.
๐ค[human comment]{agent response}[human reply]{agent response}...
๐ค{agent finding}[human response]{agent follow-up}...
- Ready for agent = last section is
[](human spoke last) - Pending = last section is non-empty
{}(agent spoke last, awaiting human)
Markers inside fenced code blocks are ignored.
Process
- Read the file from the supplied path
- Check for YAML frontmatter at the top of the file. If
sourcesandsource_precedenceare present, load them โ use these to guide re-research when a marker flags a factual correction. Prefer sources in the stated precedence order (typically: codebase > Jira > doc text). If no frontmatter, proceed without re-research guidance. - Parse all ๐ค markers, identifying:
- Ready markers (last section is
[]): process these - Pending markers (last section is
{}): leave these untouched
- Ready markers (last section is
- For each ready marker, read the comment/conversation history, then:
- Read the human's last
[response]โ it is the instruction to act on - If the comment is a factual correction: consult the frontmatter sources (if present) to verify and re-research before rewriting โ do not just rephrase the existing text
- If the comment is a correction or rewrite request: apply the change to the surrounding text and remove the marker
- If the human's response is unclear: append
{clarifying question}to the marker and leave it in place - If acknowledged and done: remove the marker entirely
- Read the human's last
- Write the modified file back to the same path
- Report what was changed and what markers remain pending
Responding to AI Critiques
When a ๐ค-> critique line is followed by a ๐ค[] marker, this is the human responding to the AI's critique with instructions:
Some text the author wrote.
๐ค-> This claim needs grounding. Your experience with Y would be the evidence.
๐ค[good point, weave in my example from last week's tool system build]
In this case:
- Read the
๐ค->critique to understand the problem - Read the
๐ค[]to understand the human's instruction for resolving it - Apply the human's instruction to the text before the
๐ค->line - Remove both the
๐ค->line and the๐ค[]marker - If the human's instruction is unclear, add
{question}to the marker and leave both lines in place
Rules
- Preserve all text outside of markers exactly as-is
- Preserve
๐ค->lines that do NOT have a๐ค[]marker after them (unresolved critiques the human hasn't addressed yet) - A marker refers to the text before it, up to the previous natural boundary (paragraph, bullet, section). In a typical reading flow, you read and comment at the end of what you just read
- Only modify text that a marker refers to (the preceding paragraph, bullet, or section)
- Exception: if the marker explicitly mentions a bigger or different scope (e.g. "this whole article", "the next section about XXX", "all the bullet points above"), follow what the marker says instead of defaulting to the preceding block
- When removing a marker, leave the corrected text in place with no trace of the marker
- When adding an agent question, append
{question}inside the existing marker - Respect the user's voice and style in the surrounding document
- Do not rewrite sections that have no markers