{"id":49575894,"url":"https://github.com/celeroncoder/coco","last_synced_at":"2026-05-03T17:01:32.429Z","repository":{"id":355423910,"uuid":"1227825633","full_name":"celeroncoder/coco","owner":"celeroncoder","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-03T15:27:27.000Z","size":601,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T16:10:58.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://coco-web-zeta.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/celeroncoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-03T08:05:13.000Z","updated_at":"2026-05-03T15:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/celeroncoder/coco","commit_stats":null,"previous_names":["celeroncoder/coco"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/celeroncoder/coco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeroncoder%2Fcoco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeroncoder%2Fcoco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeroncoder%2Fcoco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeroncoder%2Fcoco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celeroncoder","download_url":"https://codeload.github.com/celeroncoder/coco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeroncoder%2Fcoco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32577126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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-05-03T17:01:22.353Z","updated_at":"2026-05-03T17:01:32.417Z","avatar_url":"https://github.com/celeroncoder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coco\n\nPair a local machine, pick a workspace, and run local CLI agents (Claude Code, Codex, etc.) from the web. Responses stream back live.\n\n## Architecture\n\n```\nWeb UI (Next.js 16)  \u003c--\u003e  Convex (backend)  \u003c--\u003e  Daemon (Bun CLI on your machine)\n```\n\n- **Web App** (`apps/web`) -- Manage devices, workspaces, and threads. Send prompts and watch responses stream in real-time.\n- **Daemon** (`apps/daemon`) -- Runs on your local machine. Pairs via a code, listens for pending runs, spawns CLI agents, and streams results back.\n- **Backend** (`packages/convex`) -- Convex-powered backend. Source of truth for devices, workspaces, threads, runs, and events.\n\n## Tech Stack\n\n- **Monorepo**: Turborepo + Bun workspaces\n- **Frontend**: Next.js 16, React 19, Tailwind CSS v4 + AlignUI, tRPC v11\n- **Backend**: Convex (schema-driven serverless)\n- **Auth**: Clerk (JWT bridged to Convex)\n- **Daemon**: Bun CLI + Vercel AI SDK + `spawn-agent`\n\n## Features\n\n- **Device pairing** -- Generate a code on the daemon, enter it in the web UI to link your machine\n- **Workspaces** -- Define local directories where agents run\n- **Threads** -- Chat-style conversations with agents, scoped to a workspace\n- **Live streaming** -- Responses stream from local CLI agents to the web UI in real-time\n- **Skills** -- Auto-scan `~/.agents/skills` and inject them as system prompt additions\n\n## Getting Started\n\n### Prerequisites\n\n- [Bun](https://bun.sh) 1.3.13+\n- A [Convex](https://convex.dev) account\n- A [Clerk](https://clerk.com) account\n\n### Setup\n\n```bash\n# Install dependencies\nbun install\n\n# Provision Convex backend (one-time)\nbun --filter @coco/convex dev\n# This writes CONVEX_DEPLOYMENT and CONVEX_URL to packages/convex/.env.local\n\n# Configure web app environment\ncp apps/web/.env.example apps/web/.env.local\n# Fill in:\n#   NEXT_PUBLIC_CONVEX_URL   (from packages/convex/.env.local)\n#   NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY\n#   CLERK_SECRET_KEY\n\n# Set CLERK_JWT_ISSUER_DOMAIN in Convex dashboard -\u003e Settings -\u003e Environment Variables\n\n# Start dev servers\nbun run dev\n```\n\n### Pairing the Daemon\n\n```bash\n# Pair your machine (first time)\nbun --filter @coco/daemon pair --name \"My Machine\" --convex-url \u003cCONVEX_URL\u003e\n# Enter the printed code in the web UI at /devices\n\n# Start the daemon\nbun --filter @coco/daemon start\n```\n\nConfig is saved to `~/.coco/config.json` after pairing.\n\n## Local Production Build (Web + Daemon)\n\n### Web app (production-like)\n\n```bash\n# Build\nbun --filter @coco/web build\n\n# Run locally in production mode\ncd apps/web\nNEXT_PUBLIC_CONVEX_URL=... \\\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=... \\\nCLERK_SECRET_KEY=... \\\nbun run start\n```\n\n### Daemon (production-like)\n\n```bash\n# Build a local binary\nbun --filter @coco/daemon build\n\n# Run the built binary\n./apps/daemon/dist/coco-agent pair --server http://localhost:3000\n./apps/daemon/dist/coco-agent start\n```\n\nSet `COCO_SERVER` to point at your deployed web app if you're not using the `--server` flag.\n\n## Deployment\n\n### Convex\n\n```bash\nbun --filter @coco/convex deploy\n```\n\n### Web app\n\nThis repo assumes a Vercel deploy for `apps/web`. If you deploy elsewhere, use the\nsame `apps/web` build output.\n\n```bash\ncd apps/web\nbun run build\nbun run start\n```\n\nMake sure your production env has:\n\n- `NEXT_PUBLIC_CONVEX_URL`\n- `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY`\n- `CLERK_SECRET_KEY`\n\nIf you're deploying on Vercel from the repo root, set `CONVEX_DEPLOY_KEY`\nso the build can run `convex codegen` (the generated `@coco/convex/api`\nfiles are not committed).\n\n## Release Pipeline\n\nThe CI workflow runs on pushes to `main`:\n\n- Builds the daemon into platform binaries and uploads them as workflow artifacts.\n\nOn `main`, it also creates a tagged GitHub Release and attaches the daemon\nartifacts.\n\nArtifacts show up under the GitHub Actions run as:\n\n- `coco-agent-darwin-arm64.tar.gz`\n- `coco-agent-linux-x64.tar.gz`\n- `coco-agent-windows-x64.zip`\n\nCI secrets expected by the workflow:\n\n- (none)\n\nTo use a built binary locally:\n\n```bash\n# macOS / Linux\ntar -xzf coco-agent-*.tar.gz\n./coco-agent pair --server https://your-app.example.com\n./coco-agent start\n```\n\n```powershell\n# Windows\nExpand-Archive coco-agent-windows-x64.zip -DestinationPath .\n./coco-agent.exe pair --server https://your-app.example.com\n./coco-agent.exe start\n```\n\n## Production Checklist\n\n- Convex deployed; `CONVEX_DEPLOYMENT` and `CONVEX_URL` are correct.\n- Clerk production keys in place; `CLERK_JWT_ISSUER_DOMAIN` set in Convex env.\n- Web app env vars set (see Deployment section).\n- `COCO_SERVER` points at the production URL for daemon installs.\n- Domain, HTTPS, and CORS verified end-to-end (web + daemon).\n- Smoke test: pair a device, create a workspace, start a thread, run a prompt.\n- Monitor logs for `apps/web` and Convex, confirm no auth or polling errors.\n- Release artifacts downloadable from CI and verified on macOS, Linux, Windows.\n\n## Project Structure\n\n```\ncoco/\n├── apps/\n│   ├── web/           # Next.js 16 web app\n│   └── daemon/        # Local daemon CLI\n├── packages/\n│   └── convex/        # Convex backend (schema, functions)\n├── turbo.json\n└── package.json\n```\n\n## Docs\n\nSee [AGENTS.md](./AGENTS.md) for layout, conventions, and tRPC/Convex usage.\nSee [PLAN.md](./PLAN.md) for the implementation roadmap.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceleroncoder%2Fcoco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceleroncoder%2Fcoco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceleroncoder%2Fcoco/lists"}