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
Examine the newly released official DeepSeek Harness at the source level and determine which architectural patterns, if any, are worth adapting into Codex Lab.
This is comparative architecture research, not a proposal to port DeepSeek Harness, adopt Cordis wholesale, or replace the current upstream-first Codex substrate.
Context
DeepSeek has released deepseek-ai/deepseek-harness as a developer-preview open-source agent harness. Its central design is “everything is a plugin”, implemented on top of the Cordis plugin framework.
The architecture documentation exposes several ideas that are directly relevant to current Codex Lab work:
A shared service context (ctx.*) instead of consumers importing concrete implementations.
Explicit service dependencies that control plugin activation.
Typed event contracts with distinct observer, middleware, parallel, and ordered dispatch semantics.
Reversible effects: prompt sections, tools, adapters, providers, and event listeners register with lifecycle-aware disposers so unload/reload unwinds behavior predictably.
Profiles, bundles, and layered patch configuration rather than one privileged core configuration.
An append-only typed session event log as the single source of truth, with LLM history derived from it rather than maintained separately.
A strong reconstructability invariant: model-visible state, rendered system prompts, and tool schemas are recorded such that requests can be reconstructed from durable session state.
Explicit capability seams separating service definition, provider implementation, and consumers for areas such as filesystem, subprocess, shell, sandbox, approvals, credentials, telemetry, persistence, LLM adapters, subagents, and background jobs.
Per-agent scoped registrations and agent presets for changing one agent/session's capabilities without globally mutating the harness.
A guarded tool-execution pipeline and live interception points around agent requests, tool execution, and turn stopping.
DeepSeek explicitly labels the project a developer preview with compatibility-breaking changes expected, so documentation alone should not be treated as a stable contract.
Determine whether capability composition can simplify per-agent tools/prompts/providers without making configuration opaque.
Profiles, bundles, and layered patches
Determine whether DeepSeek's profile/bundle composition solves a real Codex Lab packaging or configuration problem.
Pay particular attention to whether it offers anything better than the current upstream-first overlay/owned-contract approach rather than simply adding another configuration language.
Background work and observable lifecycle
Inspect DeepSeek's jobs, goals, agent lifecycle, and durable session events for ideas relevant to Background Review and generic activity/state reporting.
Review representative tests and implementation code, not only architecture prose.
Distinguish genuinely useful architecture from patterns that mainly fit DeepSeek's TypeScript/Cordis ecosystem.
Deliverables
Produce a concise architecture comparison with:
A subsystem-by-subsystem matrix of DeepSeek Harness versus current Codex Lab behavior.
Concrete source references from both repositories.
A short list of the most promising ideas, each classified as Adopt, Adapt, Already Have, Reject, or Needs Measurement.
For every Adopt/Adapt candidate, identify the specific Codex Lab pain point it addresses and the smallest independently testable implementation shape.
For every rejected idea, record why the added abstraction or migration cost is not justified.
Separate architecture lessons from model-specific DeepSeek behavior.
Create follow-up implementation issues only for findings with a concrete Codex Lab benefit; do not turn the research issue itself into a broad refactor.
Acceptance Criteria
Pin the exact DeepSeek Harness commit reviewed so conclusions remain reproducible while the developer preview changes rapidly.
Inspect the architecture and Cordis documentation plus the implementation of representative plugin loading/unloading, agent loop, session log, tool pipeline, capability/provider registration, approval/sandbox path, and subagent/background-job path.
Trace at least one model-request/turn lifecycle and one tool-execution lifecycle end to end from source rather than relying on diagrams alone.
Trace at least one plugin registration and teardown path to verify the claimed reversible-effect behavior.
Map findings to current Codex Lab source and existing issues instead of proposing abstractions in isolation.
Explicitly evaluate session reconstructability/event-sourcing ideas against Codex Lab resume, provenance, and model-visible context behavior.
Identify at least three meaningful patterns worth serious consideration or record a justified no-action result if the current Codex architecture already covers them better.
For any proposed experiment, keep the prototype bounded, measurable, and independently revertible; no whole-harness rewrite or Cordis port.
Record developer-preview/API-instability and licensing considerations before suggesting any code reuse.
Objective
Examine the newly released official DeepSeek Harness at the source level and determine which architectural patterns, if any, are worth adapting into Codex Lab.
This is comparative architecture research, not a proposal to port DeepSeek Harness, adopt Cordis wholesale, or replace the current upstream-first Codex substrate.
Context
DeepSeek has released
deepseek-ai/deepseek-harnessas a developer-preview open-source agent harness. Its central design is “everything is a plugin”, implemented on top of the Cordis plugin framework.The architecture documentation exposes several ideas that are directly relevant to current Codex Lab work:
ctx.*) instead of consumers importing concrete implementations.Useful starting points:
DeepSeek explicitly labels the project a developer preview with compatibility-breaking changes expected, so documentation alone should not be treated as a stable contract.
Research Questions
Plugin lifecycle and reversible registration
Service/capability seams
Typed middleware/event contracts
emit/ waterfall / parallel / serial event machinery and representative consumers.Durable session state and reconstructability
SessionEventmodel and the rule that model-visible state must be logged/reconstructable.Per-agent composition
Profiles, bundles, and layered patches
Background work and observable lifecycle
Costs and failure modes
Deliverables
Produce a concise architecture comparison with:
Acceptance Criteria
Relationships
Decisions