Skip to content

Add optional TOON context formatting#17

Open
shaihi wants to merge 1 commit into
romiluz13:mainfrom
shaihi:feat/toon-context-format
Open

Add optional TOON context formatting#17
shaihi wants to merge 1 commit into
romiluz13:mainfrom
shaihi:feat/toon-context-format

Conversation

@shaihi

@shaihi shaihi commented Jul 1, 2026

Copy link
Copy Markdown

Summary

  • add optional markdown | json | toon rendering for context-bundle rendered output
  • thread format through API, client, MCP, memory bridge, and AI SDK helpers without changing JSON transport or MongoDB storage
  • add deterministic TOON token benchmark and docs with measured wins/losses
  • stabilize two search-readiness polling tests that were flaky in full-suite runs

Validation

  • bun run check-types
  • bun run test
  • bun run benchmark:toon
  • focused Vitest coverage for formatter, context bundle, client, API, and MCP

Benchmark note

TOON saved tokens on 4/7 deterministic fixtures and lost tokens on 3/7 versus compact JSON. Docs avoid broad compression claims and recommend measuring representative payloads before enabling TOON.

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