feat: add Kimi Code session monitoring and account quota - #165
Open
SihanTeng wants to merge 2 commits into
Open
Conversation
Discover live `kimi` processes, map cwd to ~/.kimi-code sessions, and parse agents/main/wire.jsonl for tokens, model, tools, and context %. Account quota follows the Claude StatusLine pattern: a local companion script (abtop-usages.sh) reuses existing kimi login credentials and writes abtop-rate-limits.json; abtop only reads that file. The TUI auto-runs the companion when Kimi is enabled (cold-start sync ≤5s, then throttled background refresh). Disable with hidden_agents = ["kimi"]. Requires python3 for the companion script.
SihanTeng
marked this pull request as ready for review
August 3, 2026 09:25
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.
Summary
Adds first-class Kimi Code support while keeping session monitoring local-only and making account quota an explicit, bounded exception.
Quality fixes
Product contract
Kimi session discovery remains filesystem/process based and never uploads transcript or prompt content. Live Kimi account quota cannot be both current and strictly network-free because Kimi does not expose account quota in local session state. The networked quota path is therefore explicit through abtop --setup, documented, isolated in the companion, and disabled for headless snapshots and hidden Kimi configurations.
Limitations
Verification
How to try