mirror of
https://github.com/encounter/ghidra-cli.git
synced 2026-07-10 03:18:56 -07:00
fix agents
This commit is contained in:
@@ -11,39 +11,4 @@ ghidra-cli uses a **daemon-only architecture**:
|
||||
- All commands route through a daemon process
|
||||
- Daemon manages a persistent Ghidra bridge connection
|
||||
- Import/Analyze/Quick commands auto-start the daemon
|
||||
- One daemon per project, one program per daemon
|
||||
|
||||
## Key Patterns
|
||||
|
||||
### Starting Analysis
|
||||
```bash
|
||||
# Quickest path - auto-starts daemon
|
||||
ghidra quick ./binary
|
||||
|
||||
# Or explicit steps (daemon auto-starts on import)
|
||||
ghidra import ./binary --project myproj --program prog
|
||||
ghidra analyze --project myproj --program prog
|
||||
```
|
||||
|
||||
### Daemon is Always Running
|
||||
After import/analyze/quick, the daemon is running. All query commands use it automatically:
|
||||
```bash
|
||||
ghidra function list # Uses daemon
|
||||
ghidra decompile main # Uses daemon
|
||||
ghidra find crypto # Uses daemon
|
||||
```
|
||||
|
||||
### Manual Daemon Control
|
||||
```bash
|
||||
ghidra daemon status # Check if running
|
||||
ghidra daemon stop # Stop daemon
|
||||
ghidra daemon restart --project p --program new_prog # Switch program
|
||||
```
|
||||
|
||||
## Code Organization
|
||||
|
||||
- `src/main.rs` - CLI entry point, command routing
|
||||
- `src/daemon/` - Daemon process, IPC server, command handlers
|
||||
- `src/ghidra/bridge.rs` - Ghidra bridge connection management
|
||||
- `src/ghidra/scripts/bridge.py` - Python script running inside Ghidra
|
||||
- `src/ipc/` - IPC protocol and client
|
||||
- One daemon per project
|
||||
|
||||
Reference in New Issue
Block a user