vibe 了一下 codex cli,改名叫 aish,作为 shell 辅助工具 - V2EX
请不要在回答技术问题时复制粘贴 AI 生成的内容
div class="fr">chunhuitrue

vibe 了一下 codex cli,改名叫 aish,作为 shell 辅助工具

  •  
  •   chunhuitrue Jan 19 2129 views
    This topic created in 113 days ago, the information mentioned may be changed or developed.
    让它不再专门在某个项目目录写代码。作为一个 shell 命令辅助工具运行,比如想不起来哪个复杂的 shell 命令的时候,随时 aish ,然后提问,aish 在你的允许下执行,然后退出....
    https://github.com/chunhuitrue/aish

    刚 vibe 出来,文档配置之类的还没加。

    运行示例:
    当前系统中有僵尸进程么?


    我来检查系统中是否有僵尸进程。

    Ran ps aux '|' grep -w Z
    └ ps: illegal argument: |
    usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
    [-u]
    [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
    lll 61467 6.3 0.2 411403520 65552 s002 S+ 8:58 下午 0:00.45 aish

    Ran ps aux
    └ USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
    lll 429 32.8 3.0 413283760 1020816 ?? S 8 126

    You approved aish to run ps axo 'stat,pid,ppid,command' this time

    Ran ps axo 'stat,pid,ppid,command'
    └ STAT PID PPID COMMAND
    Ss 1 0 /sbin/launchd
    Ss 83 1 /usr/libexec/logd
    Ss 106 1 /usr/libexec/watchdogd
    … +621 lines
    Ss 750 552 -zsh
    S+ 9711 750 emacsclient -nw
    Ss+ 837 552 -zsh
    Ss+ 882 552 -zsh
    ─ Took 41s

    是的,当前系统中有 5 个僵尸进程:

    | PID | PPID | 状态 | 父进程 |
    |-------|------|------|--------|
    | 54918 | 290 | Z | clash-core-service |
    | 73753 | 290 | Z | clash-core-service |
    | 75525 | 290 | Z | clash-core-service |
    | 85212 | 290 | Z | clash-core-service |
    | 97475 | 290 | Z | clash-core-service |

    这些僵尸进程都是 clash-core-service (位于 /Users/lch/.config/clash/service/clash-core-service )产生的。

    说明:僵尸进程是已经执行完成但父进程没有正确 wait() 它们的进程。它们不占用内存或 CPU ,只保留一个进程表项。

    建议:通常不需要手动清理。重启 clash-core-service 服务可以让这些僵尸进程被 init 进程接管并自动清理。如果你想让这些僵尸进程消失,可以重启 clash 服务。


    如果要手动清理,应该如何作?


    僵尸进程无法直接 kill ,因为它们已经执行完成。清理方法是让父进程正确地 wait() 它们,或者让 init 进程( PID 1 )接管后自动清理。

    针对你的情况,有两种方法:

    方法 1:杀死父进程(推荐)

    kill 290

    这会终止 clash-core-service ,僵尸进程会被 init 接管并自动清理。如果 clash 是通过服务管理器启动的,它可能会自动重启。

    方法 2:优雅重启 clash 服务

    如果你知道如何重启 clash 服务(比如通过 launchctl 或 systemctl ),可以用相应命令重启服务,这样更安全。



    注意事项:

    - 方法 1 会中断 clash 服务,如果你的网络依赖它,可能会短暂断网
    - 如果你使用 launchd 管理 clash ,可以用 launchctl 重启,更优雅

    你是想直接杀死进程,还是需要我帮你查看如何正确重启 clash 服务?
    18 replies    2026-02-17 23:41:11 +08:00
    AsuorZ
        1
    AsuorZ  
       Jan 19
    类似 forge 吗
    yaoppp
        2
    yaoppp  
       Jan 20
    有个想了很久的问题,想不通。我问个大逆不道的问题:类似 antigravity 这样的 IDE ,或者 vscode 装插件,不是比 cli 好用吗? ai agent 先输出方案,可以直接批改,稍后也可以看到修改了文件的哪些地方。cli 的功能应该是包含在 ide 之内的吧?
    Astrian
        3
    Astrian  
       Jan 20
    @yaoppp 因为 unix (应该是这个名字)在设计上就以「文字进,文字出」作为哲学,所以理论上它是比 IDE 更适合大模型的交互逻辑,甚至我都在想一台电脑如果算力足够,可能只需要 CLI 然后以自然语言交互就能完成对电脑的所有操作。
    Darley
        4
    Darley  
       Jan 20
    chunhuitrue
        5
    chunhuitrue  
    OP
       Jan 20
    @AsuorZ 你说的 forge 是什么,我没搜到。

    aish 就是和 codex cli 一样的对话框。但可以在任何时候任何路径下执行(不再针对某个项目目录)然后提 shell 相关的问题,它执行。。。
    chunhuitrue
        6
    chunhuitrue  
    OP
       Jan 20
    @yaoppp cli 可以被包含在 ide 内,也可以不包含在 ide 内。这本身不就说明 cli 挺牛的么。有些情况不需要 ide ,有些情况 ide 作不了。
    chunhuitrue
        7
    chunhuitrue  
    OP
       Jan 20
    @Astrian cli 从出生那天起,就可以完成所有对电脑的操作。它需要的算力比图形界面少多了。
    chunhuitrue
        8
    chunhuitrue  
    OP
       Jan 20
    @Darley 我之前搜到过微软还有一个也叫 codex 的 shell 辅助工具。你说这个竟然也叫 aish ,我去。我可真不是炒它的,竟然想到一块儿去了。
    chunhuitrue
        9
    chunhuitrue  
    OP
       Jan 20
    我这个 aish 也可以支持 mcp 和 skill 。现在的状态是刚从 codex vibe 出来,各个文档,说明,功能,版本。。。还没来得及整理。
    AsuorZ
        10
    AsuorZ  
       Jan 20
    @chunhuitrue 基于 nushell 开源的 reedline 开发的一个 AI shell,github 搜第一个就是,那你这个相当于 tui 了
    AsuorZ
        11
    AsuorZ  
       Jan 20
    哦没注意看标题
    leverestfish
        12
    leverestfish  
       Jan 20
    @chunhuitrue #6 有什么事情 cli 能作 ide 里 (比如 chat) 做不了的吗? 可以举个例子吗? 我理解 claude/codex 不做 ide 只做 cli 是因为 cli 功能更单一, 迭代起来更方便
    chunhuitrue
        13
    chunhuitrue  
    OP
       Jan 21
    @AsuorZ forge 和 codex cli ,claude code 是对标的。aish 目标是 shell 命令辅助工具。
    chunhuitrue
        14
    chunhuitrue  
    OP
       Jan 21
    @leverestfish 比如 ci/cd ,无头模式,你要在自己写的脚本中调用 claude/codex 。
    leverestfish
        15
    leverestfish  
       Jan 21
    @chunhuitrue #14 你说的有道理,ide 作为更高层级的封装确实会在这些场景不如 cli 灵活
    chunhuitrue
        16
    chunhuitrue  
    OP
       Feb 5
    发布了 0.1.0 版本。可以下载直接用,不用 clone 下来自己编译了。

    各位可以试试。https://github.com/chunhuitrue/aish/releases
    chunhuitrue
        17
    chunhuitrue  
    OP
       Feb 17
    贴个图片,比较直观
    https://imgur.com/WmQgj4s
    chunhuitrue
        18
    chunhuitrue  
    OP
       Feb 17
    <blockquote class="imgur-embed-pub" lang="en" data-id="WmQgj4s"><a href="https://imgur.com/WmQgj4s">View post on imgur.com</a></blockquote><script async src="http://www.v2ex.com//s.imgur.com/min/embed.js" charset="utf-8"></script>
    About     Help     Advertise     Blog     API     FAQ     Solana     1792 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 61ms UTC 16:17 PVG 00:17 LAX 09:17 JFK 12:17
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86