AI as the Engine of Application State

2 points | by jonfw 18 hours ago

3 comments

  • dpe82 17 hours 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 8 hours 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.

        dpe82 an hour ago

        Ok cool - yeah that's a very reasonable place to start. I've been toying with ideas for "AI driven UIs" but haven't really experimented with much concrete yet. I feel like there's a lot of space to play here though. Eg. let the AI also create controls that are backed by prompts, etc.