[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107530":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":14,"starSnapshotCount":14,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},107530,"shim","Balanov\u002Fshim","Balanov","Tiny local-first AI harness: any model, MCP and Agent Skills, natural-language CLI. Zero dependencies. MIT.",null,"Go",88,15,1,0,52,48.81,"MIT License",false,"main",true,[],"2026-11-15 01:00:34","2026-11-20 01:50:04","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" alt=\"Shim — Any model. Any tool. Just type.\" width=\"420\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>A tiny, local-first AI harness for people who prefer a terminal.\u003C\u002Fstrong>\u003Cbr>\n  One static binary. Zero dependencies. No TUI. No telemetry. MIT.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBalanov\u002Fshim\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FBalanov\u002Fshim\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg\" alt=\"MIT license\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FBalanov\u002Fshim\u002Freleases\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Windows%20%C2%B7%20macOS%20%C2%B7%20Linux-lightgrey.svg\" alt=\"Platforms\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Why Shim?\n\nModel-agnostic coding agents are everywhere. Setting them up is still too hard: provider IDs, API endpoints, MCP JSON, skills directories, and a new interface for every tool.\n\n**Shim is the small adapter between you and all of that.**\n\n- **Talk or type commands.** A full scriptable CLI for experts; ordinary language for everyone else.\n- **Use a local mini-model as the command router.** It translates management requests into an allowlisted command. Mutating commands require confirmation.\n- **Bring any model API.** Native OpenAI-compatible and Anthropic adapters, plus presets for popular hosted and local providers.\n- **Bring any MCP server or Agent Skill.** MCP over stdio and Streamable HTTP; lazy `SKILL.md` loading from common directories.\n- **Stay light.** No Electron, Node, Python, Docker, database, background daemon, or UI framework.\n- **Own your state.** Plain JSON config and JSONL sessions. API keys come from environment variables and are never written to Shim's config.\n\nMeasured on the maintainer's Windows machine for v0.1.0: **7.29 MiB** stripped binary and **9.96 ms median** process startup for `shim --version` over 30 runs. This is a local measurement, not a cross-platform performance guarantee.\n\n## Install\n\n### Download\n\nGet a static binary for Windows, macOS, or Linux from [Releases](https:\u002F\u002Fgithub.com\u002FBalanov\u002Fshim\u002Freleases), put it on your `PATH`, then run:\n\n```sh\nshim setup\nshim\n```\n\nOn PowerShell, use `.\\shim.exe` when running the binary from the current directory.\n\n### With Go\n\nGo 1.25+:\n\n```sh\ngo install github.com\u002FBalanov\u002Fshim\u002Fcmd\u002Fshim@v0.1.0\nshim setup\n```\n\n### From source\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FBalanov\u002Fshim.git\ncd shim\ngo test .\u002F...\ngo build -trimpath -ldflags=\"-s -w\" -o shim .\u002Fcmd\u002Fshim\n.\u002Fshim setup\n```\n\nWindows also has `scripts\u002Fbuild.ps1`; Unix has `scripts\u002Fbuild.sh`.\n\n## Two ways to use it\n\n### Just talk\n\n```text\nyou › найди локальные модели\n↳ \u002Fdiscover --add\nRun this command? [y\u002FN] y\n\nyou › show my tools\n↳ \u002Ftools\n\nyou › fix the failing tests in this repository\n```\n\nShim has deterministic offline phrases for common English and Russian management commands. For other languages, assign a local model as the router:\n\n```sh\nshim router use ollama\u002Fqwen3:4b\n```\n\nThe router sees non-command chat text so it can distinguish configuration requests from agent tasks. Use a loopback model if you want that step to stay on your machine. **No model weights are bundled or silently downloaded**; that would defeat the tiny-binary goal. Your primary model handles ordinary conversation in whatever language it supports.\n\n### Use the complete CLI\n\n```sh\n# Local models: discover and configure all running servers\nshim model discover --add\n\n# Hosted models\nshim model add openrouter anthropic\u002Fclaude-sonnet-4.5 --name claude --use\nshim model add openai gpt-5 --name gpt --use\nshim model add huggingface org\u002Fmodel --name hf --use\n\n# Any OpenAI-compatible endpoint\nshim model add custom my-model --name mine \\\n  --base-url http:\u002F\u002F127.0.0.1:8000\u002Fv1 --use\n\n# One-shot agent run\nshim run --read-only \"explain this repository\"\nshim run --yes --verbose \"fix the tests and verify the result\"\n\n# Interactive terminal\nshim\n```\n\nRun `shim help` for the full command surface.\n\n## Model providers\n\n| Preset | Adapter | Credential environment variable |\n|---|---|---|\n| `ollama` | OpenAI-compatible | None |\n| `lmstudio` | OpenAI-compatible | None |\n| `llamacpp` | OpenAI-compatible | None |\n| `openai` | OpenAI-compatible | `OPENAI_API_KEY` |\n| `openrouter` | OpenAI-compatible | `OPENROUTER_API_KEY` |\n| `anthropic` | Anthropic Messages | `ANTHROPIC_API_KEY` |\n| `gemini` | Gemini OpenAI-compatible endpoint | `GEMINI_API_KEY` |\n| `github` | GitHub Models | `GITHUB_TOKEN` |\n| `huggingface` | Hugging Face router | `HF_TOKEN` |\n| `custom` | OpenAI-compatible or Anthropic | Optional, configurable |\n\n“Any model” means any model exposed through a supported HTTP API. GGUF and other local weights run through Ollama, LM Studio, llama.cpp, or another compatible inference server; Shim is the harness, not an inference engine.\n\nPowerShell example:\n\n```powershell\n$env:OPENROUTER_API_KEY = \"...\"\nshim model add openrouter your\u002Fmodel --name main --use\nshim model test main\n```\n\nFor persistent environment variables, use your OS or shell's standard secret\u002Fconfiguration mechanism. Do not put keys in the project config.\n\n## Skills\n\nShim discovers `SKILL.md` in:\n\n- the global `skills\u002F` directory next to Shim's config;\n- `.shim\u002Fskills\u002F`;\n- `.agents\u002Fskills\u002F`;\n- `.claude\u002Fskills\u002F`.\n\nOnly names and descriptions enter the system prompt. Full instructions load on demand through `load_skill`.\n\n```sh\nshim skill add owner\u002Frepository\nshim skill add https:\u002F\u002Fgithub.com\u002Fowner\u002Frepository\nshim skill add .\u002Flocal\u002Fskill-or-collection\nshim skill list\nshim skill show name\nshim skill remove name\n```\n\nSkills are untrusted instructions. Review them before use, especially when they request shell or network access.\n\n## MCP\n\n```sh\n# Stdio server\nshim mcp add filesystem npx -y @modelcontextprotocol\u002Fserver-filesystem .\nshim mcp tools filesystem\nshim mcp call filesystem list_allowed_directories '{}'\n\n# Streamable HTTP server\nshim mcp add internal https:\u002F\u002Fmcp.example.com\u002Fmcp\n\nshim mcp list\nshim mcp remove filesystem\n```\n\nMCP tools are namespaced as `mcp_\u003Cserver>_\u003Ctool>` and require confirmation in the default `ask` mode. HTTP headers and stdio environment variables can be added to the JSON config. Values support `${ENV_VAR}` expansion, so secrets can stay in the environment rather than in files.\n\n## Permissions and safety\n\nDefault mode is `ask`:\n\n- reading, listing, and searching workspace files: allowed;\n- writing\u002Fediting files, shell commands, and MCP calls: confirmation required;\n- file tools reject lexical traversal and symlink escapes from the workspace.\n\n```sh\nshim permissions read-only  # no writes, shell, or MCP\nshim permissions ask        # confirm consequential actions\nshim permissions auto       # allow the agent to act without prompts\n```\n\nFor one run, prefer `--read-only` or `--yes` over changing the global default.\n\n**Shim is not an OS sandbox.** Shell commands and MCP servers run with your user's permissions. Workspace path checks do not contain a malicious process. Use a container, VM, or OS sandbox for untrusted workloads. Treat model output, repository text, skills, and MCP responses as untrusted data.\n\n## Sessions and configuration\n\n```sh\nshim session list\nshim session new\nshim run --resume SESSION_ID \"continue\"\nshim status\nshim doctor\nshim config path\nshim config show\n```\n\nConfig is at the OS user-config location in `shim\u002Fconfig.json`; override it with `SHIM_CONFIG` or `--config`. Sessions are append-only JSONL next to it. Network traffic occurs only for explicit model calls, skill downloads, local discovery, and the MCP servers you configure.\n\n## What Shim deliberately is not\n\n| Project | Strength | Shim's different bet |\n|---|---|---|\n| OpenCode | Full-featured provider-agnostic terminal workspace | No TUI\u002Fserver surface; conversational setup and a tiny static binary |\n| Pi | Minimal, extensible coding-agent toolkit | Zero runtime dependencies and an allowlisted natural-language control layer |\n| Goose | Broad MCP-powered automation ecosystem | A smaller local-first control plane with no daemon or desktop app |\n| Aider | Git-native pair programming | General agent harness with MCP, lazy skills, and conversational management |\n\nShim does not try to beat foundation-model vendors at their own agent UI. It makes heterogeneous models and tools easy to wire together and easy to fork.\n\n## Development\n\n```sh\ngo test .\u002F...\ngo vet .\u002F...\ngo fmt .\u002F...\n```\n\nThe codebase uses only the Go standard library. See [Architecture](docs\u002FARCHITECTURE.md), [Contributing](CONTRIBUTING.md), and [Security](SECURITY.md). Русское введение: [README_RU.md](README_RU.md).\n\n## Roadmap\n\n- streaming token output and cancellation polish;\n- OS-level sandbox profiles;\n- OAuth helpers for remote MCP;\n- context compaction and richer session export;\n- additional deterministic language packs and provider conformance tests.\n\n## License\n\n[MIT](LICENSE). Fork it, modify it, embed it, ship it.\n","Shim 是一个极简的本地优先 AI 工具集成框架，专为命令行用户设计。它提供模型无关的 CLI 接口，支持任意 OpenAI\u002FAnthropic 兼容 API、MCP 协议服务及 Agent Skills，内置轻量本地模型作为自然语言指令路由层，所有配置与会话以纯文本 JSON\u002FJSONL 存储，零运行时依赖。适用于开发者在终端中快速编排本地或远程 AI 能力、构建自动化工作流，或作为轻量 AI 代理调度枢纽。",2,"2026-11-24 04:32:09","CREATED_QUERY"]