Skip to content

feat(agentlayer): add resilient context compaction - #62

Merged
K-Mistele merged 1 commit into
mainfrom
implement-auto-compact-and-fork-mode-for-codex-subagents
Aug 11, 2026
Merged

feat(agentlayer): add resilient context compaction#62
K-Mistele merged 1 commit into
mainfrom
implement-auto-compact-and-fork-mode-for-codex-subagents

Conversation

@K-Mistele

Copy link
Copy Markdown
Contributor

Summary

  • add explicit and automatic context compaction for root and child agents, including /compact, proactive thresholds, and one-shot overflow recovery
  • retain a safe recent message tail, support Pi-style split-turn summaries, persist checkpoint metadata, and reset stale filesystem bookkeeping
  • expose typed compaction events, atomic state updates, configurable initial/incremental prompts, bounded summary output, and exact aggregate usage accounting

Verification

  • bun check (1,269 passed, 6 skipped, 0 failed)
  • focused compaction, state, child isolation, streaming event, and filesystem hook tests

Follow-up

  • publish an AgentLayer release from this PR for Synclayer Phase 5 integration

@github-actions

Copy link
Copy Markdown

Docs Agent Review

Agent finished with reason: error


To apply these recommendations, comment: @docs-agent apply

@K-Mistele
K-Mistele merged commit f768cac into main Aug 11, 2026
7 checks passed
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