propose: walk-up config discovery and configurable source root#264
Conversation
Spec for walk-up config discovery and source_root in config YAML, addressing user experience issues with directory structure flexibility. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Move from docs/superpowers/specs/ to propose/active/ with the standard -PROPOSE.md format matching existing repo conventions. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Directs brainstorming skills to write proposals to propose/active/ in the repo's established format instead of a default docs/superpowers/specs/ location. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Review: DIRS-HIERARCHY proposalThe AGENTS.md edit is clean and well-placed. The proposal is well-structured and follows the repo format. The core design (walk-up + A few things to address before implementation: 1. User C scenario in §3.6 doesn't hold for walk-up The directory layout is: The proposal says: "Walk-up from any subdirectory finds the config." But walking up from Walk-up only helps User C if they run from
2. Missing detail: what about §3.1 says walk-up stops before 3. §3.4 introduces 4. §3.5 says "soft warning if a parent config is detected" during Overall: ready to implement after addressing the User C walk-up description and the minor gaps above. |
- Add "Risks and mitigations" section with symlink, performance, boundary - Add "Decisions taken" section documenting key design rationale - Clarify first-match-wins for nested configs in walk-up algorithm - Clarify $HOME boundary is inclusive (check it, don't go past) - Document resolution-base difference between YAML and CLI source_root - Soften AGENTS.md section list to match actual completed proposals Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Both env vars become optional overrides — walk-up discovery derives source root and index dir automatically. Minimal .mcp.json needs no env block. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
What
Adds a proposal for walk-up config discovery and a
source_rootYAML field, plus an AGENTS.md instruction so brainstorming skills use the repo's proposal format.Why now
Real users hit walls because the tool couples config location, source root, and cwd:
initfrom a multi-system parent → mixed indexcds to a microservice subdir → MCP can't find config--source-rootevery timeHighlights
discover_project_root()walks up from cwd to find.java-codebase-rag.yml(like git)source_rootfield in YAML config — config can live separately from source codeTests
Proposal-only; baseline unchanged.
Out of scope
🤖 Generated with Claude Code