[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-74136":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":13,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},74136,"nanocode","1rgs\u002Fnanocode","1rgs","Minimal Claude Code alternative. Single Python file, zero dependencies, ~250 lines.",null,"Python",2423,236,14,3,0,7,57,21,29.12,false,"master",true,[],"2026-06-12 02:03:22","# nanocode\n\nMinimal Claude Code alternative. Single Python file, zero dependencies, ~250 lines.\n\nBuilt using Claude Code, then used to build itself.\n\n![screenshot](screenshot.png)\n\n## Features\n\n- Full agentic loop with tool use\n- Tools: `read`, `write`, `edit`, `glob`, `grep`, `bash`\n- Conversation history\n- Colored terminal output\n\n## Usage\n\n```bash\nexport ANTHROPIC_API_KEY=\"your-key\"\npython nanocode.py\n```\n\n### OpenRouter\n\nUse [OpenRouter](https:\u002F\u002Fopenrouter.ai) to access any model:\n\n```bash\nexport OPENROUTER_API_KEY=\"your-key\"\npython nanocode.py\n```\n\nTo use a different model:\n\n```bash\nexport OPENROUTER_API_KEY=\"your-key\"\nexport MODEL=\"openai\u002Fgpt-5.2\"\npython nanocode.py\n```\n\n## Commands\n\n- `\u002Fc` - Clear conversation\n- `\u002Fq` or `exit` - Quit\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `read` | Read file with line numbers, offset\u002Flimit |\n| `write` | Write content to file |\n| `edit` | Replace string in file (must be unique) |\n| `glob` | Find files by pattern, sorted by mtime |\n| `grep` | Search files for regex |\n| `bash` | Run shell command |\n\n## Example\n\n```\n────────────────────────────────────────\n❯ what files are here?\n────────────────────────────────────────\n\n⏺ Glob(**\u002F*.py)\n  ⎿  nanocode.py\n\n⏺ There's one Python file: nanocode.py\n```\n\n## License\n\nMIT\n","nanocode 是一个极简的 Claude Code 替代方案，整个项目仅由一个 Python 文件组成，无任何外部依赖，代码量约 250 行。它支持全代理循环和工具使用，包括读写文件、编辑内容、查找文件、正则搜索以及执行 shell 命令等功能，并且具备会话历史记录与彩色终端输出特性。此工具适用于需要快速搭建或原型设计涉及文件操作及命令行交互的自动化脚本场景，特别适合追求简洁高效解决方案的开发者。",2,"2026-06-11 03:48:58","high_star"]