The ai-cli-log is a command-line interface tool designed to log interactions with AI models like Gemini and Claude. It captures terminal sessions and saves them as clean Markdown documents, facilitating easy review and documentation. Leverage this tool to maintain a clear record of AI-powered coding conversations.
ai-cli-log is a command-line interface (CLI) tool designed to streamline the process of logging interactions with AI models, such as Gemini and Claude. This tool captures all terminal interactions seamlessly, transforming them into well-structured Markdown documents for efficient review and documentation.
node-pty for precise pseudo-terminal emulation and @xterm/headless for parsing ANSI escape codes, enabling faithful representation of what appears on the terminal.To initiate a logging session with any command, simply wrap it with ai-cli-log. For example, to log a session with Google's Gemini CLI, use:
ai-cli-log gemini
Similarly, logging a session with another tool, like Claude, can be achieved with:
ai-cli-log claude
The recorded session will then be stored as a Markdown file in the .ai-cli-logs directory, named according to the timestamp of the session, such as .ai-cli-logs/session-YYYYMMDD-HH:mm:ss.md.
The development of ai-cli-log was assisted by Google Gemini. The .ai-cli-logs directory contains comprehensive logs of the development process, beginning from log file 0001.md, providing insight into the interactions that shaped this tool.
Planned improvements include refining the output format for better Markdown compatibility, implementing content handling to prevent empty logs, and enhancing the filename convention for better organization while maintaining information security.
ai-cli-log empowers developers to easily document their AI-powered coding efforts, providing a resource for better insights and record-keeping.
No comments yet.
Sign in to be the first to comment.