{"id":25774139,"url":"https://github.com/brianprost/we-have-agents-at-home","last_synced_at":"2026-04-29T16:38:16.186Z","repository":{"id":279603656,"uuid":"909048358","full_name":"brianprost/we-have-agents-at-home","owner":"brianprost","description":"ReAct agent from scratch in TypeScript","archived":false,"fork":false,"pushed_at":"2024-12-27T16:16:03.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T19:25:23.042Z","etag":null,"topics":["anthropic","deno","generative-ai","hono","sst"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/brianprost.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}},"created_at":"2024-12-27T16:13:44.000Z","updated_at":"2024-12-27T16:14:50.000Z","dependencies_parsed_at":"2025-02-26T12:43:26.944Z","dependency_job_id":"a23404fa-a90f-498b-baa6-6474ef22ce9e","html_url":"https://github.com/brianprost/we-have-agents-at-home","commit_stats":null,"previous_names":["brianprost/we-have-agents-at-home"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brianprost/we-have-agents-at-home","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianprost%2Fwe-have-agents-at-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianprost%2Fwe-have-agents-at-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianprost%2Fwe-have-agents-at-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianprost%2Fwe-have-agents-at-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianprost","download_url":"https://codeload.github.com/brianprost/we-have-agents-at-home/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianprost%2Fwe-have-agents-at-home/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["anthropic","deno","generative-ai","hono","sst"],"created_at":"2025-02-27T05:18:29.107Z","updated_at":"2026-04-29T16:38:16.167Z","avatar_url":"https://github.com/brianprost.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# We Have Agents At Home 🤖\n\nThis is an attempt to create an AI agent 'from scratch' to better understand the underlying principles of the [ReAct](https://arxiv.org/abs/2210.03629) pattern without using a framework like [LangGraph](https://www.langchain.com/langgraph) or [CrewAI](https://www.crewai.com/).\n\nIt was inspired by (and partially based on) Simon Willison's [A simple Python implementation of the ReAct pattern for LLMs](https://til.simonwillison.net/llms/python-react-pattern) but rewritten in TypeScript.\n\nI also wanted to be able to call this from my phone so I used [Hono](https://hono.dev/) to create an API to call the agent and deployed it via [SST](https://sst.dev/).\n\nThis is an evolving project and is subject to change. If you like it in it's current form, fork it.\n\n## 🚀 Features\n\n- RAG with intelligent search capabilities via Tavily and Wikipedia\n- Easy deployment to AWS\n- Response caching system for well, whatever. I have my reasons.\n- Built with TypeScript and Hono framework\n\n## 📋 Prerequisites\n\n- Deno, Bun or Node.js\n- AWS account and configured credentials\n- Anthropic API key\n- Tavily API key\n\n## 🛠️ Setup\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/brianprost/we-have-agents-at-home.git\ncd we-have-agents-at-home\n```\n\n2. Install dependencies:\n```bash\ndeno install\n```\n\n3. Set up environment variables:\nCreate a `.env` file with the following variables:\n```\nANTHROPIC_API_KEY=your_anthropic_api_key\nTAVILY_API_KEY=your_tavily_api_key\n```\n\n## 🚀 Development\n\nTo run the project locally:\n```bash\ndeno task dev\n```\n\n## 📦 Deployment\n\nTo deploy to AWS:\n```bash\ndeno task deploy\n```\n\n## 🏗️ Project Structure\n\n- `main.ts` - Main application entry point\n- `sst.config.ts` - SST configuration and infrastructure setup\n- `db.ts` - Database operations and cache management\n- `env.ts` - Environment variable configuration\n\n## 🔧 Built With\n\n- [SST](https://sst.dev/)\n- [Hono](https://hono.dev/)\n- [Anthropic Claude](https://www.anthropic.com/)\n- [Tavily](https://tavily.com/)\n- [DynamoDB](https://aws.amazon.com/dynamodb/)\n- [TypeScript](https://www.typescriptlang.org/)\n\n## 📄 License\n\nThis project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianprost%2Fwe-have-agents-at-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianprost%2Fwe-have-agents-at-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianprost%2Fwe-have-agents-at-home/lists"}