{"id":51190166,"url":"https://github.com/horacehylee/pico-agent","last_synced_at":"2026-06-27T14:30:22.800Z","repository":{"id":352257742,"uuid":"1214476771","full_name":"horacehylee/pico-agent","owner":"horacehylee","description":"⚡A pico-sized coding agent used for experiment and testing agent harness with different LLM models","archived":false,"fork":false,"pushed_at":"2026-04-18T16:39:20.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T18:30:19.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/horacehylee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-04-18T16:21:51.000Z","updated_at":"2026-04-18T16:39:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/horacehylee/pico-agent","commit_stats":null,"previous_names":["horacehylee/pico-agent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/horacehylee/pico-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fpico-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fpico-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fpico-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fpico-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horacehylee","download_url":"https://codeload.github.com/horacehylee/pico-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fpico-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34857480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-27T14:30:22.618Z","updated_at":"2026-06-27T14:30:22.794Z","avatar_url":"https://github.com/horacehylee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Pico Agent\n\n\u003e ⚡ A pico-sized coding agent used for experiment and testing agent harness with different LLM models.\n\nPico Agent is a minimal, single-file coding agent that connects to LLM providers via the OpenAI-compatible chat completions API. It ships with file reading, editing, searching, and shell execution tools — giving the model everything it needs to assist with real coding tasks, all in under 150 lines of Python.\n\n## ✨ Features\n\n- 📄 **File operations** — read, create, and edit files\n- 📁 **Directory listing** — browse project structure\n- 🔍 **Regex search** — find patterns across files recursively\n- 🐚 **Shell execution** — run arbitrary commands (30s timeout)\n- 🔄 **Agentic loop** — multi-turn tool calling until the task is done\n- 🔌 **Multiple providers** — pluggable provider config for experimenting with different LLMs\n\n## 🚀 Quick Start\n\n```bash\n# Clone the repo\ngit clone https://github.com/horacehylee/pico-agent.git\ncd pico-agent\n\n# Install uv (if not already installed)\npip install uv\n\n# Create virtual environment and install dependencies\nuv sync\n\n# Configure your API key\ncp .env.example .env\n# Edit .env and add your API key\n\n# Run\nuv run python agent.py\n```\n\n## 🧪 Running Tests\n\n```bash\n# Install dev dependencies and run tests\nuv run pytest test_agent.py -v\n```\n\n## 🌍 System-wide Installation\n\nTo use `pico` from any directory:\n\n```bash\n# Add pico to your PATH (pick one option)\n\n# Option 1: Link to ~/.local/bin (recommended)\nmkdir -p ~/.local/bin\nln -s \"$(pwd)/pico\" ~/.local/bin/pico\n\n# Option 2: Link to /usr/local/bin (requires sudo)\nsudo ln -s \"$(pwd)/pico\" /usr/local/bin/pico\n\n# Make sure ~/.local/bin is in your PATH (add to ~/.bashrc or ~/.zshrc)\nexport PATH=\"$HOME/.local/bin:$PATH\"\n\n# Now you can run from anywhere!\npico\n```\n\nThe `pico` command will:\n- 📍 Stay in your current working directory\n- 🧪 Use the installed virtual environment\n- ▶️ Run agent.py from the repo\n\n## ⚙️ Configuration\n\nEnvironment variables are loaded from a `.env` file:\n\n| Variable       | Description                | Default  |\n| -------------- | -------------------------- | -------- |\n| `BASE_URL`     | Base URL for the API       | `https://openrouter.ai/api/v1` |\n| `MODEL`        | Model to use               | `minimax/minimax-m2.5:free`|\n| `API_KEY`      | API key for the provider   | —        |\n\n## 📂 Project Structure\n\n```\npico-agent/\n├── agent.py          # The entire agent (entry point)\n├── test_agent.py     # Unit tests\n├── .env.example      # Template for environment variables\n└── README.md\n```\n\n## 📝 License\n\nMIT © [Horace Lee](https://github.com/horacehylee)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoracehylee%2Fpico-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoracehylee%2Fpico-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoracehylee%2Fpico-agent/lists"}