neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
翻译准备中
Manager for podman containers for AI coding agents
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Terok is in alpha development phase. It is under active development and until version
1.0.0 is released, APIs, internals, and security boundaries may change
without deprecation notice. Not recommended for production deployment.
An open, Podman-native runtime for sandboxing AI coding agents in YOLO mode.查看完整 README ↗[!WARNING] Terok is in alpha development phase. It is under active development and until version 1.0.0 is released, APIs, internals, and security boundaries may change without deprecation notice. Not recommended for production deployment.
An open, Podman-native runtime for sandboxing AI coding agents in YOLO mode.
Terok runs each agent task inside a hardened, rootless container with default-deny outbound networking, a credential vault that keeps real keys on the host, a per-task git checkpoint, and a desktop notification path for live allow/deny decisions. It ships a CLI and a Textual TUI on top of a stack of independently-released Python packages.
| Package | Role |
|---|---|
| terok (this repo) | Project orchestration, TUI, sickbay |
| terok-executor | Per-task agent runner, image factory, auth flows |
| terok-sandbox | Hardened Podman runtime, credential vault, git gate |
| terok-shield | nftables egress firewall + audit |
| terok-clearance | Live allow/deny prompts via D-Bus + varlink |
| terok-util | Shared foundations: CLI registry types, XDG paths, config stack |
Hard dependencies:
nft (nftables CLI)Optional but recommended:
systemd-creds vault
passphrase tier (TPM2-sealed on systemd ≥ 257); the gate / vault /
clearance services themselves run per container, no systemd unitsdnsmasq and dig — DNS plumbing the egress firewall usespipx install terok
terok setup # idempotent; safe to re-run after upgrades
setup installs the supervisor + shield OCI hooks, sets up the encrypted
credential store and its vault routes, and adds the XDG desktop entry for the
TUI plus shell completions for your detected shell.
Interactive runs prompt for where the credentials-DB passphrase is
stored; non-interactive hosts without systemd-creds must choose with
terok setup --passphrase-tier <keyring|session-file|config>.
To remove everything later:
terok uninstall # reverse of setup; preserves credential DB
Launch the TUI:
terok # bare `terok` runs the TUI
Or do the same from the command line:
terok auth claude # authenticate host-wide
terok auth # interactive menu — pick multiple providers
terok project wizard # interactive project setup
terok task run myproj # create a CLI task and attach (default on TTY)
terok task run myproj --mode toad # web interface (browser access)
terok login myproj t3x # re-attach later by task ID prefix
For manual project configuration or CI, see the User Guide.
# Run an agent headlessly with a prompt (uses default_agent config; falls back to claude)
terok task run myproj --mode headless --prompt "Fix the authentication bug"
# With model override and timeout
terok task run myproj --mode headless --prompt "Add tests" --model opus --timeout 3600
# Use a specific agent
terok task run myproj --mode headless --prompt "Fix the bug" --agent codex
terok project list # List projects
terok config paths # Show resolved paths and config
terok task list <project> # List tasks
terok task delete <project> <task_id> # Delete a task
terok login <project> <id_prefix> # Attach to running task
terok project init <project> # Full setup: ssh + generate + build + gate
terok project wizard # Interactive project creation
terok image usage # Disk usage across projects and images
terok sickbay # In-container health checks
terok panic # Emergency kill-switch
terok image list [project] # List terok images
terok image cleanup [--dry-run] # Remove orphaned images
terok completions install # Re-install shell completions
terok setup selinux,
otherwise the shield + clearance services bind sockets as
unconfined_t and podman will refuse to talk to them. terok setup
points at the same command when the policy is missing; the subcommand
shows the exact sudo invocation and, on request, the policy rules
before anything runs.terok setup apparmor, otherwise the shield's dnsmasq cannot read its
configuration and DNS falls back to a degraded tier. Same flow: the
exact sudo command and the added rules are shown before anything
runs.Location: ~/.config/terok/config.yml
git:
human_name: "Your Name"
human_email: "[email protected]"
image:
agents: "all" # default roster selection for every project
If git.human_name and git.human_email are omitted, terok falls
through to your host git config. Setting them in config.yml is
the way to override the host-level identity for container commits.
To see what you can pick from for image.agents:
terok agents list # list available AI coding agents
Officially-tested base images for image.base_image: ubuntu:24.04,
fedora:44, quay.io/podman/stable, nvcr.io/nvidia/nvhpc. Other
images in the same family (ubuntu:*, debian:*, fedora:*,
nvcr.io/nvidia/*, quay.io/podman/*) work via auto-detection;
anything else needs an explicit image.family: deb|rpm override.
See docs/usage.md
for the full mechanics.
See the Developer Guide.
See LICENSE file.