You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context+ gives you structural awareness of the entire codebase without reading every file. These tools replace your default search and read operations — use them as your primary interface to the codebase.
PMLL Short-Term KV Memory (5 Tools)
Before every expensive MCP tool invocation, agents MUST use the PMLL short-term KV memory tools to check the cache. This eliminates redundant calls and accelerates task execution. These tools are provided by the pmll-memory-mcp server (see mcp/README.md).
Tool
Input
Description
init
session_id: str, silo_size: int = 256
Initialize a PMLL silo and Q-promise chain for the session
peek
session_id: str, key: str
Non-destructive cache lookup + Q-promise check (call before every expensive tool)
set
session_id: str, key: str, value: str
Store a key-value pair in the silo after a cache miss
resolve
session_id: str, promise_id: str
Check or resolve a Q-promise continuation
flush
session_id: str
Clear all silo slots at task completion
The peek() Pattern
Call peek before every expensive tool invocation:
init once at task start to set up the session silo
peek before each expensive call — if hit, use the cached value; if pending, wait on the Q-promise
set after a cache miss to populate the silo for future agents/subtasks
resolve to check or fulfill Q-promise continuations
flush at task end to clear all session slots
This pattern ensures that Context+ tool results, Playwright page contents, and other expensive outputs are cached and reused across subtasks rather than re-fetched.
Tool Priority (Mandatory)
You MUST use Context+ tools instead of native equivalents. Only fall back to native tools when a Context+ tool cannot fulfill the specific need.
Instead of…
MUST use…
Why
grep, rg, ripgrep
semantic_code_search
Finds by meaning, not just string match
find, ls, glob
get_context_tree
Returns structure with symbols + line ranges
cat, head, read file
get_file_skeleton first
Signatures without wasting context on bodies
manual symbol tracing
get_blast_radius
Traces all usages across the entire codebase
keyword search
semantic_identifier_search
Ranked definitions + call chains
directory browsing
semantic_navigate
Browse by meaning, not file paths
Workflow
Start every task with get_context_tree or get_file_skeleton for structural overview
Use semantic_code_search or semantic_identifier_search to find code by meaning
Run get_blast_radius BEFORE modifying or deleting any symbol
Prefer structural tools over full-file reads — only read full files when signatures are insufficient
Run run_static_analysis after writing code
Use search_memory_graph at task start for prior context, upsert_memory_node after completing work
Execution Rules
Think less, execute sooner: make the smallest safe change that can be validated quickly
Batch independent reads/searches in parallel — do not serialize them
If a command fails, diagnose once, pivot strategy, continue — cap retries to 1-2
Keep outputs concise: short status updates, no verbose reasoning
Tool Reference
PMLL Short-Term KV Memory
Tool
When to Use
init
Once at task start. Set up the PMLL silo and Q-promise chain for the session.
peek
Before every expensive MCP tool call. Non-destructive cache + Q-promise check.
set
After a cache miss. Store the result so future agents/subtasks skip the call.
resolve
When a Q-promise is pending. Check or fulfill the continuation.
flush
At task end. Clear all silo slots for the session.
GraphQL
Tool
When to Use
graphql
Execute GraphQL queries/mutations against the memory store with optional PMLL cache integration.
Context+ Structural Tools
Tool
When to Use
get_context_tree
Start of every task. Map files + symbols with line ranges.
get_file_skeleton
Before full reads. Get signatures + line ranges first.
semantic_code_search
Find relevant files by concept.
semantic_identifier_search
Find functions/classes/variables and their call chains.
semantic_navigate
Browse codebase by meaning, not directory structure.
get_blast_radius
Before deleting or modifying any symbol.
get_feature_hub
Browse feature graph hubs. Find orphaned files.
run_static_analysis
After writing code. Catch errors deterministically.