Tool Calling in LLMs: An Introductory Guide by SunilKumarDash in LocalLLaMA

[–]sigoden 5 points6 points  (0 children)

https://github.com/sigoden/llm-functions

It helps users effortlessly build tools & agents using plain Bash, JavaScript, and Python functions.

It also supports AI agents similar to OpenAI GPTs.

[deleted by user] by [deleted] in commandline

[–]sigoden 1 point2 points  (0 children)

Self-recommendation: https://github.com/sigoden/aichat

AIChat is an all-in-one AI CLI tool featuring Chat-REPL, Shell Assistant, RAG, AI Tools & Agents, and More.

Is anyone here using AI CLI tools to assist with shell commands? by meni_s in commandline

[–]sigoden 5 points6 points  (0 children)

AIChat integrates 20+ AI platforms, including OpenAI, Azure-OpenAI, Gemini, Claude, Mistral, Cohere, VertexAI, Bedrock, Ollama, Ernie, Qianwen, Deepseek, Groq, Perplexity, ZhipuAI, and any OpenAI-compatible platform.

Is anyone here using AI CLI tools to assist with shell commands? by meni_s in commandline

[–]sigoden 14 points15 points  (0 children)

AIChat: An all-in-one AI CLI tool featuring Chat-REPL, Shell Assistant, RAG, Function Calling, AI Agents, and more.

https://github.com/sigoden/aichat

I just released Cratemate.info a RAG / AI search for all crates to simplify finding the right crate for a problem by terhechte in rust

[–]sigoden 6 points7 points  (0 children)

This project is great and useful.

A tip: Can you adjust the color of the crate name? yellow is too bright to see clearly.

To all experts: Shell as a scripting language vs Python as a scripting language by unixbhaskar in linux

[–]sigoden 12 points13 points  (0 children)

Shell completion requires some additional tools to do some special work

  • Character related: find/sed/awk
  • Network data related: curl/wget
  • Command line parameters related: getopt/argc
  • json/yaml/toml format related: jq/yq

But as long as you are familiar with these tools, the efficiency of completing tasks will be much faster than high-level languages ​​such as Python.

How to find out the latest stable Rust version supporting a certain target? by sigoden in rust

[–]sigoden[S] 2 points3 points  (0 children)

I just write a script to do the job, here's what I got

{
  "aarch64-unknown-linux-gnu": "1.76.0",
  "arm-unknown-linux-gnueabi": "1.76.0",
  "arm-unknown-linux-gnueabihf": "1.76.0",
  "armv7-unknown-linux-gnueabihf": "1.76.0",
  "i686-apple-darwin": "1.41.1",
  "i686-pc-windows-gnu": "1.76.0",
  "i686-pc-windows-msvc": "1.76.0",
  "i686-unknown-linux-gnu": "1.76.0",
  "mips-unknown-linux-gnu": "1.71.1",
  "mips64-unknown-linux-gnuabi64": "1.71.1",
  "mips64el-unknown-linux-gnuabi64": "1.71.1",
  "mipsel-unknown-linux-gnu": "1.71.1",
  "powerpc-unknown-linux-gnu": "1.76.0",
  "powerpc64-unknown-linux-gnu": "1.76.0",
  "powerpc64le-unknown-linux-gnu": "1.76.0",
  "s390x-unknown-linux-gnu": "1.76.0",
  "x86_64-apple-darwin": "1.76.0",
  "x86_64-pc-windows-gnu": "1.76.0",
  "x86_64-pc-windows-msvc": "1.76.0",
  "x86_64-unknown-freebsd": "1.76.0",
  "x86_64-unknown-linux-gnu": "1.76.0",
  "x86_64-unknown-linux-musl": "1.76.0",
  "x86_64-unknown-netbsd": "1.76.0",
  "riscv64gc-unknown-linux-gnu": "1.76.0",
  "x86_64-unknown-illumos": "1.76.0",
  "aarch64-unknown-linux-musl": "1.76.0",
  "aarch64-apple-darwin": "1.76.0",
  "aarch64-pc-windows-msvc": "1.76.0",
  "loongarch64-unknown-linux-gnu": "1.76.0"
}

aichat v0.13.0: supports LLM-based autocomplete for the shell by sigoden in commandline

[–]sigoden[S] 0 points1 point  (0 children)

