{"slug": "replacing-scripts-with-ai-markdown-files", "title": "Replacing Scripts with AI Markdown Files", "summary": "A developer proposes replacing traditional Bash scripts with Markdown files processed by local AI agents, arguing that code is a maintenance burden. Using llama-cpp's tool-use feature, an AI agent like Gemma 4 12B or Qwen 3.6 35B can read a Markdown file and execute its instructions as a natural-language program, though the approach risks low-quality LLM outputs and the Markdown file becoming a similar liability.", "body_md": "**Code** is basically a **burden** or **liability**—it has to be maintained. If a file is moved, a Bash script that depends on that file can fail. The more code you have, the more you must maintain; and this can become overwhelming and turn into a full-time job.\n\nI have wondered how **local AI agents** like those supported by `llama-cpp`\n\ncan reduce this problem. This is particularly interesting now that `llama-cpp`\n\nhas **tool use**—just enable the \"tools all\" option on the command line.\n\nInstead of a \"something.sh\" Bash file, it is possible to use a Markdown file \"something.md\" and have an AI agent process it.\n\n• Use a prompt with Gemma 4 12B or Qwen 3.6 35B and tell it to read the file and follow the instructions.\n\n• The Markdown file thus fully replaces the script—essentially a natural-language program.\n\nThere are of course some **problems** with this approach. A low-quality LLM may not follow the instructions correctly. And the Markdown file itself becomes the **same sort** of **liability** that the Bash file used to be—although the instructions in a Markdown file may be easier to maintain.", "url": "https://wpnews.pro/news/replacing-scripts-with-ai-markdown-files", "canonical_source": "https://www.dotnetperls.com/2026_7_21_replacing-scripts-ai-markdown", "published_at": "2026-07-21 07:00:00+00:00", "updated_at": "2026-07-21 19:14:08.153302+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "large-language-models", "developer-tools"], "entities": ["llama-cpp", "Gemma 4 12B", "Qwen 3.6 35B"], "alternates": {"html": "https://wpnews.pro/news/replacing-scripts-with-ai-markdown-files", "markdown": "https://wpnews.pro/news/replacing-scripts-with-ai-markdown-files.md", "text": "https://wpnews.pro/news/replacing-scripts-with-ai-markdown-files.txt", "jsonld": "https://wpnews.pro/news/replacing-scripts-with-ai-markdown-files.jsonld"}}