Skip to main content

File summaries for cgh behind a confidentiality egress gate: agent CLIs, Ollama or any OpenAI-compatible endpoint, plus corpus-level insights

Project description

cgh-summarize

Prose summaries of indexed files for cgh, produced by whatever model you already have, behind a confidentiality egress gate.

pip install cgh-summarize
cgh summarize status      # detected backends, gate posture, coverage
cgh summarize run         # summarize what the gate clears
cgh findings --key summary
cgh insights              # cross-file patterns from the summaries

Backends

Backend Runs Egress
cli:claude claude -p, light model cloud
cli:gemini gemini -p, flash tier cloud
cli:codex codex exec cloud
cli:bob bob -p, IBM BobShell routes the model itself cloud
ollama local Ollama daemon, model is a config line none
openai any OpenAI-compatible endpoint (vLLM, LM Studio, watsonx, ...) cloud
structural cgh's own outline, no model at all none

backend = "auto" (default) picks the first available in that order. Third-party plugins add backends through the summarize.backend extension namespace without touching this plugin.

The egress gate

Before any cloud backend sees a file, its findings are checked: a confidential flag or any block-severity finding (private keys, cloud credentials) stops it, PII findings stop it unless allow_pii = true. With mode = "secure" in the cgh config, the gate switches to allowlist: only files explicitly labeled non-confidential go out. Local backends (ollama, structural) bypass the gate since nothing leaves the machine. Every cloud call is logged to .codegraph/activity.log.

Configuration

[plugin.summarize]
# backend = "auto"          # or cli:claude, cli:gemini, cli:codex,
#                           # cli:bob, ollama, openai, structural
# min_kb = 4                # skip files smaller than this
# allow_pii = false
# language = "en"
# claude_model = "haiku"
# gemini_model = "gemini-2.5-flash"
#                           # no bob_model: BobShell routes the model itself
# ollama_model = "qwen2.5:1.5b"
# ollama_url = "http://127.0.0.1:11434"
# openai_base_url = ""      # e.g. http://localhost:8000/v1
# openai_model = ""
# openai_api_key_env = "OPENAI_API_KEY"

Re-summarize policy: unchanged content is never re-scanned (blob SHA); when content changes, the old summary is carried forward while the drift stays under 30% of lines and fewer than 5 changes accumulated, then a fresh summary is produced.

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

cgh_summarize-0.2.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

cgh_summarize-0.2.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file cgh_summarize-0.2.2.tar.gz.

File metadata

  • Download URL: cgh_summarize-0.2.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cgh_summarize-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8c29a6702240c8a19bca8fa6e3ac5ecddcc1a650906461c3ba8353854b36a832
MD5 8f8fef21285b3e3737f2403590ec5bee
BLAKE2b-256 911f48876fa2dd3402a46da52e60478ee606097960c0d0d271fe1b6a6c8d311c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_summarize-0.2.2.tar.gz:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cgh_summarize-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: cgh_summarize-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cgh_summarize-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e789322df0ff39037a6b3ad05dbce059d5187a75b72367ba1742c09c48bb137d
MD5 5a1c5c9d29f419193d29d5fedb157389
BLAKE2b-256 3fea271dafb1f915d206c4774005bdf2c694ab5355919d2aa77f8bdca62e9644

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_summarize-0.2.2-py3-none-any.whl:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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