agentpacks
v1.8.0
Published
Composable AI agent configuration manager. Pack-based rules, commands, skills, hooks, and MCP sync across OpenCode, Cursor, Claude Code, Codex, Gemini, Copilot, and more.
Downloads
281
Maintainers
Readme
agentpacks
Website: https://github.com/lssm-tech/contractspec/tree/main/packages/tools/agentpacks
Composable AI agent configuration manager that merges packs into target-specific tool configuration, rules, hooks, skills, and AGENTS output.
What It Provides
- Loads, merges, and resolves agent packs into Cursor, Claude Code, Codex, Copilot, Gemini, OpenCode, registry, and AGENTS targets.
- Publishes a CLI plus a broad programmatic API for pack loading, sources, targets, importers, and exporters.
- Recently expanded around AI-native flows, model guidance, Cursor plugin output, and compatibility hardening.
- Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install agentpacks
or
bun add agentpacks
Usage
npx agentpacks --help
# or
bunx agentpacks --helpArchitecture
src/cli/contains command implementations for init, generate, install, publish, search, and pack subcommands.src/core/handles config loading, dependency resolution, pack loading, lockfiles, and feature merging.src/features/,src.sources/,src.targets/,src.importers/, andsrc.exporters/implement the pack pipeline.src.utils/contains credentials, diffing, markdown, registry, and model-helper utilities.src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Exports the CLI binary plus API, core, features, targets, sources, importers, exporters, and utility subpaths.
- Binary
agentpackspoints to./dist/index.js. - Export
.resolves through./src/index.ts. - Export
./apiresolves through./src/api.ts. - Export
./cli/export-cmdresolves through./src/cli/export-cmd.ts. - Export
./cli/generateresolves through./src/cli/generate.ts. - Export
./cli/import-cmdresolves through./src/cli/import-cmd.ts. - Export
./cli/inforesolves through./src/cli/info.ts. - Export
./cli/initresolves through./src/cli/init.ts. - Export
./cli/installresolves through./src/cli/install.ts. - Export
./cli/loginresolves through./src/cli/login.ts. - Export
./cli/models-explainresolves through./src/cli/models-explain.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun test --pass-with-no-testsbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Use the Biome-only lint and formatting workflow in pack guidance and generated targets.
- Vnext ai-native.
- Add latest models and align defaults.
- Harden AgentSkills compatibility in agentpacks.
- Add first-class mistral provider support.
- Align cursor plugin export and hooks output.
Notes
- Do not modify target output formats without updating the corresponding target writer.
- Pack schema changes must stay backward-compatible (see
schema.json). - Never hard-code model names; use
utils/model-allowlistandutils/model-guidance.
