feat: add skills system with dynamic .md file loading and TUI improve…#56
Merged
Conversation
- Add AgentTokenUsage struct to track token consumption per agent - Introduce tokenUsagePerAgent map in TUI model - Track prompt_tokens and completion_tokens per agent from API usage data - Replace compact token line with a bordered dashboard view - Shows Total (In / Out / Σ) in a highlighted row - Lists per-agent breakdown sorted by total token count descending - Fall back to single-line format when no token data is available
… avoid unnecessary rewrites
…ntal append + 5s debounce - Replace .json file extension with .jsonl (JSON Lines format) - Change from full overwrite to incremental append (O_APPEND) on each SaveTaskMemory call - Add 5-second debounce timer to batch writes and reduce I/O - Add taskWriterState struct to manage per-taskID pending buffer and timer - Add FlushTaskMemory() and FlushAll() for immediate disk flush - Update LoadTaskMemory and ListTaskHistory to use bufio.Scanner for line-by-line parsing - Handle message truncation with needsFullRewrite flag to prevent data loss - All callers (websocket.go, tui_tasks.go, task_executor.go) remain unchanged
…ments Introduce a SkillRegistry that dynamically loads .md files from .codeactor/skills/ directory as reusable skills. Add three initial skill definitions: code-review, commit, and generate-readme. Integrate skill loading into the app startup. Also improve TUI dialogs, task display, and update handling.
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.