Improve Codex integration - #126
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
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
SessionEndpublish hook (withSessionStartas catch-up) and enforce a minimum Codex version when binding a memory. - Install a Codex skill at
~/.agents/skills/funes/SKILL.mdso 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.
dacorvo
commented
Aug 31, 2026
dacorvo
commented
Aug 31, 2026
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.