Skip to content

Integrate Hermes Agent Codex App-Server Runtime for Samantha #28

Description

@gagan114662

Overview

Hermes Agent now supports a Codex App-Server runtime that delegates OpenAI agent turns to the Codex CLI instead of running its own tool loop. This unlocks a significantly more capable execution environment for Samantha.

Reference: https://hermes-agent.nousresearch.com/docs/user-guide/features/codex-app-server-runtime


What This Unlocks for Samantha

With this runtime, Samantha gains three independent tool sources simultaneously:

  1. Codex built-in toolset — shell commands, file patching, planning, image viewing, web search — all running in Codex's seatbelt/landlock sandbox
  2. Native Codex plugins — Linear, GitHub, Gmail, Calendar, Canva, and others auto-migrate from existing Codex installations without reconfiguration
  3. Hermes callback tools — web automation, vision analysis, image generation, skills access, TTS — flow through an MCP server registered in Codex's config

Setup Requirements

  • Codex CLI v0.130.0+: npm i -g @openai/codex
  • OAuth: codex login + hermes auth login codex
  • Enable runtime: /codex-runtime codex_app_server

This auto-verifies Codex CLI, persists to config.yaml, discovers and migrates installed plugins, registers Hermes as MCP callback server, and sets sandbox to workspace-level access.

To disable/toggle back: /codex-runtime auto


Known Limitations

These 4 Hermes tools are unavailable in Codex runtime (require mid-loop agent context):

  • delegate_task — subagent spawning
  • memory — persistent storage
  • session_search — cross-session queries
  • todo — task management (Codex's update_plan substitutes)

Acceptance Criteria

  • Codex CLI v0.130.0+ installed on Samantha
  • hermes auth login codex authenticated successfully
  • /codex-runtime codex_app_server enabled and persisted in config.yaml
  • Samantha can execute shell commands and file patches via Codex sandbox
  • Hermes callback tools (web automation, vision, image gen) still accessible via MCP
  • Desired Codex plugins (GitHub, Linear, etc.) migrated and functional
  • Revenue loop tasks run successfully under Codex runtime
  • Document which tasks work better under Codex vs auto runtime

Why Now

Samantha currently runs on Hermes auto-runtime with limited tool access. The Codex runtime gives her native shell execution, file patching, and plugin ecosystem — all critical for autonomous job execution on Upwork and content publishing pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions