{"id":47428115,"url":"https://github.com/stevysmith/clawdgotchi","last_synced_at":"2026-04-05T08:01:06.328Z","repository":{"id":332692499,"uuid":"1134643560","full_name":"stevysmith/clawdgotchi","owner":"stevysmith","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-15T14:02:26.000Z","size":11124,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-11T15:30:59.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevysmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-15T02:01:59.000Z","updated_at":"2026-02-09T19:36:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stevysmith/clawdgotchi","commit_stats":null,"previous_names":["stevysmith/clawdgotchi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stevysmith/clawdgotchi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevysmith%2Fclawdgotchi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevysmith%2Fclawdgotchi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevysmith%2Fclawdgotchi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevysmith%2Fclawdgotchi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevysmith","download_url":"https://codeload.github.com/stevysmith/clawdgotchi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevysmith%2Fclawdgotchi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31428645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-03-22T03:00:28.766Z","updated_at":"2026-04-05T08:01:06.240Z","avatar_url":"https://github.com/stevysmith.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# ClawdGotchi\n\nA Tamagotchi-style virtual pet that lives in your menubar and tracks your Claude Code sessions. Watch your crabs wander around while Claude works!\n\n![ClawdGotchi Demo](assets/demo.gif)\n\n## Features\n\n- **Multi-Session Tracking**: Automatically detects all active Claude Code sessions via hooks\n- **Unique Accessories**: Each repo gets a unique accessory (bow, star, heart, etc.) so you can tell them apart\n- **Wandering Crabs**: Your pets walk around sideways like real crabs\n- **Repo Health Stats**: Tracks energy, health, happiness, and discipline based on:\n  - Commit frequency (energy)\n  - Uncommitted changes (health)\n  - CLAUDE.md presence (happiness + discipline)\n  - Test directory presence (happiness + discipline)\n- **Interactive**: Click to see stats, double-click to pet them\n- **Thought Bubbles**: Crabs share random thoughts while working\n\n## Installation\n\n### Download (Recommended)\n\nDownload the latest `.dmg` from the [Releases](https://github.com/stevysmith/clawdgotchi/releases) page.\n\n### Build from Source\n\n```bash\n# Clone the repo\ngit clone https://github.com/stevysmith/clawdgotchi.git\ncd clawdgotchi\n\n# Install dependencies\nnpm install\n\n# Run in development mode\nnpm run electron:dev\n\n# Build for production\nnpm run electron:build\n```\n\n## How It Works\n\nClawdGotchi uses Claude Code's [hooks system](https://docs.anthropic.com/en/docs/claude-code/hooks) to track active sessions:\n\n1. On first launch, it installs a hook to `~/.claude/hooks/`\n2. When you start a Claude Code session, the hook notifies ClawdGotchi\n3. A new crab appears in your menubar with a unique accessory based on the repo\n4. Stats update based on your repo's git health\n5. When the session ends, the crab falls asleep and fades away\n\n## Stats Explained\n\n| Stat | What Affects It |\n|------|-----------------|\n| **Energy** | How recently you committed (\u003c 1 hour = 100%) |\n| **Health** | Number of uncommitted changes (0 = 100%) |\n| **Happiness** | CLAUDE.md + tests + recent commits + clean state |\n| **Discipline** | CLAUDE.md + tests + few uncommitted files |\n\n### Tips for Happy Crabs\n\n- Commit early and often to keep energy high\n- Keep uncommitted changes under 5 files for good health\n- Add a `CLAUDE.md` file to boost happiness and discipline\n- Create a `tests/` or `__tests__/` directory for extra happiness\n\n## Development\n\n### Prerequisites\n\n- Node.js 18+\n- npm or yarn\n- macOS (for Electron menubar)\n\n### Project Structure\n\n```\nclawdgotchi/\n├── electron/           # Electron main process\n│   ├── main.ts         # App entry, tray, window\n│   ├── preload.ts      # IPC bridge\n│   ├── socketServer.ts # Unix socket for hook events\n│   ├── sessionManager.ts # Session state management\n│   └── hookInstaller.ts  # Installs hooks to ~/.claude/\n├── src/                # React renderer\n│   ├── App.tsx         # Main app component\n│   └── components/\n│       ├── ClawdGotchi.tsx   # The crab SVG\n│       ├── WanderingCrab.tsx # Animated wandering crab\n│       ├── MultiPetView.tsx  # Multi-session arena\n│       └── accessories/      # Accessory SVG components\n├── assets/\n│   └── hooks/          # Python hook script\n└── package.json\n```\n\n### Scripts\n\n```bash\nnpm run dev            # Vite dev server only\nnpm run electron:dev   # Full Electron dev mode\nnpm run build          # Build for production\nnpm run electron:build # Build + package as DMG\n```\n\n## Troubleshooting\n\n### Crabs not appearing?\n\n1. Make sure ClawdGotchi is running (check menubar)\n2. Restart ClawdGotchi to reinstall hooks\n3. Check hooks are installed: `cat ~/.claude/settings.json | grep clawdgotchi`\n\n### Sessions stuck as \"idle\"?\n\nSessions go idle after 5 minutes of no activity. They'll wake up when Claude starts working again.\n\n## Contributing\n\nContributions welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nMIT - see [LICENSE](LICENSE)\n\n---\n\nMade with love by the Claude Code community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevysmith%2Fclawdgotchi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevysmith%2Fclawdgotchi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevysmith%2Fclawdgotchi/lists"}