Conversation
On a terminal, kelos logs now parses each agent's NDJSON into a common event model and renders it with tool calls and output previews, red and green edit diffs (with file line numbers for Claude Code), todo checklists, and a footer with turns, cost, tokens and duration. --color=auto|always|never picks the output (auto: stdout is a terminal and NO_COLOR is unset); piped output keeps the existing plain format. -v shows full output, reasoning and sub-agent activity, and --raw prints the NDJSON unparsed.
Agent and tool output is untrusted, so control characters are removed before rendering to keep escape sequences from reaching the terminal. Sub-agent events are filtered before streamed text is continued, a result whose call was not seen gets its own header, an unchanged todo list is not printed again, and Codex calls that never report a result are no longer tracked.
On 256-color and true-color terminals, added and removed lines get a green or red background, after Claude Code's dark and light themes, padded to the terminal width so the tint spans the line. Other terminals keep green and red text. Tabs in diff lines are expanded so the padding lines up.
This branch is waiting to be deployed
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.
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR is related to:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Summary by cubic
Adds a Claude Code-style color renderer to
kelos logsfor terminal output. Agent NDJSON (Claude Code, Codex, Gemini, OpenCode) is parsed into a common event model and rendered with tool calls, output previews, red/green edit diffs, todo checklists, and a footer with turns, cost, tokens, and duration. The existing plain format is kept when stdout is piped.--color=auto|always|nevercontrols color output (default: auto, which uses the terminal and respectsNO_COLOR).-vshows full tool output, reasoning, diffs, and sub-agent activity instead of previews.--rawprints the agent's NDJSON stream unparsed.Written for commit 02fcaa8. Summary will update on new commits.