> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> One command connects Codex in every project

**1. Connect it once**

> [tab] box setup
>
> ```bash theme={"system"}
> box setup
> ```
>
> It installs the XenoCI Box skill in `~/.agents/skills/box`, adds a short box section to `~/.codex/AGENTS.md` (the rest of the file is kept) and adds `[mcp_servers.box]` to `~/.codex/config.toml`. What it printed
>
> ```text theme={"system"}
> $ box setup
> box: wrote ~/.claude/skills/box/SKILL.md
> box: wrote ~/.agents/skills/box/SKILL.md
> box: wrote ~/.claude/CLAUDE.md
> box: wrote ~/.codex/AGENTS.md
> box: wrote ~/.codex/config.toml
> box: mcp claude added: Claude Code, user scope
> box: mcp codex added: [mcp_servers.box] in ~/.codex/config.toml
> box: Cursor keeps user rules only in its settings screen, not in a file; for Cursor run box setup --project in the repository
> box: done for every project on this machine; nothing was written into this folder. MCP tools load when the agent restarts
> ```
>
> The MCP tools load when Codex restarts. Check the server
>
> ```bash theme={"system"}
> codex mcp get box
> ```

> [tab] MCP server by hand
>
> ```bash theme={"system"}
> codex mcp add box -- box mcp
> ```

> [tab] Plugin
>
> The same plugin repository works for Codex: [Xeno-CI/box-cli](https://github.com/Xeno-CI/box-cli)

**2. Then ask**

Ask for the result, not the command: *run the tests and fix what fails*. A failed test comes back with its file and line

```text theme={"system"}
$ box test
box: tests 1 passed, 1 failed
  FAIL BoxDemoTests/testCountStartsAtOne(): XCTAssertEqual failed: ("0") is not equal to ("1") - the counter should start at 1
box: bj_aDxtZUJUe0bpuoFx failed, 180s billed, $0.15
box: why: FAIL BoxDemoTests/testCountStartsAtOne(): XCTAssertEqual failed: ("0") is not equal to ("1") - the counter should start at 1
box: details: .box/out/bj_aDxtZUJUe0bpuoFx/why.txt
```

![The example app the tests ran against: Hello from box with a counter](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/images/docs-agents-screen.png?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=57a2bab0b30da73118373c050fedae7c)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.