Sign inSign up

keneandita/fancyagent

By keneandita

Updated 11 months ago

A CLI tool to assist with code generation, and interactively prompting users to execute commands.

Image
0

463

keneandita/fancyagent repository overview

Project Summary

This repository contains the containerized version of Fancy-Agent, a command-line interface (CLI) assistant designed to help with code-related workflows directly from the terminal. The tool processes prompts, generates responses, renders Markdown output, and detects executable commands within responses, allowing users to optionally run them interactively.

Fancy-Agent integrates with the Gemini API to generate responses and assist with programming tasks. It is designed to streamline developer workflows by providing quick access to code suggestions, explanations, and command execution prompts directly within a terminal environment.

The Docker image allows the CLI tool to run in a consistent and isolated environment without requiring manual dependency installation or local configuration beyond providing the required API key.


Architecture Overview

The application operates as a lightweight command-line assistant built in Python and executed inside a containerized runtime environment.

The CLI interface acts as the primary interaction layer, allowing users to enter prompts directly from the terminal. The interface processes user input, sends requests to the configured AI model through the Gemini API, and formats the output for terminal display.

The response processor interprets the returned text, renders Markdown formatting for improved readability, and scans responses for command-line instructions. When executable commands are detected, the tool prompts the user to confirm whether the command should be executed.

The container environment packages the Python runtime, required dependencies, and the Fancy-Agent application into a Docker image. This ensures that the CLI tool runs consistently across different systems while avoiding dependency conflicts or local installation issues.


Key Features

Terminal-Based AI Assistant

Fancy-Agent provides an interactive command-line assistant capable of responding to prompts related to coding, development tasks, and system commands.

Markdown Rendering

The tool processes and formats Markdown output in the terminal, improving readability for structured responses such as code blocks, lists, and documentation-style outputs.

Command Detection and Execution Prompt

If a response includes shell commands, the system detects them and prompts the user to confirm execution, allowing developers to run suggested commands directly from the terminal.

Gemini API Integration

Fancy-Agent connects to the Gemini API to generate responses and assist with development-related tasks.

Containerized Execution

The application runs inside a Docker container, allowing the CLI tool to operate without requiring local Python environment setup or dependency installation.


How to Run

First, pull the container image from the registry.

docker pull keneandita/fancyagent

After the image is downloaded, run the container while providing your Gemini API key as an environment variable.

docker run -it -e GEMINI_API_KEY="your_api_key" keneandita/fancyagent

Once the container starts, the CLI assistant becomes available and can be used to enter prompts directly from the terminal.

Tag summary

Content type

Image

Digest

sha256:fdcddacad

Size

58.6 MB

Last updated

11 months ago

docker pull keneandita/fancyagent