{"id":26288578,"url":"https://github.com/ghsaboias/alpha-agent","last_synced_at":"2025-03-14T22:14:03.933Z","repository":{"id":257015937,"uuid":"857089249","full_name":"ghsaboias/alpha-agent","owner":"ghsaboias","description":"An intelligent web research assistant that combines web crawling, search functionality, and AI-powered analysis using Anthropic's Claude API.","archived":false,"fork":false,"pushed_at":"2025-01-14T23:16:50.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T00:25:18.222Z","etag":null,"topics":["ai","claude","crawler","search","web"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghsaboias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-13T19:27:37.000Z","updated_at":"2025-01-14T23:17:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa19bc38-7008-453c-9f7f-128455de362b","html_url":"https://github.com/ghsaboias/alpha-agent","commit_stats":null,"previous_names":["ghsaboias/alpha-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghsaboias%2Falpha-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghsaboias%2Falpha-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghsaboias%2Falpha-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghsaboias%2Falpha-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghsaboias","download_url":"https://codeload.github.com/ghsaboias/alpha-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652700,"owners_count":20325611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","claude","crawler","search","web"],"created_at":"2025-03-14T22:14:02.694Z","updated_at":"2025-03-14T22:14:03.917Z","avatar_url":"https://github.com/ghsaboias.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpha Agent\n\nAn intelligent web research assistant that combines web crawling, search functionality, and AI-powered analysis using Anthropic's Claude API.\n\n## Features\n\n- Web crawling with intelligent content extraction\n- Brave Search integration for finding relevant web pages\n- AI-powered analysis using Claude 3\n- Automatic query analysis and search decision making\n- Conversation history tracking\n- Token usage monitoring and cost calculation\n\n## Prerequisites\n\n- Python 3.11 or higher\n- API keys for:\n  - Anthropic Claude API\n  - Brave Search API\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/ghsaboias/alpha-agent.git\ncd alpha-agent\n```\n\n2. Create and activate a virtual environment:\n```bash\npython -m venv .venv\nsource .venv/bin/activate  # On Windows, use `.venv\\Scripts\\activate`\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Create a `.env` file in the project root with your API keys:\n```env\nCLAUDE_API_KEY=your_claude_api_key\nBRAVE_API_KEY=your_brave_api_key\n```\n\n## Usage\n\n### Command Line Interface\n\nRun a query using the command line interface:\n\n```bash\npython claude_api.py \"your research query here\"\n```\n\nThe response will be saved to `claude_response.txt` and also printed to the console.\n\n### Key Components\n\n- `web_analyzer.py`: Handles web crawling and content analysis\n- `claude_api.py`: Manages interactions with Claude API and orchestrates the research process\n- `config.py`: Contains configuration settings and environment variables\n\n### Configuration\n\nYou can modify various settings in `config.py`:\n\n- Model selection (Claude 3 Haiku/Sonnet)\n- Token limits\n- Cost calculations\n- Search result limits\n- Logging levels\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\n[Add your chosen license here]\n\n## Acknowledgments\n\n- [Anthropic](https://www.anthropic.com/) for the Claude API\n- [Brave Search](https://brave.com/search/) for the search API\n- [crawl4ai](https://github.com/crawl4ai/crawl4ai) for web crawling functionality\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghsaboias%2Falpha-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghsaboias%2Falpha-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghsaboias%2Falpha-agent/lists"}