This struck me today when I was trying to get perplexity to read my nostr notes and analyze them. I asked it to create a lightweight client to read my notes from the Damus relay and analyze them and it was unable to do it. It just gave me code and gave me instructions on how to execute it. I asked it to execute it itself, but it refused

nostr:nevent1qqsg02snrn7d335rmdugwspzhxkjhezws5syfttjy4msqlmm2wth3hcpz3mhxue69uh4yetvv9uju3rpd46hxtnfdux2asgc

Reply to this note

Please Login to reply.

Discussion

Perfect name for it

Do you mean something like https://github.com/AustinKelsay/nostr-mcp-server ? It has "Show me the latest 20 notes from " which then the LLM could use. Also nostr:npub1gzuushllat7pet0ccv9yuhygvc8ldeyhrgxuwg744dn5khnpk3gs3ea5ds is pushing dvmcp initiatives.

Thanks. That MCP addresses the specific need of my query. But my question was broader- can an AI agent build an ephemeral nostr client (or really execute any ephemeral code) to achieve the result of a complex query. I’m guessing there would need to be a runtime baked in somewhere to execute the code

Yep, been working on this for about 6 years. Nostr is part of the pipeline to get agents to execute, update etc.

We all had our little use cases at the time of building nostr.

Do you have a github for it? Or better still, a use case that you can demo?

I don’t think you can give an agent some JS code for instance and have it execute it in node. At least afaik. Maybe just write a good tool for an MCP server with all the params it might need for the complex query?

I wonder if there’s an opportunity there: a protocol that allows agents to spin up a runtime to execute code within the context of a query and then deprecate it quickly once it’s done

Yea I don't artifacts support this atm. Seems like doing something like this could be risky tho.

https://support.anthropic.com/en/articles/9487310-what-are-artifacts-and-how-do-i-use-them

I’ll spend some time tomorrow looking into this, but at first glance, I’m not sure what I’m talking about would be an “artifact”

Pretty sure if you’re brave enough you could let Goose loose in your terminal and it’ll do this