Skip to main content

DeepSeek supervisor for Claude Code

Project description

supervis

PyPI version PyPI downloads Python License: MIT Ask DeepWiki GitHub stars

DeepSeek thinks, plans, and drives Claude Code through your project
so you don't babysit every prompt.

What if you weren't the bottleneck?

Claude Code can read your codebase, write code, run builds, fix errors. It's remarkably capable. But here's the catch: you are still the one deciding what to do next. You break the task into steps, you prompt for each piece, you review and redirect. Even with plan mode and task lists, you're babysitting.

supervis puts DeepSeek between you and Claude Code as a technical lead. You describe what you want once. supervis handles the rest.

Demo

One prompt. supervis took it from there: planned the approach, had Claude Code scaffold the project, build the UI, write the logic, run the build, and deploy to Cloudflare Pages. No human intervention between start and live URL.

supervis demo

Result: markdown-notes-31o.pages.dev · source code · Full screenshots in assets/ (demo_1 through demo_7)

How supervis works

DeepSeek tells Claude Code what to do. Claude Code explores the codebase, writes code, runs builds, and reports back. DeepSeek reviews the results and decides the next step. DeepSeek doesn't read your files directly. It directs and decides, Claude Code does the hands-on work. This keeps the supervisor's token usage low.

The loop keeps going until the entire task is done. You watch it work in real time, and step in only when you want to.

No more "can I edit this file?" prompts either. supervis runs Claude Code with --permission-mode bypassPermissions, so it reads, writes, builds, and tests without stopping to ask at every step. Under the hood, every task is a call to:

claude -p <prompt> --output-format stream-json --verbose --permission-mode bypassPermissions

You see everything Claude Code does: every file read, every edit, every shell command, live in the TUI. Full transparency, zero interruptions.

Before supervis

Claude Code is great. You can give it plan mode, task lists, detailed prompts. But you're still the one leading the session. You check in after each step, redirect when something goes off track, decide what to tackle next, and prompt again when it stalls. That's fine for small tasks. For anything bigger, you're babysitting.

With supervis

You describe the end goal once, and it drives Claude Code through the entire thing:

You: add JWT authentication with a login endpoint, protect all routes, make sure the build passes

DeepSeek: thinking...
┌─ Claude Code  Read project structure and check for existing auth...
│ Read: src/routes/index.ts
│ Read: package.json
│ No existing auth found.
└─ done (4 tool calls)
DeepSeek: No auth layer yet. Starting with JWT middleware, then login
          endpoint, then route protection.
┌─ Claude Code  Create JWT middleware and wire it up...
│ Write: src/auth/middleware.ts
│ Write: src/auth/login.ts
│ Edit: src/routes/index.ts
│ ↳ Bash: npm run build
│ Build passed.
└─ done (12 tool calls)
DeepSeek: Done. POST /auth/login returns a token, all routes
          verify it. Build is clean.

If the build had failed, supervis would have told Claude Code to fix the errors and try again, without you typing a single follow-up. It keeps going until the task is actually done.

Less technical knowledge? supervis handles the decisions you wouldn't know to make. More technical knowledge? You write better prompts and supervis becomes a serious force multiplier.

Install

pipx install supervis

Or ask Claude Code: "install supervis from github.com/arikusi/supervis"

You need two things:

supervis calls Claude Code as a local subprocess, not through the API. DeepSeek handles the planning via its own API, which is remarkably cheap for what it delivers.

cd your-project
supervis

First run will ask for your DeepSeek API key and save it.

Quick start:

pipx install supervis && cd your-project && supervis

Getting better results

supervis is only as good as the context it gets. A blank project works, but a project with a .supervis/SUPERVIS.md works significantly better:

mkdir .supervis
cat > .supervis/SUPERVIS.md << 'EOF'
Tech stack: Next.js 15, TypeScript, PostgreSQL, Tailwind CSS.
Follow the plan in PLAN.md.
Always run `npm run build` after making changes.
Use the existing auth patterns in src/lib/auth.
EOF

Think of it like onboarding a new developer. The more context you give (tech stack, conventions, existing patterns, a plan document), the fewer wrong turns supervis takes. Setting up relevant MCP servers and environment variables for your project also helps Claude Code do its job better.

One important thing: you're talking to a supervisor, not a code editor. supervis will delegate everything to Claude Code. Frame your prompts that way.

Example prompts:

Have Claude build me a personal portfolio site. I'm a frontend developer based
in Berlin, 3 years of experience, React and TypeScript. Include an about page,
project showcase, and contact form. Keep it clean and modern.
Have Claude set up a REST API for a todo app. Express, TypeScript. CRUD
endpoints, input validation, error handling. Have it write tests and run
them before finishing.
Have Claude read through this project, understand the architecture, then
add dark mode. Nothing should break. Run the build when done.

You tell supervis what you want. supervis tells Claude Code how to build it.

Commands

Command What it does
/model Show the active tier and tiering state
/model flash | pro Pin a model (flash-fast/pro-fast skip thinking)
/model auto Return to automatic tiering (flash, pro on escalation)
/auto on | off Toggle automatic escalation to pro
/status Model tier, cost, uptime, message count
/budget Cost vs. budget limit
/export md or json Export conversation to file
/undo Git stash or revert last changes
/update Check for new supervis version
/reasoning Toggle DeepSeek thinking/reasoning display
/queue Show queued messages
/cancel Cancel queued messages (/cancel N for specific)
/reset Clear session and start fresh

