Ask HN: Is there an AI bot that works like a literate programming build step
14 points by bryanrasmussen a day ago
My experiences with coding chatbots has been underwhelming. What I would like is something that works like the following:
I write a file with comments in the file of what I expect the code to be doing at this point in the code. When I run the agent to build or compile these descriptions
it should of course provide the methods outlined, if it feels the need to create other parts of the code than what I have specified it should make comments about why it decided this and what the code it makes does.
Essentially I want an agent that allows me to approach non-literate programming in a literate programming manner/workflow https://en.wikipedia.org/wiki/Literate_programming
If you have some ideas as to how I can get to this please share, if you think it will not ever be possible to produce something like go ahead and share that too (although I think it should be)
Note I do not want an interactive bot doing stuff WHILE I type, I want an AI build step. Why? Because I type really quick without errors having worked as a data entry guy in my early 20s. The interactive bots make me slower and generally don't have good inputs most of the time.
I bet this is probably doable and a lot of you are thinking why doesn't this guy just do X or Y, but that's the thing - all I've experienced so far is the non-satisfactory interactive bots, and researching the matter the world's most popular broken search engine has been unsatisfactory, so hopefully people here can explain what to do to get what I want.
I've been thinking about something like this as well, for Rust.
I went back and forth with chatgpt trying to get how this would work and look, asked chatgpt to write a doc (warning not proof read, just an AI doc) : https://docs.google.com/document/d/1Kd_cFOXCCm66o7UoIW9Shgxi...
The idea is to have a `llm_fill_in! `macro that runs as a first pass of the build step. Basically, a cargo utility that let's you do stuff like:
```rust
fn add(a: i64, b: i64) -> i64 {
}```
(excuse the LLM verbosity in the doc, I just was brainstorming with it and asked it to write it as if it was creating an eng spec)