You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d90993
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/automation/api-keys.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ wire format and auth path are identical for all kinds.
14
14
|---|---|---|
15
15
|`AGENT`| Linked to a specific agent via `linkedAgentId`. Permanent until revoked. | Hermes/runtime daemons, custom always-on bridges. |
16
16
|`PERSONAL`| No agent link. Permanent until revoked. | Local Claude Code sessions, scripts, personal terminal access. |
17
-
|`SESSION`| TTL-bounded via `expiresAt`. Auto-rejected after expiry. | Ephemeral Claude Code sessions, one-off Codex CLI runs. |
17
+
|`SESSION`| TTL-bounded via `expiresAt`. Rejected at auth after expiry, then purged from the DB by an hourly sweep. | Ephemeral Claude Code sessions, one-off Codex CLI runs. |
18
18
19
19
`kind` is inferred automatically when using `access.create`: if `linkedAgentId` is
20
20
provided, kind defaults to `AGENT`; otherwise `PERSONAL`. To create a session key,
@@ -231,7 +231,9 @@ Three tRPC mutations create workspace keys:
231
231
-**`access.createPersonal`** — shorthand for `kind: PERSONAL` with no agent
232
232
link. Suitable for scripts and local dev access.
233
233
-**`access.createSession`** — shorthand for `kind: SESSION` with a required
234
-
`ttlHours` (1–168, default 24). Auto-rejected after expiry.
234
+
`ttlHours` (1–168, default 24). Rejected at auth after expiry, and purged
235
+
from the DB by an hourly worker sweep so expired session keys don't
236
+
accumulate (PERSONAL/AGENT keys with an expiry are left for an admin).
235
237
236
238
All three return `rawKey` in the response. Copy it immediately — the plaintext is
Copy file name to clipboardExpand all lines: docs/reference/mcp.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -470,7 +470,8 @@ the broader Runtime primitive.
470
470
|`register`| Create (or restore) a Runtime row. `{ name, kind, endpoint?, providersAvailable, info? }`. `ownerId` is set from the calling key's `userId`; AGENT-kind keys leave it null. |
|`archive`| Deregister (archive) a runtime — `{ runtimeId }` sets `archivedAt`, so it drops out of `list` (unless `includeArchived`). The teardown counterpart of `register`; exposed as `forge runtimes archive <id>`. Scope `ADMIN`. |
474
475
|`reportInfo`| Agent-linked runtime metadata report. `{ runtimeId?, info }`; omitted `runtimeId` resolves to the calling agent's attached Runtime. Stores a sanitized whitelist such as `runtimeVersion`, `bridgeVersion`, `codexVersion`, `containerImage`, `hostname`, `os`, `arch`, and `workspaceRoot`. |
475
476
476
477
**`register`** is intentionally not deduping server-side — the CLI caches
@@ -484,6 +485,7 @@ heartbeat returns a missing-row error.
484
485
485
486
| Tool | Summary |
486
487
|---|---|
488
+
|`open`| Open (or resume) a tracked run on an issue **you** are working — `{ issueId, summary?, mode? }`. Requires an agent-linked key; the run belongs to the key's `linkedAgentId`. Resumes an existing ACTIVE/WAITING run for the `(issue, agent)` pair instead of stacking a duplicate, and stamps a STARTED event so it shows in Mission Control. Lets an agent (e.g. a local CLI session) proactively self-report work rather than only getting a run as a dispatch side-effect. Issue-anchored; drive it afterward with `recordUsage` / `setWaiting` / `complete`. Scope `WRITE_ISSUES`. |
487
489
|`recordUsage`| Update token + cost columns on an `AgentRun`. `{ runId, tokensIn?, tokensOut?, tokensCached?, costUsd? }`. Idempotent — latest call replaces (cumulative as reported by the agent). |
488
490
|`complete`| Close an active/waiting run. `{ runId, summary, producedArtifactIds?, verificationResult?, followUps?, confidence?, verdict? }`. Requires an agent-linked key matching the run. Execute enforces issue artifact/checklist gates; Research requires `confidence`; Review requires `verdict`; Discuss is reply-only. Stores `completionMeta` with the Forge run contract version. |
489
491
|`setWaiting` / `resumeWork`| Mark a run blocked on the operator, or resume it. Requires an agent-linked key matching the run. |
0 commit comments