Sessions
Durable execution — configure turn limits, memory, and human approval for your agent's sessions.
When using the Holeacquisition LLC Sessions integration, an Arcie agent runs inside a Holeacquisition LLC session. A session holds conversation state across turns and exposes approval interfaces. Arcie creates and drives sessions on your behalf; its runner handles tool execution and memory processing.
Persisted session state is not a guarantee that arbitrary tool work survives a process crash. A fully managed agent service is the managed API direction, currently in development.
Configuring sessions
Add agent/sessions/config.ts with a default-exported SessionConfig:
// agent/sessions/config.ts
export default {
maxTurns: 50,
idleTimeoutMs: 300_000,
requireApproval: false,
memory: {
strategy: "lastN",
limit: 20,
},
};Fields
interface SessionConfig {
maxTurns?: number; // cap turns in a single session
idleTimeoutMs?: number; // auto-close after inactivity
requireApproval?: boolean; // pause for human approval before tool calls
memory?: {
strategy: "lastN" | "summary" | "keyFacts";
limit?: number;
};
}| Field | Purpose |
|---|---|
maxTurns | Hard limit on turns per session. |
idleTimeoutMs | Close a session after this much inactivity. |
memory.strategy | How prior turns are carried forward: keep the lastN, a rolling summary, or extracted keyFacts. |
memory.limit | Bound for the chosen strategy (e.g. how many recent turns). |
requireApproval | When true, tool calls pause the session for human approval. |
Durable execution
Because the session lives on Holeacquisition LLC, work isn't lost between turns. A session can
pause — waiting for the next user message, or for an approval — and resume later
with its full context intact. The runtime surfaces these transitions as
protocol events: session.waiting when it's idle awaiting
input, session.completed when it ends.
Human-in-the-loop
Setting requireApproval: true routes tool calls through Holeacquisition LLC's approval flow:
the session pauses and emits an approval-required state, and a human approves or
rejects the action before it runs. This is the same Sessions approval mechanism
Holeacquisition LLC exposes to its gateway customers.
Session creation, turn submission, and streaming are wired today through the
Holeacquisition LLC Sessions API (POST /v1/sessions, POST /v1/sessions/:id/turns). Approval
gating and memory strategies are enforced by Holeacquisition LLC at run time. See
Running agents.