{"slug": "maintaining-prompts-instead-of-code", "title": "Maintaining Prompts Instead of Code", "summary": "A developer reported that a local model, Ternary Bonsai 2, generated the parse_prompt function returning ParsedPromptInfo from a 180-line Markdown specification in about 30 minutes, producing 300-400 lines of Rust with 3 small compile-time errors that were fixed. The developer now plans to maintain the prompt Markdown file rather than the generated Rust code, regenerating it with models such as GPT-6 Astra or Claude Fable when optimizations or new features are needed.", "body_md": "So I wrote a 180-line **Markdown file** containing a detailed **specification** of a parsing function needed in my program. I used a local model (Ternary Bonsai 2) to generate the `parse_prompt` function (which returns `ParsedPromptInfo`) in about 30 minutes.\n\nThe code was mostly correct, although there were 3 small **compile-time errors** that I fixed. Now my plan is to **maintain the prompt file** instead of the Rust code. This means:\n\n• If I want to optimize the code, I could buy tokens and have GPT-6 Astra or Claude Fable follow the prompt from scratch (I could add a note that I want performance optimizations).\n\n• If I want a different feature, I could just change the prompt file and then have a model rewrite the code.\n\nFor now, the **first iteration** from Bonsai was **enough** for my needs—it was 300-400 lines of Rust. As the entire file is just generated code, I should not maintain it directly—it would be better for me to just maintain the prompt Markdown file.", "url": "https://wpnews.pro/news/maintaining-prompts-instead-of-code", "canonical_source": "https://www.dotnetperls.com/2026_9_21_maintaining-prompts-instead-code", "published_at": "2026-09-21 07:00:00+00:00", "updated_at": "2026-09-21 14:56:28.092211+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "large-language-models", "ai-products"], "entities": ["Ternary Bonsai 2", "GPT-6 Astra", "Claude Fable", "Rust", "parse_prompt", "ParsedPromptInfo"], "alternates": {"html": "https://wpnews.pro/news/maintaining-prompts-instead-of-code", "markdown": "https://wpnews.pro/news/maintaining-prompts-instead-of-code.md", "text": "https://wpnews.pro/news/maintaining-prompts-instead-of-code.txt", "jsonld": "https://wpnews.pro/news/maintaining-prompts-instead-of-code.jsonld"}}