Skip to content

Extract agent runner loop wrapper - #144

Merged
NSIETeam merged 1 commit into
mainfrom
codex/extract-run-agent-loop
Jul 31, 2026
Merged

NSIETeam merged 1 commit into
mainfrom
codex/extract-run-agent-loop

Conversation

@NSIETeam

Copy link
Copy Markdown
Owner

Summary

  • move AgentLoop runner execution setup into mira.agent.agent_runner_loop
  • keep AgentLoop._run_agent_loop as a compatibility wrapper for existing call sites
  • preserve request context binding, workspace/file state scopes, pending injection drain, checkpoint persistence, hook wiring, sustained-goal handling, and max-iteration stream fallback

Local validation

  • uv run python -m pytest tests/agent/test_loop_runner_integration.py tests/agent/test_runner_injections.py tests/agent/test_loop_progress.py tests/agent/test_loop_tool_context.py tests/agent/test_hook_composite.py -q
  • uv run ruff check mira/agent/agent_runner_loop.py mira/agent/loop.py
  • uv run mypy
  • uv run python -m pytest tests/agent tests/tools/test_message_tool.py tests/command -q

Issue progress

  • Contributes to issue 120 by reducing mira/agent/loop.py from 1451 to 1303 lines. It remains open because the target is <=800 lines.

@NSIETeam
NSIETeam merged commit e15f1fe into main Jul 31, 2026
6 checks passed
@NSIETeam
NSIETeam deleted the codex/extract-run-agent-loop branch July 31, 2026 06:13
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