Recent sessions
recent_sessionsList recent coding-agent sessions in a repository, newest first, with title, status, branch, model, current activity, cost, tokens, and loop alerts to review prior work and decisions.
Instructions
Recent coding-agent sessions (Claude Code, Codex, OpenCode, Gemini and others) in a repository, newest first: title, status, branch, model, what it is doing, cost and tokens, and a loop alert when one is active.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "recent_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | A directory inside the repository; defaults to the directory this server was started in (normally the project the agent is working in). | |
| limit | No | How many to return (default 10, at most 50). | |
| all_repos | No | Every repository instead of one. |