# Code Mode

> Use this tool when you need to execute custom Python scripts that integrate multiple operations, or when automating tasks with a DSpy-powered reasoning system. It solves problems related to workflow automation, data processing, and tool orchestration, while ensuring code safety through policy enforcement and sandboxed execution. The tool accepts Python scripts as input and outputs the results of the executed code, with configurable options for network access, environment variables, and file system permissions.

Canonical page: https://skillsregistry.net/skills/draphonix-code-mode  
JSON: https://api.skillsregistry.net/v1/skills/draphonix-code-mode

## Description

Provides sandboxed Python code execution capabilities where AI agents can write and execute Python scripts that orchestrate multiple MCP tool operations. Features a DSpy-powered reasoning system that generates code to accomplish tasks, with configurable sandbox options for network access, environment variables, and file system permissions. Includes policy enforcement for code safety with character and line limits, allowlisted imports, timeout handling, and a local HTTP bridge that allows sandboxed code to securely call external MCP tools.

## Trust

- **Trust score (0–1):** 0.83
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/draphonix-code-mode)
- **Repository:** <https://github.com/hoangnb24/mcp-code-mode>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "draphonix-code-mode"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/draphonix-code-mode` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/draphonix-code-mode/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
