agentbundler

package module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 0 Imported by: 0

README

Agent Bundler

CI Release Go 1.26 License

One source → target-specific coding-agent layouts

Claude Code · Codex · Pi · Copilot · Grok Build · Cursor

Define coding-agent assets once. Build the target-specific trees each agent expects.

Why this exists

SKILL.md is useful common ground, but it does not define a shared metadata format, plugin/package layout, or a common way to ship agents, hooks, and scripts. Each coding agent adds its own conventions. The same instructions also do not work equally well across models: wording that helps an OpenAI model may need a different version for an Anthropic model, and vice versa.

Maintaining copied skills and plugin files for every target is tedious. Copies drift. Small target or model differences become manual release work.

Agent Bundler keeps one source of truth, then lets you customize the parts that actually need to differ: frontmatter, Markdown sections, support files, and short target-wide preambles. It renders the result into the directory layout expected by Claude Code, Codex, Pi, GitHub Copilot, Grok Build, and Cursor.

canonical source + manifest
          │
          ▼
   import → customize → render
          │
          ├── Claude Code   .claude/skills/…
          ├── Codex         .codex-plugin/ + skills/…
          ├── Pi            .pi/skills/…
          ├── Copilot       plugin.json + skills/…
          ├── Grok Build    .grok/{skills,resources}/…
          └── Cursor       .cursor-plugin/ + skills/ + agents/…

Current scope

Today the target renderers produce skills, portable package resources, and selected native agent forms. Package profiles emit installable Claude, Codex, Pi, GitHub Copilot, and Cursor roots; one package keeps its historical flat root, while multiple packages are self-contained below package-ID roots. Grok emits a project skill/resource tree and accepts the Claude-compatible package format. Hooks, scripts, and target-native resources are not rendered by the current adapters. Unsupported capabilities fail instead of being silently discarded.

Agent Bundler is a compiler, not an agent runtime, installer, marketplace, or publisher. It creates target-ready files; your project or release workflow decides where to install or publish them. Run repository-owned vendor smoke tests before publishing; see Targets and CLI.

Install

Homebrew is the default install:

brew install alexei-led/tap/agentbundler

Or install with Go 1.26+:

go install github.com/alexei-led/agentbundler/cmd/agbun@latest

Start with an existing bundle

Discover the installed CLI, then build from a directory containing agentbundle.json:

agbun --version
agbun --help
agbun check
agbun build

Use agbun help build, agbun help check, and agbun help targets for the full command, safety, and target-ID reference.

build replaces the configured output directory. Use a dedicated generated directory, not a working project root. For a complete first bundle, see the quick start.

What can be customized

A target overlay can:

  • merge or remove JSON frontmatter keys, including target-defined metadata such as tools;
  • replace the whole Markdown body;
  • replace the body under an exact heading path;
  • add, replace, or delete support files;
  • prepend a short target-wide policy through composition.

See customization for the exact sidecar format and examples.

Documentation

License

MIT

Documentation

Overview

Package agentbundler is the target-neutral Agent Bundler compiler product.

The executable entry point is cmd/agbun. Internal packages own source import, composition, target rendering, and generated-output effects.

Directories

Path Synopsis
cmd
agbun command
internal
artifact
Package artifact validates and applies complete generated-output plans.
Package artifact validates and applies complete generated-output plans.
artifact/compare
Package compare detects exact drift between a build plan and generated output.
Package compare detects exact drift between a build plan and generated output.
artifact/nativeverify
Package nativeverify runs declared native verification commands.
Package nativeverify runs declared native verification commands.
artifact/provenance
Package provenance adds deterministic build evidence to compiler plans.
Package provenance adds deterministic build evidence to compiler plans.
artifact/write
Package write materializes validated build plans as complete output trees.
Package write materializes validated build plans as complete output trees.
buildinfo
Package buildinfo reports the Agent Bundler build version.
Package buildinfo reports the Agent Bundler build version.
compiler
Package compiler coordinates source import, composition, target rendering, and artifacts.
Package compiler coordinates source import, composition, target rendering, and artifacts.
compiler/composition
Package composition resolves source inventories for one target.
Package composition resolves source inventories for one target.
compiler/model
Package model defines the target-neutral data exchanged by compiler subsystems.
Package model defines the target-neutral data exchanged by compiler subsystems.
compiler/source
Package source routes explicit source manifests to their topology importers.
Package source routes explicit source manifests to their topology importers.
compiler/source/bundle
Package bundle imports Agent Bundler's canonical bundle source layout.
Package bundle imports Agent Bundler's canonical bundle source layout.
compiler/source/frontmatter
Package frontmatter parses the YAML frontmatter used by Agent Skills files.
Package frontmatter parses the YAML frontmatter used by Agent Skills files.
compiler/source/skillrepo
Package skillrepo imports explicit roots from a generic skills repository.
Package skillrepo imports explicit roots from a generic skills repository.
target
Package target resolves and dispatches built-in target adapters.
Package target resolves and dispatches built-in target adapters.
target/claude
Package claude renders normalized packages for Claude Code.
Package claude renders normalized packages for Claude Code.
target/codex
Package codex renders normalized packages as Codex plugins.
Package codex renders normalized packages as Codex plugins.
target/copilot
Package copilot renders normalized packages for GitHub Copilot.
Package copilot renders normalized packages for GitHub Copilot.
target/cursor
Package cursor renders normalized packages as Cursor plugins.
Package cursor renders normalized packages as Cursor plugins.
target/grok
Package grok renders normalized packages for Grok Build.
Package grok renders normalized packages for Grok Build.
target/packageoutput
Package packageoutput renders installable target package roots.
Package packageoutput renders installable target package roots.
target/pi
Package pi renders normalized packages for Pi.
Package pi renders normalized packages for Pi.
target/plugin
Package plugin renders the common single-package native plugin skill subset.
Package plugin renders the common single-package native plugin skill subset.
target/skills
Package skills renders the common native skill subset for target adapters.
Package skills renders the common native skill subset for target adapters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL