Shell Render • AI Agent SDK

Inline shell substitution for skill bodies.

shell_render

AI Agent

Inline shell substitution for skill bodies.

Supports two forms (Claude Code parity):

  • Inline: `!echo hello `
  • Fenced: “`! ... ` `

Safe-by-default: `enabled=False replaces every block with a [shell execution disabled] marker so skills authored with shell injection can be rendered deterministically without running arbitrary commands. Hosts (CLI, UI) opt-in explicitly by passing enabled=True`.

Import

python
from praisonaiagents.skills import shell_render

Functions

Constants

NameValue
_INLINE_REre.compile('!([^\\n]+)‘)`
_FENCED_REre.compile('`!\\s\\n(.?)\\n`', re.DOTALL)
_DISABLED_MARKER'[shell execution disabled]'