-
Notifications
You must be signed in to change notification settings - Fork 3
Workbench
🌐 Language: English | 中文
Sidebar 📂 button → Workbench view.
A "project card" overview grouped by cwd. Each cwd = one card. Each card shows:
- cwd path (top)
- Recent activity (titles + timestamps of the last few turns)
- Cumulative cost (USD)
- Cumulative tokens (in/out)
Click a card → switch to that cwd's most recent session (creates one if none).
| Button | Effect |
|---|---|
| Card body (click) | Switch to that cwd's latest session |
| "Context" button | Edit that cwd's KINET-CONTEXT.md (see Rules-and-Context) |
| "New session" button | Start a new session in that cwd |
api.getConversations() pulls all sessions → groups by conv.cwd → one group per cwd → computes the cwd's total cost/tokens/recent activity.
There's no "project" entity persisted; everything derives from sessions. Starting a session with a new cwd → Workbench automatically gains a card.
- Multi-project parallel: see each project's cumulative cost in Workbench, spot which hasn't been touched recently
- Quick project switch: no need to dig through the sidebar for the session, just click the card
-
Project-level context: click "Context" to write
KINET-CONTEXT.md, injected into every session under that cwd
| Sidebar session list | Workbench | |
|---|---|---|
| Unit | Single session | cwd (may contain multiple sessions) |
| Default sort | Recent activity descending (updatedAt) |
cwd alphabetical |
| Actions | Switch / delete / rename session | Switch cwd + edit context |
| View | Flat / grouped by project (sb-mode-toggle) |
Always by cwd |
The sidebar defaults to sorting by updatedAt (recent activity) descending, with a relative timestamp (e.g. "2m ago") shown on each channel. The 🕐 button at the sidebar footer toggles to creation order. See Session-Management.
The sidebar's "group by project" mode (▤ button) is a lightweight Workbench — shows grouping inside the sidebar only.
-
src/renderer/app.ts— Workbench view rendering (grepworkbench) -
src/main/main.ts—read-context/write-contextIPC (read/writeKINET-CONTEXT.md)