@orca-sec/pi-orca
Official ryk Pi integration for fail-closed bash and file protection.
Package details
Install @orca-sec/pi-orca from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@orca-sec/pi-orca- Package
@orca-sec/pi-orca- Version
1.2.9- Published
- Jul 26, 2026
- Downloads
- 821/mo · 229/wk
- Author
- karc14
- License
- Apache-2.0
- Types
- extension, skill
- Size
- 75.4 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/orca.ts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
ryk for Pi
The official Pi integration for ryk protects Pi tool calls before they run.
It is installed automatically by ryk onboarding; no npm command or additional
Pi setup is required.
Protection coverage
| Tool | Enforcement |
|---|---|
bash |
ryk evaluate --json --stdin; failures block by default |
write / edit |
ryk decide file with operation: write |
read |
ryk decide file with operation: read |
grep / find / ls |
Root preflight plus explicit approval |
| Other tool names | ryk decide tool name gate |
The extension also detects secret-like values in interactive prompts. With user
consent it stores them in the compatibility credential broker path
.orca/dev-secrets.env using mode 0600, then replaces the raw value with an
environment-variable reference before the model sees the message.
Runtime behavior
- The generated Pi wrapper contains the absolute path of the installed
rykexecutable. Pi protection does not depend on PATH or shell profile activation. - The bundled runtime fails closed when
rykis unavailable, returns malformed output, or times out. /ryk-setup,/ryk-start,/ryk-stop,/ryk-doctor, and/ryk-modemanage the current Pi integration.RYK_PI_MODE=autois the default: interactive sessions ask; noninteractive sessions block. UseRYK_PI_MODE=strictfor the strongest fail-closed posture.- Process-level environment, network, and secretless controls require launching
Pi through
ryk run -- pi.
Security properties
- Child processes use argv arrays with
shell: false. - Evaluation requests are sent through stdin.
- Child output is bounded before parsing.
- Malformed tool payloads block.
- Credential files are written atomically and symlinked paths are rejected.
- Session bypass is not persisted and requires an explicit user choice.
- Tool hooks do not claim process-level network or environment isolation.