You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Documentation
Document the [harness] extra — it has existed since the CodeMode work but integrations.md only covered the two DRF bridges, so the third extra was
undiscoverable. The new section covers the seam (AgentConfig.capabilities
takes live capability instances, so a harness capability composes exactly like
a first-party one), compaction for long tool-heavy runs, and agent
skills for progressive disclosure.
Compaction is presented by cost, since that is the real choice: SlidingWindow / ClearToolResults are free and transparent, SummarizingCompaction spends a model call per compaction, TieredCompaction escalates between them.
Two gotchas found by running the snippets rather than reading the source: SummarizingCompactionrequiresmax_messages or max_tokens, and Skills(include=…/exclude=…)validates the names against what discovery
actually found — a name that matches no skill raises rather than being
ignored.
Also recorded: nothing is emitted when a compaction fires, so a transport
that wants to tell the user "earlier turns were condensed" has to observe it
via the one-method CompactionStrategy protocol.