Skip to content

AbhinavTheDev/coding-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

coding-agent

⭐ 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 Blog

πŸ› οΈ Tech Stack

Next.js CopilotKit Tailwind CSS ShadCN UI LangGraph FastAPI langchain

πŸ“€ 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:
    git clone https://github.com/AbhinavTheDev/coding-agent.git
3. Set Up the Agent
  • Navigate to the agent directory:
    cd agent
  • Install dependencies using Poetry:
    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:
    poetry run demo
4. Set Up the UI
  • Navigate to the UI directory:
    cd ./ui
  • Install dependencies using npm:
    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:
    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.

πŸ“« Contact

Hi, I'm Abhinav! πŸ‘‹
Connect with me on LinkedIn, X and check out my other projects on GitHub.