| ▲ | Ask HN: Why don't LLM harnesses enable/expose custom middleware hooks? |
| 8 points by fur-tea-laser 9 hours ago | 4 comments |
| I want to be able to execute a prompt derived from a piece of structured data (JSON) by transforming it into markdown and decorating it at prompt-time, without building my own infrastructure around or alongside the harness... |
|
| ▲ | coreyp_1 7 hours ago | parent | next [-] |
| I am writing my own harness, and I would love to hear more about what you have in mind. Can you give an example of your use case? |
| |
| ▲ | fur-tea-laser 3 hours ago | parent [-] | | i have a bunch of md templates at my disposal, which serve as the basis for my prompt toolbelt... these templates are populated and crystalized with concrete json instances... the json instances are tailored & scoped for various tasks... currently i have to synthesize a bunch of markdown artifacts that pollute my project directory and are at risk of becoming stale and out-of-sync... prompt-time middleware hooks that allow me to transform a json file into my final markdown prompt would alleviate these issues and improve developer ergonomics... |
|
|
| ▲ | cheekygeeky 6 hours ago | parent | prev [-] |
| They do. See: Claude Code leak. |
| |
| ▲ | fur-tea-laser 3 hours ago | parent [-] | | can you expand? i'm looking, but havent come across anything along the lines of what i want |
|