project-healthy · TypeScript CLI · MIT
An AI-powered health score for your repositories. Scan, fix, review, and track the quality of your codebase — all from the terminal.
Hover any card to see detailed usage, flags, and examples.
.ph-cache/ directory, generates a default project-health.config.ts, installs a post-commit git hook, and drops you into an interactive shell. Running ph scan without prior init will auto-run this step.
.ph-cache/ and prints the aggregate score along with per-module breakdown instantly.
ph chat "explain the auth flow".
ONBOARDING.md.
--commit.
ph config wizard — interactive setup for modules, scoring weights, complexity thresholds, and API tokens. ph config get <key> / ph config set <key> <val> for individual values.
ph auth login stores a JWT in your OS keychain. ph auth logout removes it. ph auth status checks if you're currently authenticated.
ph init. All commands work inside the shell without the ph prefix. Type help to list commands and exit to quit.
Each module independently scores a dimension of repository health. Run all in parallel or target a specific one with -m.
The health score is a weighted average across all 8 modules. Each finding is categorised by severity and contributes to the final result. Track it over time with ph trend.
Four AI-powered commands backed by RAG, AST indexing, and your preferred LLM.
ph chat "explain auth flow". Full-context mode loads the entire repo for richer answers.
--post it comments the review directly on the GitHub PR.
--update.
--ai it handles complex refactors. Use --dry-run to preview every change before it's applied.
One command to install. One command to scan. Instantly know where your repo stands.