Skip to content

v0.2.0

Choose a tag to compare

@ByronFinn ByronFinn released this 08 Jun 10:33
· 30 commits to main since this release

What

Release 0.2.0 brings prompt caching, context minimization, CLI TUI decomposition, telemetry removal, and several stability fixes.

New Features

  • PromptPlan module — structured prompt caching with turn-boundary cache staking (3+1 model) and Anthropic cache breakpoints
  • RecordRestoreHandler — handler-based distributed restoration across all subsystems in agent-core
  • Observation masking — importance-based context minimization that replaces old tool results with structured summaries when token pressure exceeds thresholds
  • Output offloading & multi-pass compaction — large tool outputs offloaded to scratch files; FullCompaction.beforeStep() runs four passes (offloading → masking → pruning → LLM compaction)
  • LLM latency metricsllmFirstTokenLatencyMs and llmStreamDurationMs emitted on turn.step.completed events
  • Interactive logout selector/logout opens interactive provider selector instead of requiring a provider name argument
  • DirectoryTreeInjector — dynamic 2-level directory tree injection at session start

Architecture Improvements

  • ByfTui decomposition — extracted DialogHost, TranscriptRenderer, SessionMetaHandler, SubagentEventHandler, TurnEventHandler, LoginFlow, ConnectFlow, TasksBrowserController (5623 → 4345 lines, +138 tests)
  • System prompt refactor — reduced from 174 to ~80 lines
  • Tool descriptions compression — compressed Read, Glob, Edit, Write, Bash, Agent, Grep descriptions
  • Login catalog enrichment — capability registry improvements

Bug Fixes

  • Tool result pairing — coerces malformed isError=true results, preventing orphaned tool.call entries
  • Terminal exit — clean exit on terminal disappearance (SIGHUP + dead-terminal I/O)
  • Permission policy — adjusted evaluation order per mode
  • Base URL input — removed initialValue from Base URL input in login flow

Cleanup

  • Telemetry removal — deleted packages/telemetry
  • SSH removal — deleted ssh.ts from Kaos
  • Plan mode residuals — removed all Plan Mode references
  • Dead code — removed 16 unused imports, dead barrel files, 14 skipped test blocks

Packages Published

Package Version
@byfriends/cli 0.2.0
@byfriends/agent-core 0.2.0
@byfriends/sdk 0.2.0
@byfriends/kosong 0.2.0
@byfriends/kaos 0.2.0
@byfriends/oauth 0.1.0