Skip to content

feat(deepthinking): integrate deepthinking tool across all agents#59

Merged
iohub merged 12 commits into
mainfrom
feat-deepthink
May 9, 2026
Merged

feat(deepthinking): integrate deepthinking tool across all agents#59
iohub merged 12 commits into
mainfrom
feat-deepthink

Conversation

@iohub
Copy link
Copy Markdown
Owner

@iohub iohub commented May 9, 2026

No description provided.

iohub added 12 commits May 8, 2026 14:01
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.
@iohub iohub merged commit b739f93 into main May 9, 2026
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @iohub, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@iohub iohub deleted the feat-deepthink branch May 15, 2026 09:07
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