workspace_sessions
Identify concurrent sessions in your project and see files they recently edited, so you can re-read potentially changed files before making your own edits.
Instructions
Returns same-workspace session awareness: who else is actively connected to this project and what files they recently edited.
you — this session's name.
active_sessions — sessions on this workspace right now (name, client, how long since their last tool call). A single entry whose is_self field is true means you are the only active session — your view of the workspace is authoritative. Multiple entries mean concurrent agents are working here; treat any file a peer recently touched as potentially changed.
recent_writes — the last N write operations (write_file, edit_file, rename_file, git commit, …) by all sessions on this workspace. The file path (when available), session name, operation, and age are shown. Only operations that could modify the workspace are listed: read-only git subcommands (status, log, diff, …) and dry-run previews never appear. A call that failed or was refused is kept but marked '[failed — no change applied]' — evidence the peer is working in that file even though nothing landed on disk. A successful git commit is attributed in full: its line carries the session name, the commit's short SHA and subject, and the repository, so a peer's commit is traceable to the session that authored it. When [collab] peer_awareness is on and the topology index has the file, each entry is annotated with its enclosing package/symbol (best-effort, source=topology).
Use this before editing a file that another session may have recently modified: if it appears in recent_writes, re-read it first.
Parameters: recent_limit — max recent-write entries to return (default 10, max 50).
Workspace boundary: workspace_sessions is scoped to the caller's pinned workspace; it never reveals sessions from a different project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recent_limit | No | Maximum recent-write entries to return (1–50; default 10). |