mandark

mandark

Simple AI coder that can do most of my work for me, including working on himself.

Stars: 169

Visit
 screenshot

Mandark is a lightweight AI tool that can perform various tasks, such as answering questions about codebases, editing files, verifying diffs, estimating token and cost before execution, and working with any codebase. It supports multiple AI models like Claude-3.5 Sonnet, Haiku, GPT-4o-mini, and GPT-4-turbo. Users can run Mandark without installation and easily interact with it through command line options. It offers flexibility in processing individual files or folders and allows for customization with optional AI model selection and output preferences.

README:


mandark
npx mandark <folder or file>

Mandark is a bog-simple (~80kb) AI intern that can do a lot, including building himself.

https://github.com/user-attachments/assets/f3aff778-0839-4bb2-9fe3-c8c6b98434a5

Features

  • Run without installation
  • mandark revert to revert changes completely
  • Type ask followed by your question to ask a question about any codebase
  • Supports Claude-3.5 Sonnet, Haiku, GPT-4o-mini and GPT-4-turbo (now with llama405b from Fireworks)
  • Edit and create multiple files
  • Verify diffs from the command line
  • Install new packages as needed
  • Token and cost estimation before execution
  • Works with any codebase

Usage

Run mandark with:

npx mandark folder1 file1 folder2 <-a> <-p> <modelName>
  • [folder1], [file1], [file2], etc.: Paths to individual files or folders you want to process
  • [modelName]: (Optional) Nickname of the AI model to use (e.g., 'sonnet35', 'haiku', '4omini', '4turbo')
    • -p: Print the line-tagged compiled code to a file and exit. Useful if you want to copy-paste into other assistants.
  • -a: Include import statements when processing files. This is skipped by default to save tokens.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. TODO.md is a good place to start.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for mandark

Similar Open Source Tools

For similar tasks

For similar jobs