Skip to content

feat: add Codex thread reference tools - #443

Open
nikita-ashihmin wants to merge 3 commits into
agentclientprotocol:mainfrom
nikita-ashihmin:nikita.ashikhmin/air-chat-references
Open

feat: add Codex thread reference tools#443
nikita-ashihmin wants to merge 3 commits into
agentclientprotocol:mainfrom
nikita-ashihmin:nikita.ashikhmin/air-chat-references

Conversation

@nikita-ashihmin

@nikita-ashihmin nikita-ashihmin commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Convert each AIR session resource link to a Codex thread reference.
  • Provide the Codex TUI thread tool set through a private local MCP server.
  • Read a referenced thread only when Codex calls read_thread.
  • Preserve the full ACP session config for delegated and forked tasks.
  • Support paginated history with legacy app-server fallbacks.
  • Keep the MCP schemas, executor, transport, compatibility calls, and documentation in src/thread-tools-mcp.

The server binds to 127.0.0.1 and uses a random bearer token. The adapter does not copy another thread into the prompt.

The runtime pins the Codex alpha that provides toolOutput and history pagination. The compatibility module isolates calls that stable generated types do not expose yet.

Tests

  • npm run typecheck
  • npm test (500 passed, 26 skipped)
  • npm run build

@nikita-ashihmin
nikita-ashihmin force-pushed the nikita.ashikhmin/air-chat-references branch 5 times, most recently from 9283056 to 70e4f27 Compare August 28, 2026 11:34
@nikita-ashihmin nikita-ashihmin changed the title feat: resolve cross-session ACP resource links feat: add ACP session reference metadata Aug 28, 2026
@nikita-ashihmin
nikita-ashihmin force-pushed the nikita.ashikhmin/air-chat-references branch from 70e4f27 to c82c7ac Compare August 28, 2026 11:37
@nikita-ashihmin nikita-ashihmin changed the title feat: add ACP session reference metadata feat: pass Codex thread deep links Aug 28, 2026
@nikita-ashihmin
nikita-ashihmin force-pushed the nikita.ashikhmin/air-chat-references branch from c82c7ac to 6855476 Compare August 28, 2026 11:49
Convert an ACP session reference to a Codex thread deep link. Let Codex resolve the referenced thread without copying its history.
@nikita-ashihmin
nikita-ashihmin force-pushed the nikita.ashikhmin/air-chat-references branch from 6855476 to ab09765 Compare August 28, 2026 11:57
Expose the Codex TUI thread tools through a private local MCP server.
Read referenced threads only when Codex requests their content.
@nikita-ashihmin nikita-ashihmin changed the title feat: pass Codex thread deep links feat: add Codex thread reference tools Aug 28, 2026
Preserve the full ACP session config for delegated tasks. Match the TUI history fallbacks, wait behavior, response limits, and MCP lifecycle.

Keep the new app-server calls in one compatibility module until stable generated types expose them.
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.

1 participant