{"id":50766972,"url":"https://github.com/akaihola/copilot-cli-tweak","last_synced_at":"2026-06-11T14:32:11.711Z","repository":{"id":350014451,"uuid":"1204883230","full_name":"akaihola/copilot-cli-tweak","owner":"akaihola","description":"Patch GitHub Copilot CLI to render user prompts and thinking distinctively. Makes output easier to grasp for the eye.","archived":false,"fork":false,"pushed_at":"2026-04-08T13:42:44.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T15:25:43.733Z","etag":null,"topics":["copilot-cli"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akaihola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T12:30:22.000Z","updated_at":"2026-04-08T13:42:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/akaihola/copilot-cli-tweak","commit_stats":null,"previous_names":["akaihola/copilot-cli-tweak"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/akaihola/copilot-cli-tweak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaihola%2Fcopilot-cli-tweak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaihola%2Fcopilot-cli-tweak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaihola%2Fcopilot-cli-tweak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaihola%2Fcopilot-cli-tweak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akaihola","download_url":"https://codeload.github.com/akaihola/copilot-cli-tweak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaihola%2Fcopilot-cli-tweak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34204179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["copilot-cli"],"created_at":"2026-06-11T14:32:11.646Z","updated_at":"2026-06-11T14:32:11.694Z","avatar_url":"https://github.com/akaihola.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copilot-cli-tweak\n\nPatches [GitHub Copilot CLI](https://github.com/github/copilot-cli) with three\nvisual improvements:\n\n1. **Thinking/reasoning text** — rendered as dark gray (the same color used for\n   code comments) instead of the default light gray. Makes thinking output less\n   visually intrusive while keeping it readable.\n\n2. **User prompts in session history** — rendered as white text on a dark gray\n   background, making them visually distinct from assistant responses when\n   browsing past sessions.\n\n3. **User prompts in main chat** — the live conversation view also renders user\n   turns with white text on a dark gray background, so your messages stand out\n   from assistant responses during the current session.\n\n## What it does\n\n**Patch 1 — Reasoning text:** Changes the `iconColor`, `descriptionColor`, and\ntext `color` of the reasoning component in Copilot CLI's bundled `app.js` from\n`textTertiary` (light gray) to `\"gray\"` (ANSI bright-black / `\\e[90m`).\n\n**Patch 2 — User prompts (session history):** In the session-history message\ndisplay component (`dyt`), changes the user message color to `\"white\"`, adds a\n`backgroundColor` of `\"gray\"` (dark gray) to the message box, and threads the\ncolor through to the text renderer so body text is also explicitly white.\n\n**Patch 3 — User prompts (main chat):** In the main chat timeline renderer\n(`Gj` component), replaces the user-turn variant's theme-derived colors with\nhardcoded `iconColor:\"white\"`, `descriptionColor:\"white\"`, and\n`backgroundColor:\"gray\"`. The original code used `backgroundSecondary` from the\ntheme, which resolves to `undefined` in the default dark theme — so no\nbackground was rendered.\n\n## Usage\n\n```sh\n# Preview what before/after looks like in your terminal\n./copilot-cli-tweak.sh --preview\n\n# Apply the patch\n./copilot-cli-tweak.sh\n\n# Check what would be patched without changing anything\n./copilot-cli-tweak.sh --dry-run\n\n# Revert to original\n./copilot-cli-tweak.sh --revert\n```\n\nRestart Copilot CLI after patching for changes to take effect.\n\n## How it works\n\nThe script finds all `app.js` files in Copilot CLI's auto-update cache\n(`~/.copilot/pkg/universal/*/app.js`) and npm global install\n(`$(npm root -g)/@github/copilot/app.js`), then applies three patches using\nregexes that locate the relevant `createElement` calls and rewrite color props.\n\nAll regexes are version-agnostic — they handle the different minified variable\nnames used across Copilot CLI releases.\n\n## Caveats\n\n- **Auto-updates** download fresh `app.js` files. Re-run the script after\n  Copilot CLI updates.\n- Older releases (pre-1.0.15) use a different component structure and may be\n  skipped for some patches. Patch 3 (main chat) has the widest version coverage.\n\n## Requirements\n\n- `bash`\n- `node` (already required by Copilot CLI itself)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaihola%2Fcopilot-cli-tweak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakaihola%2Fcopilot-cli-tweak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaihola%2Fcopilot-cli-tweak/lists"}