gitextract_2yw_apz6/ ├── .env.example ├── .github/ │ └── workflows/ │ └── ci.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── NOTICE ├── README.md ├── codex-rs/ │ ├── .gitignore │ ├── Cargo.toml │ ├── README.md │ ├── ansi-escape/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ └── src/ │ │ └── lib.rs │ ├── apply-patch/ │ │ ├── Cargo.toml │ │ ├── apply_patch_tool_instructions.md │ │ ├── src/ │ │ │ ├── lib.rs │ │ │ ├── main.rs │ │ │ ├── parser.rs │ │ │ ├── seek_sequence.rs │ │ │ └── standalone_executable.rs │ │ └── tests/ │ │ ├── all.rs │ │ └── suite/ │ │ ├── cli.rs │ │ └── mod.rs │ ├── arg0/ │ │ ├── Cargo.toml │ │ └── src/ │ │ └── lib.rs │ ├── chatgpt/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ ├── src/ │ │ │ ├── apply_command.rs │ │ │ ├── chatgpt_client.rs │ │ │ ├── chatgpt_token.rs │ │ │ ├── get_task.rs │ │ │ └── lib.rs │ │ └── tests/ │ │ ├── all.rs │ │ ├── suite/ │ │ │ ├── apply_command_e2e.rs │ │ │ └── mod.rs │ │ └── task_turn_fixture.json │ ├── cli/ │ │ ├── Cargo.toml │ │ └── src/ │ │ ├── debug_sandbox.rs │ │ ├── exit_status.rs │ │ ├── lib.rs │ │ ├── login.rs │ │ ├── main.rs │ │ └── proto.rs │ ├── clippy.toml │ ├── common/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ └── src/ │ │ ├── approval_mode_cli_arg.rs │ │ ├── approval_presets.rs │ │ ├── config_override.rs │ │ ├── config_summary.rs │ │ ├── elapsed.rs │ │ ├── fuzzy_match.rs │ │ ├── lib.rs │ │ ├── model_presets.rs │ │ ├── sandbox_mode_cli_arg.rs │ │ └── sandbox_summary.rs │ ├── config.md │ ├── core/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ ├── active_directory.md │ │ ├── approval_prompt.txt │ │ ├── bugcrowd_approval_prompt.txt │ │ ├── client_side_web.md │ │ ├── continuation_prompt.txt │ │ ├── enumeration.md │ │ ├── initial_prompt.txt │ │ ├── linux_privesc.md │ │ ├── prompt.md │ │ ├── shelling.md │ │ ├── src/ │ │ │ ├── apply_patch.rs │ │ │ ├── bash.rs │ │ │ ├── chat_completions.rs │ │ │ ├── client.rs │ │ │ ├── client_common.rs │ │ │ ├── codex.rs │ │ │ ├── codex_conversation.rs │ │ │ ├── config.rs │ │ │ ├── config_profile.rs │ │ │ ├── config_types.rs │ │ │ ├── conversation_history.rs │ │ │ ├── conversation_manager.rs │ │ │ ├── environment_context.rs │ │ │ ├── error.rs │ │ │ ├── exec.rs │ │ │ ├── exec_command/ │ │ │ │ ├── exec_command_params.rs │ │ │ │ ├── exec_command_session.rs │ │ │ │ ├── mod.rs │ │ │ │ ├── responses_api.rs │ │ │ │ ├── session_id.rs │ │ │ │ └── session_manager.rs │ │ │ ├── exec_env.rs │ │ │ ├── flags.rs │ │ │ ├── git_info.rs │ │ │ ├── is_safe_command.rs │ │ │ ├── landlock.rs │ │ │ ├── lib.rs │ │ │ ├── mcp_connection_manager.rs │ │ │ ├── mcp_tool_call.rs │ │ │ ├── message_history.rs │ │ │ ├── model_family.rs │ │ │ ├── model_provider_info.rs │ │ │ ├── openai_model_info.rs │ │ │ ├── openai_tools.rs │ │ │ ├── parse_command.rs │ │ │ ├── plan_tool.rs │ │ │ ├── project_doc.rs │ │ │ ├── prompt_for_compact_command.md │ │ │ ├── rollout.rs │ │ │ ├── safety.rs │ │ │ ├── seatbelt.rs │ │ │ ├── seatbelt_base_policy.sbpl │ │ │ ├── shell.rs │ │ │ ├── spawn.rs │ │ │ ├── terminal.rs │ │ │ ├── tool_apply_patch.rs │ │ │ ├── turn_diff_tracker.rs │ │ │ ├── user_agent.rs │ │ │ ├── user_notification.rs │ │ │ └── util.rs │ │ ├── summarization_prompt.txt │ │ ├── tests/ │ │ │ ├── all.rs │ │ │ ├── cli_responses_fixture.sse │ │ │ ├── common/ │ │ │ │ ├── Cargo.toml │ │ │ │ └── lib.rs │ │ │ ├── fixtures/ │ │ │ │ ├── completed_template.json │ │ │ │ └── incomplete_sse.json │ │ │ └── suite/ │ │ │ ├── cli_stream.rs │ │ │ ├── client.rs │ │ │ ├── compact.rs │ │ │ ├── exec.rs │ │ │ ├── exec_stream_events.rs │ │ │ ├── live_cli.rs │ │ │ ├── mod.rs │ │ │ ├── prompt_caching.rs │ │ │ ├── seatbelt.rs │ │ │ ├── stream_error_allows_next_turn.rs │ │ │ └── stream_no_completed.rs │ │ ├── web.md │ │ ├── web_enumeration.md │ │ └── windows_privesc.md │ ├── cve-prompt.md │ ├── default.nix │ ├── disclosure-email-prompt.md │ ├── docs/ │ │ └── protocol_v1.md │ ├── exec/ │ │ ├── Cargo.toml │ │ ├── src/ │ │ │ ├── cli.rs │ │ │ ├── event_processor.rs │ │ │ ├── event_processor_with_human_output.rs │ │ │ ├── event_processor_with_json_output.rs │ │ │ ├── lib.rs │ │ │ ├── main.rs │ │ │ └── realtime_logger.rs │ │ └── tests/ │ │ ├── all.rs │ │ ├── fixtures/ │ │ │ ├── apply_patch_freeform_final.txt │ │ │ ├── sse_apply_patch_add.json │ │ │ ├── sse_apply_patch_freeform_add.json │ │ │ ├── sse_apply_patch_freeform_update.json │ │ │ ├── sse_apply_patch_update.json │ │ │ └── sse_response_completed.json │ │ └── suite/ │ │ ├── apply_patch.rs │ │ ├── common.rs │ │ ├── mod.rs │ │ └── sandbox.rs │ ├── execpolicy/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ ├── build.rs │ │ ├── src/ │ │ │ ├── arg_matcher.rs │ │ │ ├── arg_resolver.rs │ │ │ ├── arg_type.rs │ │ │ ├── default.policy │ │ │ ├── error.rs │ │ │ ├── exec_call.rs │ │ │ ├── execv_checker.rs │ │ │ ├── lib.rs │ │ │ ├── main.rs │ │ │ ├── opt.rs │ │ │ ├── policy.rs │ │ │ ├── policy_parser.rs │ │ │ ├── program.rs │ │ │ ├── sed_command.rs │ │ │ └── valid_exec.rs │ │ └── tests/ │ │ ├── all.rs │ │ └── suite/ │ │ ├── bad.rs │ │ ├── cp.rs │ │ ├── good.rs │ │ ├── head.rs │ │ ├── literal.rs │ │ ├── ls.rs │ │ ├── mod.rs │ │ ├── parse_sed_command.rs │ │ ├── pwd.rs │ │ └── sed.rs │ ├── file-search/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ └── src/ │ │ ├── cli.rs │ │ ├── lib.rs │ │ └── main.rs │ ├── justfile │ ├── linux-sandbox/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ ├── src/ │ │ │ ├── landlock.rs │ │ │ ├── lib.rs │ │ │ ├── linux_run_main.rs │ │ │ └── main.rs │ │ └── tests/ │ │ ├── all.rs │ │ └── suite/ │ │ ├── landlock.rs │ │ └── mod.rs │ ├── login/ │ │ ├── Cargo.toml │ │ ├── src/ │ │ │ ├── assets/ │ │ │ │ └── success.html │ │ │ ├── auth_manager.rs │ │ │ ├── lib.rs │ │ │ ├── pkce.rs │ │ │ ├── server.rs │ │ │ └── token_data.rs │ │ └── tests/ │ │ ├── all.rs │ │ └── suite/ │ │ ├── login_server_e2e.rs │ │ └── mod.rs │ ├── mcp-client/ │ │ ├── Cargo.toml │ │ └── src/ │ │ ├── lib.rs │ │ ├── main.rs │ │ └── mcp_client.rs │ ├── mcp-server/ │ │ ├── Cargo.toml │ │ ├── src/ │ │ │ ├── codex_message_processor.rs │ │ │ ├── codex_tool_config.rs │ │ │ ├── codex_tool_runner.rs │ │ │ ├── error_code.rs │ │ │ ├── exec_approval.rs │ │ │ ├── json_to_toml.rs │ │ │ ├── lib.rs │ │ │ ├── main.rs │ │ │ ├── message_processor.rs │ │ │ ├── outgoing_message.rs │ │ │ ├── patch_approval.rs │ │ │ └── tool_handlers/ │ │ │ └── mod.rs │ │ └── tests/ │ │ ├── all.rs │ │ ├── common/ │ │ │ ├── Cargo.toml │ │ │ ├── lib.rs │ │ │ ├── mcp_process.rs │ │ │ ├── mock_model_server.rs │ │ │ └── responses.rs │ │ └── suite/ │ │ ├── auth.rs │ │ ├── codex_message_processor_flow.rs │ │ ├── codex_tool.rs │ │ ├── config.rs │ │ ├── create_conversation.rs │ │ ├── interrupt.rs │ │ ├── login.rs │ │ ├── mod.rs │ │ └── send_message.rs │ ├── mcp-types/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ ├── generate_mcp_types.py │ │ ├── schema/ │ │ │ ├── 2025-03-26/ │ │ │ │ └── schema.json │ │ │ └── 2025-06-18/ │ │ │ └── schema.json │ │ ├── src/ │ │ │ └── lib.rs │ │ └── tests/ │ │ ├── all.rs │ │ └── suite/ │ │ ├── initialize.rs │ │ ├── mod.rs │ │ └── progress_notification.rs │ ├── ollama/ │ │ ├── Cargo.toml │ │ └── src/ │ │ ├── client.rs │ │ ├── lib.rs │ │ ├── parser.rs │ │ ├── pull.rs │ │ └── url.rs │ ├── protocol/ │ │ ├── Cargo.toml │ │ ├── README.md │ │ └── src/ │ │ ├── config_types.rs │ │ ├── lib.rs │ │ ├── mcp_protocol.rs │ │ ├── message_history.rs │ │ ├── models.rs │ │ ├── parse_command.rs │ │ ├── plan_tool.rs │ │ └── protocol.rs │ ├── protocol-ts/ │ │ ├── Cargo.toml │ │ ├── generate-ts │ │ └── src/ │ │ ├── lib.rs │ │ └── main.rs │ ├── rust-toolchain.toml │ ├── rustfmt.toml │ ├── scripts/ │ │ └── create_github_release.sh │ └── tui/ │ ├── Cargo.toml │ ├── prompt_for_init_command.md │ ├── src/ │ │ ├── app.rs │ │ ├── app_backtrack.rs │ │ ├── app_event.rs │ │ ├── app_event_sender.rs │ │ ├── backtrack_helpers.rs │ │ ├── bottom_pane/ │ │ │ ├── approval_modal_view.rs │ │ │ ├── bottom_pane_view.rs │ │ │ ├── chat_composer.rs │ │ │ ├── chat_composer_history.rs │ │ │ ├── command_popup.rs │ │ │ ├── file_search_popup.rs │ │ │ ├── list_selection_view.rs │ │ │ ├── mod.rs │ │ │ ├── popup_consts.rs │ │ │ ├── scroll_state.rs │ │ │ ├── selection_popup_common.rs │ │ │ ├── snapshots/ │ │ │ │ ├── codex_tui__bottom_pane__chat_composer__tests__backspace_after_pastes.snap │ │ │ │ ├── codex_tui__bottom_pane__chat_composer__tests__empty.snap │ │ │ │ ├── codex_tui__bottom_pane__chat_composer__tests__large.snap │ │ │ │ ├── codex_tui__bottom_pane__chat_composer__tests__multiple_pastes.snap │ │ │ │ └── codex_tui__bottom_pane__chat_composer__tests__small.snap │ │ │ └── textarea.rs │ │ ├── chatwidget/ │ │ │ ├── agent.rs │ │ │ ├── interrupts.rs │ │ │ ├── snapshots/ │ │ │ │ ├── codex_tui__chatwidget__tests__approval_modal_exec.snap │ │ │ │ ├── codex_tui__chatwidget__tests__approval_modal_patch.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_idle_h1.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_idle_h2.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_idle_h3.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_running_h1.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_running_h2.snap │ │ │ │ ├── codex_tui__chatwidget__tests__chat_small_running_h3.snap │ │ │ │ ├── codex_tui__chatwidget__tests__deltas_then_same_final_message_are_rendered_snapshot.snap │ │ │ │ ├── codex_tui__chatwidget__tests__final_reasoning_then_message_without_deltas_are_rendered.snap │ │ │ │ ├── codex_tui__chatwidget__tests__interrupt_exec_marks_failed.snap │ │ │ │ ├── codex_tui__chatwidget__tests__status_widget_active.snap │ │ │ │ └── codex_tui__chatwidget__tests__status_widget_and_approval_modal.snap │ │ │ └── tests.rs │ │ ├── chatwidget.rs │ │ ├── chatwidget_stream_tests.rs │ │ ├── citation_regex.rs │ │ ├── cli.rs │ │ ├── clipboard_paste.rs │ │ ├── common.rs │ │ ├── custom_terminal.rs │ │ ├── diff_render.rs │ │ ├── exec_command.rs │ │ ├── file_search.rs │ │ ├── get_git_diff.rs │ │ ├── history_cell.rs │ │ ├── insert_history.rs │ │ ├── lib.rs │ │ ├── live_wrap.rs │ │ ├── main.rs │ │ ├── markdown.rs │ │ ├── markdown_stream.rs │ │ ├── onboarding/ │ │ │ ├── auth.rs │ │ │ ├── mod.rs │ │ │ ├── onboarding_screen.rs │ │ │ ├── trust_directory.rs │ │ │ └── welcome.rs │ │ ├── pager_overlay.rs │ │ ├── render/ │ │ │ ├── line_utils.rs │ │ │ ├── markdown_utils.rs │ │ │ └── mod.rs │ │ ├── session_log.rs │ │ ├── shimmer.rs │ │ ├── slash_command.rs │ │ ├── snapshots/ │ │ │ ├── codex_tui__diff_render__tests__add_details.snap │ │ │ ├── codex_tui__diff_render__tests__blank_context_line.snap │ │ │ ├── codex_tui__diff_render__tests__single_line_replacement_counts.snap │ │ │ ├── codex_tui__diff_render__tests__update_details_with_rename.snap │ │ │ ├── codex_tui__diff_render__tests__vertical_ellipsis_between_hunks.snap │ │ │ ├── codex_tui__diff_render__tests__wrap_behavior_insert.snap │ │ │ ├── codex_tui__pager_overlay__tests__static_overlay_snapshot_basic.snap │ │ │ ├── codex_tui__pager_overlay__tests__transcript_overlay_snapshot_basic.snap │ │ │ ├── codex_tui__status_indicator_widget__tests__renders_truncated.snap │ │ │ ├── codex_tui__status_indicator_widget__tests__renders_with_queued_messages.snap │ │ │ └── codex_tui__status_indicator_widget__tests__renders_with_working_header.snap │ │ ├── status_indicator_widget.rs │ │ ├── streaming/ │ │ │ ├── controller.rs │ │ │ └── mod.rs │ │ ├── text_formatting.rs │ │ ├── tui.rs │ │ ├── updates.rs │ │ └── user_approval_widget.rs │ ├── styles.md │ └── tests/ │ ├── all.rs │ ├── fixtures/ │ │ ├── binary-size-log.jsonl │ │ ├── ideal-binary-response.txt │ │ └── oss-story.jsonl │ └── suite/ │ ├── mod.rs │ ├── status_indicator.rs │ ├── vt100_history.rs │ ├── vt100_live_commit.rs │ └── vt100_streaming_no_dup.rs ├── configs/ │ ├── stanford/ │ │ └── example.yaml │ └── tests/ │ ├── ctf_easy.yaml │ └── simple.yaml ├── docs/ │ ├── SYSTEM_ARCHITECTURES.md │ ├── TRIAGE_ARCHITECTURE.md │ ├── license.md │ └── supervisor-usage.md ├── pyproject.toml ├── run_docker.sh ├── supervisor/ │ ├── __init__.py │ ├── config.py │ ├── context_manager.py │ ├── orchestration/ │ │ ├── __init__.py │ │ ├── instance_manager.py │ │ ├── log_reader.py │ │ ├── orchestrator.py │ │ ├── prompt_generator.py │ │ └── router.py │ ├── prompts/ │ │ ├── __init__.py │ │ ├── continuation_context_prompt.py │ │ ├── router_prompt.py │ │ ├── summarization_prompt.py │ │ └── supervisor_prompt.py │ ├── submissions/ │ │ ├── __init__.py │ │ ├── base.py │ │ ├── ctf.py │ │ ├── registry.py │ │ └── vulnerability.py │ ├── supervisor.py │ ├── todo_generator.py │ ├── tools.py │ ├── triage/ │ │ ├── prompts/ │ │ │ ├── __init__.py │ │ │ ├── initial_review_prompt.py │ │ │ ├── severity_prompt.py │ │ │ ├── system_prompt.py │ │ │ └── validation_prompt.py │ │ ├── triage_manager.py │ │ └── triage_tools.py │ ├── vulnerability_storage.py │ └── working_hours.py └── test_files/ └── it_has_begun/ └── script.sh