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
- You enter a natural language command
- The LLM decides the next valid action
- ForgeCodeCLI executes the action safely
- The agent responds with the result
The agent is strictly limited to predefined tools, ensuring predictable and safe behavior.
Supported Actions
read_filelist_filescreate_dirwrite_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd5ed1685b118942313d14fd5f1d71c845cf15b0090a4f0532b364e4e3d6e809
|
|
| MD5 |
712b6f8f900edfca1c724c59af3436a5
|
|
| BLAKE2b-256 |
95eeb00f33e4e5e2f1c09f5b7bb45766789515a91242e8bc03bdc6bfbd71fc5c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e47c6920b901f53fec30b0fb8f7eb2c424e184343a8af390bb4aae13811f76bd
|
|
| MD5 |
2d710dd97b8805e44cf882845322b4e5
|
|
| BLAKE2b-256 |
10c82d62bbb57dea5724db02000273bc0907a2ce1469f35dbd2f7d8561298b1f
|