AgentStop

(★ 17)

AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices

File Explorer

  • .gitignore
  • install.sh
  • LICENSE
  • pyproject.toml
  • README.md
  • SECURITY.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

brew install

View Details ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

brew tap

View Details ▼

Tap a Homebrew formula repository. If no arguments are provided, list all installed Homebrew taps.

brew tap

List installed Homebrew taps:

brew tap {{github_username}}/{{github_repository_name}}

Tap a Git repository hosted on GitHub:

brew tap {{username}}/{{repository_name}} {{git_clone_url}}

Tap a Git repository hosted outside of GitHub:

🔍

brew

View Details ▼

Homebrew - a package manager for macOS and Linux.
Some subcommands such as `install` have their own usage documentation.

brew install {{formula|cask}}

Install the latest stable version of a formula or cask:

brew list

List all installed formulae and casks:

brew upgrade {{formula|cask}}

Upgrade an installed formula or cask (if none is given, all installed formulae/casks are upgraded):

🔍

cmake

View Details ▼

Cross-platform build automation system, that generates recipes for native build systems.

cmake {{path/to/project_directory}}

Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:

cmake --build {{path/to/build_directory}}

Use a generated recipe in a given directory to build artifacts:

cmake --install {{path/to/build_directory}} --strip

Install the build artifacts into `/usr/local/` and strip debugging symbols:

🔍

colima

View Details ▼

Container runtimes for macOS and Linux with minimal setup.

colima start

Start the daemon in the background:

colima start --edit

Create a configuration file and use it:

colima start --runtime containerd

Start and setup containerd (install `nerdctl` to use containerd via `nerdctl`):

🔍

conda activate

View Details ▼

Activate a conda environment.
See also: `conda deactivate`.

conda activate myenv

Activate an existing environment named `myenv`:

conda activate {{path/to/myenv}}

Activate an existing environment located at custom path:

conda activate --stack myenv

Stack `myenv` environment on top of a previous environment making libraries/commands/variables from both accessible:

🔍

conda create

View Details ▼

Create new conda environments.

conda create {{[-y|--yes]}} {{[-n|--name]}} py39 python=3.9 "numpy>=1.11" scipy

Create a new environment named `py39`, install Python 3.9, NumPy v1.11 or above in it, and the latest stable version of SciPy. Say yes to all confirmations:

conda create {{[-n|--name]}} myenv --file {{file1.yml}} --file {{file2.yml}}

Create a new environment named `myenv` and install packages listed in files:

conda create {{[-p|--prefix]}} {{path/to/myenv}}

Create a new environment at a custom path (i.e. prefix):

🔍

docker context

View Details ▼

Switch between contexts to manage multiple Docker environments.

docker context create {{context_name}} --docker "host={{tcp://remote-host:2375}}"

Create a context using a specific Docker endpoint:

docker context create {{context_name}}

Create a context based on the `$DOCKER_HOST` environment variable:

docker context use {{context_name}}

Switch to a context:

🔍

gem

View Details ▼

A package manager for the Ruby programming language.

gem search {{regex}} {{[-a|--all]}}

Search for remote gem(s) and show all available versions:

gem install {{gem_name}}

Install the latest version of a gem:

gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}

Install a specific version of a gem:

🔍

git checkout

View Details ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git fetch

View Details ▼

Download objects and refs from a remote repository.

git fetch

Fetch the latest changes from the default remote upstream repository (if set):

git fetch {{remote_name}}

Fetch new branches from a specific remote upstream repository:

git fetch --all

Fetch the latest changes from all remote upstream repositories:

🔍

glances

View Details ▼

A cross-platform system monitoring tool.
See also: `htop`, `atop`, `top`, `btm`, `btop`.

glances

Run in terminal:

glances {{[-w|--webserver]}}

Run in web server mode to show results in browser:

glances {{[-s|--server]}}

Run in server mode to allow connections from other Glances clients:

🔍

ollama

View Details ▼

A large language model runner.
For a list of available models, see <https://ollama.com/library>.

ollama serve

Start the daemon required to run other commands:

ollama run {{model}}

Run a model and chat with it (will automatically download the model if it's not downloaded):

ollama run {{model}} --think=false "{{prompt}}"

Run a model with a single prompt and thinking turned off:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

python {{path/to/file.py}}

Execute a specific Python file:

python -i {{path/to/file.py}}

Execute a specific Python file and start a REPL:

🔍

unzip

View Details ▼

Extract files/directories from Zip archives.
See also: `zip`.

unzip {{path/to/archive1.zip path/to/archive2.zip ...}}

Extract all files/directories from specific archives into the current directory:

unzip {{path/to/archive1.zip path/to/archive2.zip ...}} -d {{path/to/output}}

Extract files/directories from archives to a specific path:

unzip -c {{path/to/archive1.zip path/to/archive2.zip ...}}

Extract files/directories from archives to `stdout` alongside the extracted file names:

// repository documentation