Repository navigation
feat: add Agent OS Shell for issue #750 - #925
Merged
AmitoVrito merged 5 commits intoAug 12, 2026
Merged
Conversation
This was referenced Aug 12, 2026
Collaborator
|
Reviewed — the security posture (argv-only, fail-closed destructive gate, signed receipts) is strong. I pushed fixes for two bugs that trigger on everyday input directly to the branch: Fixed (blocking):
Both ship with regression tests (bounded output + non-hanging pipeline; cue-word quoted args staying shell tokens). Non-blocking follow-ups:
|
Two correctness fixes in the Agent OS Shell: - DirectShellExecutor used Process.communicate(), which buffers the child's entire stdout/stderr into memory before max_output_bytes is applied, so an unbounded producer (cat /dev/zero, yes) could exhaust RAM, and a pipeline (yes | head -1) would hang because the producer never receives SIGPIPE. Replace it with a streaming _drain() that reads under a hard byte cap and kills the child at the cap; a capped producer still feeds the next stage. - The lexer's _looks_like_natural_language treated any quoted span beginning with a cue word (find/run/search/...) as natural language regardless of position, so `git commit -m "find and fix the bug"` and `grep "search term" file` silently dropped the quoted argument. Gate the cue-word and bare-phrase heuristics on the quote opening a command; keep only the explicit nl:/ask: sentinels unconditional. Adds regression tests for both (bounded output + non-hanging pipeline; cue-word quoted args staying shell tokens). Fixes SynapseKit#929 Fixes SynapseKit#930 Co-authored-by: Dhruv Garg <[email protected]>
AmitoVrito
force-pushed
the
feat/issue-750-agent-os-shell
branch
from
August 12, 2026 20:18
fbc5503 to
3df9ac9
Compare
The Agent OS Shell (SynapseKit#750) published nothing to the Live EventBus, so shell plans and executions were invisible in the glass-box dashboard. Auto-instrument ShellSession the same way every other subsystem is wired: plan and run publish shell.plan / shell.run events (with the input). Async contract preserved; no-op when Live is off. Adds a no-mock test running a real ShellSession over a real subprocess. Records the feature and both shell bug fixes in the changelog. Co-authored-by: Dhruv Garg <[email protected]>
Collaborator
|
Follow-up: wired the Agent OS Shell into SynapseKit Live (commit |
Collaborator
|
Merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Agent OS Shell described in #750: a local-first hybrid shell that accepts ordinary shell syntax and quoted natural-language requests in the same input line.
Closes #750
What changed
synapsekit.shellcontracts, mixed-input lexer, direct argv executor, conditional operators, bounded output, timeouts, and subprocess cleanup.LLMShellPlannersupport for local-firstBaseLLM/EdgeRuntimeintegrations.synapsekit shell, standalonesynshell, key generation, history, status, completion, init, JSON, dry-run, and audit options.Verification
16 passedintests/shell515 files scanned)13 source files)git diff --checkcleanThe branch contains three logical commits and no co-author trailers.