Skip to main content

Deepy - Vibe coding for DeepSeek models in your terminal

Project description

Deepy logo

Deepy

A terminal-native coding agent for real project work.

Install · Home · 中文

Deepy terminal welcome screen

What Deepy Is

Deepy is a Python CLI coding agent for real project work. It stays in your terminal and combines OpenAI Agents SDK tool orchestration, project Rules, Agent Skills, MCP, subagents, sessions, and visible UI to read code, edit files, run commands, search the web, and resume long tasks. It is DeepSeek-first while also supporting OpenAI-compatible providers.

Why Use It

  • DeepSeek-first agent loop: tuned for DeepSeek V4 thinking mode while still supporting OpenAI-compatible providers such as OpenRouter and Xiaomi MiMo.
  • Transparent terminal execution: thinking, tool calls, diffs, shell output, usage, and context pressure stay visible in the transcript.
  • Project memory and continuity: AGENTS.md rules, local SQLite sessions, /resume, /compact, automatic compacting, and context-window status keep long project work recoverable.
  • Extensible agent ecosystem: Agent Skills, MCP servers, subagents, and skill-market installation give Deepy reusable workflows beyond built-in tools.
  • Practical coding controls: stale-write protection, direct !cmd local commands, managed background tasks, and /ps / /stop keep local execution reviewable.
  • Cross-platform shell support: POSIX shell, PowerShell, cmd, Windows paths, UTF-8 output, CRLF editing, and non-interactive Windows local command mode.

Quick Start

  1. Install uv:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  1. Install Deepy:
uv tool install deepy-cli
  1. Start Deepy in a project:
cd your-project
deepy

If Deepy has not been configured yet, the first run guides you through provider, API key, model, and theme setup. You can later run deepy config setup to reconfigure manually.

Upgrade or uninstall:

uv tool upgrade deepy-cli
uv tool uninstall deepy-cli

First Session

Try requests like these inside deepy:

Summarize this project and point out the main entry points.
Read @src/app.py and explain how the request flow works.
Fix the failing test, run the focused test, and summarize the diff.
Search the web for the current API behavior, then update the integration notes.

Useful interactive inputs:

@src/app.py       Mention a file in the current project
!pytest -q        Run a local non-interactive command directly
/model            Select provider, model, and thinking mode
/status           Show usage, context pressure, and DeepSeek balance
/resume           Resume a previous project session
/new              Start a fresh session
/compact          Compact the active session context
/mcp              Show MCP server status and tools
/skills           Manage local and market Skills
/ps               Show managed background shell tasks
/stop             Choose background shell tasks to stop
Esc               Interrupt the current model turn
Ctrl+D            Press twice to quit

What It Looks Like

Terminal-Centered Agent Loop

Deepy keeps model reasoning, WebFetch, shell output, and status lines visible in one transcript.

Deepy thinking, WebFetch, and shell output

Code Editing With Reviewable Diff

File edits are shown with path information and readable diff output.

Deepy edit diff preview

Search, Fetch, And Local Commands

Use WebSearch / WebFetch for external context, @ for file mentions, and ! for direct local commands.

Deepy web research workflow

Classic UI And Modern UI

Deepy has two peer terminal interfaces. Classic UI is the Rich/prompt-toolkit terminal UI, and Modern UI is the Textual terminal UI. The default deepy command starts the UI saved in ui.interface; missing config defaults to Classic UI with the dark theme. The compatibility command below still starts Modern UI directly:

deepy tui

Modern UI has a compact scrollable transcript, lightweight status line, Textual-native composer, live assistant/tool activity states, compact tool summary rows, slash-command and @file suggestions, inline audit/model/theme choices, status/help screens, and a Deepy-owned diff view. Use /ui in either interface to change the default UI for the next deepy startup.

