top | item 46562149

AI as the Engine of Application State

2 points| jonfw | 1 month ago |jonwoodlief.com

3 comments

order

dpe82|1 month ago

This seems really interesting though I'm struggling to picture how the AI and UI interact? Is the UI just a reflection of the folders/files on disk that the AI updates? Are there UI interactions (buttons, etc.) that trigger the AI to do something, somehow? More detail would be super helpful!

jonfw|1 month ago

Thank you for the kind words and feedback! Maybe I could have been more clear on the implementation details.

You were on the money with “UI just a reflection of the folders/files on disk that the AI updates.

There is no real UI integration with the AI, other than the UI embedding the chat interface of a coding agent (using an embedded terminal)

The UI just uses a filesystem watcher to keep track of updates to the relevant directories or files.