展示 HN: Marimo 对 – 将反应式 Python notebook 作为智能体环境
Show HN: Marimo pair – Reactive Python notebooks as environments for agents

原始链接: https://github.com/marimo-team/marimo-pair

## Marimo 代理集成:摘要 此工具使代理能够与托管在 Marimo 中的交互式 Python notebook 交互。它允许代理在 Marimo 环境中直接执行代码、探索数据和构建应用程序。 **安装:** 使用 `npx skills add marimo-team/marimo-pair` (或如果 `npx` 不可用,则使用 `uvx deno -A npm:skills add...`),或通过代理界面中的 `/plugin` 命令添加/安装。建议启用自动更新以获取最新版本。 **主要功能:** 利用标准代理技能,在 notebook 中提供对 `bash`、`curl` 和 `jq` 的访问权限。 **处理权限:** Claude Code 可能会重复请求 Bash 命令的批准。要解决此问题,请在已安装的技能中识别所需脚本的绝对路径(例如 `discover-servers.sh`、`execute-code.sh`),并在您的 `.claude/settings.json` 文件中明确允许它们。

## Marimo Pair:用于AI代理的交互式笔记本 Marimo Pair 是一种新工具包,允许 AI 代理直接交互和操作正在运行的 Marimo 笔记本(交互式 Python 环境)。本质上,它将一个代理“放入”笔记本中,赋予其完全控制权——添加/删除单元格、安装包,甚至修改 UI,同时将可重现的 Python 程序作为输出。 与传统的 REPL 不同,Marimo 的“代码模式”构建一个完整的、可执行的笔记本,利用保护机制消除隐藏状态并确保清晰度。这促进了人类和代理之间的协作,加速数据探索和研究。 开发者已经成功地使用 Marimo Pair 完成了诸如修复错误(甚至在 Marimo 本身内部!)以及作为递归语言模型的后端等任务。这是一个早期、实验性的项目,旨在使代理成为计算工作的积极参与者,提供一个独特的环境,其中笔记本既作为计算基质,又作为协作的、可读的成果。 GitHub 仓库和演示地址:[https://github.com/marimo-team/marimo-pair](https://github.com/marimo-team/marimo-pair) & [https://www.youtube.com/watch?v=6uaqtchDnoc](https://www.youtube.com/watch?v=6uaqtchDnoc)
相关文章

原文

reactive Python notebooks as environments for agents

  • A running marimo notebook (--no-token for auto-discovery; MARIMO_TOKEN env var for servers with auth)
  • bash, curl, and jq available on PATH

Works with any agent that supports the Agent Skills open standard:

npx skills add marimo-team/marimo-pair

# or upgrade an existing install
npx skills upgrade marimo-team/marimo-pair

If you don't have npx installed but have uv:

uvx deno -A npm:skills add marimo-team/marimo-pair

Add the marketplace and install the plugin:

/plugin marketplace add marimo-team/marimo-pair
/plugin install marimo-pair@marimo-team-marimo-pair

To opt in to auto-updates (recommended), so you always get the latest version:

/plugin → Marketplaces → marimo-team-marimo-pair → Enable auto-update

I keep getting prompted to allow Bash commands

The skill declares its own allowed-tools, but Claude Code may still prompt you to approve each Bash call. To avoid repeated prompts, copy the absolute paths to the scripts from the installed skill and add them to your .claude/settings.json (project-level) or ~/.claude/settings.json (global):

{
  "permissions": {
    "allow": [
      "Bash(bash /path/to/skills/marimo-pair/scripts/discover-servers.sh *)",
      "Bash(bash /path/to/skills/marimo-pair/scripts/execute-code.sh *)"
    ]
  }
}
联系我们 contact @ memedata.com