ryx2

Claude Codemode — DevOps skill for Claude Code

DevOps community

A blend of claude code sdk with cloudflare agent codemode (implementation from blog https://blog.cloudflare.com/code-mode/).

How to install Claude Codemode

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ryx2/claude-codemode and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Codemode does

A blend of claude code sdk with cloudflare agent codemode (implementation from blog https://blog.cloudflare.com/code-mode/).

Alternatives in DevOps

  • Cloudflare Deploy — Deploy apps to Cloudflare using Workers, Pages, and platform services 14.6k ★
  • Agents Starter — A starter kit for building ai agents on Cloudflare 1.3k ★
  • MCP Boilerplate — A remote Cloudflare MCP server boilerplate with user authentication and Stripe for paid tools 1k ★

README

Claude Codemode 🚀

A Python implementation of [Cloudflare's Code Mode](https://blog.cloudflare.com/code-mode/), enabling AI agents to write code that calls tools instead of directly invoking them. Built on [pydantic-ai](https://ai.pydantic.dev) and Claude AI.

What is Claude Code Mode

**Traditional Tool Calling Agents:**

Input → LLM → loop(Tool Call → Execute Tool → Result → LLM) → output

**Claude Code Mode Agent:**

Input → loop(Claude Codes w/ access to your tools) → Execute Code → output

Why it's better

Each time tool output is passed to the LLM, and output is introduced, it leaves some possibility of mistake. As the number of iterations your agent does *n* increases, the better Code Mode gets compared to traditional iterative tool calling agents.

LLMs are better at generating code files & verifying & running that code they generate than calling tools to create output.

How It Works

┌─────────────────────────────────────────────────────────────────┐
│                         Your Application                        │
│                                                                 │
│  agent = Agent('claude-sonnet-4-5-20250929')                    │
│                                                                 │
│  @agent.tool                                                    │
│  def search_docs(query: str) -> list[database_rows]: ...        │
│                                                                 │
│  @agent.tool                                                    │
│  def analyze_blueprints(file_location: str) -> dict: ...        │
│                                                                 │
│  @agent.tool                                                    │
│  def report_blueprint(pdf_location: str) -> None: ...           │
│                                                                 │
│  result = agent.codemode("verify structural integrity")         │
│             │