6 comments

  • t-kalinowski7 minutes ago
    Very cool!<p>We’ve been exploring a similar direction too, but focused on a plain REPL rather than notebook semantics or explicit session management beyond interrupts and restarts. It seems like the tradeoff is between keeping the interaction model simple and the context small, versus introducing notebook structure earlier and having the model work toward an artifact at the same time as it iterates and explores. Curious how you think about that balance?<p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;posit-dev&#x2F;mcp-repl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;posit-dev&#x2F;mcp-repl</a>
  • TheTaytay59 minutes ago
    Thank you for this!<p>I am a big fan of Marimo and was trying to use it as my agent’s “REPL” a while back, because it’s naturally so good at describing its own current state and structure. It made me think that it would make a better state-preserving environment for the agent to work. I’m very excited to play with this.
  • manzt2 days ago
    One of the authors here, happy to answer questions.<p>Building pair has been a different kind of engineering for me. Code mode is not a versioned API. Its consumer is a model, not a program. The contract is between a runtime and something that reads docs and reasons about what it finds.<p>We&#x27;ve changed the surface several times without migrating the skill. The model picks up new instructions and discovers its capabilities within a session, and figures out the rest.
    • gobdovan31 minutes ago
      You could wrap pyobject via a proxy that controls context and have AI have a go at it. You can customise that interface however you want, have a stable interface that does things like ` proxy.describe() proxy.list_attrs() proxy.get_attr(&quot;columns&quot;) proxy.sample_rows(limit=5) proxy.children(path=[&quot;model&quot;, &quot;layers&quot;], limit=10) ` This way you get a general interface for AI interacting with your data, while still keeping a very fluid interface.<p>Built a custom kernel for notebooks with PDB and a similar interface, the trick is to also have access to the same API yourself (preferably with some extra views for humans), so you see the same mediated state the AI sees.<p>By &#x27;wrap&#x27; I mean build a capability-based, effect-aware, versioned-object system on top of objects (execs and namespaces too) instead of giving models direct access. Not sure if your specific runtime constraints make this easier or harder. Does this sound like something you&#x27;d be moving towards?
      • mscolnick23 minutes ago
        How do you teach the model to use this new API? Wouldn&#x27;t they be more effective just using the polars&#x2F;pandas API which is has been well trained with?
        • gobdovan5 minutes ago
          Codex just picks it up. The surface is basically a guarded object model, so pandas&#x2F;polars-style operations stay close to the APIs the model already knows. There&#x27;s some extra-tricks but they&#x27;re probably out of scope for an HN comment.<p>In practice, Pandas&#x2F;Polars API would lower to: proxy -&gt; attr(&quot;iloc&quot;) -&gt; getitem(slice(1,10,None))
  • llamavore1 hour ago
    Looks cool. I love notebooks.<p>I built something similar with just plain cli agent harnesses for Jupyter a while back.<p>It supports codex subscriptions and pi, (used to support Claude subs, might still be okay since I didn’t modify the system prompt).<p>Has some bugs and needs some work but getting help and code changes inline in Jupyter is way better than copy pasta hard to select text from cells and cell output all day.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;madhavajay&#x2F;cleon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;madhavajay&#x2F;cleon</a>
    • mscolnick24 minutes ago
      This is cool. Do you still use this? There has been ideas thrown around to add &quot;prompt&quot; cells to marimo that can similarly create outputs or downstream cells and the prompts are serialized to the notebook py file and part of the DAG.
  • adamsilvacons38 minutes ago
    [dead]
  • aimadetools2 days ago
    [flagged]