Skip to content
/ info Public

Ask questions in natural language and get concise, formatted responses directly in your terminal.

Notifications You must be signed in to change notification settings

frycz/info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

info

Ask questions in natural language and get concise, formatted responses directly in your terminal.

Read blog post

info comes in handy when you want a quick lookup without changing the context. No need to run AI cli or switching to an UI-based tool. Just type info git log print nicely and you get git log --oneline --graph --decorate.

Installation

npm install -g @frycz/info

Prerequisites

You need at least one of the supported AI CLI tools installed:

Usage

info <question>

Simply type your question after info. All arguments are joined into a single query.

Examples

info number of countries in the world
# 193

info capital of australia
# canberra

info mass of the sun in kg
# 1.989e30

info git log print nicely
# git log --oneline --graph --decorate

Options

info -h, --help     Show help
info -v, --version  Show version

Configuration

Configure via environment variables:

Variable Description Default
INFO_AI_TOOL AI tool to use (claude, gemini, ollama, sgpt) claude
INFO_OLLAMA_MODEL Model to use with Ollama llama3.2

Examples

# Use Gemini instead of Claude
export INFO_AI_TOOL=gemini

# Use Ollama with a specific model
export INFO_AI_TOOL=ollama
export INFO_OLLAMA_MODEL=mistral

How It Works

The tool sends your question to an AI with a specialized system prompt that instructs it to:

  • Respond with the shortest possible answer
  • Use lowercase text only
  • Return numbers without units (unless requested)
  • Assume the most probable context for vague questions
  • Return ERR: <reason> for unanswerable questions

License

MIT

About

Ask questions in natural language and get concise, formatted responses directly in your terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published