[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-85139":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":9,"pushedAt":9,"updatedAt":29,"readmeContent":30,"aiSummary":9,"trendingCount":14,"starSnapshotCount":14,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},85139,"coralline","Nanako0129\u002Fcoralline","Nanako0129","🪸 Powerlevel10k-inspired statusline for Claude Code — paste one prompt and your AI interviews you, then installs it",null,"Shell",219,15,131,0,39.44,"MIT License",false,"main",true,[21,22,23,24,25,26,27,28],"bash","claude","claude-code","nerd-fonts","powerlevel10k","statusline","terminal","vibe-coding","2026-06-15 10:04:47","# coralline\n\n> A [Powerlevel10k](https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k)-inspired statusline for Claude\n> Code that **installs itself through your AI** — paste one prompt, answer a few questions\n> about colors and layout, done.\n\n[繁體中文說明](.\u002FREADME.zh-TW.md)\n\n![All six coralline themes rendered side by side](.\u002Fassets\u002Fhero.png)\n\n## Install (the fun way)\n\nPaste this into Claude Code:\n\n```text\nPlease install coralline for me:\nfetch https:\u002F\u002Fraw.githubusercontent.com\u002FNanako0129\u002Fcoralline\u002Fmain\u002FINSTALL.md\nand follow the playbook in it.\n```\n\nClaude will ask you to pick a theme (with previews), choose which segments you want, decide\nbetween a one-line or two-line layout, then wire everything up and verify it. No manual\nconfig editing required.\n\n## What you get\n\n```text\n╭ ~\u002Fside-project\u002Fcoralline  ⎇ main+!  ◆ Fable 5  ⬡ ▰▰▰▱▱ 62% ↑1.2M ↓45.6k  5h ▰▰▱▱▱ 41% ↺2h44m  $1.23  ⊙ 02:45 pm ╮\n```\n\n| Segment | Shows |\n|---|---|\n| `dir` | current directory, long paths collapsed to `~\u002Fa\u002F…\u002Fz` |\n| `project` | repo name (`⬢`), stable across every worktree; hidden outside a git repo |\n| `git` | branch, staged `+` \u002F modified `!` \u002F untracked `?`, ahead `⇡` behind `⇣` |\n| `model` | active Claude model |\n| `ctx` | context-window gauge, input\u002Foutput\u002Fcache token counts |\n| `limit5h` \u002F `limit7d` | rate-limit gauges with reset countdown |\n| `cost` | session cost in USD |\n| `clock` | time, 12h or 24h |\n| `lines` | lines added\u002Fremoved this session |\n| `style` | active output style |\n| `duration` | session wall-clock duration |\n| `stash` | git stash count |\n\nGauges change color as they fill: green → yellow at 50% → red at 75% (thresholds configurable).\n\n## Why it's fast\n\nThe statusline is just a local shell script: it makes no network or API calls and uses zero\ntokens. Claude Code pipes the session JSON to it on stdin and renders whatever it prints.\n\nIt runs every second (`refreshInterval: 1`), so the script is built to be cheap on CPU: one\n`jq` invocation extracts every field at once, and one `git status --porcelain=v2 --branch`\ncall provides branch, dirty state, and ahead\u002Fbehind together. No `bc`, no per-field subprocess\nspam. Works on stock macOS bash 3.2 and any Linux bash.\n\n## Manual install\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FNanako0129\u002Fcoralline ~\u002F.claude\u002Fcoralline-src\nmkdir -p ~\u002F.claude\u002Fcoralline\u002Fthemes\ncp ~\u002F.claude\u002Fcoralline-src\u002Fstatusline.sh ~\u002F.claude\u002Fcoralline\u002F\ncp ~\u002F.claude\u002Fcoralline-src\u002Fthemes\u002Fclaude-coral.conf ~\u002F.claude\u002Fcoralline\u002Fthemes\u002F\n```\n\nThen add to `~\u002F.claude\u002Fsettings.json`:\n\n```json\n{\n  \"statusLine\": {\n    \"type\": \"command\",\n    \"command\": \"bash ~\u002F.claude\u002Fcoralline\u002Fstatusline.sh\",\n    \"refreshInterval\": 1\n  }\n}\n```\n\n> **Note:** requires `jq` and a [Nerd Font](https:\u002F\u002Fwww.nerdfonts.com\u002F) terminal.\n> No Nerd Font? Set `VL_ASCII=1` in your config for a glyph-free rendering.\n\n## Configuration\n\nEverything lives in `~\u002F.claude\u002Fcoralline.conf` (plain bash, sourced by the script):\n\n| Variable | Default | Meaning |\n|---|---|---|\n| `VL_STYLE` | `pill` | `pill`: powerline pills · `lean`: flat colored text, p10k-lean style |\n| `VL_LAYOUT` | `fixed` | `fixed`: one line per `VL_SEGMENTS*` var · `auto`: responsive |\n| `VL_MAX_LINES` | `3` | `auto` only — wrap into at most this many lines (`1` = never wrap) |\n| `VL_WRAP_MARGIN` | `4` | `auto` only — columns kept free on the right so segments never touch the edge |\n| `VL_SEGMENTS` | `dir git model ctx limit5h limit7d cost clock` | segments on line 1, in order (the full list in `auto` mode) |\n| `VL_SEGMENTS2` \u002F `VL_SEGMENTS3` | _(empty)_ | `fixed` only — optional second\u002Fthird line |\n| `VL_CLOCK` | `12h` | `12h` \u002F `24h` \u002F `off` |\n| `VL_CLOCK_SECONDS` | `1` | show seconds in the clock |\n| `VL_BAR_WIDTH` | `5` | gauge width in cells |\n| `VL_PATH_DEPTH` | `4` | collapse paths deeper than this |\n| `VL_NAME_MAX` | `0` | max chars for the `project` \u002F `git` names before `…` truncation (`0` = off) |\n| `VL_COST_DECIMALS` | `2` | decimal places for the cost segment |\n| `VL_WARN_PCT` \u002F `VL_HOT_PCT` | `50` \u002F `75` | gauge color thresholds |\n| `VL_ASCII` | `0` | `1` disables Nerd Font glyphs |\n| `VL_BG_*` \u002F `VL_FG_*` | theme | colors — `256`-color index or `\"R,G,B\"` |\n\n### Responsive layout\n\nWith `VL_LAYOUT=\"auto\"` the bar stays on a single line while it fits, and greedily wraps into\nup to `VL_MAX_LINES` rows when the window gets narrow. Once the line cap is reached, remaining\nsegments overflow on the last line. `VL_WRAP_MARGIN` keeps a few columns free on the right so\nwrapped lines never butt against the window edge — raise it if your terminal adds padding.\n\nWidth comes from `$COLUMNS`. Claude Code v2.1.153+ sets `COLUMNS` to the current terminal width\nbefore running the status line, so wrapping responds to window resizing out of the box. Outside\nClaude Code the script falls back to `stty size` on the controlling terminal; if neither is\navailable it stays on one line.\n\n```text\nwide window:    ~\u002Fdev\u002Fapp  ⎇ main  ◆ Fable 5  ⬡ ▰▰▰▱▱ 62%  5h ▰▰▱▱▱ 41%  $1.23  ⊙ 14:45\n\nnarrow window:  ~\u002Fdev\u002Fapp  ⎇ main  ◆ Fable 5\n                ⬡ ▰▰▰▱▱ 62%  5h ▰▰▱▱▱ 41%  $1.23  ⊙ 14:45\n```\n\nPrefer a layout that never moves? Keep `VL_LAYOUT=\"fixed\"` and pin rows with\n`VL_SEGMENTS` \u002F `VL_SEGMENTS2` \u002F `VL_SEGMENTS3`.\n\n### Lean style\n\nPrefer Powerlevel10k's *lean* look — no backgrounds, just colored text? Set\n`VL_STYLE=\"lean\"` and each segment's `VL_BG_*` color becomes its text accent instead:\n\n![Lean style compared with pill style](.\u002Fassets\u002Fstyle-lean.png)\n\n| Variable | Default | Meaning |\n|---|---|---|\n| `VL_STYLE` | `pill` | set to `lean` for the flat look |\n| `VL_LEAN_SEP` | _(empty)_ | extra text between segments, e.g. `·` |\n| `VL_LEAN_FG` | _(empty)_ | force a text color; empty = inherit each segment's accent |\n\n> **Tip:** already a p10k user? Tell the AI installer to import your `~\u002F.p10k.zsh` — it will\n> carry over your style, colors, and time format. See the\n> [Powerlevel10k import step in INSTALL.md](.\u002FINSTALL.md#step-25--powerlevel10k-import-optional).\n\n## Themes\n\n| | |\n|---|---|\n| **`claude-coral`** — steel blue · mauve · Claude coral (default)\u003Cbr>![claude-coral theme preview](.\u002Fassets\u002Ftheme-claude-coral.png) | **`catppuccin-mocha`** — soft pastels on dark\u003Cbr>![catppuccin-mocha theme preview](.\u002Fassets\u002Ftheme-catppuccin-mocha.png) |\n| **`nord`** — arctic frost\u003Cbr>![nord theme preview](.\u002Fassets\u002Ftheme-nord.png) | **`gruvbox-dark`** — warm retro\u003Cbr>![gruvbox-dark theme preview](.\u002Fassets\u002Ftheme-gruvbox-dark.png) |\n| **`tokyo-night`** — neon on deep navy\u003Cbr>![tokyo-night theme preview](.\u002Fassets\u002Ftheme-tokyo-night.png) | **`mono`** — grayscale minimalism\u003Cbr>![mono theme preview](.\u002Fassets\u002Ftheme-mono.png) |\n\nA theme is just a `.conf` file assigning `VL_BG_*` \u002F `VL_FG_*` — copy one, change the colors,\nand source yours from `coralline.conf` instead. PRs with new themes are welcome.\n\n> **Tip:** the preview images are generated from the real script by\n> [`tools\u002Frender-screenshots.py`](.\u002Ftools\u002Frender-screenshots.py) — after adding a theme, add it\n> to the `THEMES` list there and re-run it to get a matching preview.\n\n## Acknowledgements\n\nThe visual language of coralline — segmented pills, powerline transitions, the `⇡⇣` git\nglyphs, gauges that shift color as they fill — is a loving tribute to\n[Powerlevel10k](https:\u002F\u002Fgithub.com\u002Fromkatv\u002Fpowerlevel10k) by\n[@romkatv](https:\u002F\u002Fgithub.com\u002Fromkatv), which set the bar for what a fast, beautiful prompt\ncan be. Thanks also to the wider [powerline](https:\u002F\u002Fgithub.com\u002Fpowerline\u002Fpowerline) lineage\nthat started it all, and to [Nerd Fonts](https:\u002F\u002Fwww.nerdfonts.com\u002F) for the glyphs that make\nthe pill shapes possible.\n\nAs for the name: coralline algae build reefs one thin, colorful layer at a time —\nand **coral·line** is exactly what this is: a line, in Claude's coral.\n\n## License\n\n[MIT](.\u002FLICENSE)\n",2,"2026-06-15 02:30:07","CREATED_QUERY"]