Skip to main content

GhostMode

The Air-Gapped, Self-Healing Code Repair Agent for Low-Resource Hardware.

GhostMode runs a trusted test command, identifies a likely application frame, asks a local Ollama model for a function replacement, applies it with a backup, and retains it only after the tests pass. It never contacts a network target other than loopback Ollama.

Supported languages

GhostMode currently supports Python, JavaScript/React (.js, .jsx, .ts, .tsx), and PHP/Laravel. Python receives AST syntax validation; JavaScript/React and PHP use conservative structural validation before their own local test tools provide final verification.

Install and run

pip install ghostmode-cli
ollama pull qwen2.5-coder:1.5b
ghostmode doctor

To upgrade an existing installation:

pip install --upgrade ghostmode-cli

Run GhostMode from the project you want to repair:

ghostmode run "pytest -q"

For npm projects:

ghostmode run "npm test"

Inspect a project locally for high-signal risks without changing files:

ghostmode inspect

Each finding includes severity, repair priority, and potential impact so developers can review the most harmful risks first.

Ask the local model to propose one high-priority inspection fix:

ghostmode inspect --propose --test-cmd "pytest -q"

GhostMode asks before applying the proposal. For stronger verification, add a regression test first: GhostMode can apply the proposal only when that failing test turns green.

Use --dry-run to review a diff without changing files. GhostMode never edits tests unless --allow-test-edits is explicitly passed. For Vitest projects, ghostmode run "npm test" automatically uses single-run mode instead of watch mode.

Memory budget

Component Budget
GhostMode Python process under 100 MB RSS
Ollama + 0.5B model about 1 GB
Ollama + 1.5B model about 2 GB

Limitations

Small local models are best at simple, single-function faults. Multi-file, API-wide, and logic-heavy repairs often need human review. Only run trusted test commands: the command is intentionally executed through a shell to support normal test invocations.

Metadata

Release files for ghostmode-cli 0.1.7

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

Source distribution (sdist)

Source distribution for ghostmode-cli 0.1.7
File Size Uploaded
ghostmode_cli-0.1.7.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ghostmode-cli 0.1.7
File Interpreter ABI Platform
ghostmode_cli-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 43.2 kB

Release files / ghostmode_cli-0.1.7.tar.gz

Download URL ghostmode_cli-0.1.7.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ddade2e917a03777b9e01ebfd84022c942c2ff3b354ce98f1c38cc3e0246c94
BLAKE2b-256 checksum
How to use checksums
24052b739a20442a5a894d5419d1ab0b13ff47c3dc20ba57d0c018658986afaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 9, 2026.

Transparency log

Release files / ghostmode_cli-0.1.7-py3-none-any.whl

Download URL ghostmode_cli-0.1.7-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb4c5a271938829b495961d723f629e433a8e001a6fa3a3c652aeeb1114b7458
BLAKE2b-256 checksum
How to use checksums
550332d2fb9e29b1b6b301c494740155d0014bba648421ebeb1d18c22f5c4965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.1

2 release files

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