codex_loop

codex_loop is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from Owen718/codex-loop-plugin. Its token cost is not measured, scanned A, original, MIT.

An MCP server that provides Codex Loop controls for creating, listing, changing, and removing recurring tasks. MCP is a standard way for an AI agent to use external tools.

In plain words
What is it for?
Starting, viewing, updating, pausing, resuming, or deleting recurring Codex tasks.
Why use it?
It gives the agent a tool interface for managing repeated prompt runs instead of handling them manually.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Written for no agent in particular: it speaks MCP, so any client can run it. Also seen: mentions Codex; listed in a Claude config.

Good fit Starting, viewing, updating, pausing, resuming, or deleting recurring Codex tasks.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/owen718/codex-loop-plugin/codex-loop-codex_loop

Installing this writes the configuration, not the program: `python3` runs a file from the repository, so clone it first and make the path in the command match where you put it.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Owen718/codex-loop-plugin

Installing this writes the configuration, not the program: `python3` runs a file from the repository, so clone it first and make the path in the command match where you put it.

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex_loop

README.md
[![agentmods](https://agentmods.dev/badge/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop/github.svg)](https://agentmods.dev/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop)
Your own site
<a href="https://agentmods.dev/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop"><img src="https://agentmods.dev/badge/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex_loop

Your own site · 80×15
<a href="https://agentmods.dev/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop"><img src="https://agentmods.dev/badge/mcp/owen718/codex-loop-plugin/codex-loop-codex_loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

codex_loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/codex-loop/.mcp.json · 21 lines

What it actually says

{
  "codex_loop": {
    "command": "python3",
    "args": [
      "-c",
      "import json, pathlib, re, runpy, sys; root = pathlib.Path.home() / '.codex' / 'plugins' / 'cache' / 'codex-loop-plugin' / 'codex-loop';\n\ndef _key(p):\n    script = p / 'scripts' / 'codex-loop-mcp'\n    if not script.is_file():\n        return None\n    version = p.name\n    manifest = p / '.codex-plugin' / 'plugin.json'\n    try:\n        version = json.loads(manifest.read_text(encoding='utf-8')).get('version') or version\n    except Exception:\n        pass\n    return (tuple(int(part) for part in re.findall(r'\\d+', version)), p.stat().st_mtime)\n\ncandidates = [(key, p) for p in root.iterdir() if p.is_dir() for key in [_key(p)] if key is not None]\nif not candidates:\n    raise SystemExit(f'no usable codex-loop-mcp under {root}')\nscript = max(candidates, key=lambda item: item[0])[1] / 'scripts' / 'codex-loop-mcp'\nsys.path.insert(0, str(script.parent))\nrunpy.run_path(str(script), run_name='__main__')"
    ],
    "startup_timeout_sec": 10,
    "tool_timeout_sec": 60,
    "enabled": true,
    "enabled_tools": [
      "loop_create",
      "loop_list",
      "loop_delete",
      "loop_update",
      "loop_bind_session",
      "loop_complete_iteration",
      "loop_read_default_prompt"
    ]
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 21 lines scan A e70012d73803

Subscribe to this mod's changes

codex_loop is an MCP server published in the GitHub repository Owen718/codex-loop-plugin (9 stars, last pushed 6mo ago), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.