Skip to main content

LLM CLI engineered for developer workflows. Built on Hexagonal Architecture** for strict typing, modularity, and speed

Project description

DragonGlass

DragonGlass CLI Python Gemini

LLM CLI engineered for developer workflows. Built on Hexagonal Architecture for strict typing, modularity, and speed.


██████╗ ██████╗  █████╗  ██████╗  ██████╗ ███╗   ██╗
██╔══██╗██╔══██╗██╔══██╗██╔════╝ █     ██╝████╗  ██║
██║  ██║██████╔╝███████║██║  ███╗██║   █ ╗██╔██╗ ██║
██║  ██║██╔══██╗██╔══██║██║   ██║██║   ██║██║╚██╗██║
██████╔╝██║  ██║██║  ██║╚██████╔╝╚██████╔╝██║ ╚████║
╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═══╝

             ██████╗ ██╗      █████╗ ███████╗███████╗
            ██╔════╝ ██║     ██╔══██╗██╔════╝██╔════╝
            ██║  ███╗██║     ███████║███████╗███████╗  
            ██║   ██║██║     ██╔══██║╚════██║╚════██║  
            ╚██████╔╝███████╗██║  ██║███████║███████║
             ╚═════╝ ╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝

$ dg 
$ cat error.log | dg chat "Analyze the log" 
$ cat error.log | dg chat "Fix the Error" --image screenshot.png

Features

Optimized for the Google Gemini ecosystem.

  • Multimodal: Native support for text, images, and audio.
  • Fast: Streams responses in real-time.
  • Efficient: Uses gemini-embedding-001 for high-quality semantic search.
  • Unix Philosophy: Designed to be piped.
    • cat logs.txt | dg chat "Analyze this error" --image screenshot.png
  • Hexagonal Architecture: Core logic is completely decoupled from infrastructure (DB, API).
  • XDG Compliant: respect your system's config standards (~/.config/dg, ~/.local/share/dg).

Installation

Requires Python 3.10+.

pipx install dragonglass

Configuration

Set your Gemini API key via environment variable:


Linux: ~/.config/dg/config.toml                                           
macOS: ~/Library/Application Support/dg/config.toml

# config.toml
    [gemini]
    google_api_key="A....D2E"
    default_model="gemini-3-pro-preview"
    temperature=0.7
    top_p=1.0
    safe_settings="BLOCK_NONE"
    grounding_enabled=true


Or run a command, and dg will guide you.

Usage

cat error.log | python -m dg chat "Fix this error" --image screenshot.png # Multimodal One-Shot (Pipe + Image)

Pipelines

Process files and data streams.

# Summarize a README
cat README.md | dg chat "Summarize the key features"

History

View your conversation logs.

dg log

Roadmap

  • Core Architecture (Hexagonal)
  • Gemini Integration (Streaming)
  • SQLite Persistence
  • Local RAG (Numpy + Embeddings)
  • Interactive TUI: Full chat interface with Textual.
  • Multimodal Inputs: dg chat --image screenshot.png "Fix this UI"
  • Project Awareness: Auto-index git repositories for context.

LICENSE

Apache License 2.0

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

dragonglass-0.1.0b4.tar.gz (199.5 kB view details)

Uploaded Source

Built Distribution

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

dragonglass-0.1.0b4-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file dragonglass-0.1.0b4.tar.gz.

File metadata

  • Download URL: dragonglass-0.1.0b4.tar.gz
  • Upload date:
  • Size: 199.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.17

File hashes

Hashes for dragonglass-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 01e5825ff830caaee0589764dd4ad38534fcec0b9d4a73f53325d367c472b629
MD5 756968f29d487cbe71a15c760bcfae61
BLAKE2b-256 23c73ca75531d4de7f41ab211a4185a401b05b3c8b2dfdcd0d2b3c7b98612716

See more details on using hashes here.

File details

Details for the file dragonglass-0.1.0b4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dragonglass-0.1.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 517f8c904e1d3dbacac26efdcab4eb51f135ac776d327559503a911a14c26676
MD5 c62e94c779e82657689280c9a07ef722
BLAKE2b-256 3f899ab7d718b824055ebbb476a4d47ca71d1249e109f50ee45d3cb1ee4ae161

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