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

推荐订阅源

WordPress大学
WordPress大学
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
V
V2EX
MyScale Blog
MyScale Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - hq6/dk: kommand discovery - organize and documen...
hq6 · 2026-06-24 · via Hacker News: Show HN

dk ( "discover kommand" ) organizes command line tools, making it easier to discover them and view their documentation.

dk will look for executable scripts and binaries under directories named dkbin in the current working directory and its parents.

  • Scripts must minimally contain have a SUMMARY: line and a HELP: section after the shebang line. See dkbin/hello-world-script as an example of a script.
  • Binary executables must respond to --summary and --help with similar output. See dkbin-src/hello-world-bin.c as an example of a binary.
  • Both scripts and binaries should be robust to being invoked with --complete, minimally exiting with no output.

dk is useful for organizing simple cli tools, which can live in $HOME/dkbin. dk is useful for organizing cli tools for working with a particular repository , which can live in a dkbin directory at the root of the repository.

Installation

curl https://raw.githubusercontent.com/hq6/dk/refs/heads/master/bin/install-latest-release.sh | bash

Verification

To verify the installation worked correctly, run the following commands in a new terminal.

cd $HOME
mkdir dkbin
cat > dkbin/hello-world  <<EOF
#!/bin/bash
# SUMMARY: Say hello world
# HELP:
#
# USAGE
#    dk hello-world
echo "Hello dk!"
EOF
chmod u+x dkbin/hello-world
dk

If this output includes the following, then the dk was installed correctly.

USAGE
   dk <command> [<args>]

COMMANDS IN ~/dkbin
   hello-world  Say hello world

Run dk help <command> to print information on a specific command.

If dk is not found, please ensure that your PATH includes the install directory.


To verify tab completion, run the following and ensure that your terminal completes to dk hello-world.

If tab completion is failing, please ensure that on-screen instructions printed by the install script have been followed.

Usage

Put executable scripts and binaries in dkbin to make them discoverable by dk. Run dk to list available commands. Run dk help <command> to get help.

Appendix

What problem does dk solve?

  • When I first started writing utilty scripts and short programs for both personal and work purposes, I would lose track of where I put them or forget that they existed at all.
  • At some point, I tried to put all my scripts in a single directory. This prevented the loss of scripts but it was still easy to forget that they existed at all. Also, sometimes scripts are intended for use with a particular project and thus do not belong in a centralized place.
  • Additionally, getting at the documentation for scripts typically required reading the file, since the documentation for such short scripts is often in the form of a comment.
  • With dk, I put all my general purpose scripts in $HOME/dkbin, and put all my project-specific scripts in a dkbin directory at the project root. When I need to determine whether I already have a script that does X, I type dk to determine which scripts exist and what they are intended to do. I type dk help <command> to automatically extract the comment.

Gotchas

dk makes 3 assumptions about the scripts within its domain, and if these assumptions are incorrect, undesirable behavior may occur:

  • When invoked without arguments, dk will invoke any executable script inside a dkbin directory with --summary iff there is no SUMMARY: line.
  • When invoking dk help <command>, dk will invoke command with --help iff there is no HELP: line.
  • When invoking dk <command> <TAB>, dk will invoke command with --complete.

If the script lacks the magic comments AND is not expecting to be called with --summary, --help or --complete, it may exhibit surprising behavior. For example, if the first argument is treated as a filename for writing output, this may cause the creation of a file named --summary.

Uninstall

curl https://raw.githubusercontent.com/hq6/dk/refs/heads/master/bin/uninstall.sh | bash

Acknowledgements

dk is inspired by the internal tool sq built at Block and based on the same exoskeleton library, although it was implemented without reference to that tool's source code.