Foundry.Context.LLMFormatter (foundry v0.2.0)

Copy Markdown

Formats project context for LLM consumption using compact text notation.

Achieves ~60-70% token reduction vs raw JSON by:

  • Module dictionary encoding (short aliases for module names)
  • Compact attribute notation (name:type[:flag,...])
  • Compact edge notation (A1 --rel--> B1)
  • Type abbreviation legend

Summary

Functions

format(context)