AI Toolkit is a powerful command-line utility designed specifically for AI tasks. With features like recursive directory listing, extraction of TypeScript types, and AI-powered editing capabilities, it simplifies file management for developers. Enhance your coding experience by effortlessly tapping into directory structures while leveraging the power of AI.
AI Toolkit is a powerful command-line utility designed to streamline AI-related tasks by efficiently managing and analyzing directory contents. This tool allows users to list and dump the file contents in a structured manner, making it an invaluable asset for developers working with AI models.
Key Features:
- Directory Listing: Recursively lists files in a directory and supports multiple directory inputs. This makes it easy to navigate complex project structures.
- Content Dumping: The
cat
command allows users to dump the contents of all files into a text file, preserving file paths as headers for clear organization. - Type Extraction: Extracts and lists types and function signatures from TypeScript and JavaScript files, helping developers quickly grasp the API and structure of their codebase.
- AI Integration:
- Ask Command: Interact with AI models by asking questions, allowing for dynamic and informed conversations.
- Edit Command: Utilize AI-powered suggestions to apply edits to files, complete with a generated HTML report that highlights differences between original and modified content.
- Custom Ignore Rules: Specify files or directories to ignore with
.aitkignore
files, similar to.gitignore
, for a cleaner output.
Command Overview:
Use the AI Toolkit effectively with the following commands:
aitk [command] [options] [directory1] [directory2] ...
cat
: Dump all file contents.ls
: Show a recursive directory tree.types
: Extract types and function signatures from code files.ask
: Pose questions to an AI model.edit
: Make AI-assisted edits to your files.help
: Access help information for commands and options.
Usage Examples:
- List all files in the current directory:
aitk ls
- Dump contents of all files in a specific directory:
aitk cat /path/to/directory
- Ask an AI model a question:
aitk ask "What is AI Toolkit?"
With its easy-to-use command structure and powerful AI functionalities, AI Toolkit is essential for anyone looking to enhance their AI project management and code analysis tasks. Start utilizing it to unlock the full potential of your AI-driven development efforts!
This looks great! Feels like this is pretty much what Cursor does under the hood, right? It’d be awesome if it worked with an OPENAI_API_KEY
defined in the environment—that’s pretty much the standard nowadays. Also, does edit
handle follow-ups?
Hey thresh. Thanks for the feedback! Yeah, for me, I mostly use the cat and ls functions and just paste it into openwebui. I find it cheaper than cursor and cline, and I have more control.
The AI functions I added recently, like edit, ask and prompt, but I use LITELLM so I just add environment variables for that.
I'm not sure when I'll get the time, but I've made an issue here: https://github.com/markwylde/aitk/issues/2
edit
doesn't handle follow-ups yet. Issue made:
https://github.com/markwylde/aitk/issues/3
Sign in to comment.