Skip to content

Instantly share code, notes, and snippets.

@artydev
artydev / termina-llm.txt
Created August 7, 2026 10:41
Termina llm.txt
# Termina: Reactive Terminal UI Framework for .NET
## Overview
Termina is a reactive terminal UI (TUI) framework for .NET that enables developers to build beautiful, interactive terminal applications with declarative layouts and reactive state management. It provides an MVVM architecture with automatic UI updates, ASP.NET Core-style routing, and seamless integration with Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.Hosting.
**Version:** 0.15.1 (at documentation time)
**License:** Apache 2.0
**Repository:** https://github.com/Aaronontheweb/Termina
**Documentation:** https://aaronstannard.com/termina/
@artydev
artydev / app.js
Last active June 17, 2026 15:01
OLLAMA TERMINAL - WTH - MCP SERVER
import { get, set, del } from 'https://cdn.jsdelivr.net/npm/idb-keyval@6/+esm';
/* ──────────────────────────────────────────────────────────────
DOM REFS
────────────────────────────────────────────────────────────── */
const log = document.getElementById("log");
const input = document.getElementById("input");
const sessionBar = document.getElementById("sessionBar");
const terminalPrompt = document.getElementById("terminalPrompt");
const mcpDot = document.getElementById("mcpDot");
@artydev
artydev / README.md
Last active June 15, 2026 08:00
Using Local LLM (Ollama) through websocketd
@artydev
artydev / fast-ollama.cs
Created June 15, 2026 00:30
Bare-Metal AOT Ollama Shell
using System;
using System.Buffers;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
@artydev
artydev / OllamaChatAgent.cs
Last active June 14, 2026 12:28
Native AOT-Compatible C# Local AI Agent with Ollama Tool Calling
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading;
@artydev
artydev / OllamaChat.cs
Created June 14, 2026 09:50
Engine Ready (qwen2.5:3b)
```cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.ClientModel;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using OpenAI;
using OpenAI.Chat;
// create Model for lfm2 cf previous lmf2-tools
@artydev
artydev / lmf2-tools.cs
Created June 8, 2026 07:45
LLM - ToolCallinin C
/*
* TestLfmTools.cs
* LFM2.5-1.2B tool calling test — rewritten with the OpenAI NuGet package.
* Ollama exposes an OpenAI-compatible endpoint, so no manual ChatML or
* regex parsing needed.
*
* Requirements: .NET 8+
* dotnet add package OpenAI --version 2.*
*
* NOTE: Tool calling via the OpenAI-compatible endpoint requires the model
@artydev
artydev / lmf2-tools.py
Created June 8, 2026 07:20
LLM - hadad/LFM2.5-1.2B:Q4_K_M
"""
Test script for LFM2.5-1.2B tool calling via Ollama.
Uses LFM2.5's native ChatML + Pythonic tool call format directly,
since the community Ollama upload lacks a tools template.
Make sure Ollama is running and the model is pulled:
ollama pull hadad/LFM2.5-1.2B:Q4_K_M
"""
import ast
@artydev
artydev / catia.txt
Last active May 28, 2025 20:01
catia
[
"promptOne",
"promptTwo"
]