Documentation

Get Response
Terminal-Based AI Powerhouse

A modern, modular CLI tool that brings the full potential of Google’s Gemini AI directly to your terminal—designed for developers who want productive, context-aware conversations and automations.

Key Features

Gemini Integration

Uses Google’s latest Flash model for ultra-fast, conversational AI responses.

Contextual Awareness

Native support for files, directories, PDFs, and images (OCR) as model context.

Terminal Automation

Safely generate and execute shell commands with AI assistance and user confirmation.

Stack Exchange Research

Search and summarize Stack Overflow discussions directly within your workflow.

System Architecture

Highly decoupled modules designed for extensibility and performance.

View Repository

Core Engine

Orchestrates chat sessions and context management.

chat.jscontext.js

AI & External Services

Direct integration with Google Gemini and Stack Exchange.

ai.jsstack.js

System Automation

Safe terminal command generation and execution.

terminal.jsmermaid.js

User Experience

Monochrome CLI UI and output formatting.

display.jsformatter.js

Installation

Requires Node.js ≥ 18.0.0

Global Install
terminal — bash
npm i get-response -g
Instant Usage
terminal — bash
npx get-response

Usage Guide

Master the terminal-first AI workflow.

01Contextual Intelligence

GetResponse isn't limited to text. It processes various media types as context to provide precise, file-aware responses.

PDF Parsing

Analyze technical papers, documentations, or logs using the pdf-parse-fork. The AI reads the content directly from your local files.

Visual OCR

Pass screenshots or diagrams using Tesseract OCR. The CLI extracts text from images for analysis, debugging, or translation.

TypeFlagExample
File
-fnpx get-response "Explain this code" -f ./auth.js
Directory
-dnpx get-response "Find bugs" -d ./src
PDF
-pnpx get-response "Summarize this paper" -p ./paper.pdf
Image (OCR)
-inpx get-response "What does this mean?" -i ./screenshot.png

02Interactive Modes

Chat Mode

Maintains persistent session context for back-and-forth reasoning.

$ npx get-response -c
Stack Exchange

In-terminal search and summarize for Stack Overflow.

$ npx get-response -s "What is EOFError?"

03Terminal Automation

Intelligent Execution

Describe a complex terminal task, and get-response will generate the exact shell command required. With the --auto flag (experimental), the tool can even assist in executing these tasks safely after your confirmation.

Example Command
# "Find all large log files and move them to a backup folder"
$ npx get-response -t "move all files larger than 10MB in /logs to /backup"

04Diagram Generation

Mermaid.js Integration

Perfect for architecture reviews, get-response can output valid Mermaid.js code to visualize systems, logic flows, or database schemas directly in your terminal.

$ npx get-response -m -d ./src

Tech Stack

Google Gemini
Node.js Core
Tesseract OCR
Mermaid CLI
pdf-parse-fork
Chalk / Boxen
Axios
Nanospinner

Support & Contributing

Get Response is an open-source project. If you have bugs, suggestions, or want to contribute, please open an issue on our GitHub repository.

Created with ❤️ by Swapnoneel Saha © 2026