Skip to content

Jev directory

CommunityJev Cookbooks

DSPy System One agent patterns

Six small Python files that build one coding agent step by step on DSPy's RLM sandbox, with Jev answering closed questions — command safety, tool choice, history relevance, delegation — and plain Python owning the thresholds.
Stars
38
Language
Python
Reading time
2 min
Published by
Community
Author
cmpnd-ai
Last verified
Oct 2026

Highlights

  • Design rule: the signature states the question, Jev returns the probability, and plain Python owns the policy.
  • Jev answers IsCommandSafeToRun inside run_shell_command; below DENY_BELOW the command is denied by default.
  • The frontier model writes code inside a dspy.RLM sandbox run by Monty, with no filesystem, network or environment access.
  • Setup uses uv and dspy[typesafe]==3.4.0; OPENAI_API_KEY and TYPESAFE_API_KEY live in .env.
  • Demos run from agent_v0_baseline.py to agent_v5_final.py, then fit_thresholds.py; v5 disables DSPy's cache so its numbers are real.

Quickstart

bash
uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python "dspy[typesafe]==3.4.0" "dspy-monty-interpreter>=0.5.0" pytest python-dotenv

Watch out

README reviewed 2026-10-17; the excerpt stops inside agent_v1_permission_gate.py's description, the repository lists 0 forks and no licence in its metadata, and the digest shows no results or cost figures for the final agent.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai