chore: reorganize into polyglot monorepo (workshop)
- Move bigmind/ -> mcp/bigmind/ - Move webscraper/ -> mcp/webscraper/ - Move mss-failsafe/ -> java/mss-failsafe/ - Move Wellmann-Shop/ -> java/wellmann-shop/ (normalize to kebab-case) - Add .roo/ IDE config files to tracking - Add plans/REPO_STRATEGY.md (monorepo strategy document) - Expand .gitignore: Java/Maven, Node/TS, coverage, uv.lock - Rewrite README.md as navigation index - Update .roo/mcp.json webscraper path to mcp/webscraper/
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Code Mode Behavior — Roo Code
|
||||
|
||||
## Before Writing Code
|
||||
1. **Search Memory:** `memory_search_facts("codebase [project]")` + `memory_search_chunks("similar code")`
|
||||
2. **Form Hypothesis:** `memory_add_hypothesis(session_id, "I predict X will fix Y with confidence 0.8")`
|
||||
3. **Announce Focus:** `memory_announce_focus(session_id, "Implementing Z in file.py", files=["file.py"], ide_hint="VS Code")`
|
||||
|
||||
## Coding Patterns
|
||||
- **Python:** Use uv for dependencies, FastMCP for MCP servers, pytest for tests
|
||||
- **Java:** Maven for Paisy projects, Spring Boot patterns
|
||||
- **Testing:** Always write tests first, mock external calls
|
||||
- **Token Efficiency:** Use `memory_log_token_save` when reusing code from memory
|
||||
|
||||
## After Code Changes
|
||||
1. **Store Fact:** `memory_store_fact("codebase", "New function X in file.py does Y")`
|
||||
2. **Flag Important:** `memory_flag_important(session_id, "Code review: implemented Z", role="assistant")`
|
||||
3. **Resolve Hypothesis:** `memory_resolve_hypothesis(hypothesis_id, "confirmed", "Worked as predicted")`
|
||||
|
||||
## Error Handling
|
||||
- If code fails, form new hypothesis: "Bug might be in dependency version"
|
||||
- Search: `memory_search_chunks("similar error")`
|
||||
- Debug systematically, log token savings from targeted searches
|
||||
Reference in New Issue
Block a user