🚀 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
Metadata
Release files for codeforge-genai-agent 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codeforge_genai_agent-0.1.5.tar.gz | 12.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codeforge_genai_agent-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.0 kB
Release files / codeforge_genai_agent-0.1.5.tar.gz
| Download URL | codeforge_genai_agent-0.1.5.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f5fea171567c8a335a4bca505b350f7c8f78d5c1db3f49879d2841973edcf3b
|
|
BLAKE2b-256 checksum How to use checksums |
6edf0d52534b984675fcfa21cb27c0a09f21473570ec920e8b6ebf4845a2be41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / codeforge_genai_agent-0.1.5-py3-none-any.whl
| Download URL | codeforge_genai_agent-0.1.5-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f260c32a09281d310ff77bfb5880a966bd4ce242407dcc3d38a90d5cb3dc92c8
|
|
BLAKE2b-256 checksum How to use checksums |
f962f21c05a01e0ec955a041bc7031ee2411a9385e1891b2096e5724fbc65da3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|