
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
@piotr-oles/pi-bash-timeout
Advanced tools
Pi Agent extension: inject a default bash timeout and append timeout policy guidance to the system prompt
Pi Agent extension that gives the bash tool a sane default timeout and tells the model about the timeout policy.
It intercepts the host bash tool via the tool_call event and injects a default timeout (in seconds) when the model omits it or passes a non-positive value. It also appends a "Bash Tool Timeout Policy" section to the system prompt via before_agent_start so the model sets explicit timeouts for long-running commands.
| Case | Result |
|---|---|
timeout omitted | inject default |
timeout <= 0 | treated as missing, inject default |
timeout in range | preserved |
timeout above max | capped to max |
Non-bash tool calls are never touched.
Both pi flags and env vars are supported. Precedence: flag > env var > built-in default. Invalid or non-positive values are ignored and fall through to the next source.
| Setting | Flag | Env var | Default |
|---|---|---|---|
| Default timeout (s) | pi-bash-timeout-default | PI_BASH_DEFAULT_TIMEOUT_SECONDS | 120 |
| Maximum timeout (s) | pi-bash-timeout-max | PI_BASH_MAX_TIMEOUT_SECONDS | 600 |
Explicit timeout values above max are capped. If max resolves lower than default, it is raised to default.
Ported from code-yeongyu/pi-bash-timeout and adapted to this repo (pi flags, upstream isToolCallEventType guard, in-place input mutation, colocated tests).
pnpm install
pnpm test
pnpm typecheck
pnpm check
To test changes manually, pass the source entry point directly to pi:
pi -e packages/pi-bash-timeout/src/index.ts
FAQs
Pi Agent extension: inject a default bash timeout and append timeout policy guidance to the system prompt
We found that @piotr-oles/pi-bash-timeout demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.