惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - lazyville/qsh: q - Slim LLM CLI
mastercoder8 · 2026-04-29 · via Hacker News - Newest: "LLM"

A slim LLM CLI for your terminal.
Ask questions, debug errors with session context, and redact secrets — all from a single shell script.

Version Shell Providers


Deps: curl (always present), jq (auto-installed if missing)

Install

curl -sL https://github.com/lazyville/qsh/releases/latest/download/q.sh > ~/.local/bin/q && chmod +x ~/.local/bin/q

Setup

Add session logging so q debug / q wtf have terminal context to work with:

q install-hook   # prints the hook — paste into ~/.zshrc or ~/.bashrc

The hook logs commands (skipping vim, fzf, claude, etc.) and provides q-stop / q-start aliases to pause/resume logging around interactive tools.

Usage

q <prompt>                     one-shot question
q debug [question]             ask with recent terminal output as context
q wtf                          shortcut: "what went wrong and how do I fix it?"
q log                          preview what context would be sent (dry run)
q clear                        wipe the session log
q-stop                         pause logging (shell alias — preserves TTY for vim/claude/fzf)
q-start                        resume logging (shell alias)
q config                       show active config
q install-hook                 print shell hook to add to your rc file
q completions [bash|zsh|fish]  print shell completion script
q ignore                       list redaction patterns
q ignore add <PATTERN>         redact a word/var from context (e.g. API_KEY)
q ignore remove <PATTERN>      remove a pattern

Note: q-stop and q-start are shell aliases, not subcommands. They must run in your current shell to take effect — using q stop / q start won't work.

Shell Completions

Enable tab completion for subcommands:

# zsh — add to ~/.zshrc
eval "$(q completions zsh)"

# bash — add to ~/.bashrc
eval "$(q completions bash)"

# fish — run once
q completions fish > ~/.config/fish/completions/q.fish

Providers

Set Q_PROVIDER (default: openai):

Provider Endpoint Key var
openai api.openai.com/v1 OPENAI_API_KEY
nova api.nova.amazon.com/v1 AWS_API_KEY
azure your resource URL AZURE_API_KEY
anthropic api.anthropic.com (native fmt) ANTHROPIC_API_KEY
<custom> set Q_ENDPOINT directly Q_API_KEY

Config

Config is auto-saved on first run to ~/.config/q/config.sh. Override with env vars:

Q_PROVIDER        openai | nova | azure | anthropic | <custom>
Q_MODEL           model name
Q_ENDPOINT        override the preset base URL
Q_API_KEY         override the preset key var
Q_SYSTEM          system prompt
Q_SESSION_LOG     log path  (default: ~/.q/current.log)
Q_CONTEXT_LINES   lines of context to send  (default: 80)

Azure extras: Q_AZURE_BASE, Q_AZURE_DEPLOY, Q_AZURE_API_VER

Show Config

➜  qsh git:(main) q config
provider   openai
endpoint   https://api.nova.amazon.com/v1
model      nova-2-lite-v1
api key    set (36 chars)
log        ~/.q/current.log  (last 80 lines)
config     ~/.config/q/config.sh
ignore     ~/.config/q/qignore

ignore patterns:
  vim
  claude

Examples

q "explain this regex: ^[a-z]+$"

q wtf   # after a command fails

Q_PROVIDER=anthropic Q_MODEL=claude-opus-4-6 q "refactor this"

Q_PROVIDER=azure Q_AZURE_BASE=https://myco.openai.azure.com Q_AZURE_DEPLOY=gpt-4o q "hello"

Q_PROVIDER=custom Q_ENDPOINT=http://localhost:11434/v1 Q_API_KEY=ollama Q_MODEL=llama3 q "hello"

qignore

Redact sensitive values from context before they're sent to the LLM:

q ignore add MY_SECRET_VAR
q ignore add AWS_SECRET_ACCESS_KEY

Patterns are stored in ~/.config/q/qignore and matched as word boundaries and VAR=value pairs.