GhidrAssist · Query Workflow
Multi-step contextual query workflow for deeper investigations.
Workflow: Interactive Queries and the ReAct Agent
This guide walks through using the Query tab for interactive analysis and autonomous investigation.
Overview
The Query tab supports:
- Multi-turn chat
- Context macros
- MCP tool calling
- ReAct agentic investigations
Basic Query Workflow
Ask a Question
- Open the Query tab
- Type your question
- Click Submit
Use Context Macros
Macros insert context from Ghidra:
| Macro | Description |
|---|---|
#func | Current function code (decompiler or disassembly) |
#addr | Data at current address |
#line | Current line (decompiler or disassembly) |
#range(start, end) | Data in address range |
Example:
What does #func do with user input?
Manage Conversations
- New: Start a new conversation
- Delete: Remove selected chats
- Chats persist across sessions
MCP Tool Integration
When Use MCP Tools is enabled, the LLM can call tools to gather data.
Common tool usage:
- Decompile or disassemble
- Query cross-references
- Navigate to addresses
- Query the semantic graph
ReAct Agent Workflow
When to Use ReAct
Use agentic mode for:
- Complex investigations
- Vulnerability searches
- Call-graph exploration
- Data flow tracing
Enabling ReAct
- Enable Use MCP Tools
- Enable Agentic Mode (ReAct)
- Ask your question
The Investigation Process
- Planning: Create a todo list of investigation steps
- Investigation: Call tools and gather evidence
- Reflection: Update the plan if needed
- Synthesis: Provide a final, evidence-based answer
Stopping Early
Click Stop to cancel the investigation. GhidrAssist will save partial findings in the chat history.
Extended Thinking
Configure reasoning depth in Settings:
| Level | Best For |
|---|---|
| None | Quick responses |
| Low | Light reasoning |
| Medium | Moderate complexity |
| High | Deep analysis |
Higher levels improve quality but increase latency and cost.
Tips for Effective Queries
- Be specific about what you want analyzed
- Use macros to include relevant code
- Enable MCP for complex questions
- Use ReAct for multi-step investigations