
Show HN: Gal – local-first agent runtime with per-call permissions and rollback
Everyday work — reading logs, editing configs, running tests — stays inside the sandbox. When you genuinely need to install a package or restart a service, /sudo lifts restrictions for one turn — then …
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Local sandbox + /sudo
Everyday work — reading logs, editing configs, running tests — stays inside the sandbox. When you genuinely need to install a package or restart a service, /sudo lifts restrictions for one turn — then the sandbox snaps back automatically. No standing privilege, no manual cleanup.
Remote SSH, same safety
remote tool targets a registered host. The remote session inherits the full sandbox and /sudo model — not a blank shell. Every command passes through the same hook pipeline as local execution.
Kubernetes, safely
Run cluster operations with the credential held outside the sandbox. Split duties across two agents — one holds the kubeconfig, the other operates the cluster — so the model managing Kubernetes can never read the credential it authenticates with. That is architecture, not a promise.
Developers
Read code, run builds, write tests, refactor across files. Sandbox stops it before it touches anything outside the project.
SRE / DevOps
Run on a production host. Diagnose, tail logs, inspect configs — all read-only by default. Escalate one turn at a time with /sudo.
QA / Testers
Spin up reproducers, run integration tests, file structured reports. Pipe mode plugs into CI.
Point it at a CSV, a SQL dump, a notebook directory. Vision-capable models read charts and screenshots — in a single round, the same as any other tool call.
Teams
Bridge Feishu, DingTalk, Slack via outbound WebSocket — no public endpoint. Start at your desk, continue from your phone.
Non-technical users
Double-click galw, chat in a normal window. Themes, font controls, settings panel. Desktop in 9 languages. No terminal required.
Tool builders
OpenAI-compatible HTTP API (gal serve) embeds GAL into your own product. Hooks for access control, built-in audit logging.
Parallel sub-agents
Spawn isolated sub-agents for heavy exploration or independent tasks — each with its own clean context and optional local model selection, returning only the result. Fan out work in parallel; your main session stays lean.
Scripting & CI
One-shot and pipe modes drop GAL into any external loop. echo "fix the bug" | gal chat -m - or gal chat -m "run tests" — perfect for automation, CI pipelines, and shell scripts.
The last few releases came out of running GAL on production hosts and on its own source tree. Here is what landed.
Pause a timer from Desktop or with /timer pause, then resume it later. Paused tasks stay paused across restarts; recurring cron tasks resume at their next scheduled time.
Portable sessions
Archive sessions you are done with, give one a custom id, and export or import whole sessions as a zip. Imports skip ids that already exist, so moving work between machines never duplicates or overwrites it.
Answers in your language
GAL always answers in the language you asked in, and every server-emitted message is localized across all 9 supported locales.
In-place admin mode
Toggle admin mode without losing the conversation, and a prominent banner always shows when you are in it, so you can step back out in one click.
Session secret vault
Register a secret for a session and reference it by name. Values are held encrypted in memory, expanded only at tool-call time, and redacted from results, errors and logs — so an API key never lands in your transcript.
Delegate to a sub-agent running on another host, addressed as endpoint@node. Heavy or untrusted work runs where it belongs, while your main session keeps a clean context and only receives the result.
Reasoning control
Set thinking depth per session with /reasoning — seven levels: auto, off, min, low, medium, high and max. Resolution walks session, model, agent and global config, so one command can trade latency for depth.
Session capabilities
Use /caps or the Desktop capability panel to add or remove tools, skills and MCP servers for the current session. Overrides survive resume without rewriting the underlying agent.
Hardened web access
Reach the same engine from a browser. Each browser is bound to a device signature, enrolment is explicit, refresh tokens rotate with reuse detection, and per-username backoff blunts credential stuffing.
Focus: a resident stance
A focus is a resident stance an agent adopts — a trigger plus a block of method text defined right inside the agent's YAML. At most one is active, switching never changes capability, and the model picks the right one as the task changes. Pause any entry without deleting it.
Skill setup guides
A skill can ship a SETUP.md or INSTALL.md describing its dependencies. GAL detects them and surfaces the steps in the CLI, in the install toast and skill card, and in the Details viewer — so setup is never guesswork.
Unified management
Manual Settings directly manages providers, agents, skills, MCP servers and application settings. Agents can be disabled without deleting their edits, and the provider preset catalog keeps setup guided rather than YAML-first.
Rich media in replies
An answer can show images, video, audio and PDFs — the agent just writes a file reference into its reply and the output area turns it into a real element. Several images become a gallery, and clicking one opens a full-size lightbox with an Open the file button.
Scheduled tasks, rebuilt on cron itself
One-shot, cron and interval timers live in a redesigned panel. Every cron field is a row you open to edit, a field's values and its intervals compose into one comma-joined list — 0,30,9-17/2 from both halves — and the minute grid's sixty chips take a drag for a run, a Shift-click for a span and one click to clear.
Open up to three sessions side by side in the Desktop, drag tabs to reorder them, and maximise one pane to fill the row with a click or Esc. Your open tabs come back exactly on restart — each pane on the session it was showing, with its own scroll.
A config that survives a bad edit
A config writer reparses the file on disk before it rewrites anything, so a hand-edit that broke the structure is refused — the file and its .bak are left exactly as you wrote them, and the error names the file.
Session constraints
Set one standing instruction for a conversation with /profile. It is injected into the system prompt as a resident section — so it never has to be triggered — and it survives agent switches, history clears, archiving and restart.
A command panel that edits like a shell
Press Tab mid-turn to inject a message into the running loop or queue it for the next one. The input is a real editor now — move the cursor by arrow, by word or by display row, and edit with the usual shell shortcuts — and it wraps by terminal cell, so long or non-ASCII guidance stays on screen without a manual newline.
A tray icon that comes back
On Windows the Desktop re-registers its tray icon whenever Explorer restarts, so the app stays reachable. If the icon cannot be restored, the close button quits cleanly instead of hiding the window behind an icon that answers no click.
A timer that fires off the clock
A recurring timer can carry a random offset — 5m, ±5m, +30s, -10m — so an unattended task fires somewhere inside a window instead of on a recognisable clock time. The CLI's --jit, the gal tool and the panel all share one grammar.
Dialogs that are truly modal
The Constraints editor and the Scheduled Tasks panel dim the whole window, not just their own pane — so a stray click on the tab bar can no longer hide a draft without applying or discarding it. Each gains a corner × that runs the same dismissal, so two doors never disagree.
A browser the agent can lose and recover
The browser tool now survives its own browser: a wedged instance is detectable and restartable instead of taking the tool down with it, and every call is bounded so one that never returns costs a single action. Switch its window between visible and hidden without relaunching — the page, its scroll position and its login survive the switch — and serve a local directory to drive a local html/h5 page.
A task that keeps its run history
The Scheduled Tasks panel's toolbar opens a Run History: the last 30 firings with their status, time, duration, agent and the reason a run stopped. That is the answer to "this task never seems to fire" — and a tall task or cron editor now scrolls instead of pushing its buttons off screen.
A picture that costs one round
A vision round is now an ordinary round: it runs with the agent's own tools, and its answer — text and tool calls together — is one message the primary model reads on the next round. A screenshot understood in one round no longer runs a second just to say so, and images unload when the round ends.
A repository that predates the sandbox
Older sandbox versions could leave integrity labels on a working tree, preventing writes such as git commit creating .git/index.lock. Current Windows safe mode uses a WRITE_RESTRICTED token and directory permissions instead: it does not lower integrity levels or relabel files, and removes labels left by older versions at startup.
The Windows permissions panel is now one action row — Check, Fix and the summary share a baseline, Fix stays disabled until a scan finds something pending, and the report picks the primary action. The per-command cards fold behind a Details (n) disclosure instead of filling the panel, and it is renamed Safe Mode Permissions to match the setting it fixes.
The exit code is the only verdict
A command that succeeded but wrote to stderr is no longer reported as a failure — the exit code decides, and the stderr is noted alongside. A compression marker names what it archived instead of showing a bare count, and a sandbox timeout now returns what the process printed before it was killed.
Type /sudo where you already type it
The composer now understands the one-turn bypass instead of treating it as chat: a bare /sudo and Enter arms the lock and sends nothing, /sudo <msg> sends the message with the bypass on, and a half-typed /su completes to /sudo rather than going out as a message. The hint row takes Tab, dismisses on Escape, and clicking it completes without ever running anything.
A sandbox that can reach your proxy
A Windows system proxy is a per-user registry value that WinINET reads but pip, npm, git, curl and Go do not. Safe mode passes its proxy settings to sandboxed commands, including local loopback proxies; the current restricted-token sandbox does not restrict network access or require a loopback exemption.
A plugin's promises, actually kept
sandbox: true was a lie whenever the session had not run bash yet — the sandbox instance was created only inside the bash tool, so a plugin invoked first ran on the host with safe mode still enabled. It now fails closed instead, and stdin: json produces a payload a JSON parser accepts, enum is enforced rather than merely advertised, and hooks: is wired instead of parsed and ignored.
A steadier Windows Desktop
Tray notifications now run on the owning window thread, preventing long-running reminders from crashing Desktop. Startup diagnostics cannot stop the window from opening, and crash or hang evidence is saved for the next launch.
Smaller surprises in daily work
Failed edits explain the closest match; file listings can include hashes; debug logs rotate and expire; context compression records its costs.
A sandbox that matches the kernel
The Windows sandbox now starts every child with a write-restricted token, and AppContainer is gone. A write is allowed exactly where a Modify ACE names this session's SID, reads are not restricted at all, and a leftover Low integrity label is removed rather than raised back. Every description of the sandbox now matches what the kernel actually enforces.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。