Exploring a Snug runtime adapter for ECA Desktop
Hi Eric,
I'm building Snug, an independent project for portable HTML apps that use their host's agent and keep their code and data in a SQLite-backed .snug file.
I'd like to explore a small, optional app pane in ECA Desktop. Snug already has the sandboxed runner and storage; the ECA adapter is still a proposal.
The host would map Snug's AgentTransport onto chat/prompt and chat/contentReceived, including streaming, cancellation, errors and the structured JSON response Snug expects.
For a first pass, I'd disable all tools and exclude workspace context, including automatically added context. ECA's remembered approvals are now scoped to each chat and its subagents, but the runtime chat would still need explicit restrictions. Imported HTML and instructions would stay untrusted, with no direct network access or Electron bridge access. Those Desktop boundaries would need testing.
A quiz app could be the first test: paste text, generate questions through ECA, save progress, then reopen the .snug file in the Snug reference host. I haven't tested that round trip yet.
Does that seem like a useful starting point? Where would you want the adapter to live?
Hey @jeetumaker I think It's not clear to me how that works, but I don't think we should have code in ECA (this repo) for custom other projects integrations, it would make harder to maintain and evolve ECA, I see this as some kind of plugin (not necessarly a AI plugin) that we could have but eca has no system for pluggable components like that and not sure if that would be easy to support.
So unless we come up with a solution that would not require change eca code (maybe using hooks, AI plugins, configs etc), we cannot proceed with that
Feel free to add more @zikajk