From abb1522d7d5c3eecb6b787d0a5a84c5ed66c11dc Mon Sep 17 00:00:00 2001 From: Haider Date: Fri, 12 Jun 2026 03:39:26 +0530 Subject: [PATCH] fix: append `< /dev/null` to altimate-code run invocations `altimate-code run "" --yolo` wedges silently on inherited stdin when invoked as a subprocess (Claude Code's Bash tool, CI, `subprocess.run(..., stdin=None)`, plugin hosts that don't pin stdin to `/dev/null`). `Bun.stdin.text()` waits forever for an EOF that never arrives, producing a 0% CPU hang with no session created and no error. Until the source-side fix in AltimateAI/altimate-code#935 lands in a tagged release, every invocation pattern in this skill needs `< /dev/null` to close stdin from the caller side. Otherwise any Skill-fire from a non-TTY parent hangs. Adds the redirect to all 5 documented invocations (minimal, recommended, and the 3 example patterns). One HTML comment near the first occurrence documents the lineage and points at the tracking issue for the cleanup, so the next maintainer can lift the workaround without spelunking git history. Closes #11 will fire when the workaround is removed; this PR adds the workaround in. --- skills/altimate-code/SKILL.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/skills/altimate-code/SKILL.md b/skills/altimate-code/SKILL.md index e8946e2..d923bd2 100644 --- a/skills/altimate-code/SKILL.md +++ b/skills/altimate-code/SKILL.md @@ -38,16 +38,22 @@ If `command -v` fails but the user says it is installed, suggest checking `npm b **Minimal invocation:** ```bash -altimate-code run "" --yolo +altimate-code run "" --yolo < /dev/null ``` + + **Recommended invocation** — captures the final response to a file and runs in the right directory: ```bash altimate-code run "" \ --yolo \ --output /tmp/altimate-result.md \ - --dir "$(pwd)" + --dir "$(pwd)" \ + < /dev/null ``` Then read `/tmp/altimate-result.md` and pass it straight back to the user. @@ -69,21 +75,21 @@ Then read `/tmp/altimate-result.md` and pass it straight back to the user. ```bash altimate-code run "Find the top 10 most expensive queries from the last 7 days in Snowflake and explain why each is slow." \ - --yolo --output /tmp/expensive.md + --yolo --output /tmp/expensive.md < /dev/null ``` **Generate column-level lineage for a dbt model:** ```bash altimate-code run "Show column-level lineage for the dim_customers model, including upstream sources and downstream consumers." \ - --yolo --dir "$(pwd)" --output /tmp/lineage.md + --yolo --dir "$(pwd)" --output /tmp/lineage.md < /dev/null ``` **Profile a table:** ```bash altimate-code run "Profile the events table — row count, null distribution per column, cardinality, and top 5 values for low-cardinality columns." \ - --yolo --output /tmp/profile.md + --yolo --output /tmp/profile.md < /dev/null ``` ## Presenting the Result