Skip to main content

A minimal agentic CLI for forging code

Project description

ForgeCodeCLI

An agentic, file-aware command-line tool that lets you manage and modify your codebase using natural language — powered by LLMs.

It acts as a safe, deterministic AI agent that can read files, create directories, and write code only through explicit tools, not raw hallucination.

Features

  • Agentic workflow (LLM decides actions, CLI executes them)
  • File-aware (read, list, create, write files & directories)
  • Secure API key storage (no env vars required after setup)
  • Deterministic and rule-based execution
  • Interactive CLI experience
  • Built to support multiple LLM providers (Gemini first)

Installation

Requires Python 3.9+

pip install forgecodecli

Quick Start

Initialize (one-time setup)

forgecodecli init

You will be prompted to:

  • Select an LLM provider
  • Enter your API key (stored securely)

Start the agent

forgecodecli

You are now in interactive agent mode. Example commands:

create a folder src/app and add a main.py file that prints hello
read the README.md file
list all files in the src directory
quit

Or press Ctrl + C to exit.

Reset Configuration

To remove all configuration and API keys:

forgecodecli reset

Security

  • API keys are stored using the system keyring
  • No API keys are written to config files or environment variables
  • Config files contain only non-sensitive metadata

How It Works

  1. You enter a natural language command
  2. The LLM decides the next valid action
  3. ForgeCodeCLI executes the action safely
  4. The agent responds with the result

The agent is strictly limited to predefined tools, ensuring predictable and safe behavior.

Supported Actions

  • read_file
  • list_files
  • create_dir
  • write_file

No action outside these tools is permitted.

Status

This project is in active development.

Current version supports:

  • Gemini LLM
  • Interactive agent mode

Planned features:

  • Multiple LLM providers
  • Model switching
  • Streaming responses
  • Session memory

License

MIT License

Author

Built by Sudhanshu

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

forgecodecli-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

forgecodecli-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file forgecodecli-0.1.0.tar.gz.

File metadata

  • Download URL: forgecodecli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for forgecodecli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd5ed1685b118942313d14fd5f1d71c845cf15b0090a4f0532b364e4e3d6e809
MD5 712b6f8f900edfca1c724c59af3436a5
BLAKE2b-256 95eeb00f33e4e5e2f1c09f5b7bb45766789515a91242e8bc03bdc6bfbd71fc5c

See more details on using hashes here.

File details

Details for the file forgecodecli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: forgecodecli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for forgecodecli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e47c6920b901f53fec30b0fb8f7eb2c424e184343a8af390bb4aae13811f76bd
MD5 2d710dd97b8805e44cf882845322b4e5
BLAKE2b-256 10c82d62bbb57dea5724db02000273bc0907a2ce1469f35dbd2f7d8561298b1f

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