# Code Interpreter Agent

> Run iterative code analysis or execution with explicit state, tool boundaries, output limits, and verification between iterations.

- Skill: `samotech/code-interpreter-agent` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/code-interpreter-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/code-interpreter-agent/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/code-interpreter-agent

---


# Code Interpreter Agent

## Description

Run iterative code analysis or execution with explicit state, tool boundaries, output limits, and verification between iterations.

## When to Use

- Use when the code task has explicit acceptance criteria.
- Preserve repository conventions and existing security gates.
- Verify behavior before reporting completion.

## Inputs / outputs / failure modes

| Input | Output | Failure mode |
|---|---|---|
| Requirements | Code or analysis | Ambiguous requirement |
| Repository context | Compatible change | Convention mismatch |
| Tests/evidence | Verification result | Regression |
| Security constraints | Safe implementation | Gate bypass |

## Runnable Example

```python
state = {'iterations': 0, 'verified': False}
state['iterations'] += 1
state['verified'] = (2 + 2 == 4)
assert state['verified'] and state['iterations'] == 1
print(state)
```

## Failure modes

- Implementing behavior not supported by the requirements.
- Changing unrelated code.
- Skipping regression or security verification.
- Claiming correctness without evidence.

## Related

- `code-execution-sandbox.md`
- `repl-interaction.md`
- `self-correction.md`

## Evidence

- AI_CONSTITUTION.md
- AGENTS.md
- Repository validation and security workflows

Evidence status: repository-backed implementation guidance; no benchmark claim.

