Agent And IDE Plugins
July 6, 2026 ยท View on GitHub
AgentPack plugins make coding agents start with the right files.
This layer is intentionally thin. Plugins, IDE extensions, and agent rules should call the existing local AgentPack CLI or MCP tools. The layer does not reimplement ranking, scanning, packing, MCP, or benchmarking.
AgentPack remains a local context engine, not a coding agent.
Current Distribution Paths
Canonical short description for directories and listings:
AgentPack is a local context engine for AI coding agents: ranked files,
tests, rules, skills, and compact task context without hosted indexing.
| Host | Current path | What it does |
|---|---|---|
| Codex | .codex-plugin/ and skills/ | Adds @agentpack-* commands for local routing, packing, refresh, review, and learning |
| Codex repo setup | agentpack init --agent auto or agentpack init --agent codex | Auto-detects Codex or explicitly writes AGENTS.md, .codex/hooks.json, git hooks, MCP config, enables agentpack@local, and refreshes the local plugin cache package |
| Claude Code | agentpack init --agent claude | Writes CLAUDE.md, Claude hooks, and MCP config |
| Cursor | .cursorrules, .cursor/rules/agentpack.mdc, and native-integrations/cursor-extension/ | Portable Cursor rules, repo installer, VS Code task, git hooks, and extension skeleton |
| Windsurf | .windsurf/rules/agentpack.md plus native-integrations/windsurf-extension/ | Portable Windsurf rule, repo installer, VS Code task, git hooks, and extension skeleton |
| GitHub Copilot | .github/copilot-instructions.md | Portable Copilot instruction file |
| Cline | .clinerules/agentpack.md | Portable Cline rule file |
| Kiro | .kiro/steering/agentpack.md | Portable Kiro steering file |
| OpenCode | .opencode/agentpack.md | Portable OpenCode rule file |
| Antigravity | agentpack init --agent antigravity | Writes GEMINI.md, VS Code task, git hooks, and generated skill guidance |
| Generic agents | agentpack init --agent generic | Uses .agentpack/context.md directly |
Public Directory Placement
Treat public directories as pointers to the same local CLI/MCP engine, not as separate products. Each listing should use the canonical short description, link to the install docs, and avoid claims that go beyond the public benchmark evidence.
| Directory surface | Status | Next action |
|---|---|---|
| npm | Live wrapper package | Keep README synced with PyPI version, release evidence, and troubleshooting |
| PyPI | Live core CLI package | Keep long description aligned with root README and release evidence |
| GitHub Releases | Live release notes | Keep release-check, benchmark, wheel, and registry receipts in each release body |
| HOL plugin registry | Live Codex plugin listing | Keep packaged metadata, privacy/terms URLs, lockfiles, and scanner workflow current |
| Codex plugin directories | Local packaged plugin today | Reuse .codex-plugin/plugin.json, icon, screenshots, and skills/ bundle for submissions |
| MCP directories | Candidate | List AgentPack as local MCP context engine; link to mcp-context-engine.md |
| Agent-tool awesome lists | Candidate | Submit only after install transcript and E2E proof page are easy to verify |
| Comparison pages | Live docs pages | Keep comparisons scoped to context selection, not coding-agent success claims |
Distribution submissions should include the same boundaries: local-first, no hosted indexing, no LLM calls for scan/rank/pack, and selected files are a starting map rather than proof.
Shared Plugin Contract
Every host integration should follow the same flow:
- Understand the user task.
- Route first when read-only context is enough.
- Pack only when full context is needed.
- Read
.agentpack/context.mdor use MCP context tools. - Treat selected files as a map, not proof.
- Use normal repo search when output looks incomplete.
- Run relevant checks after editing.
- Suggest benchmark capture after completed edits.
Host Commands
Use these local commands from any agent or IDE:
agentpack route --task "<task>"
agentpack review "<review context>"
agentpack task set "<task>"
agentpack pack --task auto
agentpack upgrade --agent auto
agentpack doctor --agent <agent>
agentpack benchmark capture --since main --task "<task>"
agentpack benchmark --misses
Use <agent> values such as codex, claude, cursor, windsurf, antigravity, or auto.
auto detects the active host and does not default to Codex.
agentpack review prepares the local two-stage PR review bundle. It writes a
preflight file, a runbook, stage prompts, copy-fill TOON templates, run-scoped
understanding.toon / findings.toon outputs, and optional posted-review.json
post state. The optional review context is a lens, not source evidence;
reviewers still need gh pr view, git diff, and direct code reads. The final
check canonicalizes safe schema-matching JSON or fenced output to TOON, and
writes a repair guide for malformed artifacts. For PR-bound reviews,
agentpack review --check --dry-run-post writes the exact inline review payload
without calling GitHub, while agentpack review --check --post-inline-comments
posts validated findings as inline GitHub PR review comments and fails closed if
a finding cannot map to a right-side PR diff line.
Scriptable JSON Routing
When integrating AgentPack with scripts or custom agent tooling, you can request routing output in JSON format:
agentpack route --task "refactor plugin loader" --json
This output is intended for scripts and tools, not human reading. A typical JSON response contains the following structure:
{
"task": "refactor plugin loader",
"recommended_interaction_mode": "agent",
"current_agent": "codex",
"task_mode": "broad_feature",
"selected_files": [
{
"path": "src/agentpack/plugins/loader.py",
"score": 950.0,
"include_mode": "summary",
"reasons": [
"task-specific route seed"
]
}
],
"selected_skills": [],
"applied_rules": [],
"suggested_commands": [
{
"command": "agentpack doctor --agent codex",
"reason": "Verify active plugin source",
"source": "plugin_loader"
}
],
"safety_warnings": []
}
Codex Plugin
Codex is the first concrete plugin package in this repo:
.codex-plugin/plugin.json
skills/
Codex setup installs the package under
~/.codex/plugins/cache/local/agentpack/<version>/, enables
agentpack@local, and disables older enabled AgentPack marketplace copies so
new skills such as @agentpack-review come from the same version as the local
CLI. Run agentpack doctor --agent codex after upgrades to verify the active
plugin source.
See codex-plugin.md.
Cursor And Windsurf
Cursor and Windsurf already have installable repo rules through agentpack init, plus native extension skeletons under:
native-integrations/cursor-extension/
native-integrations/windsurf-extension/
Those skeletons stay advisory, not enforced, until host APIs can guarantee activation before edits and block edits when the installed AgentPack readiness check fails.
See native-integrations/README.md.
Portable Rule Files
Like Ponytail's portability pattern, AgentPack keeps tiny host-native rule files in the repo so users can copy the one their IDE understands:
agent-rules/agentpack.md
.cursor/rules/agentpack.mdc
.cursorrules
.windsurf/rules/agentpack.md
.github/copilot-instructions.md
.clinerules/agentpack.md
.kiro/steering/agentpack.md
.opencode/agentpack.md
These files all say the same thing: route or pack first when repo context is unclear, then verify with normal code search and tests.
Boundary
Do not add remote service dependencies, hidden file mutations, LLM API calls, or autonomous agent behavior to plugin layers. Distribution surfaces should make AgentPack easier to invoke from existing developer workflows.