Developer builds CLI tool to strip AI responses down to code and key conclusions
A developer has released a open-source command-line tool called concise-md that filters lengthy AI-generated answers into three sections: a conclusion, minimal code, and verification steps. The tool works by piping Markdown input through a rule-based parser that uses regex to split content by headings and isolate code blocks, without making any additional LLM calls. A key design decision was to leave code blocks entirely untouched after testing revealed that summarizing code caused subtle bugs, such as re-running calculations on already-processed data. The tool runs in approximately 0.02 seconds, requires Python 3.11 or later, has zero external dependencies, and passes short answers through unchanged to avoid unnecessary restructuring. In testing, an 88-line English answer was reduced to 46 lines and a 57-line Japanese answer to 26 lines, though the tool cannot assess whether the underlying content is correct.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in