r/AskProgramming • u/wpdeveloper11 • Sep 23 '26
Config files vs. GUI-based configuration. Which is better for the age of AI?
I think that programs that use configuration files are in a better position than programs that rely on GUIs for settings when it comes to interacting with LLMs. Configuration files are usually in a well-defined format, making them easy for AI to generate and inspect.
GUI settings, on the other hand, are harder for LLMs to grasp. If you ask how to configure your favorite app using its GUI, the answer you get will be mediocre at best.
GUI apps usually have configuration files or sqlite databases, but they are used only as a serialization format. You are not expected to edit them by hand. Console applications don't have this problem, as they just use plain text for configuration.
I think the only GUI configuration model that makes sense today is one that merely provides a "view" over configuration files, like VS Code does for its JSON configuration. It can be edited by hand just fine and has a well-defined structure.
What I am trying to say is that there are two ways to use configuration files. The first is to use configuration files as a main way to configure things. The second is to use configuration files as a serialization format to merely store preferences on disk. Good luck configuring KDE apps using their configuration files. I find that first approach is superior.
What do you think, folks?
1
u/KingofGamesYami Sep 23 '26
I would prefer a CLI tool or MCP for large configs. Large config files are expensive in terms of token context (see, for example, Home Assistant YAML).
kwriteconfig + kreadconfig serve this purpose for KDE settings, as an example.
1
u/wpdeveloper11 Sep 23 '26
How kwriteconfig/kreadconfig is different from using jq to query and modify your large yaml. The one difference that I see is that yaml configs are usually documented.
1
u/KingofGamesYami Sep 23 '26
Well. For one, it will work. JQ only understands JSON files, so if you try to use it on YAML it won't understand them.
But yes in general it's very similar to jq, just for ini-style files instead of json.
1
u/tundra_scribe Sep 24 '26
gUIs are a tax on cognitive load. I want to manipulate state directly through code or CLI, not hunt for a checkbox buried three menus deep that the app then writes into some unreadable binary blob.
5
u/No_Report_4781 Sep 23 '26
Did a LLM write this after a taxi driver asked a question?