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.
HostCurrent pathWhat it does
Codex.codex-plugin/ and skills/Adds @agentpack-* commands for local routing, packing, refresh, review, and learning
Codex repo setupagentpack init --agent auto or agentpack init --agent codexAuto-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 Codeagentpack init --agent claudeWrites 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.mdPortable Copilot instruction file
Cline.clinerules/agentpack.mdPortable Cline rule file
Kiro.kiro/steering/agentpack.mdPortable Kiro steering file
OpenCode.opencode/agentpack.mdPortable OpenCode rule file
Antigravityagentpack init --agent antigravityWrites GEMINI.md, VS Code task, git hooks, and generated skill guidance
Generic agentsagentpack init --agent genericUses .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 surfaceStatusNext action
npmLive wrapper packageKeep README synced with PyPI version, release evidence, and troubleshooting
PyPILive core CLI packageKeep long description aligned with root README and release evidence
GitHub ReleasesLive release notesKeep release-check, benchmark, wheel, and registry receipts in each release body
HOL plugin registryLive Codex plugin listingKeep packaged metadata, privacy/terms URLs, lockfiles, and scanner workflow current
Codex plugin directoriesLocal packaged plugin todayReuse .codex-plugin/plugin.json, icon, screenshots, and skills/ bundle for submissions
MCP directoriesCandidateList AgentPack as local MCP context engine; link to mcp-context-engine.md
Agent-tool awesome listsCandidateSubmit only after install transcript and E2E proof page are easy to verify
Comparison pagesLive docs pagesKeep 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:

  1. Understand the user task.
  2. Route first when read-only context is enough.
  3. Pack only when full context is needed.
  4. Read .agentpack/context.md or use MCP context tools.
  5. Treat selected files as a map, not proof.
  6. Use normal repo search when output looks incomplete.
  7. Run relevant checks after editing.
  8. 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.