- writer.py: Dynamic character injection — only POV + beat-named characters are sent to the writer prompt, eliminating token waste and hallucinations from characters unrelated to the current scene. - writer.py: Smart tail truncation — prev_content trimmed to last 1,000 tokens (the actual chapter ending) instead of a blind 2,000-token head slice, preserving the exact hand-off point for continuity. - writer.py: Scene state injected into char_visuals — current_location, time_of_day, and held_items now surfaced per relevant character in prompt. - bible_tracker.py: update_tracking expanded to record current_location, time_of_day, and held_items per character after each chapter. - core/config.py: VERSION bumped 1.4.0 → 1.5.0. - README.md: Story Generation section and tracking_characters.json schema updated to document new context optimization features. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.7 KiB
2.7 KiB