Commands as AI Conversations

Diomidis Spinellis
9/12/2023
cs.SEcs.LG

Official code: dspinellis/ai-cli-lib (210 stars, Apache-2.0, last commit 2024-12-16).

Abstract

Developers and data scientists often struggle to write command-line inputs, even though graphical interfaces or tools like ChatGPT can assist. The solution? "ai-cli," an open-source system inspired by GitHub Copilot that converts natural language prompts into executable commands for various Linux command-line tools. By tapping into OpenAI's API, which allows interaction through JSON HTTP requests, "ai-cli" transforms user queries into actionable command-line instructions. However, integrating AI assistance across multiple command-line tools, especially in open source settings, can be complex. Historically, operating systems could mediate, but individual tool functionality and the lack of a unified approach have made centralized integration challenging. The "ai-cli" tool, by bridging this gap through dynamic loading and linking with each program's Readline library API, makes command-line interfaces smarter and more user-friendly, opening avenues for further enhancement and cross-platform applicability.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Add AI capabilities to any readline-enabled command-line program

21016C, RoffAug 9, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{spinellis2023commands,
  title  = {Commands as AI Conversations},
  author = {Diomidis Spinellis},
  year   = {2023},
  eprint = {2309.06551},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.06551v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.06551.svg)](https://codeofpaper.com/paper/2309.06551)

Discussion