Skip to content

v0.4.0

Choose a tag to compare

@henomis henomis released this 28 Oct 14:08
· 3 commits to main since this release
f08992f

Context compaction, tool permissions and new tools, on phero v2.3.0 and packtrail v1.0.3.

Breaking: the summarize memory option is removed and now fails validation. Use the agent's compaction: instead.

  • Compaction: compaction: {at_tokens, model, keep_recent, keep_tokens, max_summary_tokens, prompt} replaces older messages with a summary. It works with any memory and inside one long tool loop. Without at_tokens, it runs only when the model rejects a prompt as too long. Summary calls count in the step's usage and budgets. prune_compacted on nats and psql memory.
  • Permissions: permissions: {allow, deny, default, working_dir} controls an agent's tool calls, including bash commands. Each agent gets its own copies of shared tools.
  • Agents: max_parallel_tools; todo: true gives an agent a task list for each run. With stream: true, agents send compaction and todo progress events.
  • Models: strict_tools (openai, anthropic) and prompt_cache_ttl: 5m|1h (anthropic).
  • Tools: new web_fetch and file_multi_edit. bash gets env, env_allowlist, background limits and a bubblewrap sandbox. File tools get read_only_roots, max_output_chars, max_results and no_ignore. skill gets roots; mcp gets tool_prefix and max_output_chars.
  • Errors: a prompt too long for the context window fails the step and is never retried. Model retries use phero's llm.IsRetryable; a guardrail block is never retried.

What's Changed

Full Changelog: v0.3.1...v0.4.0