# pi vs software-agent-sdk

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

Page: https://ai-agents-review.com/compare/pi-vs-software-agent-sdk

## Programmable capabilities

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [3→4 [config: activate built-in tool_search] s](https://ai-agents-review.com/cell/pi/capability-interface.md) | [3 s](https://ai-agents-review.com/cell/software-agent-sdk/capability-interface.md) | yes |
| [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) | [2 s](https://ai-agents-review.com/cell/pi/reusable-computation.md) | [1→2 [opt: load_user_skills / load_project_skills] s](https://ai-agents-review.com/cell/software-agent-sdk/reusable-computation.md) | yes |
| [Capability transfer](https://ai-agents-review.com/column/capability-transfer.md) | [2 d](https://ai-agents-review.com/cell/pi/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/software-agent-sdk/capability-transfer.md) | no |

## Evidence and memory

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/pi/durable-evidence.md) | [0→3 [opt: persistence_dir on agent-server with retention set] s](https://ai-agents-review.com/cell/software-agent-sdk/durable-evidence.md) | yes |
| [Context recovery](https://ai-agents-review.com/column/context-recovery.md) | [2 s](https://ai-agents-review.com/cell/pi/context-recovery.md) | [1→2 [exp: conversation_mentions] s](https://ai-agents-review.com/cell/software-agent-sdk/context-recovery.md) | yes |
| [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) | [0 s](https://ai-agents-review.com/cell/pi/memory-maintenance.md) | [0→1 [opt: load_memory=True] s](https://ai-agents-review.com/cell/software-agent-sdk/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) | [1 s](https://ai-agents-review.com/cell/pi/specialist-definition.md) | [0→3 [opt: enable_sub_agents=True] s](https://ai-agents-review.com/cell/software-agent-sdk/specialist-definition.md) | yes |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [0→3 [alt: pi-durable checkpointed child tasks] s](https://ai-agents-review.com/cell/pi/continuation.md) | [0→3 [opt: enable_sub_agents + agent-server child conversations] s](https://ai-agents-review.com/cell/software-agent-sdk/continuation.md) | no |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [0→1 [alt: pi-durable] s](https://ai-agents-review.com/cell/pi/coordination.md) | [0→2 [opt: enable_sub_agents / workflow tool] s](https://ai-agents-review.com/cell/software-agent-sdk/coordination.md) | yes |

## Execution controls

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [0→2 [alt: Docker / OpenShell / Gondolin (documented)] d](https://ai-agents-review.com/cell/pi/confinement.md) | [0→3 [opt: DockerWorkspace / server docker runtime] s](https://ai-agents-review.com/cell/software-agent-sdk/confinement.md) | yes |
| [Credential handling](https://ai-agents-review.com/column/credential-handling.md) | [1 s](https://ai-agents-review.com/cell/pi/credential-handling.md) | [2→3 [opt: DockerWorkspace forward_env] s](https://ai-agents-review.com/cell/software-agent-sdk/credential-handling.md) | yes |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1→2 [alt: pi-durable maxTurns] s](https://ai-agents-review.com/cell/pi/budget-enforcement.md) | [2 s](https://ai-agents-review.com/cell/software-agent-sdk/budget-enforcement.md) | yes |

## Product integration

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/pi/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/software-agent-sdk/embedding-interfaces.md) | no |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [1 s](https://ai-agents-review.com/cell/pi/declarative-configuration.md) | [2 s](https://ai-agents-review.com/cell/software-agent-sdk/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [2→3 [alt: pi-durable] s](https://ai-agents-review.com/cell/pi/durable-execution.md) | [0→3 [alt: agent-server] s](https://ai-agents-review.com/cell/software-agent-sdk/durable-execution.md) | yes |

## Operations and verification

| Column | pi | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [E s](https://ai-agents-review.com/cell/pi/service-dependencies.md) | [E (+R opt: agent server) s](https://ai-agents-review.com/cell/software-agent-sdk/service-dependencies.md) | yes |
| [Execution records](https://ai-agents-review.com/column/execution-records.md) | [2 s](https://ai-agents-review.com/cell/pi/execution-records.md) | [1→3 [opt: persistence_dir] s](https://ai-agents-review.com/cell/software-agent-sdk/execution-records.md) | yes |
| [Result checks](https://ai-agents-review.com/column/result-checks.md) | [2 s](https://ai-agents-review.com/cell/pi/result-checks.md) | [3 s](https://ai-agents-review.com/cell/software-agent-sdk/result-checks.md) | yes |

## Rationales

### Capability interface

- pi: Extensions, built-in MCP client, host-registered SDK tools (R8), per-session set; tool_search registered but inactive by default
- software-agent-sdk: Tool specs, MCP, plugins, client tools; regex filtering; no deferral or tool search found (level 4 unmet)

### Reusable computation

- pi: Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)
- software-agent-sdk: Skill loaders default False (agent_context.py:87-100), so nothing executable is rediscovered by default; enabled skills with scripts give L2

### Capability transfer

- pi: Pi package install (npm/git/local) documented [D]; fork/clone exist; no dependency checking (level 3 unmet)
- software-agent-sdk: Git-fetched plugins and serializable Agent; fork exists; tool modules not dependency-checked (level 3 unmet)

### Durable evidence

- pi: Append-only JSONL trees with tool calls; no retention policy, manual delete only (level 3 unmet)
- software-agent-sdk: Default InMemoryFileStore; with persistence, append-only events, configurable server retention, condensation keeps events

### Context recovery

- pi: Originals in JSONL; recovery via file lists and temp-file paths only; no transcript search tool (level 3 unmet)
- software-agent-sdk: Condensed events kept but unreadable by the agent (L1); experimental opt-in retrieval tool reaches L2

### Memory maintenance

- pi: No learned-memory facility and no maintenance instruction; AGENTS.md and skills are guidance files
- software-agent-sdk: load_memory off; when on, MEMORY.md kept via ordinary file tools per prompt; no dedicated tools (level 2 unmet)

### Specialist definition

- pi: Subagents exist only as shipped example extension; example code does not count toward B
- software-agent-sdk: task tool off in default preset; AgentDefinition sets tools/model/prompt; L4 unmet: never_confirm widens

### Continuation

- pi: No subagents in core CLI (example only); pi-durable checkpointed children with restart limit 5
- software-agent-sdk: Off by default; local resume in-process only (ID map in memory); agent-server child conversations survive restart

### Coordination

- pi: No subagents in core CLI; pi-durable children and signals exist; unresolved: pi-durable depth/concurrency caps, cancellation
- software-agent-sdk: Off by default; workflow concurrency cap 8 (max 64); L3 unmet: no depth cap, no cancel propagation

### Confinement

- pi: No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1)
- software-agent-sdk: Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4

### Credential handling

- pi: Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylist
- software-agent-sdk: Host env minus small denylist, LLM_API_KEY visible; DockerWorkspace passes only forward_env allowlist

### Budget enforcement

- pi: CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admission
- software-agent-sdk: 500 iterations and post-step $ cap; child cost merged only at completion does not meet 'covering descendants' (R4)

### Embedding interfaces

- pi: In-process `createAgentSession` (with customTools) plus RPC JSONL with prompt/steer/follow_up/abort/fork; typed events
- software-agent-sdk: Python SDK, in-process Local plus Remote over HTTP+WS; typed events, run/pause/send, confirmation policy, client tools

### Declarative configuration

- pi: Settings files explicitly not validated at runtime despite published schemas; only `models.json` is type-checked
- software-agent-sdk: Pydantic types and ranges validated; unknown keys silently ignored for Config, LLM and settings

### Durable execution

- pi: CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnect
- software-agent-sdk: Local SDK persists nothing without `persistence_dir`. The server survives disconnect and marks stale RUNNING as ERROR, with no auto re-run

### Service dependencies

- pi: Single Node process, no daemon or DB; MCP and fd/rg run as children
- software-agent-sdk: Local SDK runs no services; the agent server stays resident with lease and eviction loops

### Execution records

- pi: JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmet
- software-agent-sdk: Local default keeps events in memory only, capped at 1 (R12); with persistence, structured error/limit events plus optional OTel

### Result checks

- pi: Extension hooks can block or force another turn, with no stated cap; arguments are validated structurally
- software-agent-sdk: Opt-in critic and goal judge re-prompt up to `max_iterations` and record `capped` vs `complete`. No default check, so not level 4
