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 and verify that existing tests still pass:

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

GhostMode asks before applying the proposal. Passing existing tests does not prove the finding is fixed; add a regression test for that behavior.

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

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.6
File Size Uploaded
ghostmode_cli-0.1.6.tar.gz 20.1 kB Details

Built distribution (wheel)

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

Total release size: 38.7 kB

Release files / ghostmode_cli-0.1.6.tar.gz

Download URL ghostmode_cli-0.1.6.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa07ff25657d4ec3296561ca01296bfc48b3d36cfe413632293416ef3fd5266b
BLAKE2b-256 checksum
How to use checksums
4172ff8487ccadb6644126add5e054fb3bd81b2d5c7991341b18eb0bda1ab490
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.6-py3-none-any.whl

Download URL ghostmode_cli-0.1.6-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16cfd67f094d32599dfffef58b0a4abc42b8fd791e6efc7170ef69e5cf6e426b
BLAKE2b-256 checksum
How to use checksums
5b3f4151d6bb755be720b03502b881ac33e92853a1f472e155c4539451768f9c
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

0.1.7

2 release files

This release

0.1.6 This release

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