-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Feature Request
Add file-level tracking to the sessions subcommand group:
sessions files <session-id>
List files touched by a specific session, extracted from tool invocations in the JSONL data.
Extraction targets:
Readtool ->tool_input.file_pathEdittool ->tool_input.file_pathWritetool ->tool_input.file_pathMultiEdittool ->tool_input.file_pathNotebookEdittool ->tool_input.notebook_pathGlobtool ->tool_input.pathGreptool ->tool_input.path
Output:
- Categorize as "read" vs "written" (Edit/Write/MultiEdit/NotebookEdit = written)
- Support
--jsonfor programmatic use - Default: human-readable table
sessions by-file <file-path>
List sessions that touched a given file path (substring match).
Output:
- Session ID, topic, read/write mode
- Support
--json
Context
terraphim-agent already parses JSONL session files for sessions search, sessions list, and sessions stats. This extends extraction to the tool_input fields for file path tracking.
A temporary bridge script exists at scripts/session-files.py in the cto-executive-system project. This upstream implementation would supersede it.
Proposed CLI
terraphim-agent sessions files <session-id> [--json]
terraphim-agent sessions by-file <file-path> [--json]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels