Skip to main content

An AI coding agent that can inspect, reason about, and modify your codebase.

Project description

Forge AI: Intelligent Coding Agent

An AI coding agent that can inspect, reason about, and modify your codebase through an interactive command-line interface. Forge AI empowers developers by automating code inspection, proposing changes with user approval, and understanding complex project structures.

✨ Key Features

  • Interactive CLI: Engage with the AI agent directly from your terminal.
  • Intelligent Code Modification: Agent can inspect, reason about, and propose code changes.
  • Human-in-the-Loop: All code changes are presented as diffs for user review and approval.
  • Multi-LLM Support: Configurable to use various LLM providers (OpenAI, Google Gemini, Anthropic).
  • Conversation Memory: Persists chat history across sessions using SQLite.
  • Project Structure Awareness: Agent builds a dynamic understanding of your project layout.
  • Data & Notebook Inspection: Specialized tools for summarizing datasets and reading Jupyter Notebooks.
  • Code Execution Capabilities: Can execute the code and analyze the outputs or errors.

🚀 Installation & Usage

Prerequisites

  • Python 3.8+

Installation

Install from PyPI:

pip install forge-ai

Configuration

Before using Forge AI, you need to initialize it with your preferred LLM provider and API key.

forge init --provider <provider_name> --api-key <YOUR_API_KEY> [--model <model_name>]

Example:

  • OpenAI:
    forge init --provider openai --api-key sk-xxxx --model gpt-4o-mini
    
  • Google Gemini:
    forge init --provider gemini --api-key your-gemini-api-key --model gemini-2.5-flash
    
  • Anthropic:
    forge init --provider anthropic --api-key your-anthropic-api-key --model claude-3-haiku-20240307
    

Forge AI will store your configuration in a .forge/config.json file in your current working directory.

Running the Agent

Simply run forge to start an interactive chat session with the AI agent:

forge
  • Continue a Session: To pick up a previous conversation, use the --thread-id option (displayed when a new session starts).
    forge --thread-id <your_thread_id>
    
  • Exit: Type exit or quit to end the chat session. You'll be prompted to clear memory or delete all Forge data.

CLI Commands

  • forge init: Initialize Forge AI with your LLM provider and API key.
    forge init --provider openai --api-key YOUR_KEY
    
  • forge clear_memory: Clears all conversation history from the SQLite database.
    forge clear_memory
    
  • forge stop: Deletes the entire .forge directory, including configuration and all conversation memory. This is irreversible.
    forge stop
    

CHANGELOG

1.1.0 - 2025-09-16

  • 🏗 Added notebook writing and code execution capabilites.

1.0.0 - 2025-09-14

  • 🚀 Initial release

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

forge_ai-1.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

forge_ai-1.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file forge_ai-1.1.0.tar.gz.

File metadata

  • Download URL: forge_ai-1.1.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for forge_ai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 25967b2ad1f9224c2618184901935e51322f25856588753b3857689d511574ac
MD5 2a943ef9ab2dd1ac5e5e251f81106019
BLAKE2b-256 81183a06f14294eb36555d9e3cf05e7d3ebb8be63c47e068241c7dc87d59ac4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for forge_ai-1.1.0.tar.gz:

Publisher: publish.yml on shiwangupadhyay/forge_ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forge_ai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: forge_ai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for forge_ai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e5cd2844fedc1780102fd9d55c84191318161e4de50ad400c9d0aff572007aa
MD5 3a5b71770e827dc1b496242963a9291e
BLAKE2b-256 f9f9feb62dc576194a78c8342c302837ecb848df549fc35ae146ab0ce3997609

See more details on using hashes here.

Provenance

The following attestation bundles were made for forge_ai-1.1.0-py3-none-any.whl:

Publisher: publish.yml on shiwangupadhyay/forge_ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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