Skip to content

Instantly share code, notes, and snippets.

View ben-alkov's full-sized avatar

Ben Alkov ben-alkov

View GitHub Profile
@ben-alkov
ben-alkov / Natural Human Language: the only 6th-generation programming language.md
Created October 6, 2025 21:57
Metaphors of coding agents usable when you're explaining to the wary.

Natural Human Language: the only 6th-generation programming language

In which I describe some pretty-OK analogies for using LLMs as (essentially) disposable-code generators.

Possibly in ascending order from less appropriate/technical, to moreso.

  • Transpilers: Typescript -> Javascript

TypeScript "compiles to" JavaScript. I don't know of any sane person who

@ben-alkov
ben-alkov / recover-dropped-stash.md
Created September 25, 2025 19:41
Git: recover a dropped stash (or any commit ever made)

Git: recover a dropped stash (or any commit ever made)

Finding the hash

If you have only just popped it and the terminal is still open, you will still have the hash value printed by git stash pop on screen (thanks, Dolda).

Otherwise, you can find this way in Linux, Unix or Git Bash for Windows

@ben-alkov
ben-alkov / Ferdium new user tips.md
Created September 25, 2025 17:51
Helpful Tips for New Ferdium Users and why you should use it

Helpful Tips for New Ferdium Users and why you should use it

I was looking for a multi-chat application and stumbled on ferdium being mentioned only once. Google, reddit and other websites point to a variety of other options, but I decided to try ferdium and so glad I did. Don't think I was this excited til I played with unraid. It'd be amazing if Ferdium was available on low resource PC's like a chromebook or htpc.

Pros

@ben-alkov
ben-alkov / MCP Registry Client Implementation Plan.md
Last active September 15, 2025 22:14
User prompting transcript (partial) for mcp-registry-client
  • CC's output based on user prompts:
  # MCP Registry Client Implementation Plan (Final)

  ## Project Structure
  - Modern Python package using uv for dependency management
  - Python 3.12+ with comprehensive type hints
  - Virtual environments for isolated development work
  - Nox-based development workflow via `noxfile.py`
@ben-alkov
ben-alkov / content_proxy_plan_v3.md
Created September 11, 2025 15:12
Claude Code/Sonnet 4's plan for a feature set to enable Hermeto to use a content proxy

Generic Artifact Proxy Integration Plan for Hermeto

Overview

Design and implement a flexible feature set that allows all Hermeto package managers to retrieve packages from various artifact proxy/repository systems.

This will enable hermetic builds in air-gapped environments using configurable content proxies like Pulp, Nexus, Artifactory, or custom solutions.

@ben-alkov
ben-alkov / intentional-tersifier.md
Last active September 5, 2025 19:51
A slash command for Claude Code to "tersify" the context. Use it periodically.

Progress Report Generator

Please create a comprehensive progress report in a file called "progress.md" covering our conversation since (specify timeframe: session start/last major milestone/when we began working on X): $ARGUMENT

Structure the report with these sections:

Approach

@ben-alkov
ben-alkov / Notes.md
Created September 4, 2025 19:38
My viewer's notes on "Advanced Context Engineering for Agents"

Context Engineering

(my viewer's notes on [Advanced Context Engineering for Agents][])

Optimize the context window for

  • correctness
  • completeness
  • size
  • trajectory
@ben-alkov
ben-alkov / code_keymap_fix.jsonl
Created August 12, 2025 17:31
Fix "SHIFT+ENTER adds newline to chat" keymapping for VSCode on Fedora 42; YMMV
{
"command": "-acceptAlternativeSelectedSuggestion",
"key": "shift+enter",
"when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
},
{
"command": "-editor.action.extensioneditor.findPrevious",
"key": "shift+enter",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'workbench.editor.extension'"
},
@ben-alkov
ben-alkov / readme.md
Last active October 1, 2025 12:47
Ferdium workaround for Gmail and Calendar

Note: It's a good idea to close the Dev Tools between apps if you have multiple apps needing this.

Get initial request

  1. Open |View| -> |Toggle Service Developer Tools|
  2. Go to the |Network| tab
  3. Enable |Preserve log|
  4. Perform your authentication flow and wait for the the blank end-page
  5. Find the cancelled ACS endpoint request
  6. Right-click the entry, and select "Copy as fetch"
@ben-alkov
ben-alkov / crossterm_metadata.json
Created March 28, 2025 20:32
Output of `cargo metadata --format-version 1` for `crossterm`
This file has been truncated, but you can view the full file.
{
"packages": [
{
"name": "addr2line",
"version": "0.24.2",
"id": "registry+https://github.com/rust-lang/crates.io-index#addr2line@0.24.2",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "A cross-platform symbolication library written in Rust, using `gimli`",
"source": "registry+https://github.com/rust-lang/crates.io-index",