feat(deepthinking): integrate deepthinking tool across all agents#59
Merged
Conversation
Track cache creation and read tokens from LLM responses (OpenAI's prompt_tokens_details and Anthropic-compatible raw JSON), propagate through agent metadata, and display in the TUI token dashboard.
Register deepthinking tool in Coding, Conductor, and Repo agents with full JSON schema, prompt-level usage instructions, LLM configuration override support, and global context initialization.
Move static agent descriptions before dynamic project context in the system prompt to improve LLM prompt cache hit rate. The fixed prefix portion can now be cached while the variable project context at the end avoids cache invalidation. Also include: - fix variable declaration scope in repo agent (info used before decl) - add explicit default values in global context env construction - document JSON key ordering requirement for cache determinism
Replace fixed input dimensions with content-aware dynamic sizing: height now grows from 3 to 12 lines based on content, and width adapts to terminal size without a hard cap. Unify editor colors with the 256-color palette (236/237 backgrounds). Fix key handling so non-empty input routes cursor keys to the textarea for line navigation. Update footer height estimate from 7 to 18 to match the larger input layout.
Merge the token statistics summary (In/Out/Cache/Σ) into the dashboard header line, eliminating the separate totalLine. Also simplify fmt.Sprintf width formatting from string concatenation to the idiomatic %-*s format specifier.
Replace the hardcoded footerHeight constant with a computeFooterHeight() method that calculates the actual height from current UI state including command mode, input area, autocomplete suggestions, error messages, and token dashboard.
Move the running badge in front of the status line instead of appending it after, improving visual hierarchy in the footer bar. The variable is also renamed from taskIndicator to runningBadge for clarity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.