Skip to main content

AI-powered coding agent with self-healing, memory, and CLI

Project description

🚀 CodeForge GenAI Agent

An AI-powered autonomous coding agent that can generate, execute, debug, and improve code — with memory, safety, and an interactive CLI.


✨ What is CodeForge?

CodeForge is not just a code generator — it is an agentic system that behaves like a developer:

  • Understands intent
  • Chooses tools
  • Writes code
  • Executes it
  • Fixes errors
  • Learns from failures
  • Interacts with users

It combines LLMs + tool execution + memory + safety layers into a single CLI experience.


🔥 Core Capabilities

🧠 Intelligent Code Generation

  • Generates complete, executable Python programs
  • No placeholders or incomplete snippets

⚙️ Execution Engine

  • Automatically runs generated code
  • Captures stdout and errors

🔁 Self-Healing Loop

  • Detects runtime errors
  • Sends feedback to LLM
  • Fixes and retries automatically

💾 Persistent Memory

  • Input Memory → remembers user inputs
  • Failure Memory → remembers fixes for past errors

💬 Interactive CLI

  • Detects input() in code
  • Prompts user dynamically
  • Falls back to auto-input if needed

🛡️ Safety Layer

  • Classifies actions (LOW / MEDIUM / HIGH risk)
  • Requires user confirmation for risky operations

🔍 RAG (Retrieval-Augmented Generation)

  • Uses local project context
  • Improves relevance of generated solutions

🧠 System Architecture

User Input → LLM → Intent → Tool → Policy → Execution → Error → Self-Heal → Memory → Output


📦 Installation

pip install codeforge-genai-agent


🔑 Setup OpenAI API Key

CodeForge requires an OpenAI API key to function.

Windows (CMD / Anaconda Prompt)

set OPENAI_API_KEY=your_api_key_here

Windows (PowerShell)

$env:OPENAI_API_KEY="your_api_key_here"

macOS / Linux

export OPENAI_API_KEY=your_api_key_here


✅ Verify Setup

echo %OPENAI_API_KEY% (Windows CMD)
echo $env:OPENAI_API_KEY (PowerShell)
echo $OPENAI_API_KEY (Mac/Linux)


🚀 Usage

codeforge


👤 Author

Rajeev Ghosh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeforge_genai_agent-0.1.5.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeforge_genai_agent-0.1.5-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file codeforge_genai_agent-0.1.5.tar.gz.

File metadata

  • Download URL: codeforge_genai_agent-0.1.5.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for codeforge_genai_agent-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8f5fea171567c8a335a4bca505b350f7c8f78d5c1db3f49879d2841973edcf3b
MD5 a97078ab61d57311f5ea4b6db75402b2
BLAKE2b-256 6edf0d52534b984675fcfa21cb27c0a09f21473570ec920e8b6ebf4845a2be41

See more details on using hashes here.

File details

Details for the file codeforge_genai_agent-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for codeforge_genai_agent-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f260c32a09281d310ff77bfb5880a966bd4ce242407dcc3d38a90d5cb3dc92c8
MD5 fa3f009d9e13b8e2cf8d12db8f026c03
BLAKE2b-256 f962f21c05a01e0ec955a041bc7031ee2411a9385e1891b2096e5724fbc65da3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page