Skip to content

feat(agents): add native session forking - #35

Open
DongyunZou wants to merge 1 commit into
mainfrom
feat/fork-session
Open

feat(agents): add native session forking#35
DongyunZou wants to merge 1 commit into
mainfrom
feat/fork-session

Conversation

@DongyunZou

@DongyunZou DongyunZou commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add eager, prompt-free native session forks for Claude and Codex
  • freeze child configuration and isolate tools, runtimes, fallback, lifecycle, and usage
  • expose the Forks flow capability and parent-child cycle/trace telemetry
  • add the flow-facing contract and defer compaction to a separate follow-up

Validation

  • uv run pre-commit run --all-files
  • uv run pytest (2119 passed, 77 skipped)
  • flowverse compatibility tests (144 passed, 5 skipped)

The core fork implementation is self-contained in humanize2. The optional flowverse ResearchFork helper is intentionally not included in this change.

Add eager native forks for Claude and Codex with immutable child context, isolated runtimes, and explicit boundary validation. Expose the Forks capability to flows, record parent-child telemetry, and add the prepared research workflow contract and regression coverage.

Tests: uv run pre-commit run --all-files; uv run pytest
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