genaicode 2.38.0 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ fails. Merging to master refreshes the `release` PR; merging that publishes to n
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 2.39.0 — 2026-11-20
12
+
13
+ ### Added
14
+
15
+ - Ask “Which sessions need my attention?” in `genaicode chat --sessions`. The new `sessions_waiting` MCP tool lists pending approvals and replies across projects, including open questions (#215)
16
+
11
17
  ## 2.38.0 — 2026-11-20
12
18
 
13
19
  ### Added
package/docs/agents.md CHANGED
@@ -460,14 +460,15 @@ app-server protocol (`codex app-server generate-ts`) no longer has a field that
460
460
 
461
461
  ### Asking an agent about the sessions: `sessions mcp`
462
462
 
463
- The index is also three MCP tools, so an agent can answer "what is open?" and "what waits for
464
- me?" across all of them:
463
+ The session index provides four read-only MCP tools. In `genaicode chat --sessions`, ask
464
+ "Which sessions need my attention?" to see which project needs a decision or a reply.
465
465
 
466
- | tool | what it returns |
467
- | ------------------- | -------------------------------------------------------------------------------------- |
468
- | `sessions_projects` | projects worked in lately, with counts per agent and per state |
469
- | `sessions_list` | sessions, newest first; filters `project`, `agent`, `state`, `text`, `days`, `limit` |
470
- | `sessions_read` | what was said in one session: prompts, the agent's messages and the names of its tools |
466
+ | tool | what it returns |
467
+ | ------------------- | --------------------------------------------------------------------------------------------- |
468
+ | `sessions_projects` | projects worked in lately, with counts per agent and per state |
469
+ | `sessions_list` | sessions, newest first; filters `project`, `agent`, `state`, `text`, `days`, `limit` |
470
+ | `sessions_waiting` | approvals and replies with open questions, filtered by `project`, `agent`, `days` and `limit` |
471
+ | `sessions_read` | what was said in one session: prompts, the agent's messages and the names of its tools |
471
472
 
472
473
  ```bash
473
474
  npx genaicode chat --sessions # the chat's agent gets the tools
@@ -475,6 +476,12 @@ claude mcp add sessions -- npx genaicode sessions mcp # or any agent, as a
475
476
  codex mcp add sessions -- npx genaicode sessions mcp
476
477
  ```
477
478
 
479
+ `sessions_waiting` uses the same order as `genaicode sessions --waiting`. It shows approvals
480
+ first, then sessions awaiting a reply, newest first within each group. It looks back seven days
481
+ and shows up to 30 sessions by default. For questions held open by `hooks install --answer`,
482
+ the agent can read the question ID, tool name and preview. Archived sessions stay out of this
483
+ view and appear with `[archived]` in `sessions_list` and `sessions_read`.
484
+
478
485
  `state` is `active`, `waiting`, `unfinished` or `approval` (a session that asks whether it may use
479
486
  a tool, known once the [hooks](#which-sessions-need-you-hooks) are installed). The tools only read
480
487
  the local stores. They are off unless you ask for them, because the agent that has them reads what
package/docs/cli.md CHANGED
@@ -111,11 +111,11 @@ them); the agents' files stay as they are (see
111
111
  updates: counts per store, never content, exit code 1 when one looks broken (see
112
112
  [sessions doctor](agents.md#when-an-agent-changes-its-store-sessions-doctor)).
113
113
 
114
- `npx genaicode chat --sessions` gives the chat's agent that index as tools, so you can ask it what
115
- is open or what waits for you in every agent; `npx genaicode sessions mcp` serves the same tools
116
- to any agent as a stdio MCP server (see
117
- [sessions mcp](agents.md#asking-an-agent-about-the-sessions-sessions-mcp)). The agent that has
118
- them reads what the other sessions said.
114
+ In `npx genaicode chat --sessions`, ask "Which sessions need my attention?" The
115
+ `sessions_waiting` tool shows the same sessions as `genaicode sessions --waiting`, including
116
+ the project, open approval questions and the latest reply. `npx genaicode sessions mcp` serves
117
+ the same read-only tools over stdio. The agent can read what the other sessions said and what
118
+ their open questions ask. See [session tools](agents.md#asking-an-agent-about-the-sessions-sessions-mcp).
119
119
 
120
120
  ## Chat with an agent: terminal and browser
121
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genaicode",
3
- "version": "2.38.0",
3
+ "version": "2.39.0",
4
4
  "description": "Drive the coding-agent CLIs you already have (Claude Code, Codex, Copilot, Cursor, Gemini, opencode...) behind one API and one CLI, plus a thin provider-neutral LLM layer.",
5
5
  "author": "Grzegorz Tańczyk",
6
6
  "repository": {