AgentPack Native Integration Skeletons

August 1, 2026 ยท View on GitHub

This directory tracks the path from best-effort repo rules to true native host enforcement.

AgentPack can already refresh context through MCP, lifecycle hooks, version-aware generated rules, pack self-healing, and agentpack migrate. True hard enforcement still requires the host app to expose a mandatory pre-edit or pre-tool-call API that can block edits when AgentPack readiness fails.

Enforcement Contract

A native host integration must provide all of these capabilities before AgentPack can mark it as enforced:

  • Mandatory activation before an agent edits files or runs edit-capable tools.
  • Workspace root access.
  • Current prompt or task access, or an equivalent task-change signal.
  • Ability to run the installed AgentPack refresh/readiness command or call AgentPack MCP.
  • Ability to block the edit/tool call when AgentPack readiness fails.

If any capability is missing, the integration remains advisory: useful and loud, but not hard-enforced.

Advisory vs Enforced: Examples

Advisory example (today): Cursor loads .cursorrules telling the agent to repack context before editing. If AgentPack readiness fails, the rule still lets the agent edit โ€” the rule is a strong suggestion the host cannot enforce. Nothing blocks the edit.

Enforcement example (what a host API would need): the host exposes a mandatory preEdit(file, prompt) hook that AgentPack registers. Before any edit, the host calls it, AgentPack runs readiness, and a returned { block: true } cancels the edit. Only a host API that can block a failed-readiness edit upgrades an entry from advisory to enforced.

Status Index

status.json is the machine-readable source of truth. Each entry has:

  • status: skeleton or blocked_stub.
  • enforcement_level: currently advisory; future native host APIs can upgrade this to enforced.
  • blocked_on: exact host capabilities needed before hard enforcement is honest.

Current Stubs

  • cursor-extension/: VS Code-style extension skeleton for Cursor-shaped environments.
  • windsurf-extension/: VS Code-style extension skeleton for Windsurf-shaped environments.
  • claude-native/: tracked native stub, blocked on mandatory host plugin API.
  • codex-native/: tracked native stub, blocked on mandatory host plugin API.

Capability Matrix

HostWorkspace rootCommand/MCP accessPrompt/task accessMandatory pre-edit/pre-tool hookCan block failed readiness
Cursor skeletonyesyesnonono
Windsurf skeletonyesyesnonono
Claude native stubnonononono
Codex native stubnonononono

Only hosts with every required capability can be marked enforced. Current entries remain advisory.

Architecture review contract

All supported hosts use same immutable review context:

agentpack_get_pr_context(pr="123", focus="review API contract", format="toon")

Codex and Claude can trigger this through native prompt hooks. Cursor, Windsurf, Antigravity, and generic integrations expose explicit MCP/command triggers. Always verify base_sha, head_sha, and context_status before making architecture claims. degraded context permits direct source review, but unsupported map claims must stay out of findings.