I thought Codex at least already can handle interactive sessions of programs, e.g. GDB.