frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

CLI's completion should know what options you've typed

https://hackers.pub/@hongminhee/2026/optique-context-aware-cli-completion
12•dahlia•3d ago

Comments

queenkjuul•1h ago
I think fish does this? I know it gives me branch names as completion options sometimes, idk how aware it is of the specific flags.
tiltowait•33m ago
fish is a bit insonsistent on it. For instance, `git add <tab>` will only autocomplete for modified files. It will also fill in wildcards, e.g. `cat *.txt <tab>` will expand to show all .txt files. On the failure side, `rm foo <tab>` will still show `foo` as an option.

IME, zsh has better autocompletion (which, at the time at least, was a separate install).

dgunay•1h ago
I have a small tool to manage agents, and one thing it does is let you select an --agent [codex|opencode|etc] and a --model. Valid --model values are specific to the agent though, and some agents like opencode support a huge amount of models.

When I added tab completion for --model that accounts for what --agent is set to, it made it 100x easier to use and I stopped relying on the defaults so much.

It's such a small thing but makes a big difference for discoverability.

frabonacci•36m ago
+1 to this. I’ve seen the same thing - once completion respects earlier flags, defaults matter less and the CLI becomes self-discoverable. Fish gets part of the way there, but having it modeled at the parser level feels like the missing piece
pvtmert•2m ago
shell completions consist of basically a state, and DAG (directed acyclic graph)

consider following

- git -> [ -C, <sub-commands> ]

- <sub-commands> -> [ add, branch, checkout, clone, remote, stash ]

- -C -> [ <directories> ]

- add -> [ <files>, <directories ]

...

- checkout -> [ <refs>, <files>, <directories> ]

---

obviously you could dump all these at every <tab> invocation, i usually create base+completions script considering completions for the base.

this way, i have tools & tools-completion, tools have sub-commands of fix, restart, connect, review, retrieve, etc.

each of these also have completions, like tools-restart-completions. those lists available services/daemons only

while installing, you only need to install "tools completions", that handles the redirect(s) to sub-commands and their sub-commands, making things easier to maintain, simple to operate, and independent.

Left in the cold: Study finds most renters shut out of energy-saving upgrades

https://www.binghamton.edu/news/story/6011/left-in-the-cold-study-finds-most-renters-shut-out-of-...
43•hhs•59m ago•38 comments

East Germany balloon escape

https://en.wikipedia.org/wiki/East_Germany_balloon_escape
250•robertvc•7h ago•87 comments

Cloudflare acquires Astro

https://astro.build/blog/joining-cloudflare/
679•todotask2•10h ago•321 comments

Releasing rainbow tables to accelerate Net-NTLMv1 protocol deprecation

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
53•linolevan•2h ago•27 comments

LLM Structured Outputs Handbook

https://nanonets.com/cookbooks/structured-llm-outputs
73•vitaelabitur•1d ago•16 comments

6-Day and IP Address Certificates Are Generally Available

https://letsencrypt.org/2026/01/15/6day-and-ip-general-availability
317•jaas•8h ago•195 comments

Cursor's latest “browser experiment” implied success without evidence

https://embedding-shapes.github.io/cursor-implied-success-without-evidence/
366•embedding-shape•9h ago•157 comments

Michelangelo's first painting, created when he was 12 or 13

https://www.openculture.com/2026/01/discover-michelangelos-first-painting.html
290•bookofjoe•10h ago•154 comments

Just the Browser

https://justthebrowser.com/
471•cl3misch•12h ago•236 comments

HTTP RateLimit Headers

https://dotat.at/@/2026-01-13-http-ratelimit.html
22•zdw•2d ago•7 comments

Patching the Wii News Channel to serve local news (2025)

https://raulnegron.me/2025/wii-news-pr/
43•todsacerdoti•11h ago•10 comments

Reading across books with Claude Code

https://pieterma.es/syntopic-reading-claude/
54•gmays•5h ago•17 comments

Lock-Picking Robot

https://github.com/etinaude/Lock-Picking-Robot
246•p44v9n•4d ago•115 comments

STFU

https://github.com/Pankajtanwarbanna/stfu
606•tanelpoder•7h ago•416 comments

Slop is everywhere for those with eyes to see

https://www.fromjason.xyz/p/notebook/slop-is-everywhere-for-those-with-eyes-to-see/
166•speckx•4h ago•89 comments

Why DuckDB is my first choice for data processing

https://www.robinlinacre.com/recommend_duckdb/
201•tosh•13h ago•73 comments

An Ode to the Return of Wysiwyg

https://jeffverkoeyen.com/blog/2026/01/13/WYSIWYG/
9•featherless•3d ago•7 comments

Launch HN: Indy (YC S21) – A support app designed for ADHD brains

https://www.shimmer.care/indy-redirect
63•christalwang•8h ago•75 comments

Dev-owned testing: Why it fails in practice and succeeds in theory

https://dl.acm.org/doi/10.1145/3780063.3780066
104•rbanffy•10h ago•135 comments

Re: Mix: open-source repairable blender

https://github.com/openfunkHQ/reMix
5•rishikeshs•1h ago•0 comments

Zep AI (Agent Context Engineering, YC W24) Is Hiring Forward Deployed Engineers

https://www.ycombinator.com/companies/zep-ai/jobs/
1•roseway4•7h ago

Elasticsearch was never a database

https://www.paradedb.com/blog/elasticsearch-was-never-a-database
93•jamesgresql•5d ago•74 comments

Show HN: 1Code – Open-source Cursor-like UI for Claude Code

https://github.com/21st-dev/1code
49•Bunas•1d ago•25 comments

Drawbot: Let's hack something cute (2025)

https://www.atredis.com/blog/2025/9/30/drawbot-lets-hack-something-cute
19•notmine1337•2h ago•4 comments

CLI's completion should know what options you've typed

https://hackers.pub/@hongminhee/2026/optique-context-aware-cli-completion
12•dahlia•3d ago•5 comments

Read_once(), Write_once(), but Not for Rust

https://lwn.net/SubscriberLink/1053142/8ec93e58d5d3cc06/
106•todsacerdoti•9h ago•33 comments

Independent Guest Virtual Machine (IGVM) File Format

https://github.com/microsoft/igvm
20•ingve•1d ago•2 comments

psc: The ps utility, with an eBPF twist and container context

https://github.com/loresuso/psc
82•tanelpoder•11h ago•26 comments

We Gave Our Browser Agent a 3MB Data Warehouse

https://100x.bot/a/we-gave-our-browser-agent-a-3mb-data-warehouse
24•shardullavekar•1d ago•4 comments

Brain: PC virus [audio]

https://www.bbc.com/audio/play/w3ct7479
15•andsoitis•4d ago•1 comments