AIFeed

Show HN:OpenLune:以代码形式定义的 AI 开发环境

Translation(model translation, not the source's own text)

文章标题:Show HN: OpenLune: AI Development Environments as Code

正文: AI 开发环境即代码。

在一个清单中声明你的指令、代理、技能和 MCP 服务器。OpenLune 会在你选择的 AI 客户端中完成设置。它取代了每个客户端各自重复的定义、自定义设置脚本和手动上手步骤。

支持的客户端:Claude Code · Copilot · Grok Build · Codex · Antigravity

功能

  • 共享清单:一个声明式文件定义你的 AI 配置,开发者将其应用到各自偏好的客户端。
  • MCP 置备:OpenLune 安装 MCP 服务器及其运行时,并配置你的客户端使用它们。
  • 密钥管理:凭据存放在你的操作系统凭据存储中,绝不会出现在清单或生成的配置里。
  • 可移植代理:能力只声明一次,需要时可指定客户端专属的模型和推理强度。
  • 可审查的变更:查看将要安装和配置的内容。未经你的批准,这些都不会发生。
OpenLune CLI Demo
OpenLune CLI Demo

示例

在项目的 openlune/manifest.yaml 中定义你的配置。


        version: "0.1"

instructions:
  project:
    source: instructions.md

agents:
  reviewer:
    description: Review changes for correctness and maintainability.
    instructions: agents/reviewer.md
    capabilities: [files.read, files.find, files.search]

skills:
  release-notes:
    source: skills/release-notes

mcp:
  codegraph:
    transport: stdio
    command: codegraph
    args: [serve, --mcp]
    install:
      tools:
        - tool: node
          version: "24.22.3"
        - tool: npm:@colbymchenry/codegraph
          version: "1.6.0"
    initialize:
      command: codegraph
      args: [init, --yes]
      

选择你的 AI 客户端并预览开发环境:


        openlune plan --client copilot
      

查看计划,然后应用它。


        openlune apply
      

确认之后,OpenLune 将

  • 生成厂商专属的指令文件,如 CLAUDE.md 或 copilot-instructions.md,
  • 创建带有厂商专属工具权限的代理定义,
  • 创建自定义技能,
  • 下载并安装 MCP 服务器及其运行时,
  • 并配置你的 AI 客户端使用这些 MCP 服务器。

安装

在 macOS 和 Linux 上,运行:


        curl -fsSL https://openlune.io/install.sh | bash
      

在 Windows 上,运行:


        irm https://openlune.io/install.ps1 | iex
      

或者,从 GitHub 下载二进制文件并自行安装。

文档

完整的 OpenLune 文档见 openlune.io/docs。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