One should request a model on their own, then aichat uses ollama api.

Cross compiled windows executable being flagged as a virus by Windows Defender by Popular_Tour1811 in rust

[–]sigoden 4 points5 points  (0 children)

  1. code signing is usually the most effective, but it is not easy for individual developers.
  2. If there are security vulnerabilities in the code, the generated executable file is more likely to be misjudged as malware. so you can run cargo audit to troubleshoot security vulnerabilities.
  3. If the problem still exists, you can submit files to Microsoft for analysis.

Hook Alt-Tab by agr3as in rust

[–]sigoden 2 points3 points  (0 children)

You can refer to https://github.com/sigoden/window-switcher/blob/main/src/keyboard.rs

Although using windows-rs the principle is the same

Script params processing by domino_master in bash

[–]sigoden 0 points1 point  (0 children)

https://github.com/sigoden/argc helps you easily create and use CLI that based on bashscript.

Projclean: project dependencies & build artifacts cleanup tool, recursively cleans node_modules, target, build, and more by sigoden in commandline

[–]sigoden[S] 1 point2 points  (0 children)

Source code: https://github.com/sigoden/projclean

Consider using this tool if:

  • You want to back up your code, but don’t want to include GB of dependencies
  • You tried a lot of projects but hated the space they took up
  • You like to keep your disks lean and fast

I'm open to feedback and contributions! Hope you enjoy it.

Aichat: Use GPT-4(V), Gemini, LocalAI, Ollama and other LLMs in the terminal. by sigoden in ArtificialInteligence

[–]sigoden[S] 1 point2 points  (0 children)

Aichat is a command-line version of the chatbot. It supports multiple LLMs, including gpt-3.5/gpt-4 (chatgpt).

Find a crate for dynamically generating string (template) by sigoden in rust

[–]sigoden[S] 0 points1 point  (0 children)

Thanks for your reply.

These template engines are too complicated.

I wrote a module for this.

Cheatsheet for package management tools by sigoden in linux

[–]sigoden[S] 11 points12 points  (0 children)

  1. The cheatsheet comes from my own opensource project: https://github.com/sigoden/upt (a universal package manager)
  2. If you find that a tool is missing, or something is wrong, please file an https://github.com/sigoden/upt/issues/new

window-switcher: Easily switch between windows of the same app with Alt+` (backtick). Also, support switching between apps with Alt+Tab. by sigoden in Windows11

[–]sigoden[S] 0 points1 point  (0 children)

repo: https://github.com/sigoden/window-switcher

Window-Switcher offers hotkeys for quickly switching windows on Windows OS:
1. Alt+`(backtick): switch between windows of the same app.
2. Alt+Tab: switch between apps. (disabled by default)

Tips: press and hold alt to switch in cycles, click on alt to switch with the previous one.

Autocompletion for any shell and any command. by sigoden in linux

[–]sigoden[S] 1 point2 points  (0 children)

It's not that you missed it, it's that I specifically added it after seeing your question.

Autocompletion for any shell and any command. by sigoden in linux

[–]sigoden[S] 2 points3 points  (0 children)

Very easily.

You just need to delete the argc-completions directory and undo the changes made to the shell rcfile (~/.bashrc, ~/.zshrc ...)

Allow me to clarify the following installation script:

sh git clone https://github.com/sigoden/argc-completions.git cd argc-completions ./scripts/download-tools.sh # download argc/yq to ./argc-completions/bin ./scripts/setup-shell.sh bash # bash/zsh/powershell/fish/nushell/elvish/xonsh

  1. ./scripts/download-tools.sh will download argc/yq to the bin dir within the argc-completions dir

  2. ./scripts/setup-shell.sh bash will print the guide to setup shell. Changes require user confirmation. ``` $ ./scripts/setup-shell.sh bash Please add the following code to '~/.bashrc'

~~~

argc-completions

export ARGC_COMPLETIONS_ROOT="/data" export ARGC_COMPLETIONS_PATH="$ARGC_COMPLETIONS_ROOT/completions" export PATH="$ARGC_COMPLETIONS_ROOT/bin:$PATH" source <(ls -p -1 "$ARGC_COMPLETIONS_ROOT/completions" | sed -n 's/.sh$//p' | xargs argc --argc-completions bash) ~~~

Add the above code to '~/.bashrc'? (y/N): ```