/status shows session/project usage, context-window pressure, and DeepSeek balance in one panel. Exiting Modern UI prints the same compact session summary as Classic UI. Prompt text, image attachments, generated input suggestions, slash suggestions, and file suggestions are separate composer states, so UI-only attachment labels are not written into the editable prompt buffer. Attached images appear in an attachment row with prompt-local keyboard shortcuts: press Down to enter attachment selection, Left/Right to choose, Backspace to remove, and Up to return to normal input. The shared dark / light setting maps to curated Textual themes in Modern UI, with dark defaulting to tokyo-night; Modern UI can also save a Textual-only ui.textual_theme override from /theme.

See docs/deepy-ui-and-tui.md for the full feature comparison and current limitations.

Rules

Rules are project and personal instructions that shape how Deepy should work. Deepy automatically loads them from AGENTS.md files:

  • ~/.deepy/AGENTS.md for Deepy-wide personal guidance
  • AGENTS.md files from the git root down to the current working directory

Project AGENTS.md files are loaded from broad to specific. A file in a nested directory appears after the repository root file and takes precedence when rules conflict. Direct user instructions still take precedence over loaded AGENTS.md guidance.

Run /init in the interactive terminal to have Deepy inspect the repository and create or refresh the project root AGENTS.md.

Skills

Skills are reusable capability packs. Deepy discovers three kinds:

  • Project skills: <project>/.agents/skills/<name>/SKILL.md. These are shared with the current repository and take priority over user or built-in skills with the same name.
  • User skills: ~/.agents/skills/<name>/SKILL.md. These are personal skills available across projects and override built-in skills with the same name.
  • Built-in skills: packaged with Deepy for common workflows. They are always available, but they are not editable or uninstallable through the skill UI.

Skills use the standard Agent Skills progressive-disclosure flow: Deepy shows Skill metadata first, and the model reads the full SKILL.md only when the task matches that skill.

The skill market is a curated source for installable Skills. Market-installed Skills can be installed into user or project scope, updated, and uninstalled through Deepy's Skills UI. Deepy records market-installed Skill metadata under ~/.deepy/skill-market/.

Use /skills to manage local and market Skills, or invoke a Skill directly:

/skills
/<name> [request]

Deepy Skills market

MCP

Deepy can load MCP servers through the OpenAI Agents SDK. MCP is how you connect external tools such as search providers, databases, local services, or organization-specific context providers.

Most users only need ~/.deepy/mcp.json. Project-level MCP configuration is ignored by default because stdio MCP servers can start local commands. Enable it only for repositories you trust.

See docs/mcp.md for setup, fields, search preference, subagent MCP inheritance, and troubleshooting.

Trust Boundaries

  • File edits are rendered with path information and readable diffs.
  • Existing file replacement uses stale-write protection.
  • !cmd is direct local command mode; model-started shell commands are shown in the transcript.
  • MCP stdio servers start local commands. Project MCP config is ignored by default and should only be enabled for repositories you trust.
  • Built-in subagents do not receive source mutation tools by default.
  • The tester subagent uses constrained test_shell, not raw unrestricted shell.

Learning Resources

Topic English Chinese
Tutorial videos docs/tutorial-videos.md docs/tutorial-videos.zh-CN.md
MCP setup and troubleshooting docs/mcp.md docs/mcp.zh-CN.md
Subagents and custom subagents docs/subagents.md docs/subagents.zh-CN.md
Classic UI and Modern UI docs/deepy-ui-and-tui.md docs/deepy-ui-and-tui.zh-CN.md

Command Reference

deepy --version
deepy config setup
deepy config reset
deepy config theme
deepy doctor
deepy doctor --live --json
deepy status
deepy tui
deepy skills list
deepy skills show <name>
deepy sessions list
deepy sessions show <session-id>
deepy run "summarize this project"

Deepy stores active project sessions in a local SQLite session store. Historical JSONL session files from older Deepy versions are not imported, listed, or resumed by current session commands.

Inside the interactive terminal:

