mini-swe-agent / docs /usage /inspector.md
AbdulElahGwaith's picture
Upload folder using huggingface_hub
f201cf6 verified
|
Raw
History Blame Contribute Delete
1.62 kB

Inspector: Browse agent trajectories

!!! abstract "Overview"

* The `inspector` is a tool that allows you to browse `.traj.json` files that show the history of a mini-SWE-agent run.
* Quickly start it with `mini-e i` or `mini-extra inspector`.
inspector

Usage

# Find all .traj.json files recursively from current directory
mini-extra inspector
# or shorter
mini-e i
# Open the inspector for a specific file
mini-e i <path_to_traj.json>
# Search for trajectory files in a specific directory
mini-e i <path_to_directory>

Key bindings

  • q: Quit the inspector
  • h/LEFT: Previous step
  • l/RIGHT: Next step
  • j/DOWN: Scroll down
  • k/UP: Scroll up
  • H: Previous trajectory
  • L: Next trajectory

FAQ

How can I select/copy text on the screen?

Hold down the Alt/Option key and use the mouse to select the text.

Implementation

The inspector is implemented with textual.

??? note "Implementation"

- [Read on GitHub](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent//run/inspector.py)

```python linenums="1"
--8<-- "src/minisweagent/run/inspector.py"
```

{% include-markdown "../_footer.md" %}