Skip to content

feat: add skills system with dynamic .md file loading and TUI improve…#56

Merged
iohub merged 5 commits into
mainfrom
feat-openai-go
May 8, 2026
Merged

feat: add skills system with dynamic .md file loading and TUI improve…#56
iohub merged 5 commits into
mainfrom
feat-openai-go

Conversation

@iohub
Copy link
Copy Markdown
Owner

@iohub iohub commented May 8, 2026

No description provided.

iohub added 5 commits May 8, 2026 00:40
- 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
…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.
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 merged commit 3aadd64 into main May 8, 2026
1 check passed
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