deepy-cli 0.2.20__tar.gz → 0.2.22__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. deepy_cli-0.2.22/PKG-INFO +374 -0
  2. deepy_cli-0.2.22/README.md +342 -0
  3. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/pyproject.toml +1 -1
  4. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/__init__.py +1 -1
  5. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/cli.py +23 -3
  6. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/config/__init__.py +8 -0
  7. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/config/settings.py +28 -1
  8. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/skills/skill-installer/SKILL.md +1 -1
  9. deepy_cli-0.2.22/src/deepy/data/tools/Read.md +17 -0
  10. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/Search.md +1 -1
  11. deepy_cli-0.2.22/src/deepy/data/tools/Update.md +19 -0
  12. deepy_cli-0.2.22/src/deepy/data/tools/Write.md +12 -0
  13. deepy_cli-0.2.22/src/deepy/llm/cache_context.py +331 -0
  14. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/compaction.py +51 -36
  15. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/provider.py +9 -0
  16. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/runner.py +39 -6
  17. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/compact.py +2 -1
  18. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/system.py +3 -3
  19. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/tool_docs.py +3 -4
  20. deepy_cli-0.2.22/src/deepy/sessions/__init__.py +27 -0
  21. deepy_cli-0.2.22/src/deepy/sessions/index.py +101 -0
  22. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/sessions/manager.py +5 -21
  23. deepy_cli-0.2.22/src/deepy/sessions/session.py +746 -0
  24. deepy_cli-0.2.22/src/deepy/sessions/store_helpers.py +226 -0
  25. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/status.py +40 -5
  26. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/subagents.py +9 -8
  27. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/agents.py +74 -247
  28. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/builtin.py +512 -1396
  29. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/file_state.py +0 -15
  30. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/app.py +148 -35
  31. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/commands.py +1 -0
  32. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/diff.py +43 -6
  33. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/widgets.py +5 -0
  34. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/markdown.py +48 -7
  35. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/message_view.py +158 -102
  36. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/slash_commands.py +10 -6
  37. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/terminal.py +197 -49
  38. deepy_cli-0.2.22/src/deepy/ui/welcome.py +311 -0
  39. deepy_cli-0.2.20/PKG-INFO +0 -449
  40. deepy_cli-0.2.20/README.md +0 -417
  41. deepy_cli-0.2.20/src/deepy/data/tools/apply_patch.md +0 -71
  42. deepy_cli-0.2.20/src/deepy/data/tools/edit_text.md +0 -21
  43. deepy_cli-0.2.20/src/deepy/data/tools/read_file.md +0 -19
  44. deepy_cli-0.2.20/src/deepy/data/tools/write_file.md +0 -14
  45. deepy_cli-0.2.20/src/deepy/sessions/__init__.py +0 -17
  46. deepy_cli-0.2.20/src/deepy/sessions/jsonl.py +0 -650
  47. deepy_cli-0.2.20/src/deepy/ui/welcome.py +0 -216
  48. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/__main__.py +0 -0
  49. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/background_tasks.py +0 -0
  50. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/__init__.py +0 -0
  51. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/skills/skill-creator/SKILL.md +0 -0
  52. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/AskUserQuestion.md +0 -0
  53. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/WebFetch.md +0 -0
  54. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/WebSearch.md +0 -0
  55. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/__init__.py +0 -0
  56. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/shell.md +0 -0
  57. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/task_list.md +0 -0
  58. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/task_output.md +0 -0
  59. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/task_stop.md +0 -0
  60. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/test_shell.md +0 -0
  61. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/data/tools/todo_write.md +0 -0
  62. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/errors.py +0 -0
  63. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/input_suggestions.py +0 -0
  64. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/__init__.py +0 -0
  65. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/agent.py +0 -0
  66. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/context.py +0 -0
  67. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/events.py +0 -0
  68. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/model_capabilities.py +0 -0
  69. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/replay.py +0 -0
  70. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/llm/thinking.py +0 -0
  71. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/mcp.py +0 -0
  72. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/__init__.py +0 -0
  73. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/init_agents.py +0 -0
  74. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/rules.py +0 -0
  75. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/prompts/runtime_context.py +0 -0
  76. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/session_cost.py +0 -0
  77. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/skill_market.py +0 -0
  78. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/skills.py +0 -0
  79. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/todos.py +0 -0
  80. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/__init__.py +0 -0
  81. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/result.py +0 -0
  82. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/search.py +0 -0
  83. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/shell_output.py +0 -0
  84. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/shell_utils.py +0 -0
  85. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tools/test_shell.py +0 -0
  86. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/__init__.py +0 -0
  87. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/compat.py +0 -0
  88. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/runner.py +0 -0
  89. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/screens.py +0 -0
  90. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/tui/state.py +0 -0
  91. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/types/__init__.py +0 -0
  92. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/types/sdk.py +0 -0
  93. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/types/tool_payloads.py +0 -0
  94. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/__init__.py +0 -0
  95. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/app.py +0 -0
  96. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/ask_user_question.py +0 -0
  97. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/exit_summary.py +0 -0
  98. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/file_mentions.py +0 -0
  99. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/loading_text.py +0 -0
  100. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/local_command.py +0 -0
  101. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/model_picker.py +0 -0
  102. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/prompt_buffer.py +0 -0
  103. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/prompt_input.py +0 -0
  104. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/session_list.py +0 -0
  105. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/session_picker.py +0 -0
  106. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/skill_picker.py +0 -0
  107. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/status_footer.py +0 -0
  108. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/styles.py +0 -0
  109. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/theme_picker.py +0 -0
  110. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/ui/thinking_state.py +0 -0
  111. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/update_check.py +0 -0
  112. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/usage.py +0 -0
  113. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/utils/__init__.py +0 -0
  114. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/utils/debug_logger.py +0 -0
  115. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/utils/error_logger.py +0 -0
  116. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/utils/json.py +0 -0
  117. {deepy_cli-0.2.20 → deepy_cli-0.2.22}/src/deepy/utils/notify.py +0 -0
