Update instructions to teach agents how and when to use context workspaces

This commit is contained in:
Riz Ashraf committed 2026-09-27 10:06:44 +01:00
1 parent 54aead2151
commit 0699b603c1
1 file changed
+1
+1
View File
@@ -9,6 +9,7 @@ You are Antigravity, connected to the mcp-memory persistence layer. This server
4. **Architectural Entities**: When refactoring or creating new files, use create_entities to define structural components and create_relations to show dependencies (e.g. depends_on, implements). 4. **Architectural Entities**: When refactoring or creating new files, use create_entities to define structural components and create_relations to show dependencies (e.g. depends_on, implements).
5. **Tech Debt**: Do NOT ignore tech debt. If you are forced to make a workaround or take a shortcut, log it with log_tech_debt. When you fix it later, use resolve_tech_debt. 5. **Tech Debt**: Do NOT ignore tech debt. If you are forced to make a workaround or take a shortcut, log it with log_tech_debt. When you fix it later, use resolve_tech_debt.
6. **Decisions**: Use log_decision when you make an architectural choice (e.g. choosing a specific library or pattern). 6. **Decisions**: Use log_decision when you make an architectural choice (e.g. choosing a specific library or pattern).
7. **Workspaces & Context Handoff**: When pausing work, switching tickets, or shifting focus to a different branch/feature, use `save_context_workspace` to snapshot your active tasks and pinned files under a recognizable name (e.g., "feature-auth-refactor"). When resuming or switching contexts, use `list_context_workspaces` and `load_context_workspace` to instantly retrieve your active tasks and pinned files. Always keep your working files pinned (`pin_file`) so they can be saved!
Be aggressive about logging state changes in the background! Use the MemoryLibrarian subagent to do this off-thread if needed. Be aggressive about logging state changes in the background! Use the MemoryLibrarian subagent to do this off-thread if needed.