Skip to main content

Privacy proxy for developers — hide business context before sharing code with AI

Project description

GhostCode — Privacy Proxy for Developers

Hide your business logic before sharing code with LLMs. Local-first, open-source, zero telemetry.

GhostCode replaces your private symbols (variable names, functions, strings, comments) with opaque ghost tokens before you share code with AI. The AI sees gv_001 instead of customer_revenue. When you get your answer back, GhostCode restores everything.

Installation

pip install ghostcode

Quick Start

# Hide a file (Level 2: names + comments + literals)
ghost hide my_code.py --level 2

# Paste the ghost output into ChatGPT/Claude, get a response, save it

# Reveal — restore original names in the AI's response
ghost reveal ai_response.py --map-file .ghostcode/maps/my_code_*.json

Privacy Levels

Level What it does
1 Rename symbols + strip comments
2 + Scrub string/numeric literals
3 + Function isolation with stubs
4 + Dimension generalization

Pre-Send Risk Report

Every ghost hide shows a risk assessment:

  • Symbols and literals scrubbed/flagged/kept
  • Structural patterns visible to the AI
  • Estimated domain exposure: LOW / MEDIUM / HIGH

VS Code Extension

Install the GhostCode VS Code extension for one-click hide/reveal buttons in the editor toolbar.

Supported Languages

  • Python (.py)
  • C/C++ (.cpp, .cc, .c, .h, .hpp)

Features

  • 🔒 AST-based symbol renaming — not regex, real parsing
  • 📊 Smart literal scrubbing — keeps 0, 1, pi; scrubs URLs, API keys, business strings
  • 🗺️ Ghost Map — bidirectional mapping stored as JSON
  • 🔐 Encrypted maps — optional AES encryption for map files
  • 📋 Audit logging — immutable JSON logs for compliance
  • 🔄 Round-trip reveal — restores names in both code and AI explanations
  • Zero cloud, zero telemetry — everything runs locally

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghostcode-0.5.0.tar.gz (63.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghostcode-0.5.0-py3-none-any.whl (64.4 kB view details)

Uploaded Python 3

File details

Details for the file ghostcode-0.5.0.tar.gz.

File metadata

  • Download URL: ghostcode-0.5.0.tar.gz
  • Upload date:
  • Size: 63.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ghostcode-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c9c6f4f1b0d79520c1e3bf29f83d0b673e183dfe1ae89d276a7a753652146af4
MD5 31e8f825283dcc71b8ebf17f1d0e5a39
BLAKE2b-256 43badda585a332a2596fa872e529ba66aa0e7119f94aed6f24a31c42628589ae

See more details on using hashes here.

File details

Details for the file ghostcode-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ghostcode-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 64.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ghostcode-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54deca8ce1e89a34a9f1d7f516d52a82560d18f2ca8ef42a00d13c5cbfebb088
MD5 8a204b7c7f95b3835dd29add79026a72
BLAKE2b-256 140809dc18300f31aeddb42b6ff332e2b1698181f39bf84511dec1ba725530be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page