This release is a pre-release and may not be stable for production use.
sysadm
A macOS and Linux system-administration agent harness with a native,
line-oriented terminal REPL. It uses ordinary shell input and output, so command
approvals, pasted text, and system sudo prompts stay in the terminal. The CLI
also manages configuration and extensions.
The harness uses mini-swe-agent for the query/action lifecycle and LiteLLM for model requests. The reviewed command gateway is exposed through the built-in bash tool.
Try the actual harness without a model key
Dependencies are installed in this checkout's .venv. From this directory:
./sysadm --demo
Enter a message, answer the confirmation, then report a result or type skip. This explicitly labelled offline demo uses the real mini-swe-agent loop, gateway, event stream, human gates, and checkpoints with a scripted model adapter. It does not call a paid model API. Its example directory-creation command is displayed only; the demo never executes it.
For a fresh installation:
python3 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/sysadm --version
See Make a new release to publish to PyPI. The isolated install procedure for a remote Linux machine is in the first-run guide.
The installed executable is sysadm, replacing the generated bash-- entrypoint. The source launcher automatically uses this checkout's .venv when available. Python 3.11+ is required. Native inspection runs on macOS and Linux.
Make a new release
The package on PyPI is solidx-sysadm. Pushing a matching git tag runs GitHub
Actions and uploads the build. Full SOP: docs/RELEASE.md.
From Codex or Claude Code (preferred), on a clean checkout:
$sysadm-release 0.2.0b1
or in Claude Code:
/sysadm-release 0.2.0b1
Pass the next unused PEP 440 beta, such as 0.2.0b1. The command cuts that
beta from dev, merges to main with a merge commit, then tags stable
0.2.0. Confirm before it pushes or merges. Do not invent a version.
By hand:
- On
dev, setpyproject.tomlandsrc/sysadm/__init__.pytoX.Y.ZbN, move[Unreleased]notes inCHANGELOG.md, commitchore(release): X.Y.ZbN, tagvX.Y.ZbN, andgit push origin dev --follow-tags. - Open a PR
dev->maintitledrelease: X.Y.Z. Merge with a merge commit (do not squash). - On
main, drop thebNsuffix, commitchore(release): X.Y.Z, tagvX.Y.Z, andgit push origin main --follow-tags. - Watch the
releaseworkflow. If PyPI saysinvalid-pending-publisher, add the missing GitHub publisher on the existing project, then re-run the failed job. Do not retag.
| Channel | Branch | Tag | Install |
|---|---|---|---|
| Beta | dev |
vX.Y.ZbN |
pip install --pre solidx-sysadm |
| Stable | main |
vX.Y.Z |
pip install solidx-sysadm |
After a stable release, do not merge main back into dev. Leave dev on
the beta version. Start the next beta cycle separately.
Configure models
./sysadm --configure
The wizard asks for main and fast models, provider IDs, streaming behavior,
provider endpoints, and API key environment variable names. You can instead
import a complete JSON configuration with --configure --config-file PATH.
A noninteractive example, replacing the model IDs with models available to you:
./sysadm --configure \
--fast-model openai/YOUR_FAST_MODEL \
--fast-key-env SYSADM_FAST_API_KEY \
--main-model openai/YOUR_MAIN_MODEL \
--main-key-env SYSADM_MAIN_API_KEY
Set those environment variables in your terminal before starting the agent. The configuration stores model profiles separately from reusable providers:
{
"schema_version": 2,
"models": {
"main": {"providerId": "openrouter", "model": "openai/gpt-6-luna", "behavior": {"streaming": false}},
"fast": {"providerId": "openrouter", "model": "openai/gpt-6-luna", "behavior": {"streaming": false}}
},
"providers": {
"openrouter": {
"type": "openai-compatible",
"apiKeyEnv": "OPENROUTER_API_KEY",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}
The OpenRouter API reference
confirms that base URL. You may use apiKey instead of apiKeyEnv to store the
key inline; config.json is private (mode 0600), and --show-config redacts it.
An environment variable keeps the value out of the config file. Remote base URLs
require HTTPS, while loopback HTTP is allowed. streaming: false returns one
answer event after inference; true emits text as it arrives. Both modes retain
tool and human-interaction events in the REPL.
OpenAI-compatible providers use
LiteLLM's openai/ adapter internally while sending the configured model ID
unchanged to the provider. The older schema is migrated automatically.
./sysadm --show-config
./sysadm --configure --config-file examples/sysadm-openrouter-env.json
The environment example references SYSADM_REASONING_API_KEY, as used in the
earlier setup. The inline-key example demonstrates
the apiKey field with a placeholder; replace that placeholder before importing.
The main profile is the default. The fast profile is available as a
consult_fast_model tool with no tool access of its own. You may explicitly switch
the main session to fast with /model fast.
Work in the terminal REPL
./sysadm
Ask a normal question, such as “Inspect this machine and tell me which diagnostics would help investigate low disk space.”
The REPL prints responses, commands, and output as ordinary terminal text.
Approval prompts accept typed answers, and commands can be selected or pasted
using your terminal's normal shortcuts. If a command fails due to permissions,
sysadm asks before retrying that exact command with sudo; sudo reads its
password directly from the controlling terminal. The approval offers Y for
that retry only, S for permission-triggered elevated retries during this
Sysadm session, or N to deny. Session approval is not a machine-wide command
permission.
Use sysadm --json for NDJSON events in scripts and integrations. Running
sysadm starts the interactive REPL; sysadm --repl remains accepted as an
alias.
| REPL control | Purpose |
|---|---|
| /help | Show controls. |
| /model fast or /model main | Select this session's model profile. |
| /skills, /tools | Inspect extension catalogs. |
| /commands | Show globally approved command forms. |
| /trust-paths | List saved executable-path trust approvals. |
| /untrust-path ID | Revoke a saved executable-path trust approval. |
| /status, /sessions | Inspect local session state. |
| /new, /resume UUID | Start or resume a conversation. |
| /cd PATH | Change this session's working directory without changing the host process directory. |
| /exec COMMAND | Run a globally or locally approved command directly. |
| /check COMMAND | Classify a command without executing it. |
| /answer REQUEST_ID TEXT | Answer a specific pending question. |
| /cancel | Cancel pending and queued work. |
| /exit | Leave; pending work stays resumable. |
Normal text answers the current pending request when the agent is paused.
Confirmations require an explicit yes/no response. In the REPL, Up/Down recalls
recent inputs and Ctrl+R searches them. This line history is kept in memory for
the current process; pending-request answers and /answer or /exec inputs are
not added. EOF leaves a parked session on disk; Ctrl+C cancels the current
turn. Sanitized conversation history and events are stored as described below.
While an approval is open, type yes or no; a command request may also offer
once or remember. Paste commands or answers directly into the prompt.
For questions with a list of choices, each option is shown on its own line with
a unique key; type the key or option to submit it.
There is no task-execution CLI mode: positional prompts are rejected.
Work, inspection, and agent interactions happen inside the REPL or SDK. Use
--json for NDJSON harness events; control responses are separate ui.notice
records. Gateway options and commands are documented in
the gateway reference.
Local configuration and sessions
The existing SolidX naming convention is followed:
~/.solidx/sysadm/
config.json
system_prompt.md
skills/<name>/SKILL.md
skill-drafts/<name>/SKILL.md
tools/<name>.json
policy/policy-state.json
policy/local-allowlist.json
sessions/<uuid>/
checkpoint.json
events.jsonl
turn.lock
Override the directory with --home PATH or SYSADM_HOME.
Checkpoints include conversation messages, model role, counters/cost, working directory, pending human request, and remaining tool calls. They are atomically replaced. A turn lock prevents two processes from advancing the same session. Interrupted running turns are closed out rather than automatically retrying tools.
./sysadm --resume SESSION_UUID
Configuration, checkpoints, and event files are created with private permissions. Known model keys and recognizable credential fields are redacted at model/event/ persistence boundaries. Do not paste secrets into chat. Redaction is not a general-purpose secret scanner, and conversation files remain sensitive.
State is local by default. Model requests send the conversation, active prompt, skill catalog/loaded skills, and selected tool results to your configured provider. Choose the provider and local retention settings accordingly.
Skills and tools
./sysadm --add-skill examples/skills/local-diagnostics
./sysadm --list-skills
./sysadm --remove-skill local-diagnostics
./sysadm --list-skill-drafts
./sysadm --add-skill-draft deployment-estate
./sysadm --add-tool examples/tools/read_head.json
./sysadm --add-tool examples/tools/create_directory_instruction.json
./sysadm --list-tools
./sysadm --remove-tool read_head
./sysadm --set-system-prompt /path/to/system_prompt.md
Start a new session or restart sysadm to pick up configuration/extension changes. Skills are Markdown procedures with optional local reference files. They are not executed as code. The agent lists skill descriptions and loads a relevant body on demand.
To author an operational knowledge skill, ask in the REPL for a
draft—for example,
“Create a deployment-estate skill from this conversation and the NGINX/PM2 files
we inspect; distinguish verified facts from assumptions.” The agent can inspect
local evidence through the existing command gateway, then save_skill_draft
writes a Markdown draft under skill-drafts/. Drafts are not loaded by the agent.
Review the file, edit it as needed, and explicitly install the reviewed draft with
sysadm --add-skill-draft deployment-estate. The installed copy appears under
skills/ and can be packaged and shared with other developers using --add-skill.
The draft records evidence notes, but those notes are not independent verification;
review claims and remove sensitive details before installing or sharing.
Installed tools are validated declarative manifests:
- command tools bind scalar arguments into an argv template and go through the same reviewed gateway as the built-in bash tool;
- instruction tools display a command for another terminal and park the session;
- optional confirmation gates can protect command tools.
Installing a skill or declarative tool does not import or execute plugin code. Commands explicitly approved by the user can run scripts as executables. Reserved built-in names cannot be replaced. A skill or tool manifest cannot approve a command: the gateway still requires a global grant or the user's approval of one exact invocation. See extension contracts.
Agent-requested commands
The agent can request any single executable invocation not already enabled by
global policy. The REPL shows the exact command and asks before saving
or running it. Local approval applies only to that exact executable and argument vector,
survives remote policy refreshes, and can be revoked. Explicit global denials
always win. The runner does not parse shell operators; if a compound command is
needed, the agent may request an explicit shell invocation such as sh -c '...',
which makes the full script visible in the approval prompt. Review all arguments
carefully: an approved command can modify files or services, use elevated access,
or expose sensitive output.
For example, ask sysadm to investigate disk usage. It can run the globally
enabled df -h and du forms, then request pm2 list if needed. A different
argument vector requires a separate approval unless the global policy contains
a broader form.
Inspect or revoke local approvals with:
sysadm --list-local-commands
sysadm --remove-local-command APPROVAL_ID
sysadm --list-local-paths
sysadm --remove-local-path PATH_APPROVAL_ID
Executable directory trust is separate from command approval. When a path check
fails, approve it for one run or choose remember to save that exact directory
for the current operating system. Review saved entries with /trust-paths or
sysadm --list-local-paths; revoke one with sysadm --remove-local-path ID.
Commands needing interactive input can still be presented for you to run in another SSH terminal. The harness waits for your report and will not claim that it ran them.
Built-in tools are bash, request_command_access, list_commands, list_skills, load_skill, consult_fast_model, request_human_input, request_confirmation, and instruct_user.
Limits cover session steps, steps per turn, active turn time, context size, model response size, and tool-output size. Cost is tracked when LiteLLM can price the model; unknown pricing is not treated as a reliable spend cap. Model calls have timeouts and a bounded retry count. No model API call is made by configuration, extension-management commands, or the offline demo.
This remains a policy gateway, not an OS sandbox. It trusts installed utilities and their dependencies. Reads/diagnostics can have incidental cache, audit, automount, and access-time effects. Cancellation is cooperative between model chunks/steps and subject to child-process limits. See the gateway reference.
Embedding the harness
from sysadm import SysadmSession
session = SysadmSession() # ~/.solidx/sysadm
session.subscribe(lambda event: print(event.as_dict()))
session.run_turn("Inspect disk usage and explain your findings.")
if session.pending:
request_id = session.pending["id"]
# Deliver this request to your UI and wait for a real human answer.
session.answer(request_id, "the human's actual answer")
A pull-based adapter is also available:
for event in session.stream_turn("Inspect the current environment."):
deliver_to_ui(event.as_dict())
Both adapters expose the same versioned event contract. A future web UI or outer agent loop can subscribe and send answers by request ID. See architecture and event lifecycle.
Development and verification
.venv/bin/python -W error::ResourceWarning -m unittest discover -s tests -v
Tests exercise the actual mini-swe-agent lifecycle with scripted provider boundaries, real macOS inspection binaries, local persistence, pause/resume, remaining tool calls, limits, extensions, redaction, and provider streaming assembly. Live paid-model inference requires your own configured model IDs and credentials. Linux execution is covered by the CI workflow.
Metadata
Release files for solidx-sysadm 0.2.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solidx_sysadm-0.2.0b4.tar.gz | 79.3 kB | With provenance | Details for solidx_sysadm-0.2.0b4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solidx_sysadm-0.2.0b4-py3-none-any.whl | Python 3 | none | any | Details for solidx_sysadm-0.2.0b4-py3-none-any.whl |
Total release size: 150.3 kB
Release files / solidx_sysadm-0.2.0b4.tar.gz
| Download URL | solidx_sysadm-0.2.0b4.tar.gz |
|---|---|
| Size | 79.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef6cab8e5103b5960f5bd3981837961e8240041c190dfc5f3282b1126e99e89e
|
|
BLAKE2b-256 checksum How to use checksums |
b622f613557c7a049e34349be2c73b96d410b11abf76c573d3b68aa93cdeaccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / solidx_sysadm-0.2.0b4-py3-none-any.whl
| Download URL | solidx_sysadm-0.2.0b4-py3-none-any.whl |
|---|---|
| Size | 71.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bec6590037a1cbcdb1b8b7bc351d256c7c0f96c930e3956f3e538a59665b576e
|
|
BLAKE2b-256 checksum How to use checksums |
d22daf05c5a1a19a5de68e4daf199a22417caf02a312b643b5c616a17382c3a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for solidx-sysadm 0.2.0b4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for solidx_sysadm-0.2.0b4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.