An open API service indexing awesome lists of open source software.

https://github.com/AbhinavTheDev/coding-agent

Your own Coding Agent 🤖
https://github.com/AbhinavTheDev/coding-agent

coagents copilotkit groq langchain langgraph nextjs python

Last synced: 4 months ago
JSON representation

Your own Coding Agent 🤖

Awesome Lists containing this project

README

        

![coding-agent](https://socialify.git.ci/AbhinavTheDev/coding-agent/image?description=1&font=Bitter&language=1&owner=1&pattern=Charlie+Brown&theme=Dark)

### ⭐ About

- Open-source web app for your coding task.
- Built with Next.js, CopilotKit.
- Uses a coding assistant LangGraph agent for generating responses .
- Simplifies developers task.

| Demo Video | Blog Post |
|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [![YouTube](https://i.ytimg.com/vi/OHNZUrz2o0g/hqdefault.jpg)](https://youtu.be/OHNZUrz2o0g?si=nUtjJcTg9O8lNr96) | [![Blog](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqznpo8tit1g36sn2ut6o.png)](https://dev.to/abhinav11234/ai-agents-the-future-of-intelligent-automation-4ge1) |

### :hammer_and_wrench: Tech Stack


Next.js
CopilotKit
Tailwind CSS
ShadCN UI
LangGraph
FastAPI
langchain

### :outbox_tray: Set up

#### **Setting Up the Agent and UI**

##### **1. Get an API Key**
- Obtain a **GROQ_API_KEY**.

##### **2. Clone the Repository**
- Clone the repository to your local machine:
```sh
git clone https://github.com/AbhinavTheDev/coding-agent.git
```

##### **3. Set Up the Agent**
- Navigate to the agent directory:
```sh
cd agent
```
- Install dependencies using Poetry:
```sh
poetry install
```
- Create a `.env` file inside the `./agent` directory with your **GROQ_API_KEY**:
```
GROQ_API_KEY=YOUR_API_KEY_HERE
```
- Run the agent demo:
```sh
poetry run demo
```

##### **4. Set Up the UI**
- Navigate to the UI directory:
```sh
cd ./ui
```
- Install dependencies using npm:
```sh
npm i
```
- Create a `.env` file inside the `./ui` directory with your **GROQ_API_KEY**:
```
GROQ_API_KEY=YOUR_API_KEY_HERE
```
- Run the Next.js project:
```sh
npm run dev
```

#### **Troubleshooting**
1. Ensure no other local application is running on port **8000**.
2. In the file `/agent/rag_agent/demo.py`, change the address from `0.0.0.0` to `127.0.0.1` or `localhost` if needed.

### :mailbox: Contact
Hi, I'm Abhinav! 👋
Connect with me on [LinkedIn](https://www.linkedin.com/in/abhinav-mittal-2a1b002a4/), [X](https://x.com/Abhinav11234) and check out my other projects on [GitHub](https://github.com/AbhinavTheDev).