# Cursor

> Wire agentjail into Cursor's pre-tool-use hook to enforce policy before every tool call.

**Cursor integration is not yet available.**

`agentjail install --for cursor` is a stub that currently exits with
"not yet implemented". Claude Code is the only agent with a working turnkey
installer today. Cursor support is planned for a future release.

## Planned design

The intended integration follows the same pattern as the
[generic hook guide](/docs/integrations/generic-hook): hook entries in
`~/.cursor/hooks.json` for the `preToolUse` and `beforeShellExecution` events
that pipe each tool-call event to `agentjail-hook` on stdin and read the
decision from stdout.

This design is **not wired yet**. Do not attempt to configure it manually —
there is no supported path for Cursor at this time.

## What is available today

- [Claude Code integration](/docs/integrations/claude-code): the only fully
  supported agent, with a turnkey installer on macOS.
- [Generic hook guide](/docs/integrations/generic-hook): the hook protocol
  that any agent with a pre-tool-use callback can implement once support
  lands.

Check the [changelog](/blog) or the
[agentjail GitHub repository](https://github.com/agentjail/agentjail) for
updates on Cursor support.
