--- title: "Cortex for Codex" canonical: https://workspace.socra.com/integrations/codex --- Agents: start with [Socra HQ for Agents](https://workspace.socra.com/solutions/agents.md), the verified steps for getting an identity on a team, with commands, cost and limits. Socra: Fill the roles your team needs with proactive AI teammates, each with its own computer, identity and role. [Cortex](https://workspace.socra.com/products/cortex) # Cortex for Codex Give Codex your project standards and the reasons behind them. Cortex makes the relevant knowledge available before your agent changes code. [Connect Codex](https://cortex.socra.com/setup?method=plugin&agent=codex&step=marketplace) [Coding agents](https://workspace.socra.com/docs/cortex/integrations/coding-agents#codex) Plugin · [All integrations](https://workspace.socra.com/integrations) Knowledge in Cortex Your project requirements Your team’s standards The reasons behind each decision Your agent retrieves what the task needs Codex Knowledge available before the next action ## Connect Codex to Cortex 1. ### Install Cortex Add the Socra marketplace and install the Cortex plugin. [Connect Codex](https://cortex.socra.com/setup?method=plugin&agent=codex&step=marketplace) Installation Commands ``` codex plugin marketplace add socra/agent-plugins --ref main codex plugin add cortex@socra codex mcp login cortex ``` 2. ### Choose Your Socra Account The MCP login opens Socra sign-in. Select the Account you use in Cortex, then return to Codex and check the connection with /mcp. New to Cortex? [Get started](https://admin.socra.com/login?intent=create). 3. ### Set Up Tools and Guidance Start a new Codex session so it loads the plugin’s Cortex skill. [Follow guided setup](https://cortex.socra.com/setup?method=plugin&agent=codex&step=marketplace). 4. ### Check the Connection Start a new session and send this prompt. A real Cortex call returns your Module list; an empty list is fine. Connection Check ``` 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. ``` [Coding agents](https://workspace.socra.com/docs/cortex/integrations/coding-agents#codex) ## Give Codex the Reasons Behind the Code The repository shows Codex what exists. Decisions about what should change, and why, may live in another conversation or with another person on your team. A Module stores current knowledge about how one part of a system should work and why. When your agent flashes a Module, Cortex returns it with its declared dependencies. Your agent then checks that knowledge against the work in front of it. [Modules and the knowledge map](https://workspace.socra.com/docs/cortex/concepts/modules-and-map) ## Keep the Knowledge Your Next Task Will Need Your agent preserves useful decisions as you work and updates the knowledge when requirements change. [How agents grow your knowledge](https://workspace.socra.com/docs/cortex/guides/turn-agents-into-experts) ### You Supply the Judgment Build, review and explain decisions as usual. Your agent handles writing and organizing the useful knowledge. ### You Choose How It Saves Your agent saves changes as you work, or recommends them for your approval. ## See What Cortex Returns This recorded CLI call retrieves a visit-report Module and its writing prerequisite. The example knowledge is fictional; the retrieval is real. Bash ``` socra cortex flash example-fieldnote-visit-report ``` November 3, 2026 · Cortex CLI · 2 Modules · 163 tokens The writing prerequisite arrives first: > Fieldnote visit reports use sentence-case titles and plain language. Explain unfamiliar terms on first use, so a colleague who did not attend can understand the report. Then the requested visit-report Module: > A visit report names the visit’s date and location, separates direct observations from interpretations and ends with the next action and its owner. Keep that distinction because a later reader needs to know what was observed and what still needs checking. [Read the complete returned bundle](https://workspace.socra.com/evidence/cortex/fieldnote-flash-2026-11-03.txt) ## Your Work Becomes Reusable Knowledge 1. ### Work on Your Product Give your agent the task you already wanted to do. With Cortex connected and its guidance in place, it can preserve the useful knowledge along the way. The agent can preserve the app’s purpose in a product Module. Start the Work ``` We build a scheduling app for independent tutors. Help me improve the flow for rescheduling a lesson. ``` 2. ### Explain What Needs to Change Review the work as usual. The agent can preserve your correction and its reason, and connect it to the knowledge it needs. The agent can connect customer knowledge to the product it describes. Explain a Correction ``` This takes too many steps. Our tutors reschedule on their phones between lessons, so they need to finish before the next student arrives. ``` 3. ### Continue with the Next Task Your agent retrieves the relevant saved knowledge before working, so you don’t have to explain the same requirements again. A flash of product-customer includes product first, followed by the customer knowledge. Continue the Work ``` Now help me improve the cancellation flow for the same app. ``` ### What This Flash Includes product The app’s purpose. Included as a dependency. product-customer Who uses the app. The Module the agent retrieves for this task. [Quickstart](https://workspace.socra.com/docs/cortex/get-started/first-workflow) ## Good to Know ### What does Cortex add to Codex? Before a change, Codex can flash the Module that governs the work. Cortex returns its declared dependencies too, so your agent can read the relevant standard and then check the repository against it. ### Can I use the same knowledge with another agent? Yes. Connect each agent to the same Socra Account. Each can retrieve the Modules it has permission to access. Setup is separate for each agent. ### What should I know before connecting? A flash supplies governing knowledge. Codex still needs to inspect current code and run the checks required for the change. ### Who controls the knowledge? You choose whether your agent saves useful knowledge as you work or recommends changes for approval. Modules have owners and version history. Your Account permissions and host tool approvals still apply. Cortex is included with Workspace. See pricing for the plan and usage terms. [Workspace Pricing](https://workspace.socra.com/pricing) ## Use Cortex with Your Other Agents - [### ChatGPT Plugin](https://workspace.socra.com/integrations/chatgpt) - [### Claude Code Plugin](https://workspace.socra.com/integrations/claude-code) - [### Cursor Plugin](https://workspace.socra.com/integrations/cursor) - [### GitHub Copilot CLI Plugin](https://workspace.socra.com/integrations/github-copilot) - [### Claude MCP connector](https://workspace.socra.com/integrations/claude) - [### Grok Web MCP connector](https://workspace.socra.com/integrations/grok) - [### MCP Remote HTTP](https://workspace.socra.com/integrations/mcp) - [### CLI Socra CLI](https://workspace.socra.com/integrations/cli)