From 610784b17b6456537171baaea76b0334874203e9 Mon Sep 17 00:00:00 2001 From: EmiyaKiritsugu3 Date: Wed, 20 May 2026 22:23:28 -0300 Subject: [PATCH] feat: add DEEPSEEK.md as project context file Add DEEPSEEK.md to PROJECT_CONTEXT_FILES so harnesses like superpowers can ship a harness-specific instruction file. Closes #1851 --- crates/tui/src/project_context.rs | 2 ++ crates/tui/src/utils.rs | 1 + crates/tui/src/working_set.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/crates/tui/src/project_context.rs b/crates/tui/src/project_context.rs index 9fcead495..524753e90 100644 --- a/crates/tui/src/project_context.rs +++ b/crates/tui/src/project_context.rs @@ -4,6 +4,7 @@ //! instructions and context to the AI agent. These include: //! //! - `AGENTS.md` - Project-level agent instructions (primary) +//! - `DEEPSEEK.md` - DeepSeek TUI-specific project instructions //! - `.claude/instructions.md` - Claude-style hidden instructions //! - `CLAUDE.md` - Claude-style instructions //! - `.deepseek/instructions.md` - Hidden instructions file (legacy) @@ -21,6 +22,7 @@ use thiserror::Error; /// Names of project context files to look for, in priority order. const PROJECT_CONTEXT_FILES: &[&str] = &[ "AGENTS.md", + "DEEPSEEK.md", ".claude/instructions.md", "CLAUDE.md", ".deepseek/instructions.md", diff --git a/crates/tui/src/utils.rs b/crates/tui/src/utils.rs index a260e1d50..9ea0c9737 100644 --- a/crates/tui/src/utils.rs +++ b/crates/tui/src/utils.rs @@ -27,6 +27,7 @@ pub fn is_key_file(path: &Path) -> bool { | "pom.xml" | "readme.md" | "agents.md" + | "deepseek.md" | "claude.md" | "makefile" | "dockerfile" diff --git a/crates/tui/src/working_set.rs b/crates/tui/src/working_set.rs index feb81ee23..d9c7af66d 100644 --- a/crates/tui/src/working_set.rs +++ b/crates/tui/src/working_set.rs @@ -1156,6 +1156,7 @@ fn detect_key_files(workspace: &Path) -> Vec { "Cargo.toml", "README.md", "AGENTS.md", + "DEEPSEEK.md", "CLAUDE.md", "package.json", "pyproject.toml",