apm README

README проекта с github.com/microsoft/apm. Одним файлом markdown: README.md.

APM - Agent Package Manager

An open-source, community-driven dependency manager for the agent supply chain.

One manifest, one lockfile and one org policy for the skills, plugins and MCP servers your agents load, with the harnesses and marketplaces you already use.

GitHub Copilot | Claude Code | Grok Build | Cursor | OpenCode | Codex | Gemini CLI | Windsurf | Kiro

Documentation | Quickstart | CLI Reference | Roadmap


Portable by manifest. Verified by lockfile. Governed by policy. One file declares what your agents load; one lockfile reproduces it on every machine and in CI; one policy decides what your organization allows.

Why APM

What a coding agent loads decides what it knows and what it can do: skills, instructions, prompts, agents, hooks, plugins and MCP servers. Today teams copy those files between repositories and hand-edit MCP config for every tool. The copies drift, nobody can say which version a repository follows, and nothing reproduces the setup on the next laptop or in CI.

APM treats them as dependencies. Declare them once in apm.yml. apm install writes each one in every harness's own format and records the exact commit, plus a SHA-256 hash of every file it wrote, in apm.lock.yaml. Think package.json and package-lock.json, or Cargo.toml and Cargo.lock, for your agents, with transitive dependency resolution included.

# apm.yml -- ships with your project
name: your-project
version: 1.0.0
targets: [copilot, claude]   # the harnesses this project supports
dependencies:
  apm:
    # A skill, picked from a public collection
    - git: vercel-labs/agent-skills
      skills:
        - deploy-to-vercel
    # A plugin, from Anthropic's marketplace
    - git: https://github.com/anthropics/claude-plugins-official
      path: plugins/commit-commands
      ref: main
  mcp:
    # An MCP server, configured for every harness above
    - name: io.github.github/github-mcp-server
      transport: http   # MCP transport name, not URL scheme -- connects over HTTPS
git clone <org/repo> && cd <repo>
apm install    # the same skills, plugins and MCP servers, from the lockfile

Coming from npx skills add? Drop-in:

apm install vercel-labs/agent-skills                            # whole bundle, like npx skills add
apm install vercel-labs/agent-skills --skill deploy-to-vercel   # one skill, persisted to apm.yml

Same install gesture. You also get a manifest, a lockfile and a fresh clone that matches yours. Coming from Claude Code marketplaces, gh skill or hand-copied folders? See Coming from another tool.

Plugins from the marketplaces you already use:

apm marketplace add anthropics/claude-code
apm install commit-commands@claude-code-plugins

One plugin, written in each harness's own format (commands for Claude Code, prompts for GitHub Copilot) and pinned in the lockfile.

MCP servers without hand-edited JSON:

apm install --mcp io.github.github/github-mcp-server --transport http

Every harness keeps MCP servers in its own file: .mcp.json for Claude Code and GitHub Copilot, .cursor/mcp.json for Cursor, .codex/config.toml for Codex. Declare a server once and APM writes each file, on every machine. Add a harness later and the same servers follow. Tokens stay out of the repository as ${VAR} references, and a server that arrives through someone else's package with its own command is held back until you declare or approve it.

The three promises

1. Portable by manifest

One apm.yml declares every primitive your agents need -- instructions, skills, prompts, agents, hooks, plugins, MCP servers -- and apm install reproduces the same setup in every harness the project targets, on every machine. No account and no registry: packages come from git.

2. Verified by lockfile

Agent context is executable in effect -- a prompt is a program for an LLM, and hooks and MCP servers start processes on your machine. APM records exactly what you installed and checks it on every clone and every pull request. A lockfile records what arrived, not that it can be trusted: review a new dependency, or a version bump, the way you review code.

3. Governed by policy

Teams that run coding agents at scale end up building the same thing: a central team publishes approved skills, plugins and MCP servers through its own marketplace, and many repositories install from it. apm-policy.yml lets that team say which sources, MCP servers and executables the organization allows, inherited from an enterprise baseline that each organization can tighten but never loosen, and a required apm audit --ci check enforces it on every pull request. Policy starts in warn mode; you switch it to block when you are ready. That is the dependency layer for an agentic SDLC.

