Ghostcode is a native gstc executable for creating, restoring, annotating, and periodically writing codebase snapshots.
Download the latest .deb package from the project releases page, then install it with:
sudo apt install ./ghostcode_<version>_amd64.debVerify the installed commands:
gstc --help
ghostcode --helpThe ghostcode command is installed as an alias for gstc.
Install build dependencies on Debian or Ubuntu:
sudo apt update
sudo apt install build-essential libncursesw5-dev libpanel-dev dpkg-dev zipBuild the native executable:
makeRun tests:
make testInstall locally:
sudo make installBuild a Debian package:
make debThe package is written to dist/ghostcode_<version>_amd64.deb, where <version> comes from the VERSION file.
Create the native config file in a project root:
gstc initCreate a config with selected overrides:
gstc init --name demo --respect_gitignore false --exclude_dirs build,distShow the config:
gstc config showEdit the config in the native terminal editor:
gstc config editUpdate config values from the classic CLI:
gstc config edit --chunk_bytes 200000 --zip_output trueOpen the native annotation editor:
gstc annotateOpen annotation directly for an included file:
gstc annotate src/app.cCreate a snapshot:
gstcRestore a snapshot from its export ID directory:
gstc restore ghostcode_export/<snapshot_id> -o restored_projectCheck autosnapshot state:
gstc auto statusGhostcode now uses .gc. Legacy .gc.json and .ghostcode.json files are not accepted by the native CLI.
Default .gc order:
name=ghostcode
file_type=txt
include_instructions=false
follow_symlinks=false
zip_output=false
respect_gitignore=true
chunk_bytes=180000
max_file_bytes=300000
encoding=utf-8
include_extensions=
exclude_dirs=
exclude_files=
exclude_globs=
exclude_extensions=
autosnapshot_interval_seconds=900
autosnapshot_out_dir=
annotations_begin
annotations_end
List values are comma-separated and support backslash escapes for commas, backslashes, newlines, and equals signs. Annotation records are stored between annotations_begin and annotations_end.