ForgeOAgent
Intelligent automation for everyone:
Use Gemini and custom agents to improve prompts, enhance text, refine code, generate emails, and automate tasks.
ForgeOAgent is a modular Python framework for building, managing, and running AI agents with advanced code processing capabilities. It automates code improvement, agent management, and client integration using Google Gemini and other APIs.
🚀 Key Features
- Cross-platform shell support: Works on Windows & Linux.
- Flexible agent modes:
- Inquirer Mode: Use system prompts for quick tasks.
- Executor Mode: Advanced workflows, agent management, and context-aware automation.
- Customizable prompts: Easily add your own system instructions for new agent behaviors in
mcp/system_prompts/ - Persistent chat history: Optionally load recent conversations for better context and accuracy.
- Automatic tool integration: Place Python classes in
mcp/toolsto auto-expose new agent capabilities. - Comprehensive logging: All agent activities and improvements are logged for review.
📁 Project Structure
start.py— GUI entry point for the agent system.main.py— Command-line entry point for running agents and workflows.agents/— Agent modules and metadata.clients/— API clients for external services (e.g., Gemini).core/— Core utilities for agent management, API keys, configuration, and more.logs/— JSONL logs of agent activities and improvements.shell/— Shell scripts for Linux and Windows environments.mcp/— System prompts, agent context, and tools for modular extension.
UseFul :
- GeminiAPIClient().generate_content
- GeminiAPIClient().search_content
- from forgeoagent.controller.executor_controller import create_master_executor
use :
- from forgeoagent.controller.executor_controller import print_available_executors , save_last_executor
- from forgeoagent.controller.inquirer_controller import inquirer_using_selected_system_instructions , print_available_inquirers , auto_import_inquirers
🛠️ Getting Started
-
Clone the repository
git clone https://github.com/ANGELKORADIYA/ForgeOAgent.git cd ForgeOAgent
-
Install dependencies
pip install -r requirements.txt
-
Configure API keys
- Copy
.env.productionto.envand add your Gemini API keys.
- Copy
-
Run the agent system
python main.py- List available system prompts:
python main.py -l - Run with a specific prompt:
python main.py -p <prompt_type> "your prompt here" - Use main mode (with agent context):
python main.py "your prompt here" --main
- List available system prompts:
-
Assign a shortcut for quick access
- Linux:
Add a keyboard shortcut to runshell/linux/start.sh. - Windows:
Create a desktop shortcut toshell/windows/start.vbs.
- Linux:
💡 Usage Examples
- Quick prompt improvement:
Use Inquirer Mode to enhance text, code, or emails with a single command. - Context-aware automation:
Use Executor Mode to leverage previous conversations and agent context for more complex tasks.
⚙️ Customization
- Add new system prompts:
Place your custom prompt as a Python constant inmcp/system_prompts/(naming:*_SYSTEM_INSTRUCTION). - Integrate new clients:
Add API clients inclients/. - Review logs:
Checklogs/for detailed agent activity and improvements. - Main Agent Reuse: Save Result
🧩 Creating Custom Agents & Shortcuts
- Add your prompt:
Create a new file inmcp/system_prompts/and define a constant ending with_SYSTEM_INSTRUCTION. - Create a shortcut script:
Use.sh(Linux) or.vbs(Windows) to call the agent with your prompt type.
Now you can trigger your custom agent instantly via your shortcut.
📝 Example: Improving Code Files
- Recursively process files in a directory (skipping
.git). - Use Gemini agents to improve code or text based on file extension.
- Improved files are saved in the current directory.
- See
agents/temp_3/main_agent.jsonlfor a sample agent log and code.
🤝 Contributing
Contributions are welcome! Please submit issues or pull requests for improvements or new features.
📄 License
MIT License
Metadata
Release files for forgeoagent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| forgeoagent-0.1.0.tar.gz | 1.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forgeoagent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / forgeoagent-0.1.0.tar.gz
| Download URL | forgeoagent-0.1.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65466e06337bb5d4e89bc5dd55b8abdffa655fde07ceda651fe2dfee9316d5ab
|
|
BLAKE2b-256 checksum How to use checksums |
cf7633f84b9542fc9f4c4d29ecbb1bde60a5a1457a6e3fa760f738bdc6c3dda5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / forgeoagent-0.1.0-py3-none-any.whl
| Download URL | forgeoagent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b61fd37bd6b77ba11dbdbc07fe105c65bbe47f8793fdfe5af3aea21de05bae8
|
|
BLAKE2b-256 checksum How to use checksums |
deed37b2f61a9c15a3fc5d4ab14134e2460032c34327b46f456ae6dfe3db3e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for forgeoagent 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.