{"id":30717795,"url":"https://github.com/luke3butler/quarkcode","last_synced_at":"2026-05-07T10:33:22.515Z","repository":{"id":312185285,"uuid":"1046659243","full_name":"luke3butler/quarkcode","owner":"luke3butler","description":"Minimal CLI agent with a TUI - 855 LoC","archived":false,"fork":false,"pushed_at":"2025-08-29T19:57:53.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T09:00:05.855Z","etag":null,"topics":["agent","agentic-coding","ai","bun","claude-code","cli","coding-agents"],"latest_commit_sha":null,"homepage":"","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/luke3butler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2025-08-29T02:57:53.000Z","updated_at":"2025-09-17T21:43:03.000Z","dependencies_parsed_at":"2025-08-29T05:54:22.455Z","dependency_job_id":"0eae8df1-6198-4f05-bd62-ed101ed19ebd","html_url":"https://github.com/luke3butler/quarkcode","commit_stats":null,"previous_names":["luke3butler/quarkcode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luke3butler/quarkcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luke3butler%2Fquarkcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luke3butler%2Fquarkcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luke3butler%2Fquarkcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luke3butler%2Fquarkcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luke3butler","download_url":"https://codeload.github.com/luke3butler/quarkcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luke3butler%2Fquarkcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32733521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["agent","agentic-coding","ai","bun","claude-code","cli","coding-agents"],"created_at":"2025-09-03T09:02:05.781Z","updated_at":"2026-05-07T10:33:22.508Z","avatar_url":"https://github.com/luke3butler.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quarkcode\n\nMinimal CLI agent with a pretty TUI, 855 lines of code\n\n![Screenshot](assets/screenshot.png)\n\n## Overview\n\nThis probably won't replace your current agent, but it's a fun experiment in building a minimal agent with a TUI. It's functional and somewhat polished, but not fully featured.\n\nInspired by [mini-swe-agent](https://github.com/SWE-agent/mini-swe-agent) and Claude Code, the goal was to build an equivalent agent in under 1k lines (mini-swe-agent is ~1.7k lines for the CLI + TUI).\n\nFun fact: Claude Code helped write the initial non-interactive version, then I switched to quarkcode itself to build the TUI and polish the features.\n\nWhy \"quark\"? Among the most fundamental particles we know. And just a unique name.\n\n## Details\n\n- Interactive TUI similar to Claude Code\n- One-shot sessions (will not remember previous prompts within your session)\n- Single tool: Bash execution\n- Auto-accept mode (Shift+Tab)\n- Potentially resolves ~67% of GitHub issues in SWE-bench verified (unverified claim)\n- Supports Anthropic and OpenAI models\n- Written in TypeScript\n- Minimal dependencies\n  - AI SDK\n  - Ink (TUI)\n  - yargs (CLI)\n\n## Quickstart\n\n⚠️ **Warning**: Be careful with auto-accept mode. This tools gives an LLM shell access.\n\n```bash\n# Set ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment\nexport ANTHROPIC_API_KEY=\"your_key_here\"\n\n# Install globally\nnpm install -g quarkcode@latest\nquark                    # Interactive mode\nquark -t \"Fix the bug\"   # Direct task\n\n# Or run directly without installing\nnpx -y quarkcode@latest  # Interactive mode\nnpx -y quarkcode@latest -t \"Fix the bug in main.py\"\n\n# Or via bunx\nbunx quarkcode  # Interactive mode\nbunx quarkcode -t \"Fix the bug in main.py\"\n```\n\n## TUI Shortcuts\n\n- `Ctrl+C` - Exit\n- `Shift+Tab` - Toggle auto-accept mode (yolo mode with no safeguards)\n- **Command confirmation**: `Y`/`Enter` = approve, `N`/`Escape` = reject\n\n## CLI Flags\n\n- `-t, --task` - Task to execute in non-interactive mode\n- `-m, --model` - LLM model\n- `-l, --token-limit` - Max tokens\n- `-s, --step-limit` - Max steps\n- `--tui` - Launch TUI\n- `-h, --help` - Show help\n\n## Command Aliases\n\nBoth `quark` and `quarkcode` work identically:\n\n- `quark -t \"task\"` (short)\n- `quarkcode -t \"task\"` (descriptive)\n\n## Models\n\n- `claude-sonnet-4-20250514` (default)\n- `gpt-5`\n- any other OpenAI or Anthropic model (untested)\n\n## Quickstart in a docker container\n\nWork on any project by mounting it into /workspace:\n\n```bash\n# 1. Build image (one time)\ngit clone \u003crepo\u003e \u0026\u0026 cd quarkcode \u0026\u0026 docker build -t quarkcode .\n\n# 2. Configure API key\necho \"ANTHROPIC_API_KEY=your_key_here\" \u003e .env\n\n# 3. Set your project path\nexport PROJECT_DIR=\"/path/to/your/project\"\n\n# 4. Run tasks\ndocker run --rm -it -v $PROJECT_DIR:/workspace --env-file .env -w /workspace quarkcode -t \"Fix the bug in main.py\"\n\n# 5. Interactive mode\ndocker run --rm -it -v $PROJECT_DIR:/workspace --env-file .env -w /workspace quarkcode\n```\n\n## Local Development\n\n`bun run agent` will run in docker.\n\n```bash\n# Interactive TUI in docker (default when no task provided)\nbun run agent\n\n# Direct task execution\nbun run agent -t \"Create a simple React component\"\n\n# Build + run\nbun run agent:b\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke3butler%2Fquarkcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluke3butler%2Fquarkcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke3butler%2Fquarkcode/lists"}