Practical automation scripts for developers who want local AI workflows, safer file operations, and repeatable command-line utilities they can inspect before running.
This repo is intentionally script-first: small tools, clear commands, safe defaults, and lightweight tests. The strongest current areas are Ollama setup, local model tooling, prompt utilities, semantic search, and file management helpers.
- Readable by default: every script is meant to be opened, understood, and adapted.
- Safer automation: file-moving and setup helpers prefer explicit inputs, dry runs, and clear failures.
- Local AI friendly: Ollama, llama.cpp, Hugging Face model downloads, Modelfiles, endpoint checks, and benchmarking are covered.
- Contributor ready: tests, linting, shell checks, issue templates, PR checklist, security notes, and examples are already in place.
| Area | Scripts | Docs |
|---|---|---|
| Python file management | create_folder_structure.py, move_files.py |
Python/README.md |
| Python AI utilities | token_counter.py, prompt_builder.py, batch_inference.py, embedding_search.py |
Python/ai_utils/README.md |
| Python local AI | benchmark_ollama.py, download_hf_model.py, generate_modelfile.py, ollama_model_report.py |
Python/local_ai/README.md |
| Bash Ollama setup | install_ollama.sh, pull_models.sh, run_inference.sh |
Bash/README.md |
| Bash local AI | check_gpu.sh, install_llama_cpp.sh, setup_python_ai_env.sh |
Bash/local_ai/README.md |
| PowerShell local AI | Install-Ollama.ps1, Pull-OllamaModels.ps1, Test-LocalAIEndpoint.ps1 |
PowerShell/local_ai/README.md |
| Perl developer utilities | jsonl_validate.pl, todo_report.pl, env_audit.pl, replace_in_files.pl, log_summary.pl, repo_lint.pl |
Perl/README.md |
Clone the repo
git clone https://github.com/mihaibc/automate_everything.git
cd automate_everythingInstall development tools
python3 -m pip install -e ".[dev]"Install optional AI dependencies
python3 -m pip install -e ".[ai]"Count tokens before sending text to an LLM
echo "Your text here" | python Python/ai_utils/token_counter.py --model gpt-4Set up a local LLM with Ollama
bash Bash/llm_setup/install_ollama.sh
bash Bash/llm_setup/pull_models.sh
bash Bash/llm_setup/run_inference.sh --prompt "Explain Kubernetes in one sentence"Check local AI hardware signals
bash Bash/local_ai/check_gpu.shOrganize files by extension safely
python Python/file_management/move_files.py \
--source ~/Downloads \
--destination ~/Documents/PDFs \
--extensions pdf \
--dry-runRun batch LLM inference from a JSONL file
python Python/ai_utils/batch_inference.py \
--input examples/prompts/prompts.jsonl \
--output results.jsonlInspect local acceleration options
bash Bash/local_ai/check_gpu.shBuild llama.cpp
bash Bash/local_ai/install_llama_cpp.sh --accelerator auto --dry-runRemove --dry-run when the planned clone and build path looks right.
Create a Python local-AI environment
bash Bash/local_ai/setup_python_ai_env.sh --venv .venv-local-aiList installed Ollama models
python Python/local_ai/ollama_model_report.pyBenchmark an Ollama model
python Python/local_ai/benchmark_ollama.py --model llama3 --runs 3Generate an Ollama Modelfile
python Python/local_ai/generate_modelfile.py \
--from llama3 \
--system "You are concise and practical." \
--parameter "temperature 0.2"Windows Ollama smoke test
PowerShell/local_ai/Test-LocalAIEndpoint.ps1 -Model llama3Run the same checks locally that CI runs:
make checkIndividual commands:
make lint
make test
make shellcheck
make py-compile
make bash-test
make perl-syntax
make perl-test
make powershell-test
make docs-check
make script-testInstall shellcheck separately if your platform does not include it. PowerShell tests skip locally when pwsh is unavailable, but CI runs them.
New scripts should include:
- A clear CLI with
--help. - Safe defaults and
--dry-runfor destructive operations. - Quoted shell variables and strict Bash mode where relevant.
- No secrets, tokens, or personal paths.
- README usage examples.
- Tests for Python behavior when practical.
- A test mapping entry in
tests/script_test_map.json.
- More local model runners: llama.cpp server mode, LM Studio, vLLM, and Open WebUI helpers.
- Cross-platform smoke tests for PowerShell scripts.
- More file-management helpers with dry-run and rollback support.
- Script metadata index for discoverability.
- First Go and C++ scripts after a concrete use case is ready.
Have a script that fits? Open a feature request or submit a PR.
Contributions are welcome: new scripts, bug fixes, tests, examples, and documentation improvements. Please read CONTRIBUTING.md, SECURITY.md, and the Code of Conduct before opening a PR.
Apache-2.0. See LICENSE for details.