[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_2656.jpg (283 KB, 3564x2100)
283 KB
283 KB JPG
I wanted to run markdown files like shell scripts. So I built an open source tool that lets you use a shebang to pipe them through Claude Code with full stdin/stdout support.
https://task.md:

#!/usr/bin/env claude-run

Analyze this codebase and summarize the architecture.


Then:

chmod +x task.md

./task.md


These aren't just prompts. Claude Code has tool use, so a markdown file can run shell commands, write scripts, read files, make API calls. The prompt orchestrates everything.
A script that runs your tests and reports results (`https://run_tests.md`):

#!/usr/bin/env claude-run --permission-mode bypassPermissions

Run ./test/run_tests.sh and summarize what passed and failed.


Because stdin/stdout work like any Unix program, you can chain them:

cat data.json | ./analyze.md > results.txt

git log -10 | ./summarize.md

./generate.md | ./review.md > final.txt


Or mix them with traditional shell scripts:

for f in logs/\*.txt; do

cat "$f" | ./analyze.md >> summary.txt

done


This replaced a lot of Python glue code for us. Tasks that needed LLM orchestration libraries are now markdown files composed with standard Unix tools. Composable as building blocks, runnable as cron jobs, etc.
One thing we didn't expect is that these are more auditable (and shareable) than shell scripts. Install scripts like `curl -fsSL https://bun.com/install | bash` could become:

`curl -fsSL https://bun.com/install.md | claude-run`


Where https://install.md says something like "Detect my OS and architecture, download the right binary from GitHub releases, extract to ~/.local/bin, update my shell config." A normal human can actually read and verify that.

We implemented it and added Unix pipe semantics. Currently works with Claude Code - hoping to support other Al coding tools too.

GitHub: https://github.com/andisearch/claude-switcher
What workflows would you use this for?
>>
i don't get it is this some sort of org-mode code blocks?
>>
>>107821115
how is claude for Linux troubleshooting? I found that chatgpt is about 80% accurate, Gemini is about ehh the same give or take depending on the distro (I get that they're just hyper search engines so of course they're going to have better answers for Ubuntu, MInt, etc... anyway how is Claude?
>>
>>107821115
this will revolutionize AI
>>
Interesting idea.
>>
>>107821115
>i built
No you didnt



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.