shell

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package shell is the run_command tool: a shell jailed to one session's workspace as the host shows it on disk (package vfs/fuse). The jail uses Linux user, mount and pid namespaces.

The Temporal worker adds the tool to a turn when it mounts the workspace (worker.Config.FuseRoot); a host with its own mount adds RunCommand(dir) to AgentOptions.Tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(dir string) *tacklr.Tool

RunCommand is the run_command tool: /bin/sh -c in dir, the host directory that shows the session's tree, jailed so it sees nothing else. It asks for execute permission unless the host lists it in AgentOptions.AllowTools. It panics when the host cannot build the jail (no unprivileged user namespaces), so a missing jail fails at setup, not on the model's first call.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL