Michael Neale d59a511cef fix+test: critical bugs and comprehensive adaptive_memory tests
Fixes:
- UTF-8 safe truncation in build_session_context (was panicking on
  multibyte chars with String::truncate)
- char_count now uses .chars().count() not .len() (budget enforcement
  was counting bytes, not characters — wrong for non-ASCII)
- File locking via fs2: exclusive lock on writes, shared lock on reads
  in mutation paths. Prevents lost updates from concurrent background
  review + flush + foreground writes.

Tests (18 new):
- Security scanning: prompt injection, role hijack, exfiltration,
  invisible unicode, normal content allowed
- File format: § delimiter, read/write roundtrip, empty file, missing file
- Budget: char-not-byte counting, limit values, rejection when full
- Duplicate detection
- Filename/target mapping
- Render block: empty, user profile format, memory format, usage display
- Success text formatting

Signed-off-by: Michael Neale <michael.neale@gmail.com>
2026-04-14 11:57:12 +10:00
2026-02-11 14:35:24 +00:00
2026-03-07 17:16:19 +00:00
2026-02-11 14:35:24 +00:00
2026-04-13 16:10:53 +10:00

🦆 goose has moved! This project has moved from block/goose to the Agentic AI Foundation (AAIF) at the Linux Foundation. Some links and references are still being updated — please bear with us during the transition.

goose

your native open source AI agent — desktop app, CLI, and API — for code, workflows, and everything in between

Discord CI

goose is a general-purpose AI agent that runs on your machine. Not just for code — use it for research, writing, automation, data analysis, or anything you need to get done.

A native desktop app for macOS, Linux, and Windows. A full CLI for terminal workflows. An API to embed it anywhere. Built in Rust for performance and portability.

goose works with 15+ providers — Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock, and more. Use API keys or your existing Claude, ChatGPT, or Gemini subscriptions via ACP. Connect to 70+ extensions via the Model Context Protocol open standard.

goose is part of the Agentic AI Foundation (AAIF) at the Linux Foundation.

Get started

Download the desktop app for macOS, Linux, and Windows.

Or install the CLI:

curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash

Quick links

Need help?

a little goose humor 🪿

Why did the developer choose goose as their AI agent?

Because it always helps them "migrate" their code to production! 🚀

goose around with us

S
Description
No description provided
Readme Apache-2.0 1.5 GiB
Languages
Rust 63.6%
TypeScript 29.6%
JavaScript 1.7%
Shell 1.6%
Python 1.5%
Other 1.8%