APM governs what gets installed; your harness governs what runs. Policy is not a sandbox.

Get Started

macOS with Homebrew

brew install apm

No custom tap is required. Homebrew manages installation and updates: use brew upgrade apm, not apm self-update.

Linux / macOS without Homebrew

curl -sSL https://aka.ms/apm-unix | sh

Windows

irm https://aka.ms/apm-windows | iex

Native release binaries are published for macOS, Linux, and Windows x86_64. For standalone installations, apm self-update reuses the matching platform installer. You do not need Homebrew to use APM.

Other install methods: pip, WinGet, and Scoop

Linux / macOS

# pip (Python 3.11+)
pip install apm-cli

Windows

# WinGet
winget install --id Microsoft.APM --exact --source winget
# Scoop
scoop install apm
# pip
pip install apm-cli

Already using the Microsoft Homebrew tap? See the migration guide.

Then follow the Quickstart: add a skill, a plugin and an MCP server, commit apm.yml and apm.lock.yaml, and check a teammate's fresh clone against the lockfile, in five minutes.

Teach your coding agent to use APM with the official guide (an expert agent plus the apm-usage skill):

apm install microsoft/apm/packages/apm-guide#v0.39.0

Community

Created by @danielmeppiel. Maintained by @danielmeppiel and @sergio-sisternes-epam.

In the ecosystem: Thoughtworks Technology Radar Vol. 35 places APM in Trial, describing it as a tool that treats agent context as a supply chain. Dependabot and Renovate update APM manifests; JFrog Artifactory offers Agent Packages repositories. The formats are an open specification, OpenAPM v0.1, with conformance tests.


Built on open standards: AGENTS.md | Agent Skills | MCP

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

apm (microsoft/apm)

Ищем в базе…

4.4K ·GitHub
Что это?APM (Agent Package Manager) — open-source менеджер зависимостей для контекста AI-агентов кодинга: как package.json или Cargo.toml, но для конфигурации агента — инструкций, навыков, промптов и MCP-серверов.
Это CLI-инструмент или то, что я импортирую в свой код?Это самостоятельный CLI, который вы запускаете в своём репозитории — объявляете зависимости в apm.yml и выполняете apm install, чтобы воспроизвести настройку агента; импортировать ничего не нужно.
Как его установить и начать работу?Установите через Homebrew на macOS, возьмите нативный бинарник для macOS/Linux/Windows или используйте pip, WinGet или Scoop, затем выполните apm install, чтобы подтянуть объявленные в проекте агентские пакеты.
Нужны ли заранее Homebrew или Python?Нет — Homebrew это лишь один путь установки, pip другой, а самостоятельные нативные бинарники работают без обоих.
Политика организации контролирует, что мои агенты могут действительно запускать?Нет — apm-policy.yml управляет только тем, что устанавливается на диск; что агент затем запускает, остаётся за вашим агентским харнессом, и эти два слоя намеренно держат раздельными.
На каких операционных системах он работает?Нативные релизные бинарники публикуются для macOS, Linux и Windows (x86-64).
С какими кодинг-агентами работает APM?Один манифест apm.yml подключает конфигурацию сразу к GitHub Copilot, Claude Code, Grok Build, Cursor, OpenCode, Codex, Gemini, Windsurf и Kiro.
Что такое agentrc и как он связан с APM?agentrc анализирует вашу кодовую базу, чтобы генерировать заточенные под неё инструкции для агентов из реального кода, которые затем можно упаковать и распространять с помощью APM.
Что на самом деле проверяет apm audit?Он пересобирает контекст агента с нуля и сравнивает его с рабочим деревом, чтобы поймать ручные правки, а также запускает те же проверки безопасности контента, что и apm install.
Можно ли экспортировать перечень компонентов ПО (SBOM) для установленных пакетов?Да — apm lock export генерирует вывод CycloneDX или SPDX прямо из lock-файла для отслеживания происхождения.
Какие есть похожие проекты?headroom, context-mode, harmonist, Athena-Public, gh-aw, squeez, Baize, assay
Автор
microsoft
Размер
53.7 MB
Звёзды
4.4K
Возраст
1 г
Коммиты · 90 дней