diff --git a/knowledge base/ai/agent.md b/knowledge base/ai/agent.md
index 17636cd..db9721c 100644
--- a/knowledge base/ai/agent.md
+++ b/knowledge base/ai/agent.md
@@ -3,8 +3,8 @@
> [!caution]
> TODO
-AI-enabled system that proposes to complete tasks of various complexity levels on their own, possibly **without** the
-need to stop to ask permission or consent to the user.
+AI-enabled system or application capable of autonomously performing tasks of various complexity levels on their own,
+possibly **without** the need to stop to ask permission or consent to the user.
1. [TL;DR](#tldr)
1. [Concerns](#concerns)
@@ -16,6 +16,11 @@ need to stop to ask permission or consent to the user.
## TL;DR
+Agents design their workflow and utilize the tools that are made available to them.
+They use natural language processing techniques of [LLMs][large language model] to comprehend user inputs, respond to
+them step-by-step, and determine when to call on external tools to obtain up-to-date information, optimize workflows
+and create subtasks autonomously to achieve complex goals.
+
Traditional software is _deterministic_, AI is _probabilistic_.
Reliability and delays accumulate fast, bringing down the probability of success for each step an agent needs to
@@ -94,18 +99,28 @@ It also happened that agents modified each other's settings files, helping one a
- [ASCII Smuggler Tool: Crafting Invisible Text and Decoding Hidden Codes]
- [Superpowers: How I'm using coding agents in October 2025], and [obra/superpowers] by extension
- [OpenClaw][openclaw/openclaw], [OpenClaw: Who are you?] and [How a Single Email Turned My ClawdBot Into a Data Leak]
+- [Claude Code]
+- [Gemini CLI]
+- [OpenCode]
### Sources
- [39C3 - AI Agent, AI Spy]
- [39C3 - Agentic ProbLLMs: Exploiting AI Computer-Use and Coding Agents]
- [xAI engineer fired for leaking secret "Human Emulator" project]
+- IBM's [The 2026 Guide to AI Agents]
+
+[Claude Code]: claude/claude%20code.md
+[Gemini CLI]: gemini/cli.md
+[Large Language Model]: large%20language%20model.md
+[OpenCode]: opencode.md
+
[39C3 - Agentic ProbLLMs: Exploiting AI Computer-Use and Coding Agents]: https://www.youtube.com/watch?v=8pbz5y7_WkM
[39C3 - AI Agent, AI Spy]: https://www.youtube.com/watch?v=0ANECpNdt-4
@@ -117,6 +132,7 @@ It also happened that agents modified each other's settings files, helping one a
[openclaw/openclaw]: https://github.com/openclaw/openclaw
[Stealing everything you've ever typed or viewed on your own Windows PC is now possible with two lines of code — inside the Copilot+ Recall disaster.]: https://doublepulsar.com/recall-stealing-everything-youve-ever-typed-or-viewed-on-your-own-windows-pc-is-now-possible-da3e12e9465e
[Superpowers: How I'm using coding agents in October 2025]: https://blog.fsck.com/2025/10/09/superpowers/
+[The 2026 Guide to AI Agents]: https://www.ibm.com/think/ai-agents
[TotalRecall]: https://github.com/xaitax/TotalRecall
[Trust No AI: Prompt Injection Along The CIA Security Triad]: https://arxiv.org/pdf/2412.06090
[xAI engineer fired for leaking secret "Human Emulator" project]: https://www.youtube.com/watch?v=0hDMSS1p-UY
diff --git a/knowledge base/ai/claude/README.md b/knowledge base/ai/claude/README.md
new file mode 100644
index 0000000..c36fbe7
--- /dev/null
+++ b/knowledge base/ai/claude/README.md
@@ -0,0 +1,73 @@
+# Claude
+
+> TODO
+
+AI platform built by Anthropic.
+
+
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Blog]
+- [Large Language Model]
+- [Gemini]
+
+### Sources
+
+- [Developer documentation]
+
+
+
+
+
+[Gemini]: ../gemini/README.md
+[Large Language Model]: ../large%20language%20model.md
+
+
+
+[Blog]: https://claude.com/blog
+[Developer documentation]: https://platform.claude.com/docs/en/home
+[Website]: https://claude.com/product/overview
+
+
diff --git a/knowledge base/ai/claude/claude code router.md b/knowledge base/ai/claude/claude code router.md
new file mode 100644
index 0000000..698fed9
--- /dev/null
+++ b/knowledge base/ai/claude/claude code router.md
@@ -0,0 +1,108 @@
+# Claude Code router
+
+> TODO
+
+Allows using [Claude Code] **without** an Anthropic account.
+Connects it to most other LLMs, including local ones.
+
+
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+
+ Setup
+
+Both the `ccr` CLI and the server use the `~/.claude-code-router/config.json` configuration file.
+
+```sh
+# Install.
+npm install -g '@musistudio/claude-code-router'
+
+# Open the Web UI for visual configuration.
+ccr ui
+```
+
+
+
+
+ Usage
+
+```sh
+# Start the service.
+ccr start
+
+# View the service's status.
+ccr status
+
+# Restart the service.
+ccr restart
+
+# Stop the service.
+ccr stop
+
+# Select models.
+# ccr model set ,
+ccr model
+ccr model set 'deepseek,deepseek-chat'
+
+# List configured models.
+ccr model list
+
+# Add models.
+# ccr model add ,
+ccr model add 'groq,llama-3.3-70b-versatile'
+
+# Remove models.
+# ccr model remove ,
+ccr model remove 'groq,llama-3.3-70b-versatile'
+
+# Start Cloud Code.
+# Do this AFTER configuring CCR.
+ccr code
+```
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Codebase]
+- [Blog]
+- [Claude Code]
+
+### Sources
+
+- [Documentation]
+
+
+
+
+
+[Claude Code]: claude%20code.md
+
+
+
+[Blog]: https://musistudio.github.io/claude-code-router/blog
+[Codebase]: https://github.com/musistudio/claude-code-router
+[Documentation]: https://musistudio.github.io/claude-code-router/docs/category/cli
+[Website]: https://musistudio.github.io/claude-code-router/
+
+
diff --git a/knowledge base/ai/claude/claude code.md b/knowledge base/ai/claude/claude code.md
new file mode 100644
index 0000000..c71bc5e
--- /dev/null
+++ b/knowledge base/ai/claude/claude code.md
@@ -0,0 +1,83 @@
+# Claude Code
+
+> TODO
+
+[Agentic][ai agent] coding tool that reads and edits files, runs commands, and integrates with tools.
+Works in a terminal, IDE, browser, and as a desktop app.
+
+
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+> [!warning]
+> Requires an Anthropic account to be used.
+> Unless one uses [Claude Code router] with it.
+
+
+ Setup
+
+```sh
+brew install --cask 'claude-code'
+```
+
+
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Codebase]
+- [Blog]
+- [AI agent]
+- [Claude Code router]
+- [Gemini CLI]
+- [OpenCode]
+
+### Sources
+
+- [Documentation]
+
+
+
+
+
+[AI agent]: ../agent.md
+[Claude Code router]: claude%20code%20router.md
+[Gemini CLI]: ../gemini/cli.md
+[OpenCode]: ../opencode.md
+
+
+
+[Blog]: https://claude.com/blog
+[Codebase]: https://github.com/anthropics/claude-code
+[Documentation]: https://code.claude.com/docs/en/overview
+[Website]: https://claude.com/product/overview
+
+
diff --git a/knowledge base/ai/gemini/README.md b/knowledge base/ai/gemini/README.md
new file mode 100644
index 0000000..8753281
--- /dev/null
+++ b/knowledge base/ai/gemini/README.md
@@ -0,0 +1,75 @@
+# Gemini
+
+> TODO
+
+Intro
+
+
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Codebase]
+- [Large Language Model]
+- [Claude]
+- [CLI]
+
+### Sources
+
+- [Documentation]
+
+
+
+
+
+[Claude]: ../claude/README.md
+[CLI]: cli.md
+[Large Language Model]: ../large%20language%20model.md
+
+
+
+[Codebase]: https://github.com/google-gemini
+[Documentation]: https://ai.google.dev/
+[Website]: https://gemini.google.com
+
+
diff --git a/knowledge base/ai/gemini/cli.md b/knowledge base/ai/gemini/cli.md
new file mode 100644
index 0000000..ac9046d
--- /dev/null
+++ b/knowledge base/ai/gemini/cli.md
@@ -0,0 +1,86 @@
+# Gemini CLI
+
+> TODO
+
+Open-source AI agent that allows to use Google Gemini from a terminal.
+Can read and edit files, execute shell commands, and search the web.
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+
+ Setup
+
+```sh
+# Install.
+npm install -g '@google/gemini-cli'
+
+# Run without installation.
+docker run --rm -it 'us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.1.1'
+npx '@google/gemini-cli'
+
+# Configure API keys.
+export GEMINI_API_KEY="YOUR_GEMINI_API_KEY"
+```
+
+
+
+
+ Usage
+
+```sh
+# Start.
+gemini
+
+# Run inside a container.
+# If installed locally.
+gemini --sandbox -y -p "your prompt here"
+
+# Headless mode.
+gemini -p "What is fine tuning?"
+echo "What is fine tuning?" | gemini
+```
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Codebase]
+- [Gemini]
+- [AI agent]
+
+### Sources
+
+- [Documentation]
+
+
+
+
+
+[AI agent]: ../agent.md
+[Gemini]: README.md
+
+
+
+[Codebase]: https://github.com/google-gemini/gemini-cli
+[Documentation]: https://geminicli.com/docs/
+[Website]: https://geminicli.com/
+
+
diff --git a/knowledge base/ai/large language model.md b/knowledge base/ai/large language model.md
index 4dbd079..0c96dd5 100644
--- a/knowledge base/ai/large language model.md
+++ b/knowledge base/ai/large language model.md
@@ -118,7 +118,10 @@ Refer:
[Agent]: agent.md
+[Claude]: claude/README.md
[Docker model runner]: ../docker.md#running-llms-locally
+[Gemini]: gemini/README.md
+[llama.cpp]: llama.cpp.md
[LMStudio]: lmstudio.md
[Ollama]: ollama.md
[vLLM]: vllm.md
@@ -127,13 +130,10 @@ Refer:
[ChatGPT]: https://chatgpt.com/
-[Claude]: https://claude.ai/
[Copilot]: https://copilot.microsoft.com/
[Duck AI]: https://duck.ai/
-[Gemini]: https://gemini.google.com/
[Grok]: https://grok.com/
[Jan]: https://www.jan.ai/
-[llama.cpp]: llama.cpp.md
[Llama]: https://www.llama.com/
[Llamafile]: https://github.com/mozilla-ai/llamafile
[Local LLM Hosting: Complete 2026 Guide - Ollama, vLLM, LocalAI, Jan, LM Studio & More]: https://www.glukhov.org/post/2025/11/hosting-llms-ollama-localai-jan-lmstudio-vllm-comparison/
diff --git a/knowledge base/ai/llama.cpp.md b/knowledge base/ai/llama.cpp.md
index ba9aae4..011684e 100644
--- a/knowledge base/ai/llama.cpp.md
+++ b/knowledge base/ai/llama.cpp.md
@@ -47,6 +47,7 @@ Vastly used as base for AI tools like [Ollama] and [Docker model runner].
## Further readings
- [Codebase]
+- [ik_llama.cpp]
### Sources
@@ -65,3 +66,4 @@ Vastly used as base for AI tools like [Ollama] and [Docker model runner].
[Codebase]: https://github.com/ggml-org/llama.cpp
+[ik_llama.cpp]: https://github.com/ikawrakow/ik_llama.cpp
diff --git a/knowledge base/ai/ollama.md b/knowledge base/ai/ollama.md
index 272e539..5c73908 100644
--- a/knowledge base/ai/ollama.md
+++ b/knowledge base/ai/ollama.md
@@ -68,10 +68,10 @@ docker exec -it 'ollama' ollama run 'llama3.2'
# Quickly set up a coding tool with Ollama models.
ollama launch
-# Launch models.
+# Launch integrations.
ollama launch 'claude' --model 'glm-4.7-flash'
-# Only configure models.
+# Only configure models used by integrations.
# Do *not* launch them.
ollama launch 'claude' --config
@@ -83,6 +83,7 @@ ollama stop 'gemma3'
# Delete models.
ollama rm 'gemma3'
+ollama rm nomic-embed-text:latest llama3.1:8b
# Create custom models.
# Requires a Modelfile.
diff --git a/knowledge base/ai/opencode.md b/knowledge base/ai/opencode.md
new file mode 100644
index 0000000..95a2f2c
--- /dev/null
+++ b/knowledge base/ai/opencode.md
@@ -0,0 +1,81 @@
+# OpenCode
+
+> TODO
+
+Open source AI coding agent.
+
+
+
+1. [TL;DR](#tldr)
+1. [Further readings](#further-readings)
+ 1. [Sources](#sources)
+
+## TL;DR
+
+
+ Setup
+
+```sh
+# Install
+brew install 'anomalyco/tap/opencode' # or 'opencode'
+docker run -it --rm 'ghcr.io/anomalyco/opencode'
+mise use -g 'opencode'
+nix run 'nixpkgs#opencode'
+npm i -g 'opencode-ai@latest'
+paru -S 'opencode-bin'
+
+# Desktop app
+brew install --cask 'opencode-desktop'
+```
+
+
+
+
+
+
+
+## Further readings
+
+- [Website]
+- [Codebase]
+- [Claude Code]
+- [Gemini CLI]
+
+### Sources
+
+- [Documentation]
+
+
+
+
+
+[Claude Code]: claude/claude%20code.md
+[Gemini CLI]: gemini/cli.md
+
+
+
+[Codebase]: https://github.com/anomalyco/opencode
+[Documentation]: https://opencode.ai/docs
+[Website]: https://opencode.ai
+
+
diff --git a/knowledge base/ai/use a local llm for coding assistance in vscode.md b/knowledge base/ai/use a local llm for coding assistance in vscode.md
index 29ff2b7..f7218bc 100644
--- a/knowledge base/ai/use a local llm for coding assistance in vscode.md
+++ b/knowledge base/ai/use a local llm for coding assistance in vscode.md
@@ -46,6 +46,8 @@
- chat
- edit
- apply
+ defaultCompletionOptions:
+ contextLength: 16384 # number of tokens, defaulted to 4096 for this model
```
1. If needed, tweak the configuration file.