Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sysadm

A macOS and Linux system-administration agent harness. The main interface is a full-screen, streaming terminal UI (TUI) with a conversation log, live status, and a persistent input bar. The CLI 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:

  1. On dev, set pyproject.toml and src/sysadm/__init__.py to X.Y.ZbN, move [Unreleased] notes in CHANGELOG.md, commit chore(release): X.Y.ZbN, tag vX.Y.ZbN, and git push origin dev --follow-tags.
  2. Open a PR dev -> main titled release: X.Y.Z. Merge with a merge commit (do not squash).
  3. On main, drop the bN suffix, commit chore(release): X.Y.Z, tag vX.Y.Z, and git push origin main --follow-tags.
  4. Watch the release workflow. If PyPI says invalid-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 TUI or line-oriented 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 UI

./sysadm

Ask a normal question, such as “Inspect this machine and tell me which diagnostics would help investigate low disk space.”

The TUI renders streamed answers, reviewed commands and their output, approval cards, and status in a scrollable conversation. Approval replies go through the same input bar. When a separately approved command needs sudo, sysadm suspends the full-screen interface so sudo can securely read its password from the controlling terminal, then restores the TUI when the operation and agent turn finish.

Use --plain for the line-oriented REPL, or --json for NDJSON events. Both remain available for scripts, redirected terminals, and troubleshooting.

TUI 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.
/history, /history clear Review or erase local prompt history.
/copy Copy the most recently shown command to the clipboard.
/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. The TUI saves up to 500 recent prompts in the private input-history.json file under the sysadm home directory. Use Up/Down to browse, Ctrl+R to search, /history clear to clear saved entries, or --no-history to keep entries in memory only. Approval replies, /exec commands, and /answer payloads are excluded. EOF leaves a parked session on disk; Ctrl+C requests cancellation. Sanitized conversation history and events are stored as described below.

While an approval is open, use Y/N to approve or deny, O to approve this run, and R to remember an executable directory when that option is offered. Choices are case-insensitive. Press C to copy the command shown in the request; /copy copies the most recently shown command. For questions with a list of choices, each option is shown on its own line with a unique key; pressing that key submits the complete matching option.

There is no task-execution CLI mode: positional prompts are rejected. Work, inspection, and agent interactions happen inside the TUI, plain REPL, or SDK. Use --json for NDJSON harness events; UI 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
  input-history.json  # TUI prompt history unless --no-history is used
  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 TUI or 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 TUI or 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.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solidx-sysadm 0.2.0b1
File Size Uploaded Provenance Actions
solidx_sysadm-0.2.0b1.tar.gz 87.0 kB With provenance Details for solidx_sysadm-0.2.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solidx-sysadm 0.2.0b1
File Interpreter ABI Platform Actions
solidx_sysadm-0.2.0b1-py3-none-any.whl Python 3 none any Details for solidx_sysadm-0.2.0b1-py3-none-any.whl

Total release size: 167.2 kB

Release files / solidx_sysadm-0.2.0b1.tar.gz

Download URL solidx_sysadm-0.2.0b1.tar.gz
Size 87.0 kB
Tags Source
SHA-256 checksum
How to use checksums
83670765320c981bd1099a707e23538805ed9c44d9eb25d7561ad990ac01a016
BLAKE2b-256 checksum
How to use checksums
6e440930ca5115ddebeff465b2a0dbb33df99a806152a507f91e9234b5bbfdc5
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 23, 2026.

Transparency log

Release files / solidx_sysadm-0.2.0b1-py3-none-any.whl

Download URL solidx_sysadm-0.2.0b1-py3-none-any.whl
Size 80.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5261a03aa34c84c0ef564aacadb6198df5fbd17fb856d6f7bdafd0181fac5f52
BLAKE2b-256 checksum
How to use checksums
d08313eab57a3bcec5e3ebdc5fbaca1d3069bdf8af048b005d08ad496baefa43
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 23, 2026.

Transparency log

Security for solidx-sysadm 0.2.0b1

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.

Select from 2 files

Attestation for solidx_sysadm-0.2.0b1.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 23, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page