/help                   Show interactive help
/model                  Select provider, model, and thinking mode
/status                 Show usage, context pressure, and DeepSeek balance
/resume                 Resume a previous project session
/new                    Start a fresh session
/compact                Compact the active session context
/mcp                    Show MCP server status and tools
/skills                 Manage local and market Skills
/<name> [request]       Invoke a Skill directly
/init                   Create or update project AGENTS.md
/theme                  Show or change terminal UI theme
/ui                     Show or change Classic/Modern UI
/ps                     Show managed background shell tasks
/stop                   Choose background shell tasks to stop

Configuration

Deepy stores configuration in ~/.deepy/config.toml. The interactive first-run setup creates this file for most users.

Minimal resolved shape:

[model]
api_key = "sk-..."
provider = "deepseek"
name = "deepseek-v4-pro"
base_url = "https://api.deepseek.com"
thinking = true
reasoning_effort = "max"

[context]
window_tokens = 1048576
compact_trigger_ratio = 0.8
reserved_context_tokens = 50000
compact_preserve_recent_messages = 2

[audit]
mode = "yolo" # normal, auto, or yolo

[ui]
interface = "classic" # classic or modern
theme = "dark" # dark or light

Audit modes control side-effect approval. normal asks before managed text writes, shell commands, background task stops, and MCP tool calls. auto auto-approves managed text writes but still asks for commands and untrusted MCP tools. yolo preserves the high-autonomy default.

Manual configuration commands:

deepy config setup
deepy config init --api-key sk-... --provider deepseek --model deepseek-v4-pro
deepy config init --api-key sk-or-... --provider openrouter --model xiaomi/mimo-v2.5-pro
deepy config init --api-key sk-or-... --provider openrouter --model anthropic/claude-sonnet-4.5 --thinking minimal
deepy config init --api-key sk-... --provider xiaomi --model mimo-v2.5-pro
deepy config theme light

Supported provider/model pairs:

  • deepseek: deepseek-v4-pro, deepseek-v4-flash; thinking modes none, high, max.
  • openrouter: UI model selection offers xiaomi/mimo-v2.5-pro, xiaomi/mimo-v2.5; setup/init may also use a model id copied from OpenRouter. Thinking modes are enabled, disabled, xhigh, high, medium, low, minimal, none.
  • xiaomi: mimo-v2.5-pro, mimo-v2.5; thinking modes enabled, disabled.

WebSearch uses Deepy's hosted SearXNG endpoint by default. You can override it:

[tools.web_search]
searxng_url = "https://your-searxng.example/"

Development

uv sync --group dev
uv run pytest
uv run ruff check
uv run ty check src
uv build

The Python package is built from src/deepy. GitHub Pages files and screenshot assets live outside the package directory and are not included in the wheel.

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

deepy_cli-0.2.29.tar.gz (270.8 kB view details)

Uploaded Source

Built Distribution

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

deepy_cli-0.2.29-py3-none-any.whl (315.0 kB view details)

Uploaded Python 3

File details

Details for the file deepy_cli-0.2.29.tar.gz.

File metadata

  • Download URL: deepy_cli-0.2.29.tar.gz
  • Upload date:
  • Size: 270.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for deepy_cli-0.2.29.tar.gz
Algorithm Hash digest
SHA256 da79319e6e357b1c8f12043d23dad8cffb2e571016ed7fe759d9d8acc79f89d9
MD5 a249e758c81baa5347bb9338085c8919
BLAKE2b-256 52ca3f7064e3c6a06a298fbb58c18e5bcaa30f8150ed2ab1ca6af11be002ebe3

See more details on using hashes here.

File details

Details for the file deepy_cli-0.2.29-py3-none-any.whl.

File metadata

  • Download URL: deepy_cli-0.2.29-py3-none-any.whl
  • Upload date:
  • Size: 315.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for deepy_cli-0.2.29-py3-none-any.whl
Algorithm Hash digest
SHA256 cb1bb00d112ca1153548ced6b9580a6c1efe7e594be8cbd8867ceab6589843dd
MD5 815517dc48a3b6ae72d7bf0c78add15c
BLAKE2b-256 cb1207ef03a42828116d62738b95f68b2a12f18610c17b0ca4eaa38d82e2d3be

See more details on using hashes here.

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