@@ -0,0 +1,374 @@
1
+ Metadata-Version: 2.3
2
+ Name: deepy-cli
3
+ Version: 0.2.22
4
+ Summary: Deepy - Vibe coding for DeepSeek models in your terminal
5
+ Keywords: deepseek,coding-agent,terminal,cli,agents
6
+ Author: kirineko
7
+ Author-email: kirineko <kirineko@qq.com>
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Topic :: Software Development
14
+ Classifier: Topic :: Terminals
15
+ Requires-Dist: openai-agents>=0.17.0
16
+ Requires-Dist: openai>=2.26,<3
17
+ Requires-Dist: orjson>=3.10,<4
18
+ Requires-Dist: pathspec>=1.1.1
19
+ Requires-Dist: pydantic>=2.12,<3
20
+ Requires-Dist: prompt-toolkit>=3.0,<4
21
+ Requires-Dist: regex>=2026.5.9
22
+ Requires-Dist: pyyaml>=6.0,<7
23
+ Requires-Dist: rich>=14.2,<15
24
+ Requires-Dist: textual>=8.2,<9
25
+ Requires-Dist: tiktoken>=0.9,<1
26
+ Requires-Dist: tomli-w>=1
27
+ Requires-Python: >=3.12
28
+ Project-URL: Homepage, https://kirineko.github.io/deepy/
29
+ Project-URL: Repository, https://github.com/kirineko/deepy
30
+ Project-URL: Issues, https://github.com/kirineko/deepy/issues
31
+ Description-Content-Type: text/markdown
32
+
33
+ <p align="center">
34
+ <img src="asset/deepy-logo.webp" alt="Deepy logo" width="144">
35
+ </p>
36
+
37
+ <h1 align="center">Deepy</h1>
38
+
39
+ <p align="center">
40
+ A terminal-native coding agent for real project work.
41
+ </p>
42
+
43
+ <p align="center">
44
+ <a href="https://deepy.kirineko.tech/"><strong>Install</strong></a>
45
+ ·
46
+ <a href="https://kirineko.github.io/deepy/">Home</a>
47
+ ·
48
+ <a href="README.zh-CN.md">中文</a>
49
+ </p>
50
+
51
+ ![Deepy terminal welcome screen](asset/welcome.webp)
52
+
53
+ ## What Deepy Is
54
+
55
+ Deepy is a Python CLI coding agent for real project work. It stays in your
56
+ terminal and combines OpenAI Agents SDK tool orchestration, project Rules,
57
+ Agent Skills, MCP, subagents, sessions, and visible UI to read code, edit files,
58
+ run commands, search the web, and resume long tasks. It is DeepSeek-first while
59
+ also supporting OpenAI-compatible providers.
60
+
61
+ ## Why Use It
62
+
63
+ - **DeepSeek-first agent loop**: tuned for DeepSeek V4 thinking mode while still
64
+ supporting OpenAI-compatible providers such as OpenRouter and Xiaomi MiMo.
65
+ - **Transparent terminal execution**: thinking, tool calls, diffs, shell output,
66
+ usage, and context pressure stay visible in the transcript.
67
+ - **Project memory and continuity**: `AGENTS.md` rules, local SQLite sessions,
68
+ `/resume`, `/compact`, automatic compacting, and context-window status keep
69
+ long project work recoverable.
70
+ - **Extensible agent ecosystem**: Agent Skills, MCP servers, subagents, and
71
+ skill-market installation give Deepy reusable workflows beyond built-in tools.
72
+ - **Practical coding controls**: stale-write protection, direct `!cmd` local
73
+ commands, managed background tasks, and `/ps` / `/stop` keep local execution
74
+ reviewable.
75
+ - **Cross-platform shell support**: POSIX shell, PowerShell, cmd, Windows paths,
76
+ UTF-8 output, CRLF editing, and non-interactive Windows local command mode.
77
+
78
+ ## Quick Start
79
+
80
+ 1. Install `uv`:
81
+
82
+ ```bash
83
+ # macOS / Linux
84
+ curl -LsSf https://astral.sh/uv/install.sh | sh
85
+
86
+ # Windows PowerShell
87
+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
88
+ ```
89
+
90
+ 2. Install Deepy:
91
+
92
+ ```bash
93
+ uv tool install deepy-cli
94
+ ```
95
+
96
+ 3. Start Deepy in a project:
97
+
98
+ ```bash
99
+ cd your-project
100
+ deepy
101
+ ```
102
+
103
+ If Deepy has not been configured yet, the first run guides you through provider,
104
+ API key, model, and theme setup. You can later run `deepy config setup` to
105
+ reconfigure manually.
106
+
107
+ Upgrade or uninstall:
108
+
109
+ ```bash
110
+ uv tool upgrade deepy-cli
111
+ uv tool uninstall deepy-cli
112
+ ```
113
+
114
+ ## First Session
115
+
116
+ Try requests like these inside `deepy`:
117
+
118
+ ```text
119
+ Summarize this project and point out the main entry points.
120
+ Read @src/app.py and explain how the request flow works.
121
+ Fix the failing test, run the focused test, and summarize the diff.
122
+ Search the web for the current API behavior, then update the integration notes.
123
+ ```
124
+
125
+ Useful interactive inputs:
126
+
127
+ ```text
128
+ @src/app.py Mention a file in the current project
129
+ !pytest -q Run a local non-interactive command directly
130
+ /model Select provider, model, and thinking mode
131
+ /status Show usage, context pressure, and DeepSeek balance
132
+ /resume Resume a previous project session
133
+ /new Start a fresh session
134
+ /compact Compact the active session context
135
+ /mcp Show MCP server status and tools
136
+ /skills Manage local and market Skills
137
+ /ps Show managed background shell tasks
138
+ /stop Choose background shell tasks to stop
139
+ Esc Interrupt the current model turn
140
+ Ctrl+D Press twice to quit
141
+ ```
142
+
143
+ ## What It Looks Like
144
+
145
+ ### Terminal-Centered Agent Loop
146
+
147
+ Deepy keeps model reasoning, WebFetch, shell output, and status lines visible in
148
+ one transcript.
149
+
150
+ ![Deepy thinking, WebFetch, and shell output](asset/webfetch-shell-thinking.webp)
151
+
152
+ ### Code Editing With Reviewable Diff
153
+
154
+ File edits are shown with path information and readable diff output.
155
+
156
+ ![Deepy edit diff preview](asset/edit-diff.webp)
157
+
158
+ ### Search, Fetch, And Local Commands
159
+
160
+ Use WebSearch / WebFetch for external context, `@` for file mentions, and `!`
161
+ for direct local commands.
162
+
163
+ ![Deepy web research workflow](asset/websearch.webp)
164
+
165
+ ## Stable UI And Experimental TUI
166
+
167
+ The default `deepy` command starts the stable Rich/prompt-toolkit terminal UI.
168
+ The opt-in Textual interface is available with:
169
+
170
+ ```bash
171
+ deepy tui
172
+ ```
173
+
174
+ The TUI has a scrollable transcript, live thinking blocks, richer tool output
175
+ blocks, slash-command and `@file` suggestions, status/help screens, and a
176
+ Deepy-owned diff view. It remains experimental and may change between releases.
177
+
178
+ ![Deepy Textual TUI](asset/deepy-tui.webp)
179
+
180
+ `/status` shows session/project usage, context-window pressure, and DeepSeek
181
+ balance in one panel. Exiting the TUI prints the same compact session summary
182
+ as the stable terminal UI.
183
+
184
+ See [docs/deepy-ui-and-tui.md](docs/deepy-ui-and-tui.md) for the full feature
185
+ comparison and current limitations.
186
+
187
+ ## Rules
188
+
189
+ Rules are project and personal instructions that shape how Deepy should work.
190
+ Deepy automatically loads them from `AGENTS.md` files:
191
+
192
+ - `~/.deepy/AGENTS.md` for Deepy-wide personal guidance
193
+ - `AGENTS.md` files from the git root down to the current working directory
194
+
195
+ Project `AGENTS.md` files are loaded from broad to specific. A file in a nested
196
+ directory appears after the repository root file and takes precedence when rules
197
+ conflict. Direct user instructions still take precedence over loaded
198
+ `AGENTS.md` guidance.
199
+
200
+ Run `/init` in the interactive terminal to have Deepy inspect the repository and
201
+ create or refresh the project root `AGENTS.md`.
202
+
203
+ ## Skills
204
+
205
+ Skills are reusable capability packs. Deepy discovers three kinds:
206
+
207
+ - **Project skills**: `<project>/.agents/skills/<name>/SKILL.md`. These are
208
+ shared with the current repository and take priority over user or built-in
209
+ skills with the same name.
210
+ - **User skills**: `~/.agents/skills/<name>/SKILL.md`. These are personal
211
+ skills available across projects and override built-in skills with the same
212
+ name.
213
+ - **Built-in skills**: packaged with Deepy for common workflows. They are always
214
+ available, but they are not editable or uninstallable through the skill UI.
215
+
216
+ Skills use the standard Agent Skills progressive-disclosure flow: Deepy shows
217
+ Skill metadata first, and the model reads the full `SKILL.md` only when the task
218
+ matches that skill.
219
+
220
+ The skill market is a curated source for installable Skills. Market-installed
221
+ Skills can be installed into user or project scope, updated, and uninstalled
222
+ through Deepy's Skills UI. Deepy records market-installed Skill metadata under
223
+ `~/.deepy/skill-market/`.
224
+
225
+ Use `/skills` to manage local and market Skills, or invoke a Skill directly:
226
+
227
+ ```text
228
+ /skills
229
+ /<name> [request]
230
+ ```
231
+
232
+ ![Deepy Skills market](asset/skill-market.webp)
233
+
234
+ ## MCP
235
+
236
+ Deepy can load MCP servers through the OpenAI Agents SDK. MCP is how you connect
237
+ external tools such as search providers, databases, local services, or
238
+ organization-specific context providers.
239
+
240
+ Most users only need `~/.deepy/mcp.json`. Project-level MCP configuration is
241
+ ignored by default because stdio MCP servers can start local commands. Enable it
242
+ only for repositories you trust.
243
+
244
+ See [docs/mcp.md](docs/mcp.md) for setup, fields, search preference, subagent
245
+ MCP inheritance, and troubleshooting.
246
+
247
+ ## Trust Boundaries
248
+
249
+ - File edits are rendered with path information and readable diffs.
250
+ - Existing file replacement uses stale-write protection.
251
+ - `!cmd` is direct local command mode; model-started shell commands are shown in
252
+ the transcript.
253
+ - MCP stdio servers start local commands. Project MCP config is ignored by
254
+ default and should only be enabled for repositories you trust.
255
+ - Built-in subagents do not receive source mutation tools by default.
256
+ - The tester subagent uses constrained `test_shell`, not raw unrestricted
257
+ `shell`.
258
+
259
+ ## Learning Resources
260
+
261
+ | Topic | English | Chinese |
262
+ | --- | --- | --- |
263
+ | Tutorial videos | [docs/tutorial-videos.md](docs/tutorial-videos.md) | [docs/tutorial-videos.zh-CN.md](docs/tutorial-videos.zh-CN.md) |
264
+ | MCP setup and troubleshooting | [docs/mcp.md](docs/mcp.md) | [docs/mcp.zh-CN.md](docs/mcp.zh-CN.md) |
265
+ | Subagents and custom subagents | [docs/subagents.md](docs/subagents.md) | [docs/subagents.zh-CN.md](docs/subagents.zh-CN.md) |
266
+ | Stable UI versus experimental TUI | [docs/deepy-ui-and-tui.md](docs/deepy-ui-and-tui.md) | [docs/deepy-ui-and-tui.zh-CN.md](docs/deepy-ui-and-tui.zh-CN.md) |
267
+
268
+ ## Command Reference
269
+
270
+ ```bash
271
+ deepy --version
272
+ deepy config setup
273
+ deepy config reset
274
+ deepy config theme
275
+ deepy doctor
276
+ deepy doctor --live --json
277
+ deepy status
278
+ deepy tui
279
+ deepy skills list
280
+ deepy skills show <name>
281
+ deepy sessions list
282
+ deepy sessions show <session-id>
283
+ deepy run "summarize this project"
284
+ ```
285
+
286
+ Deepy stores active project sessions in a local SQLite session store. Historical
287
+ JSONL session files from older Deepy versions are not imported, listed, or
288
+ resumed by current session commands.
289
+
290
+ Inside the interactive terminal:
291
+
292
+ ```text
293
+ /help Show interactive help
294
+ /model Select provider, model, and thinking mode
295
+ /status Show usage, context pressure, and DeepSeek balance
296
+ /resume Resume a previous project session
297
+ /new Start a fresh session
298
+ /compact Compact the active session context
299
+ /mcp Show MCP server status and tools
300
+ /skills Manage local and market Skills
301
+ /<name> [request] Invoke a Skill directly
302
+ /init Create or update project AGENTS.md
303
+ /theme Show or change terminal UI theme
304
+ /ps Show managed background shell tasks
305
+ /stop Choose background shell tasks to stop
306
+ ```
307
+
308
+ ## Configuration
309
+
310
+ Deepy stores configuration in `~/.deepy/config.toml`. The interactive first-run
311
+ setup creates this file for most users.
312
+
313
+ Minimal resolved shape:
314
+
315
+ ```toml
316
+ [model]
317
+ api_key = "sk-..."
318
+ provider = "deepseek"
319
+ name = "deepseek-v4-pro"
320
+ base_url = "https://api.deepseek.com"
321
+ thinking = true
322
+ reasoning_effort = "max"
323
+
324
+ [context]
325
+ window_tokens = 1048576
326
+ compact_trigger_ratio = 0.8
327
+ reserved_context_tokens = 50000
328
+ compact_preserve_recent_messages = 2
329
+
330
+ [ui]
331
+ theme = "dark" # dark or light
332
+ ```
333
+
334
+ Manual configuration commands:
335
+
336
+ ```bash
337
+ deepy config setup
338
+ deepy config init --api-key sk-... --provider deepseek --model deepseek-v4-pro
339
+ deepy config init --api-key sk-or-... --provider openrouter --model xiaomi/mimo-v2.5-pro
340
+ deepy config init --api-key sk-or-... --provider openrouter --model anthropic/claude-sonnet-4.5 --thinking minimal
341
+ deepy config init --api-key sk-... --provider xiaomi --model mimo-v2.5-pro
342
+ deepy config theme light
343
+ ```
344
+
345
+ Supported provider/model pairs:
346
+
347
+ - `deepseek`: `deepseek-v4-pro`, `deepseek-v4-flash`; thinking modes `none`,
348
+ `high`, `max`.
349
+ - `openrouter`: UI model selection offers `xiaomi/mimo-v2.5-pro`,
350
+ `xiaomi/mimo-v2.5`; setup/init may also use a model id copied from
351
+ OpenRouter. Thinking modes are `enabled`, `disabled`, `xhigh`, `high`,
352
+ `medium`, `low`, `minimal`, `none`.
353
+ - `xiaomi`: `mimo-v2.5-pro`, `mimo-v2.5`; thinking modes `enabled`,
354
+ `disabled`.
355
+
356
+ WebSearch uses Deepy's hosted SearXNG endpoint by default. You can override it:
357
+
358
+ ```toml
359
+ [tools.web_search]
360
+ searxng_url = "https://your-searxng.example/"
361
+ ```
362
+
363
+ ## Development
364
+
365
+ ```bash
366
+ uv sync --group dev
367
+ uv run pytest
368
+ uv run ruff check
369
+ uv run ty check src
370
+ uv build
371
+ ```
372
+
373
+ The Python package is built from `src/deepy`. GitHub Pages files and screenshot
374
+ assets live outside the package directory and are not included in the wheel.