{"id":38983711,"url":"https://github.com/yanmxa/gencode","last_synced_at":"2026-04-14T18:01:03.184Z","repository":{"id":258337042,"uuid":"852902752","full_name":"yanmxa/gencode","owner":"yanmxa","description":"Open-source AI agent. Lives in your terminal.","archived":false,"fork":false,"pushed_at":"2026-04-07T05:06:56.000Z","size":5153,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T06:29:27.918Z","etag":null,"topics":["ai-agents","automation","claude-code","coding","gemini-cli","golang","opencode","provider-agnostic","teminal","workflow"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanmxa.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":"2024-09-05T16:16:25.000Z","updated_at":"2026-04-07T05:06:59.000Z","dependencies_parsed_at":"2026-03-15T07:02:25.258Z","dependency_job_id":"01dbe053-3d1c-46cb-8fcc-df1c3c9c093b","html_url":"https://github.com/yanmxa/gencode","commit_stats":{"total_commits":53,"total_committers":1,"mean_commits":53.0,"dds":0.0,"last_synced_commit":"0cbfdbfa83ac5de123e6626f2a68a19b7623bc9b"},"previous_names":["yanmxa/omni-agent","yanmxa/zengent","yanmxa/zen-agent","yanmxa/genpilot","yanmxa/chat-agent","yanmxa/gencode"],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/yanmxa/gencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanmxa%2Fgencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanmxa%2Fgencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanmxa%2Fgencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanmxa%2Fgencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanmxa","download_url":"https://codeload.github.com/yanmxa/gencode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanmxa%2Fgencode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31808518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ai-agents","automation","claude-code","coding","gemini-cli","golang","opencode","provider-agnostic","teminal","workflow"],"created_at":"2026-01-17T16:57:45.878Z","updated_at":"2026-04-14T18:01:03.167Z","avatar_url":"https://github.com/yanmxa.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e\u003c GEN ✦ /\u003e\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cstrong\u003eOpen-source AI coding assistant for the terminal\u003c/strong\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yanmxa/gencode/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/yanmxa/gencode?style=flat-square\" alt=\"Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/yanmxa/gencode\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/yanmxa/gencode?style=flat-square\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/yanmxa/gencode\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/yanmxa/gencode.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\nAn open-source AI coding assistant for the terminal. Multi-provider support, flexible context management, compatible with [Claude Code](https://claude.ai/code) extensions and plugins.\n\n## ✨ Features\n\n- **Multi-provider** — Anthropic, OpenAI, Gemini, Moonshot, etc. — switch with `/provider`\n- **Tools** — Built-in (Edit, Bash, WebSearch, etc.) + [MCP](https://modelcontextprotocol.io), dynamic enable/disable for context control\n- **Skills** — Model visibility control (off/command/aware), [Claude Code](https://claude.ai/code) compatible\n- **Subagents** — Dedicated LLM instances with isolated context and tools, background execution support\n- **Plugins** — Bundle skills/agents/hooks/MCP, marketplace install, [Claude Code](https://claude.ai/code) compatible\n- **Session** — Persist, resume, search, auto-cleanup, with context compact\n- **Others** — Plan mode, task management, hooks, etc.\n\n### Providers\n\n| Provider | Models | Auth | Environment Variables |\n|:---------|:-------|:-----|:----------------------|\n| **Anthropic** | Claude Opus 4.6, Sonnet 4.6 | API Key / [Vertex AI](https://code.claude.com/docs/en/google-vertex-ai) | `ANTHROPIC_API_KEY` |\n| **OpenAI** | GPT-5.2, GPT-5, o3, o4-mini, Codex | API Key | `OPENAI_API_KEY` |\n| **Google** | Gemini 3 Pro/Flash, 2.5 Pro/Flash | API Key | `GOOGLE_API_KEY` |\n| **Moonshot** | Kimi K2.5, K2 Thinking | API Key | `MOONSHOT_API_KEY` |\n| **Alibaba** | Qwen3.5 Plus, Qwen3 Max/Plus/Flash, QwQ, Qwen Coder, DeepSeek-V3/R1 | API Key | `DASHSCOPE_API_KEY`, `DASHSCOPE_BASE_URL` (optional) |\n\n## 🚀 Installation\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/yanmxa/gencode/main/install.sh | bash\n```\n\nRe-run the same command to upgrade. To uninstall:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/yanmxa/gencode/main/install.sh | bash -s uninstall\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eOther methods\u003c/b\u003e\u003c/summary\u003e\n\n**Go Install**\n\n```bash\ngo install github.com/yanmxa/gencode/cmd/gen@latest\n```\n\n**Build from Source**\n\n```bash\ngit clone https://github.com/yanmxa/gencode.git\ncd gencode\ngo build -o gen ./cmd/gen\nmkdir -p ~/.local/bin \u0026\u0026 mv gen ~/.local/bin/\n```\n\n\u003c/details\u003e\n\n## 📖 Usage\n\n```bash\n# Interactive mode\ngen\n\n# Non-interactive mode\ngen \"explain this function\"\ncat main.go | gen \"review this code\"\n\n# Resume previous session\ngen --continue        # Resume most recent\ngen --resume          # Select from list\n```\n\n### Quick Start\n\n1. Run `gen` to start interactive mode\n2. Use `/provider` to connect to an LLM provider\n3. Use `/model` to select a model\n4. Start chatting!\n\n\n## 🔧 Configuration\n\nGenCode stores configuration in `~/.gen/`:\n\n```\n~/.gen/\n├── providers.json    # Provider connections and current model\n├── settings.json     # User settings\n├── skills.json       # Skill states\n├── projects/         # Project-scoped session transcripts + indexes\n├── skills/           # Custom skills\n└── agents/           # Custom agents\n```\n\n## 📊 Benchmark: GenCode vs Claude Code\n\nCompared with [Claude Code](https://claude.ai/code) v2.1.96 on Apple Silicon, same model (`claude-sonnet-4-20250514`):\n\n| Metric | GenCode | Claude Code | Advantage |\n|--------|---------|-------------|-----------|\n| Download size | 12 MB | 62 MB (+ Node.js 112 MB) | **5x smaller** |\n| Disk footprint | 38 MB | 174 MB | **4.6x smaller** |\n| Startup time | ~0.02s | ~0.18s | **9x faster** |\n| Startup memory | ~33 MB | ~185 MB | **5.6x less** |\n| Simple task | ~5.2s / 39 MB | ~11.9s / 282 MB | **2.3x faster, 7.2x less memory** |\n| Tool-use task | ~3.6s / 40 MB | ~14.6s / 281 MB | **4.1x faster, 7.1x less memory** |\n\nBoth tools have comparable features (hooks, skills, plugins, session, MCP, etc.). The performance gap comes from Go's native compilation vs Node.js V8/JIT/GC runtime overhead.\n\nSee full details: [docs/benchmark-gencode-vs-claudecode.md](docs/benchmark-gencode-vs-claudecode.md)\n\n## 🔗 Related Projects\n\n- [Claude Code](https://claude.ai/code) — Anthropic's AI coding assistant\n- [Aider](https://github.com/paul-gauthier/aider) — AI pair programming in terminal\n- [Continue](https://github.com/continuedev/continue) — Open-source AI code assistant\n\n## 🤝 Contributing\n\nContributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## 📄 License\n\nApache License 2.0 - see [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanmxa%2Fgencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanmxa%2Fgencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanmxa%2Fgencode/lists"}