FullStack AI Hub
Studio
Execution Protocols & Sandboxes
v0.1.6 vs. rust-v0.95.0

Agent Protocol vs. OpenAI Codex CLI

Architectural Verdict

Agent Protocol standardizes framework-agnostic REST lifecycle verbs (tasks, steps, artifacts) for interoperability, while OpenAI Codex CLI provides a terminal-native coding runtime combining local diff patching with OS-level Seatbelt/Landlock network-isolated sandboxes.

Side-by-Side Architecture Specification Matrix

DimensionAgent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint ArchitectureOpenAI Codex rust-v0.95.0 architecture evidence
Pinned Releasev0.1.6rust-v0.95.0
Dynamic Layers4 layers5 layers
AST Symbols & Edges16 symbols / 16 edges15 symbols / 15 edges
Memory Struct Layouts2 structs (3800 B)2 structs (1355 B)
Telemetry Metrics3 metrics3 metrics
Full TeardownRead Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture Read OpenAI Codex rust-v0.95.0 architecture evidence

Key Architectural Differences (3 Aligned Roles)

  • Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture declares 4 dynamic layers while OpenAI Codex rust-v0.95.0 architecture evidence declares 5 layers (3 shared functional roles).
  • Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture incorporates dedicated [Storage & Persistence] not present in OpenAI Codex rust-v0.95.0 architecture evidence.
  • OpenAI Codex rust-v0.95.0 architecture evidence incorporates dedicated [Evaluation & Benchmarks, UI & Client Interface] not present in Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture.
  • Memory Layout: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture details 2 struct(s) (3800 B) vs. OpenAI Codex rust-v0.95.0 architecture evidence with 2 struct(s) (1355 B).
  • Production Telemetry: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture specifies 3 metric(s) (histogram dominant) with 3 alert threshold(s) vs. OpenAI Codex rust-v0.95.0 architecture evidence with 3 metric(s) (histogram dominant).
  • AST Codebase Graph: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture maps 16 symbols (9 classes, 6 functions) across 16 edges, compared to 15 symbols (10 classes, 4 functions) across 15 edges in OpenAI Codex rust-v0.95.0 architecture evidence.

Interactive Layer, Memory & AST Graph Explorer

Curated Architecture Battles & Presets

System A (Primary)4 Layers · 16 Symbols
System B (Comparison)5 Layers · 15 Symbols
Layer Roles
3 / 6 matched
3 specialized divergent
Memory Footprint
3800 B vs 1355 B
Δ 2445 bytes diff
Telemetry Metrics
3 vs 3
6 alert rules
AST Graph Symbols
16 vs 15
0 shared concepts
Side-by-Side Architecture Specification Matrix
Architecture CriterionAgent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint ArchitectureOpenAI Codex rust-v0.95.0 architecture evidenceCross-System Delta
Dynamic Layer Depth4 layers5 layers3 shared architectural roles
Execution Step Traces9 traced steps9 traced steps2 vs 2 chapters
Declared Memory Footprint3800 B (2 structs)1355 B (2 structs)Δ 2445 B
Production Alert Rules3 metrics3 metrics6 total thresholds
AST Codebase Graph Nodes16 symbols15 symbols0 shared concepts

Layers mapped by contextual architectural role. Aligned rows indicate shared structural responsibilities.

Role Aligned (3)Specialized Divergent (3)
Ingress & API Gateway
role: ingress
Both Implement
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
OpenAPI REST Control Plane & FastAPI Routers
L1

FastAPI routers for Agents, Threads, Runs, Background Runs, and Store generated from openapi.json.

OpenAI Codex rust-v0.95.0 architecture evidence
JSON-RPC Bidirectional Protocol & App-Server
L1

Streaming JSONL transport processing incoming JSON-RPC requests and broadcasting incremental responses.

Orchestration & Workflow
role: orchestration
Both Implement
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
Thread-Centric Run State Machine & Interrupts
L2

Stateful and stateless run execution, checkpoint branching, human-in-the-loop interrupts, and disconnect policies.

OpenAI Codex rust-v0.95.0 architecture evidence
Thread, Turn & Item State Machine
L2

Hierarchical thread manager organizing agent interactions into persistent threads, turns, and items.

Execution Kernel & Compute
role: kernel
Both Implement
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
RFC 8610 CDDL Streaming & Content Block Multiplexer
L3

9-channel event streaming, non-interleaved content-block-start/delta/finish framing, and subgraph causation edges.

OpenAI Codex rust-v0.95.0 architecture evidence
Linux Namespaces & Process Sandbox Isolation
L5

Containerless process sandbox isolating commands with Linux namespaces, cgroups, and seccomp filters.

Storage & Persistence
role: storage
Unique to Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
Hierarchical Namespace Store & AST Codegen Pipeline
L4

Cross-thread key-value Store API and AST topological sort compiler (fixup.py) for Python/TypeScript protocol bindings.

OpenAI Codex rust-v0.95.0 architecture evidence
No layer mapped to this role in OpenAI Codex rust-v0.95.0 architecture evidence
Evaluation & Benchmarks
role: eval
Unique to OpenAI Codex rust-v0.95.0 architecture evidence
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
No layer mapped to this role in Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
OpenAI Codex rust-v0.95.0 architecture evidence
Human Approval Policy & Security Interceptor
L4

Command policy evaluator freezing execution until operator confirms shell and file operations.

UI & Client Interface
role: ui
Unique to OpenAI Codex rust-v0.95.0 architecture evidence
Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
No layer mapped to this role in Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture
OpenAI Codex rust-v0.95.0 architecture evidence
Ratatui Terminal Interface & Event Dispatch Loop
L3

Async terminal event loop processing keyboard inputs, Codex events, and rendering chat widgets.

Automated Architectural Contrast & Takeaways

  • •Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture declares 4 dynamic layers while OpenAI Codex rust-v0.95.0 architecture evidence declares 5 layers (3 shared functional roles).
  • •Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture incorporates dedicated [Storage & Persistence] not present in OpenAI Codex rust-v0.95.0 architecture evidence.
  • •OpenAI Codex rust-v0.95.0 architecture evidence incorporates dedicated [Evaluation & Benchmarks, UI & Client Interface] not present in Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture.
  • •Memory Layout: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture details 2 struct(s) (3800 B) vs. OpenAI Codex rust-v0.95.0 architecture evidence with 2 struct(s) (1355 B).
  • •Production Telemetry: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture specifies 3 metric(s) (histogram dominant) with 3 alert threshold(s) vs. OpenAI Codex rust-v0.95.0 architecture evidence with 3 metric(s) (histogram dominant).
  • •AST Codebase Graph: Agent Protocol OpenAPI Control Plane, RFC 8610 CDDL Streaming & Thread Checkpoint Architecture maps 16 symbols (9 classes, 6 functions) across 16 edges, compared to 15 symbols (10 classes, 4 functions) across 15 edges in OpenAI Codex rust-v0.95.0 architecture evidence.

More Architecture Comparisons

View Comparator →