Repository navigation
feat(statusline): ship Codex and agy statuslines, keep Claude sessions - #437
Open
ycpss91255 wants to merge 4 commits into
Open
ycpss91255 wants to merge 4 commits into
ycpss91255 wants to merge 4 commits into
Conversation
Add a custom-archetype module that sets only the status_line key under [tui] in ~/.codex/config.toml, so keys written by other tooling (such as herdr's terminal_title) are preserved.
Drop a statusline.py renderer into ~/.gemini/antigravity-cli and merge only the statusLine key into its settings.json with jq. The renderer prints the same two-row layout as the shipped ccstatusline config.
Set cleanupPeriodDays to 36500 so Claude Code no longer deletes transcripts after the default 30 days.
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
Ship the Codex and Antigravity CLI (
agy) statuslines next to the existing Claude Code one, and stop Claude Code from deleting session transcripts. Closes #436.Changes
module/codex-config.module.sh(new, Archetype D) +module/config/codex/status_line.toml:status_line = ["model-with-reasoning", "context-used", "weekly-limit", "current-dir", "git-branch", "branch-changes"]under[tui]in${CODEX_HOME:-~/.codex}/config.toml.terminal_titlelives in the same table). It creates the file or the[tui]table when missing, replaces a multi-line array value, keeps the file mode, and writes through a temp file.remove/purgedrop only thestatus_lineline.is_outdated= the value differs from the template.module/agy-config.module.sh(new, Archetype D) +module/config/agy/statusline.py:~/.gemini/antigravity-cli/statusline.py(755) and merges"statusLine": {"type": "command", "command": <abs path>}intosettings.jsonwith jq. Other keys are preserved; an empty file counts as{}; invalid JSON is left untouched and the install fails.removedeletes the script and dropsstatusLineonly when it still points at the managed script, so a user's own command stays.model.display_name,context_window.used_percentage,quota["gemini-weekly"],workspace.current_dir) and prints the same two rows as the ccstatusline layout. Missing or malformed fields are skipped.module/config/claude/settings.json:cleanupPeriodDays: 36500.doc/module/INDEX.mdregenerated; CHANGELOG[Unreleased]entries under Added and Changed.Decision
agy-configdepends onjqandpython3, not on an agy install module (none exists yet);is_recommendedchecks foragyon PATH.Tests
just -f justfile.ci test-unit codex-config: 22/22just -f justfile.ci test-unit agy-config: 22/22 (includes renderer output, git branch/changes, and malformed-input cases)just -f justfile.ci test-unit claude-code-config: 104/104just -f justfile.ci lint