Giter VIP home page Giter VIP logo

coding-agent's Introduction

Single Prompt - AI Coding Agent

This project implements an AI coding agent capable of autonomously building software projects based on a single user prompt. It leverages the Anthropic API to execute the entire development process, creating a fully functional project with minimal human intervention.

Features ๐Ÿค–

  • Development plan creation
  • Step-by-step project building using AI
  • File reading, writing, and modification capabilities
  • Terminal command execution for package installation and other system-level operations
  • Logging of LLM history

Project Structure ๐Ÿ“š

  • main.py: The entry point of the application
  • idea_gathering.py: Handles the initial project idea interpretation phase
  • build.py: Executes the development plan
  • llm_thread.py: Manages conversations with the Anthropic Claude model
  • llm_utils.py: Utility functions for file operations and terminal commands

Usage ๐Ÿš€

  1. Install Python
  2. Create a secret_key.txt file in the project root and add your Anthropic API key
  3. Run the main script: main.py
  4. Provide a project idea when prompted

The script will then:

  1. Set up the project directory and logging
  2. Connect to the Anthropic API
  3. Interpret your project idea and create a development plan
  4. Build the project step by step based on the AI-generated plan

Important Notes ๐Ÿ‘ˆ

  • Ensure you have the necessary permissions to create directories and files in the specified path
  • User confirmation is required before executing terminal commands
  • Only files inside the project directory can be accessed by the agent
  • This tool is designed to work autonomously, with minimal user intervention after the initial prompt

Logging ๐Ÿ“

All activities are logged in agent_logs/agent_log.txt. Check this file for detailed information about the build process.

Caution ๐Ÿ›‘

This script executes terminal commands and modifies files on your system. Always review the actions it's about to take and use it in a controlled environment. It's recommended to use this tool in a sandboxed or isolated development environment.

Limitations ๐Ÿผ

  • The AI Agent's capabilities are limited by the underlying language model
  • Limited to locally installable tools and packages; no web browsing capability
  • Complex projects may require human intervention
  • May not always produce optimal or bug-free code
  • Optimized for macOS

Support ๐Ÿ“จ

For any questions or issues, please open an issue in the GitHub repository. For personal inquiries, feel free to reach out to me on LinkedIn.

Disclaimer

This tool is for experimental and educational purposes. Always review and test the generated code before using it in production environments.

coding-agent's People

Contributors

jon-templeton avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.