Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

385 B
Raw Blame
export const FALLBACK_GITHUB_STARS = 1_864

export function formatStarsCount(stars: number): string {
  if (stars >= 1_000_000) {
    const formatted = (stars / 1_000_000).toFixed(1)
    return `${formatted.replace(/\.0$/, "")}M`
  }

  if (stars >= 1_000) {
    const formatted = (stars / 1_000).toFixed(1)
    return `${formatted.replace(/\.0$/, "")}k`
  }

  return String(stars)
}