Get setup kit
get_setup_kitReturn the optional setup kit for agents that run on the user's own machine (Claude Code, Cursor). The kit contains four hooks (recall at session start, recall on each prompt, sync of session recaps, and the inbox of messages from other agents), the settings.json block, a usage policy, and an idempotent bash script that installs them.
With the hooks installed, memory is recalled and stored automatically.
Without them, NEXUS only has what the agent stores through its tools.
Calling this tool only returns the kit; nothing is installed until the
script is run. Running it writes the hooks and the policy file on the
user's machine, declares the hooks in the client's settings, and loads
the policy into the agent's instructions (a line in CLAUDE.md for Claude
Code, a .cursor/rules file for Cursor), so installing is the user's
decision. It does not apply to chat clients (Claude web or desktop,
ChatGPT).
Side effect: on an OAuth connection, the call issues the hooks credential
and embeds it in the script. This works once, because a secret that was
already shown is not returned again. On a plain `nxa_` token connection it
does not issue a credential, and an account owner must issue one. `steps`
says which case applies.
Args:
formato: "script" (default) for the bash installer plus steps, or "files" for the same files as text, for clients without bash. It is ignored for Cursor.
client: "claude-code" (default) or "cursor". Cursor gets a session-start hook and a turn-recap hook. It has no per-prompt recall, because Cursor's beforeSubmitPrompt cannot inject context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | claude-code | |
| formato | No | script |