{"id":26330841,"url":"https://github.com/martincastroalvarez/sql-cursor-ai-agent","last_synced_at":"2025-10-09T10:42:00.282Z","repository":{"id":282336007,"uuid":"948187118","full_name":"MartinCastroAlvarez/sql-cursor-ai-agent","owner":"MartinCastroAlvarez","description":"SQL builder AI agent","archived":false,"fork":false,"pushed_at":"2025-03-14T02:15:00.000Z","size":5561,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T03:24:36.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/MartinCastroAlvarez.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":"2025-03-13T22:32:20.000Z","updated_at":"2025-03-14T02:15:03.000Z","dependencies_parsed_at":"2025-03-14T03:36:58.475Z","dependency_job_id":null,"html_url":"https://github.com/MartinCastroAlvarez/sql-cursor-ai-agent","commit_stats":null,"previous_names":["martincastroalvarez/sql-cursor-ai-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MartinCastroAlvarez/sql-cursor-ai-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fsql-cursor-ai-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fsql-cursor-ai-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fsql-cursor-ai-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fsql-cursor-ai-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinCastroAlvarez","download_url":"https://codeload.github.com/MartinCastroAlvarez/sql-cursor-ai-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fsql-cursor-ai-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001275,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":"2025-03-15T22:18:00.290Z","updated_at":"2025-10-09T10:42:00.254Z","avatar_url":"https://github.com/MartinCastroAlvarez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL Agent\n\n![wallpaper.jpg](./wallpaper.jpg)\n\n## Overview\n\nThis project is a tool that helps you create SQL queries using AI technology. It has a web interface that works like Cursor, making it easy to use. The system uses two different AI agents that work together:\n\n1. One agent talks with you to understand what you need\n2. Another agent creates the actual SQL code\n\n### User Agent\n\nThe User Agent is the AI that you directly communicate with. It:\n- Listens to your requests in normal language\n- Tries to understand what information you need\n- Creates a plan for getting that information from a database\n- Passes this plan to the SQL Agent\n\n### SQL Agent\n\nThe SQL Agent is the technical expert that:\n- Takes the plan from the User Agent\n- Knows how to write proper SQL code\n- Creates the correct SQL query that will get the information you need\n- Returns a working query that can be run on your database\n\n### Web Interface\n\nThe web interface is a simple chat interface that allows you to communicate with the User Agent and the SQL Agent.\n\n![example1.png](./example1.png)\n![example2.png](./example2.png)\n![example3.png](./example3.png)\n![example4.png](./example4.png)\n\n## Installation\n\nSimply clone the repository and install the dependencies:\n\n```bash\nnvm use 20\nyarn install\n```\n\n## Local Development\n\nSet the following environment variable:\n\n```bash\nexport REACT_APP_OPENAI_API_KEY=\u003c\"your-openai-api-key\"\n```\n\nSimply run the start script:\n\n```bash\nnvm use 20\nyarn start\n```\n\nThen, visit `http://localhost:3000` to see the app in action.\n\n## Build\n\nSimply run the build script:\n\n```bash\nnvm use 20\nyarn build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fsql-cursor-ai-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincastroalvarez%2Fsql-cursor-ai-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fsql-cursor-ai-agent/lists"}