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
from praisonaiagents.skills import shell_renderFunctions
Constants
| Name | Value |
|---|---|
_INLINE_RE | re.compile('!([^\\n]+)‘)` |
_FENCED_RE | re.compile('`!\\s\\n(.?)\\n`', re.DOTALL) |
_DISABLED_MARKER | '[shell execution disabled]' |