search_commands
Search recorded shell commands by text to find individual commands, exit codes, timestamps, and directories—useful for 'did I run X' or 'what broke here'.
Instructions
Search recorded shell commands by text. One row per command: stable ID, exit code, timestamp, directory. Use this when you want individual commands — 'did I ever run X', 'what broke here', 'how is this project built'. When the question is about a whole piece of work rather than one command ('what did the last agent do', 'what was I working on'), start with find_agent_session or list_agent_sessions instead and drill in from there. Suvadu recorded the command and its exit code, never its output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only commands at or after this time: today, yesterday, N minutes ago, N hours ago, N days ago, N weeks ago, YYYY-MM-DD, or an ISO 8601 date-time such as 2026-10-18T10:00:00Z or 2026-10-18T10:00:00+05:30 (no offset means local time) | |
| limit | No | Max rows in this page (default: 20) | |
| query | Yes | Text to search for in commands, as one case-insensitive substring. If nothing matches, it is retried ignoring whitespace and -_./: (so hiveagent finds hive-agent), and the response notes it | |
| before | No | Only commands at or before this time; a bare date includes that whole day: today, yesterday, N minutes ago, N hours ago, N days ago, N weeks ago, YYYY-MM-DD, or an ISO 8601 date-time such as 2026-10-18T10:00:00Z or 2026-10-18T10:00:00+05:30 (no offset means local time) | |
| detail | No | Add directory, duration, executor and session to each row (default: false) | |
| offset | No | Rows to skip; pass the response's next_offset to page forward | |
| executor | No | Filter by executor (e.g. claude-code, cursor, human) | |
| directory | No | Filter to commands run in this directory | |
| exit_code | No | Filter by exit code (0 = success) |