logify-cli-tool
v1.0.4
Published
A lightweight, colorful CLI tool to record, replay, export and summarize your terminal sessions — perfect for debugging, documentation, and sharing your dev workflow.
Maintainers
Readme
Logify (CLI tool)
Logify is a minimal yet smart CLI tool that tracks your terminal sessions — recording every command you run, its output, and the timestamp.
It’s your personal developer diary, built right inside the terminal.
Perfect for journaling your coding days, debugging your workflow, or showing your progress to mentors and teammates.
Features
- Session Logging: Automatically records all commands & outputs during your terminal session.
- Session Replay: Replays past sessions with delays to visualize command history.
- Search & Filter: Find specific commands or patterns across all sessions.
- Export to Markdown: Convert your logs into clean
.mdfiles for sharing or documentation. - AI Summary: Generate concise summaries of what happened in each session using OpenAI’s API.
- Cross-platform Ready: Works on Windows, macOS, and Linux terminals.
Built With
Installation
Follow these steps to set up the extension locally:
Clone the repository
git clone https://github.com/Gaurika-Sethi/Logify-CLI-tool-.git cd Code-Reviewer-Bot-VS-Code-Extension-Install dependencies
npm install commander chalk dotenv openainpm install -g logify-cli-toolAdd your OpenAI API key to a .env file in the root
OPENAI_API_KEY=your_api_key_hereLink the CLI globally
npm link
Usage
- Start a new session
lgy start
Tracks all commands you run in real-time and saves them to a daily log file.
- Stop the session
lgy stop
Ends the session and closes logging.
- View history
lgy history
Lists all stored session log files and shows file modification dates
View specific date file
lgy show -d 2025-10-06View inputs of specific date file
lgy inputs -d 2025-10-06
Shows only the commands (inputs) from a session log
View a particular cmd
lgy search "git" -d 2025-10-06
Searches a session log for commands matching a pattern
Date option available. (default:today)
View a particular cmd from all files
lgy search-all "npm install"
Searches all session logs for commands matching a pattern
Exports session log in .md format
lgy export -d 2025-10-06
Exports a single session log to Markdown format
Exports session logs in .md format
lgy export-all
Exports all session logs to Markdown format
Replay session logs
lgy replay session-2025-10-06.log lgy replay session-2025-10-06.log --fast
Replays a past session log command-by-command Optionally with --fast (no delays)
- Summarize session
lgy summarize -d 2025-10-06Uses OpenAI (gpt-4o-mini) to generate a concise summary of a session Saves the summary to summary-YYYY-MM-DD.txt
Requirements
- Visual Studio Code
- Node.js (v18+)
- OpenAI API Key (stored securely in
.env) - Internet connection for AI summaries
Tech Stack & Learnings
- Node.js & JavaScript (CLI-based development)
- OpenAI API integration for intelligent summaries
- File system handling (reading/writing logs, exports)
- Prompt design for clear and structured AI responses
Future Ideas
- Integration with Notion, Slack, or GitHub for daily summaries
- Local summary generation using open models (offline mode)
Known Issues
- Occasional lag during summary generation (network-dependent)
- Summaries may vary in tone depending on command density
- No built-in auto-sync yet for cloud storage
💬 FAQ
Q: Do I need internet for summaries?
A: Yes. The summaries use OpenAI’s API, so an internet connection is required.
Q: Can I use another AI model provider?
A: Absolutely! The architecture allows swapping in HuggingFace or local models with minimal changes.
Q: Does it support exporting sessions in multiple formats?
A: Yes — Markdown export is supported, and HTML export is planned for future versions.
Contact
- LinkedIn: Gaurika Sethi
- Medium: @pixelsnsyntax
- Twitter: @pixelsnsyntax
Project Link: Logify CLI tool
License
This project is licensed under the MIT License see the LICENSE file for full details.
You can also view the CHANGELOG.md for version updates and release notes.
