This document summarizes the implementation of all 13 verification comments.
Status: ✅ COMPLETE
Implementation:
- Created
.codex/tools/codex_mcp_client.py- thin MCP client that invokes tools viacodex toolCLI - Updated
CodexBackend.manage_tasks()to use MCP client instead of direct imports - Updated
CodexBackend.search_web()to use MCP client - Updated
CodexBackend.fetch_url()to use MCP client - All methods now properly invoke MCP tools via subprocess, ensuring async compatibility
Files Modified:
amplifier/core/backend.py.codex/tools/codex_mcp_client.py(new)
Status: ✅ COMPLETE
Implementation:
- Created
amplifier/codex_tools/package directory - Moved
agent_context_bridge.pytoamplifier/codex_tools/agent_context_bridge.py - Created
amplifier/codex_tools/__init__.pywith proper exports - Updated
amplifier/core/agent_backend.pyto import fromamplifier.codex_tools - Removed sys.path hacks
Files Modified:
amplifier/codex_tools/__init__.py(new)amplifier/codex_tools/agent_context_bridge.py(moved from.codex/tools/)amplifier/core/agent_backend.py
Status: ✅ COMPLETE
Implementation:
- Changed
--context-fileto--agentfor agent definition - Changed second
--context-fileto--contextfor session context - Removed duplicate
--context-fileflags - Properly separated agent definition from context data
- Added proper
context_fileinitialization to avoid undefined variable errors
Files Modified:
amplifier/core/agent_backend.py
Status: PENDING
Required Changes:
- Update
.codex/mcp_servers/task_tracker/server.py:- Change
self.tasks_dir = Path(__file__).parent.parent.parent / "tasks"to read from config - Default to
.codex/tasks/ - Load
task_storage_pathfrom[mcp_server_config.task_tracker]in config.toml
- Change
- Ensure
.codex/tasks/directory exists - Normalize task schema to single format
Files to Modify:
.codex/mcp_servers/task_tracker/server.py
Status: PENDING
Required Changes:
- Create
.codex/tools/auto_save.py:- Calls
amplifier_transcripts.save_current_transcriptMCP tool via codex CLI - Or uses CodexMCPClient to invoke the tool
- Calls
- Create
.codex/tools/auto_check.py:- Calls
amplifier_quality.check_code_qualityMCP tool via codex CLI - Or uses CodexMCPClient to invoke the tool
- Calls
- Alternative: Update
amplify-codex.shto call MCP tools directly viacodex toolcommand
Files to Create:
.codex/tools/auto_save.py(new).codex/tools/auto_check.py(new)
Status: PENDING
Required Changes:
- Add
--check-onlyflag parsing inamplify-codex.sh - When flag is set:
- Run prerequisite checks
- Run configuration validation
- Print results
- Exit without launching Codex
- Update help output
Files to Modify:
amplify-codex.sh
Status: PENDING
Required Changes:
- Decide on implementation approach:
- Option A: Implement WebCache, RateLimiter, TextSummarizer classes
- Option B: Update tests/docs to match simple implementation
- Standardize response schema:
{success, data{...}, metadata{...}} - Align field names across all tools
Files to Modify:
.codex/mcp_servers/web_research/server.pytests/test_web_research_mcp.py
Status: PENDING
Required Changes:
- Standardize to:
{success, data: {task: {...}}}for CRUD - Use:
{success, data: {tasks: [...], count: n}}for listing - Add
completed_attimestamp when completing tasks - Update export to write file if tests require
export_path
Files to Modify:
.codex/mcp_servers/task_tracker/server.pytests/test_task_tracker_mcp.py
Status: PENDING
Required Changes:
- Decide on contract:
- Option A: Return
success: Falsewithmetadata.unsupported=true - Option B: Implement real bridging to Claude Code SDK
- Option A: Return
- Update tests to match chosen behavior
Files to Modify:
amplifier/core/backend.py(ClaudeCodeBackend methods)tests/backend_integration/test_enhanced_workflows.py
Status: PENDING
Required Changes:
- Add
spawn_agent_with_context()toAmplifierBackendabstract class - Implement in both
ClaudeCodeBackendandCodexBackend - Delegate to agent backend
- Update tests
Files to Modify:
amplifier/core/backend.pyamplifier/core/agent_backend.pytests/backend_integration/test_enhanced_workflows.py
Status: PENDING
Required Changes:
- Load server config in
TaskTrackerServer.__init__():- Read
task_storage_path,max_tasks_per_sessionfrom config
- Read
- Load server config in
WebResearchServer.__init__():- Read
cache_enabled,cache_ttl_hours,max_resultsfrom config
- Read
- Use
AmplifierMCPServer.configutility to access config values - Remove hardcoded paths
Files to Modify:
.codex/mcp_servers/task_tracker/server.py.codex/mcp_servers/web_research/server.py
Status: PENDING
Required Changes:
- Parse
.codex/config.tomlto detect enabled MCP servers for profile - Only print tools for active servers
- Optionally run health check via
codex tool <server>.health_check
Files to Modify:
amplify-codex.sh
Status: PENDING
Required Changes:
- Add checks at start of each function:
- Verify
codex --versionworks - Check
.codex/config.tomlexists
- Verify
- Catch Python exceptions and print clear error messages
- Optionally adapt output based on backend capabilities
Files to Modify:
.codex/tools/codex_shortcuts.sh
- Run
make checkto ensure current changes don't break linting - Implement remaining comments 4-13
- Update tests to match new implementations
- Run full test suite
- Update DISCOVERIES.md with lessons learned