Connect a coding agent
Cortex plugins connect supported coding agents to your Account's knowledge and work. Each plugin supplies Cortex guidance and lets the coding agent use Cortex tools.
Cortex supports Codex, Claude Code, Cursor, and GitHub Copilot CLI.
Each plugin contains hosted MCP configuration. Codex receives guidance through the socra-cortex skill; its Cortex package has no SessionStart hook. Claude Code, Cursor, and GitHub Copilot CLI receive guidance through a SessionStart hook. For Grok Build, see Connect Grok.
The hosted MCP surface includes operations that can create, update, and delete Cortex resources. Review the security model before changing your agent host's approval policy.
Required for Claude Code, Cursor, and GitHub Copilot CLI: Approve or trust the Cortex SessionStart hook when the host asks. If the hook does not run, Cortex tools can remain available without the guidance it supplies.
Open guided setup (new tab) and choose Ask my agent to help, or follow the Plugin, MCP, or CLI steps yourself. For the store installation, follow Connect ChatGPT.
Install automatically
Use the Socra CLI to detect and configure every supported coding agent installed on your computer.
Install the Socra CLI
Run these commands:
curl -fsSL https://cli.socra.cloud/install.sh | sh
Open a new terminal after the installer completes.
Install Cortex, sign in to your Account, and configure every detected coding agent:
socra install cortex
socra account login
socra cortex setup
The command detects supported coding agents, installs or updates each Cortex plugin, and starts supported authentication flows. The current Codex package needs no hook approval. Follow the command's next steps to finish any authorization that the other hosts perform inside their own interfaces.
Authentication required: Each coding agent stores its own Cortex authorization.
socra cortex setupmay start a browser login or report that authorization needs to be completed in the host. If Codex authentication is incomplete, run:
codex mcp login cortex
For Claude Code, start claude, run /mcp, select the Cortex server, and follow its browser sign-in. If setup reports an unsupported Claude login command, complete authentication this way.
For Cursor, open Customize → MCPs (older versions: Settings → Tools & MCP), select Cortex, and connect. For GitHub Copilot CLI, start copilot, run /mcp, select Cortex, and sign in. Complete Account selection in the browser that opens. If setup already connected the intended Account, continue without signing in again.
When a configured coding agent asks whether to allow the Cortex SessionStart hook, approve it.
You can run socra cortex setup again. It updates outdated installations and does not create duplicate installations.
Install manually
Use the instructions for your coding agent when you do not want the Socra CLI to manage plugin installation.
Codex
Add the Socra marketplace and install Cortex:
codex plugin marketplace add socra/agent-plugins --ref main
codex plugin add cortex@socra
Authenticate the MCP connection:
codex mcp login cortex
Start a new Codex session. The Cortex plugin supplies the socra-cortex skill; this package has no SessionStart hook to approve.
Claude Code
Add the Socra marketplace and install Cortex for your user profile:
claude plugin marketplace add socra/agent-plugins --scope user
claude plugin install cortex@socra --scope user
Authenticate the MCP connection:
Start claude, run /mcp, select the Cortex server, and follow the browser sign-in. Select the same Account that you use in Cortex.
Approve the bundled Cortex SessionStart hook if Claude Code asks, then start a new Claude Code session.
Cursor
Clone the public plugin repository and link the Cursor provider directory:
git clone https://github.com/socra/agent-plugins.git
mkdir -p ~/.cursor/plugins/local
ln -s "$(pwd)/agent-plugins/providers/cursor/cortex" ~/.cursor/plugins/local/cortex
Restart Cursor or run Developer: Reload Window. Confirm that Cortex appears under Customize. Approve the bundled Cortex SessionStart hook if Cursor asks. Open Customize → MCPs (older versions: Settings → Tools & MCP), select Cortex, and sign in if prompted. Turn on every Cortex tool in the tools list above chat.
GitHub Copilot CLI
Add the Socra marketplace and install Cortex:
copilot plugin marketplace add socra/agent-plugins
copilot plugin install cortex@socra
Start copilot, approve the bundled Cortex SessionStart hook if GitHub Copilot CLI asks, then run /mcp. Select Cortex and sign in if prompted. Start a new session after authorization completes.
Other coding agents
Grok Build has a Cortex plugin. For another coding agent that supports remote HTTP MCP, configure the hosted Cortex MCP server. An MCP-only connection provides Cortex tools but does not install plugin guidance.
Allow the plugin instructions
The plugin supplies the suggested instructions. They teach your agent to Flash the right knowledge before acting and create or update Modules when you share useful knowledge or preferences. You do not need to add them to an AGENTS.md file. Verify guidance separately from tool access.
In Codex, start a new session with the Cortex plugin enabled and check that the socra-cortex skill is available. Claude Code, Cursor, and GitHub Copilot CLI may ask to trust the Cortex SessionStart hook during installation or startup; approve that hook and restart the session.
See the canonical Cortex instructions.
Enable Cortex tools
Make all Cortex tools available in your agent:
- Codex: run
/mcpand check that Cortex is connected with its tools available. The plugin enables all Cortex tools by default. - Claude Code: run
/mcp, select Cortex, and check that its server and tools are enabled. - Cursor: open Customize → MCPs and confirm the connection. Turn on every Cortex tool in the tools list above chat.
- GitHub Copilot CLI: run
/mcpand check that Cortex is enabled. The plugin includes all Cortex tools. If its MCP server was disabled, runcopilot plugins enable cortex --mcp.
Next, allow Cortex tools to run without repeated approval buttons. Use the Cortex-scoped setting for your provider:
- Codex: set
default_tools_approval_mode = "approve"under[plugins."cortex@socra".mcp_servers.cortex]in your Codex config. If you previously restricted tools there, setenabled = true, cleardisabled_tools, and remove anenabled_toolsallowlist. - Claude Code: in
/permissions, add the Allow rulemcp__plugin_cortex_cortex__*for the Cortex plugin to your user settings, so it applies in future sessions. Existing deny rules still apply. - Cursor: add
cortex:*to the MCP allowlist under Settings → Agents → Approvals & Execution, preserving existing entries. - GitHub Copilot CLI: start with
copilot --allow-tool='cortex'to allow Cortex tools for that session. Use this command each time you start Copilot, including the verification session below.
These settings skip tool confirmations for Cortex. The agent can save useful knowledge and tell you what changed and why. The plugin's session instructions supply this workflow without requiring an AGENTS.md file. Instructions guide behavior but do not enforce it, and existing deny rules or organization policy may still require confirmation or block a tool. You can retain normal confirmations instead.
Current provider references: Codex MCP, Claude Code permissions, Cursor permissions, and Copilot CLI.
Verify the installation
Start a new session and ask:
Use Cortex to list the Modules I can access. Make a real Cortex tool call; an empty list is valid. Separately, report whether this new conversation received persistent Cortex guidance and what it requires. Do not change anything.
Check both results: the coding agent makes a real Cortex call and returns the Module list, and the new session reports receiving Cortex guidance and explains what it requires. A new Account can return an empty list. If guidance is missing in Codex, check that the Cortex plugin and its socra-cortex skill are available. In Claude Code, Cursor, or GitHub Copilot CLI, check that the SessionStart hook is trusted and enabled. Start another session after correcting the configuration. Tool access alone does not confirm that the instructions loaded.