Skip to content

Improve Codex integration - #126

Merged
dacorvo merged 4 commits into
mainfrom
codex_integration
Aug 31, 2026
Merged

Improve Codex integration#126
dacorvo merged 4 commits into
mainfrom
codex_integration

Conversation

@dacorvo

@dacorvo dacorvo commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

This adds a Session End hook to push sessions (this is now supported in Codex).

This also adds a skill so that funes verbs are immediately identified as memory tools.

dacorvo and others added 3 commits August 31, 2026 14:29
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codex lists a skill's name and description before it loads any MCP tool, so
deferred funes tools were invisible when asked what memory was available.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the Codex integration by (1) publishing to a bound memory at true session boundaries via Codex’s newly available SessionEnd hook, and (2) making funes recognizable as a “memory” provider in Codex before MCP tools are loaded via an installed skill.

Changes:

  • Add Codex SessionEnd publish hook (with SessionStart as catch-up) and enforce a minimum Codex version when binding a memory.
  • Install a Codex skill at ~/.agents/skills/funes/SKILL.md so Codex can surface funes as memory pre-tool-load.
  • Add MCP server instructions text and update docs/tests to reflect the new Codex behavior and requirements.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/add_codex_hooks.rs Updates integration test expectations for SessionEnd and skill installation.
src/commands/mcp.rs Adds MCP server-level “instructions” text for clients.
src/agents/codex.rs Implements skill install/uninstall, adds SessionEnd publish hook, and gates bound-memory installs on Codex version.
integrations/codex/SKILL.md New Codex skill frontmatter + description to identify funes as memory.
docs/automation.md Updates Codex automation documentation (skill + boundary publish behavior + minimum version note).
docs/add.md Updates the agent matrix to reflect Codex publish requirements.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/agents/codex.rs Outdated
Comment thread src/agents/codex.rs Outdated
Comment thread docs/add.md Outdated
Comment thread src/agents/codex.rs
- MIN_CODEX: say which version is enforced, and why it isn't 0.145.0.
- uninstall: clean the skill even when the hooks file is malformed.
- the boundary publish indexes the harness first, so a turn still landing
  when a session ends is published now, not by the next catch-up.
- `funes add codex` says that Codex skips hooks until `/hooks` trusts them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dacorvo
dacorvo merged commit 729d180 into main Aug 31, 2026
8 checks passed
@dacorvo
dacorvo deleted the codex_integration branch August 31, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants