Files

25 lines
842 B
Python

import dataclasses
import pathlib
import typing
from loop_effects.effects import Effects
from loop_state.paths import Paths
from claude_code.session import Session
from agent_cycle.tmux import Window
@dataclasses.dataclass(frozen=True)
class Loop:
"""What stays the same while an entry point drives one chunk in one process. loop-claude builds it once per process, so a reload builds it afresh; do-epic builds one per chunk."""
# The checkout the loop runs in. loop-claude's LoopRun.root names it too, since a reload hands it on there.
root: str
# The worker's session.
session: Session
# The tmux window the loop runs in.
window: Window
paths: Paths
env: typing.Mapping[str, str]
# The entry point's script, beside which chunk-preflight lies; an edit of loop-claude's reloads its loop.
launcher: pathlib.Path
effects: Effects