Ctrl+Z interrupts the running agent. Ctrl+Q quits. Up/down arrows cycle through input history.

Model tiering & self-correction

supervis runs on two DeepSeek V4 models and decides which one to use turn by turn, the way a lead splits work between routine calls and the hard ones.

Routine "drive Claude Code" steps run on deepseek-v4-flash — fast and cheap. supervis escalates to deepseek-v4-pro in two cases:

  1. It asks for help. Facing a genuinely hard or architectural decision, supervis calls its escalate tool and the next step reasons on pro with full context.
  2. It gets stuck. When Claude Code keeps failing the same way (errors, timeouts, or the same step repeating), supervis escalates on its own, drops a "stop, diagnose the root cause, re-plan" note into the conversation, and rethinks on pro instead of grinding the same broken approach. Once things recover, it falls back to flash to keep costs down.

The status bar shows the active tier, with when escalated. You stay in control: /model pro pins a model, /model auto hands tiering back to supervis, and /auto off disables automatic escalation entirely.

Configuration

TOML config, layered: built-in defaults → ~/.config/supervis/config.toml.supervis/config.toml → environment variables.

Example global config
api_key = "sk-..."
model = "deepseek-v4-flash"   # base/driver tier
pro_model = "deepseek-v4-pro" # escalation tier
thinking = true
auto_escalate = true

[behavior]
max_cost = 1.00
shell_timeout = 15
claude_timeout = 300
truncation_limit = 4000
Per-project override
model = "deepseek-v4-pro"   # run a tricky project on pro by default
auto_escalate = false       # ...and don't auto-tier

[behavior]
max_cost = 2.00

Environment variables: DEEPSEEK_API_KEY, SUPERVIS_MODEL, SUPERVIS_PRO_MODEL, SUPERVIS_THINKING, SUPERVIS_AUTO_ESCALATE

Cost budget: Set max_cost to cap spending. supervis warns at 80% and stops at 100%.

The legacy deepseek-chat / deepseek-reasoner ids retire on 2026-07-24. If your config still names them, supervis transparently maps them to deepseek-v4-flash and prints a one-line notice.

Cost

DeepSeek V4 pricing per 1M tokens — flash: $0.14 input · $0.0028 cached · $0.28 output; pro: $0.435 input · $0.003625 cached · $0.87 output. Because routine steps stay on flash and pro is reserved for the hard moments, most of a session is billed at flash rates. The status bar tracks cost in real time, priced per tier, so there are no surprises.

What it doesn't do

  • It's not magic. Vague prompts get vague results. Be specific about what you want.
  • Claude Code runs with bypassPermissions (explained above). It edits files without asking. That's intentional, but be aware.
  • DeepSeek only, for now. It works well. Contributors are welcome to add other providers.
  • No session persistence yet. Closing supervis loses the conversation.
  • Large monorepos benefit from a focused .supervis/SUPERVIS.md. Without guidance, supervis may wander.

Architecture

Event-driven, async. Business logic emits typed events through an EventBus. The Textual TUI subscribes and renders. Zero coupling between logic and UI.

Modules
supervisor/
  app.py           — Textual App, layout, key bindings, event bridge
  orchestrator.py  — async message loop, drives the agent
  deepseek.py      — DeepSeek API client, streaming, agent loop
  claude.py        — Claude Code subprocess, stream-json parsing
  session.py       — Session + CostTracker dataclasses
  events.py        — EventBus + typed event definitions
  commands.py      — slash command registry
  tools.py         — tool definitions for DeepSeek
  version_check.py — PyPI update checker
  config.py        — TOML config (global + per-project + env vars)
  memory.py        — conversation summarization
  prompts.py       — system prompt
  widgets/         — OutputLog, InputBar, StatusBar

Contributing

Issues and PRs welcome at github.com/arikusi/supervis. Use Discussions for questions and ideas.

License

MIT — built by arikusi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supervis-1.2.0.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supervis-1.2.0-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file supervis-1.2.0.tar.gz.

File metadata

  • Download URL: supervis-1.2.0.tar.gz
  • Upload date:
  • Size: 42.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for supervis-1.2.0.tar.gz
Algorithm Hash digest
SHA256 079baee894e0e7ae7f0bb7d00c06d4687975e0a73bdd8351595262acdca337d9
MD5 8a0d9317e28d9a44b131a06aba31c6f0
BLAKE2b-256 6ce5ff4c7bfa814ea0e8469c13f2cf1d0cdfdf7a21db33eb6157cfb523cf182e

See more details on using hashes here.

Provenance

The following attestation bundles were made for supervis-1.2.0.tar.gz:

Publisher: publish.yml on arikusi/supervis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supervis-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: supervis-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for supervis-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd78d360dd43a87c8263509852f74236bb9ad9dd01d5ec3014cc578dc305702
MD5 511d45e2ac81cb5b434d99d90f44680e
BLAKE2b-256 51af240e878d7db6214661443fb015622191c6c6d647136ff936b680809a4394

See more details on using hashes here.

Provenance

The following attestation bundles were made for supervis-1.2.0-py3-none-any.whl:

Publisher: publish.yml on arikusi/supervis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page