gsd-statusline.js
Claude Code statusline: shows the model, the current task or GSD state, the directory and context usage.
The source repository is archived by its owner, so it gets no more updates.
- Kind
- Hook
- Works with
- Claude Code, Gemini / Antigravity
- Languages
- TypeScript / JavaScript
- Source
- gsd-build/get-shit-done @ bdcaab2c752d
- Path
- hooks/gsd-statusline.js
- Jobs
- Context management
- Topics
- Context & memory, Planning & specs
Credit
- Made by
- gsd-build
- Original
- github.com/gsd-build/get-shit-done/blob/bdcaab2c752d9a33a1a1c…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- Entries under `hooks` in .claude/settings.json
- Runs scripts
- Yes
- gsd-statusline.js
- the component is a script
- Uses the network
- None found
- Needs secrets
- None found
- Reads environment variables
- CLAUDE_CODE_AUTO_COMPACT_WINDOW
- Reads outside the project
- /usr/bin/env (gsd-statusline.js)
- Calls other skills
- /foo
- /command-name
- /gsd
- /gsd:update
- Source revision
- bdcaab2c752d
- Licence
- MIT
- Last activity
- Archived by its owner
- Last push 31 May 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
#!/usr/bin/env node
// gsd-hook-version: {{GSD_VERSION}}
// Claude Code Statusline - GSD Edition
// Shows: model | current task (or GSD state) | directory | context usage
const fs = require('fs');
const path = require('path');
const os = require('os');
// --- Config + last-command readers ------------------------------------------
/**
* Walk up from dir looking for .planning/config.json and return its parsed contents.
* Returns {} if not found or unreadable.
*/
function readGsdConfig(dir) {
const home = os.homedir();
let current = dir;
for (let i = 0; i < 10; i++) {
const candidate = path.join(current, '.planning', 'config.json');
if (fs.existsSync(candidate)) {
try {
return JSON.parse(fs.readFileSync(candidate, 'utf8')) || {};
} catch (e) {
return {};
}
}
const parent = path.dirname(current);
if (parent === current || current === home) break;
current = parent;
}
return {};
}
/**
* Lookup a dotted key path (e.g. 'statusline.show_last_command') in a config
* object that may use either nested or flat keys.
*/
function getConfigValue(cfg, keyPath) {
if (!cfg || typeof cfg !== 'object') return undefined;
…