feat: add DEEPSEEK.md as project context file#1852
Conversation
Add DEEPSEEK.md to PROJECT_CONTEXT_FILES so harnesses like superpowers can ship a harness-specific instruction file. Closes Hmbown#1851
|
Note: Rust toolchain ( However, the change is trivially verifiable by inspection:
I will address any CI failures reported by GitHub Actions. |
There was a problem hiding this comment.
Code Review
This pull request adds support for DEEPSEEK.md as a project context and key file across the TUI crates. The changes include updating the file priority list, key file detection logic, and documentation. Feedback suggests reordering the priority list in project_context.rs to place DEEPSEEK.md above AGENTS.md, ensuring that tool-specific instructions are prioritized over universal ones.
| "AGENTS.md", | ||
| "DEEPSEEK.md", |
There was a problem hiding this comment.
The current priority order places AGENTS.md above DEEPSEEK.md. Since load_project_context stops at the first match it finds in the PROJECT_CONTEXT_FILES list, any project containing a universal AGENTS.md will ignore the harness-specific DEEPSEEK.md. This appears to conflict with the PR's stated goal of providing a bootstrap file that doesn't require repurposing AGENTS.md for tool-specific instructions.
To allow tool-specific overrides while still falling back to universal instructions when the specific file is missing, DEEPSEEK.md should be placed at the top of the list. You should also update the module docstring to reflect this priority change.
| "AGENTS.md", | |
| "DEEPSEEK.md", | |
| "DEEPSEEK.md", | |
| "AGENTS.md", |
|
Thanks for the review. Here's the rationale for keeping
By keeping
|
Adds DEEPSEEK.md to PROJECT_CONTEXT_FILES so harnesses like superpowers can ship a harness-specific instruction file that gets auto-loaded as project_instructions — analogous to GEMINI.md in Gemini CLI.
What
1 line in the PROJECT_CONTEXT_FILES constant, positioned after AGENTS.md so harness-specific files take priority over generic CLAUDE.md while universal AGENTS.md remains top.
Files changed
project_context.rs: AddDEEPSEEK.mdtoPROJECT_CONTEXT_FILESand module docstringworking_set.rs: AddDEEPSEEK.mdto key-file detection candidatesutils.rs: Adddeepseek.mdto fallback key-file matcherWhy
Superpowers needs a harness-specific bootstrap file to inject the
using-superpowersskill at session start. AGENTS.md is already used for universal contributor guidelines and shouldn't be repurposed. Prior art: Gemini CLI readsGEMINI.md, OpenCode reads.opencode/plugins/.Closes #1851