#533 by GitHub stars
open-compress/claw-compactor
Claw Compactor — 6-layer token compression skill for OpenClaw agents. Cuts workspace token spend by 50–97% using deterministic rule-engines plus Engram: a real-time, LLM-driven Observational Memory system. Run at session start for automatic savings reporting.
History
Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.
View weekly changes
SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
c1b936d40b11 → c1b936d40b11
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → c1b936d40b11
No earlier version was observed for comparison.
Heat
0.8- Star growth, last 7 daysAhead of 6% of tracked repositories
- Star growth, last 24 hoursAhead of 3% of tracked repositories
- Rank movement, last 7 daysAhead of 30% of tracked repositories
- Commits, last 30 daysAhead of 0% of tracked repositories
- Accounts asking about it through MCP, last 7 daysNot available
- Hot votes this weekAhead of 0% of tracked repositories
Heat never changes the order by stars, and sponsorship never touches it. How heat works
Stars over time
Individual skills in this repository
How it works
claw-compactor
When your agent uses it
Claw Compactor — 6-layer token compression skill for OpenClaw agents. Cuts workspace token spend by 50–97% using deterministic rule-engines plus Engram: a real-time, LLM-driven Observational Memory system. Run at session start for automatic savings reporting.
What it loads into context
Frontmatter
146 tokensAlways available to the agent
SKILL.md
3,600 tokensWhen the skill is activated
Reference documents
30,311 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Overview
- Auto Mode (Recommended — Run at Session Start)
- Core Commands
- Engram — Layer 6: Real-Time Observational Memory
- Integration with OpenClaw Memory System
- OpenClaw Skill Installation
- Heartbeat / Cron Automation
- Output Artifacts Reference
- Troubleshooting
Scripts executed separately
benchmark/__init__.pybenchmark/compressors.pybenchmark/evaluate.pybenchmark/report.pybenchmark/run_benchmark.pyproxy/compression-middleware.mjsproxy/event-log.mjsproxy/fair-queue.mjsproxy/metrics-store.mjsproxy/package.jsonproxy/process-registry.mjsproxy/quantum-lock.mjsproxy/rate-limiter.mjsproxy/redis-client.mjsproxy/retry.mjsproxy/rewind-handler.mjsproxy/server.mjsproxy/session-affinity.mjsproxy/start.shproxy/test/event-log.test.mjsproxy/test/helpers.mjsproxy/test/integration.test.mjsproxy/test/metrics-store.test.mjsproxy/test/process-registry.test.mjsproxy/test/rate-limiter.test.mjsproxy/test/redis-client.test.mjsproxy/test/token-tracker.test.mjsproxy/token-tracker.mjsscripts/__init__.pyscripts/audit_memory.pyscripts/benchmark_fusion.pyscripts/cli.pyscripts/compress_memory.pyscripts/compressed_context.pyscripts/dedup_memory.pyscripts/dictionary_compress.pyscripts/engram-auto.shscripts/engram_auto.pyscripts/engram_cli.pyscripts/estimate_tokens.pyscripts/generate_summary_tiers.pyscripts/lib/__init__.pyscripts/lib/cli.pyscripts/lib/config.pyscripts/lib/crunch_bench.pyscripts/lib/dedup.pyscripts/lib/dictionary.pyscripts/lib/engram.pyscripts/lib/engram/http.pyscripts/lib/engram_http.pyscripts/lib/engram_learner.pyscripts/lib/engram_llm.pyscripts/lib/engram_prompts.pyscripts/lib/engram_storage.pyscripts/lib/engram_utils.pyscripts/lib/exceptions.pyscripts/lib/feedback.pyscripts/lib/fusion/__init__.pyscripts/lib/fusion/base.pyscripts/lib/fusion/cache_prefix.pyscripts/lib/fusion/compact_hooks.pyscripts/lib/fusion/content_detector.pyscripts/lib/fusion/content_stripper.pyscripts/lib/fusion/conversation_summarizer.pyscripts/lib/fusion/cortex.pyscripts/lib/fusion/diff_crunch.pyscripts/lib/fusion/engine.pyscripts/lib/fusion/ionizer.pyscripts/lib/fusion/llm_summarizer.pyscripts/lib/fusion/log_crunch.pyscripts/lib/fusion/neurosyntax.pyscripts/lib/fusion/nexus.pyscripts/lib/fusion/nexus_model.pyscripts/lib/fusion/photon.pyscripts/lib/fusion/pipeline.pyscripts/lib/fusion/plan_reinjection.pyscripts/lib/fusion/quantum_lock.pyscripts/lib/fusion/search_crunch.pyscripts/lib/fusion/semantic_dedup.pyscripts/lib/fusion/skill_reinjection.pyscripts/lib/fusion/structural_collapse.pyscripts/lib/fusion/tiered_compaction.pyscripts/lib/fusion/tool_result_budget.pyscripts/lib/markdown.pyscripts/lib/rewind/__init__.pyscripts/lib/rewind/marker.pyscripts/lib/rewind/retriever.pyscripts/lib/rewind/store.pyscripts/lib/rle.pyscripts/lib/tokenizer_optimizer.pyscripts/lib/tokens.pyscripts/lib/unicode_maps.pyscripts/mem_compress.pyscripts/observation_compressor.pytests/__init__.pytests/conftest.pytests/test_audit_comprehensive.pytests/test_audit_memory.pytests/test_benchmark.pytests/test_cli_commands.pytests/test_compress_memory.pytests/test_compress_memory_comprehensive.pytests/test_compressed_context.pytests/test_config.pytests/test_conversation_summarizer.pytests/test_cortex.pytests/test_crunch_bench.pytests/test_dedup_memory.pytests/test_dictionary.pytests/test_dictionary_comprehensive.pytests/test_engram.pytests/test_engram_auto.pytests/test_engram_learner.pytests/test_error_handling.pytests/test_estimate_tokens.pytests/test_existing_edge_cases.pytests/test_feedback.pytests/test_fusion_engine.pytests/test_fusion_pipeline.pytests/test_generate_summary_tiers.pytests/test_integration.pytests/test_lib_dedup.pytests/test_lib_markdown.pytests/test_lib_tokens.pytests/test_main_entry.pytests/test_markdown_advanced.pytests/test_neurosyntax.pytests/test_new_features.pytests/test_new_features_v8.pytests/test_nexus.pytests/test_observation_comprehensive.pytests/test_observation_compressor.pytests/test_performance.pytests/test_phase3_structured.pytests/test_photon.pytests/test_pipeline.pytests/test_quantum_lock.pytests/test_real_workspace.pytests/test_rewind.pytests/test_rle.pytests/test_rle_comprehensive.pytests/test_roundtrip.pytests/test_roundtrip_comprehensive.pytests/test_semantic_dedup.pytests/test_structural_collapse.pytests/test_tiered_compaction.pytests/test_tiers_comprehensive.pytests/test_token_economics.pytests/test_tokenizer_optimizer.pytests/test_tokenizer_optimizer_comprehensive.pytests/test_tokens.pytests/test_tool_result_budget.pytests/test_v8_deep.py
Files
.github/DISCUSSION_TEMPLATE/ideas.ymlasset830 bytes.github/DISCUSSION_TEMPLATE/q-a.ymlasset571 bytes.github/FUNDING.ymlasset49 bytes.github/ISSUE_TEMPLATE/bug_report.mddoc701 bytes.github/ISSUE_TEMPLATE/config.ymlasset285 bytes.github/ISSUE_TEMPLATE/feature_request.mddoc784 bytes.github/PULL_REQUEST_TEMPLATE.mddoc1,208 bytes.github/workflows/ci.ymlasset2,361 bytes.github/workflows/docs.ymlasset484 bytes.github/workflows/publish.ymlasset466 bytes.github/workflows/stale.ymlasset522 bytes.gitignoreasset145 bytesARCHITECTURE.mddoc27,022 bytesCHANGELOG.mddoc4,244 bytesCITATION.cffasset706 bytesCODE_OF_CONDUCT.mddoc2,336 bytesCONTRIBUTING.mddoc4,001 bytesLICENSEasset1,078 bytesREADME.mddoc16,755 bytesSECURITY.mddoc440 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesSKILL.mdcore14,002 bytesassets/banner.pngasset909,779 bytesassets/banner.webpasset36 bytesbenchmark/RESULTS.mddoc5,904 bytesbenchmark/__init__.pyruns20 bytesbenchmark/compressors.pyruns17,973 bytesbenchmark/data/sample_01_devops.jsonasset20,694 bytesbenchmark/data/sample_02_trading.jsonasset15,836 bytesbenchmark/data/sample_03_ml_short.jsonasset8,757 bytesbenchmark/data/sample_04_mixed_long.jsonasset22,600 bytesbenchmark/data/sample_05_sysadmin.jsonasset15,159 bytesbenchmark/evaluate.pyruns9,851 bytesbenchmark/report.pyruns10,448 bytesbenchmark/results/benchmark_results.jsonasset16,892 bytesbenchmark/run_benchmark.pyruns8,230 bytesdocs/README.mddoc4,919 bytesdocs/api/engine.mddoc1,110 bytesdocs/api/rewind.mddoc1,258 bytesdocs/api/stages.mddoc893 bytesdocs/architecture/overview.mddoc1,981 bytesdocs/architecture/pipeline.mddoc2,018 bytesdocs/architecture/stages.mddoc1,778 bytesdocs/benchmarks.mddoc4,627 bytesdocs/contributing.mddoc149 bytesdocs/getting-started/installation.mddoc712 bytesdocs/getting-started/quickstart.mddoc1,865 bytesdocs/index.mddoc2,031 bytesengram.yamlasset1,528 bytesmkdocs.ymlasset1,647 bytesproxy/.gitignoreasset62 bytesproxy/README.mddoc3,767 bytesproxy/compression-middleware.mjsruns10,064 bytesproxy/dashboard.htmlasset40,632 bytesproxy/event-log.mjsruns5,942 bytesproxy/fair-queue.mjsruns8,739 bytesproxy/metrics-store.mjsruns11,444 bytesproxy/package-lock.jsonasset4,510 bytesproxy/package.jsonruns375 bytesproxy/portal.htmlasset9,211 bytesproxy/process-registry.mjsruns12,217 bytesproxy/quantum-lock.mjsruns8,863 bytesproxy/rate-limiter.mjsruns3,705 bytesproxy/redis-client.mjsruns2,097 bytesproxy/retry.mjsruns4,794 bytesproxy/rewind-handler.mjsruns9,393 bytesproxy/server.mjsruns82,293 bytesproxy/session-affinity.mjsruns4,609 bytesproxy/start.shruns723 bytesproxy/test/event-log.test.mjsruns7,479 bytesproxy/test/helpers.mjsruns2,425 bytesproxy/test/integration.test.mjsruns10,106 bytesproxy/test/metrics-store.test.mjsruns7,356 bytesproxy/test/process-registry.test.mjsruns12,753 bytesproxy/test/rate-limiter.test.mjsruns3,860 bytesproxy/test/redis-client.test.mjsruns1,748 bytesproxy/test/token-tracker.test.mjsruns6,877 bytesproxy/token-tracker.mjsruns13,960 bytespyproject.tomlasset2,275 bytesreferences/README.mddoc1,438 bytesreferences/architecture.mddoc12,211 bytesreferences/benchmarks.mddoc4,179 bytesreferences/compression-prompts.mddoc1,942 bytesreferences/compression-techniques.mddoc8,237 bytesreferences/testing.mddoc6,307 bytesscripts/__init__.pyruns0 bytesscripts/audit_memory.pyruns6,522 bytesscripts/benchmark_fusion.pyruns48,706 bytesscripts/cli.pyruns746 bytesscripts/compress_memory.pyruns7,881 bytesscripts/compressed_context.pyruns8,798 bytesscripts/dedup_memory.pyruns5,086 bytesscripts/dictionary_compress.pyruns5,617 bytesscripts/engram-auto.shruns5,058 bytesscripts/engram_auto.pyruns41,036 bytesscripts/engram_cli.pyruns17,522 bytesscripts/estimate_tokens.pyruns4,297 bytesscripts/generate_summary_tiers.pyruns8,837 bytesscripts/lib/__init__.pyruns1,113 bytesscripts/lib/cli.pyruns648 bytesscripts/lib/config.pyruns11,407 bytesscripts/lib/crunch_bench.pyruns10,354 bytesscripts/lib/dedup.pyruns3,425 bytesscripts/lib/dictionary.pyruns9,918 bytesscripts/lib/engram.pyruns16,669 bytesscripts/lib/engram/http.pyruns5,358 bytesscripts/lib/engram_http.pyruns5,489 bytesscripts/lib/engram_learner.pyruns14,681 bytesscripts/lib/engram_llm.pyruns3,628 bytesscripts/lib/engram_prompts.pyruns7,176 bytesscripts/lib/engram_storage.pyruns9,269 bytesscripts/lib/engram_utils.pyruns2,633 bytesscripts/lib/exceptions.pyruns535 bytesscripts/lib/feedback.pyruns5,876 bytesscripts/lib/fusion/__init__.pyruns2,807 bytesscripts/lib/fusion/base.pyruns3,723 bytesscripts/lib/fusion/cache_prefix.pyruns6,672 bytesscripts/lib/fusion/compact_hooks.pyruns6,986 bytesscripts/lib/fusion/content_detector.pyruns10,810 bytesscripts/lib/fusion/content_stripper.pyruns6,195 bytesscripts/lib/fusion/conversation_summarizer.pyruns8,916 bytesscripts/lib/fusion/cortex.pyruns1,877 bytesscripts/lib/fusion/diff_crunch.pyruns7,669 bytesscripts/lib/fusion/engine.pyruns24,229 bytesscripts/lib/fusion/ionizer.pyruns9,344 bytesscripts/lib/fusion/llm_summarizer.pyruns12,608 bytesscripts/lib/fusion/log_crunch.pyruns8,316 bytesscripts/lib/fusion/neurosyntax.pyruns14,058 bytesscripts/lib/fusion/nexus.pyruns10,724 bytesscripts/lib/fusion/nexus_model.pyruns7,026 bytesscripts/lib/fusion/photon.pyruns17,817 bytesscripts/lib/fusion/pipeline.pyruns3,332 bytesscripts/lib/fusion/plan_reinjection.pyruns9,528 bytesscripts/lib/fusion/quantum_lock.pyruns7,844 bytesscripts/lib/fusion/search_crunch.pyruns8,578 bytesscripts/lib/fusion/semantic_dedup.pyruns14,351 bytesscripts/lib/fusion/skill_reinjection.pyruns6,435 bytesscripts/lib/fusion/structural_collapse.pyruns16,271 bytesscripts/lib/fusion/tiered_compaction.pyruns15,408 bytesscripts/lib/fusion/tool_result_budget.pyruns4,597 bytesscripts/lib/markdown.pyruns9,852 bytesscripts/lib/rewind/__init__.pyruns396 bytesscripts/lib/rewind/marker.pyruns1,506 bytesscripts/lib/rewind/retriever.pyruns2,181 bytesscripts/lib/rewind/store.pyruns3,286 bytesscripts/lib/rle.pyruns5,104 bytesscripts/lib/tokenizer_optimizer.pyruns5,806 bytesscripts/lib/tokens.pyruns2,607 bytesscripts/lib/unicode_maps.pyruns3,372 bytesscripts/mem_compress.pyruns29,395 bytesscripts/observation_compressor.pyruns15,106 bytestests/__init__.pyruns0 bytestests/conftest.pyruns3,316 bytestests/test_audit_comprehensive.pyruns4,020 bytestests/test_audit_memory.pyruns2,299 bytestests/test_benchmark.pyruns4,762 bytestests/test_cli_commands.pyruns7,626 bytestests/test_compress_memory.pyruns3,811 bytestests/test_compress_memory_comprehensive.pyruns6,799 bytestests/test_compressed_context.pyruns5,219 bytestests/test_config.pyruns1,901 bytestests/test_conversation_summarizer.pyruns7,318 bytestests/test_cortex.pyruns8,922 bytestests/test_crunch_bench.pyruns17,923 bytestests/test_dedup_memory.pyruns4,168 bytestests/test_dictionary.pyruns11,069 bytestests/test_dictionary_comprehensive.pyruns7,806 bytestests/test_engram.pyruns44,177 bytestests/test_engram_auto.pyruns39,426 bytestests/test_engram_learner.pyruns15,129 bytestests/test_error_handling.pyruns6,575 bytestests/test_estimate_tokens.pyruns3,027 bytestests/test_existing_edge_cases.pyruns15,568 bytestests/test_feedback.pyruns12,647 bytestests/test_fusion_engine.pyruns36,725 bytestests/test_fusion_pipeline.pyruns18,551 bytestests/test_generate_summary_tiers.pyruns3,621 bytestests/test_integration.pyruns10,197 bytestests/test_lib_dedup.pyruns4,244 bytestests/test_lib_markdown.pyruns12,436 bytestests/test_lib_tokens.pyruns3,272 bytestests/test_main_entry.pyruns6,254 bytestests/test_markdown_advanced.pyruns8,984 bytestests/test_neurosyntax.pyruns14,497 bytestests/test_new_features.pyruns2,752 bytestests/test_new_features_v8.pyruns46,652 bytestests/test_nexus.pyruns21,141 bytestests/test_observation_comprehensive.pyruns9,834 bytestests/test_observation_compressor.pyruns4,754 bytestests/test_performance.pyruns6,840 bytestests/test_phase3_structured.pyruns24,329 bytestests/test_photon.pyruns16,322 bytestests/test_pipeline.pyruns4,402 bytestests/test_quantum_lock.pyruns14,802 bytestests/test_real_workspace.pyruns6,615 bytestests/test_rewind.pyruns20,518 bytestests/test_rle.pyruns3,671 bytestests/test_rle_comprehensive.pyruns4,629 bytestests/test_roundtrip.pyruns8,877 bytestests/test_roundtrip_comprehensive.pyruns8,121 bytestests/test_semantic_dedup.pyruns27,416 bytestests/test_structural_collapse.pyruns31,673 bytestests/test_tiered_compaction.pyruns7,759 bytestests/test_tiers_comprehensive.pyruns5,921 bytestests/test_token_economics.pyruns9,729 bytestests/test_tokenizer_optimizer.pyruns5,930 bytestests/test_tokenizer_optimizer_comprehensive.pyruns8,058 bytestests/test_tokens.pyruns803 bytestests/test_tool_result_budget.pyruns4,609 bytestests/test_v8_deep.pyruns53,684 bytes
Read SKILL.md
# Claw Compactor — OpenClaw Skill Reference
## Overview
Claw Compactor reduces token usage across the full OpenClaw workspace using
6 compression layers:
| Layer | Name | Cost | Notes |
|-------|------|------|-------|
| 1 | Rule Engine | Free | Dedup, strip filler, merge sections |
| 2 | Dictionary Encoding | Free | Auto-codebook, `$XX` substitution |
| 3 | Observation Compression | Free | Session JSONL → structured summaries |
| 4 | RLE Patterns | Free | Path/IP/enum shorthand |
| 5 | Compressed Context Protocol | Free | Format abbreviations |View the complete source on GitHubSkills included
- claw-compactor
Repository facts
- License
- MIT
- Created
- Feb 10, 2026
- Last pushed
- Apr 1, 2026
- Forks
- 182
- Open issues
- 2
- Project activity
- Slowing
Rank over the last 12 weeks
Now #533 · best #382 · down 89 in 30 days
- #523 on Oct 31
- #524 on Nov 1
- #528 on Nov 2
- #530 on Nov 3
- #531 from Nov 4 to Nov 5
- #533 since Nov 6
24 earlier periods
- #359 on Aug 2
- #361 on Aug 5
- #366 on Aug 8
- #373 on Aug 12
- #382 on Aug 16
- #385 on Aug 20
- #384 on Aug 21
- #412 on Sep 1
- #407 on Sep 2
- #417 on Sep 8
- #415 on Sep 9
- #417 on Sep 11
- #422 on Sep 19
- #440 on Sep 22
- #443 on Sep 28
- #447 on Sep 30
- #444 on Oct 6
- #455 on Oct 10
- #465 on Oct 17
- #484 on Oct 22
- #507 on Oct 25
- #516 on Oct 28
- #517 on Oct 29
- #522 on Oct 30
Before you install
Network or broad shellAutomated signals, not a guarantee
Checked Nov 3, 2026
Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.
Show 14 notes
SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedSKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- 6 dangerous shell commandsin 4 files: benchmark/data/sample_05_sysadmin.json:18 benchmark/data/sample_01_devops.json:60 proxy/test/integration.test.mjs:19 and 1 more
- 283 network referencesin 42 files: proxy/package-lock.json:14 README.md:2 tests/test_engram_auto.py:346 and 39 more
- 11 obfuscation signalsin 2 files: tests/test_photon.py:63 scripts/lib/fusion/photon.py:85
- 3 instruction override signalsin 1 file: proxy/server.mjs:60
- 153 executable scriptsin 153 files: benchmark/__init__.py:1 benchmark/compressors.py:1 benchmark/evaluate.py:1 and 150 more
- 204 references to secretsin 29 files: tests/test_engram_auto.py:290 scripts/benchmark_fusion.py:482 scripts/lib/config.py:8 and 26 more
- No requests to vote in Hot
Show all 660 signals by file
.github/DISCUSSION_TEMPLATE/q-a.yml
- Network accessline 6
value: | Ask questions about Claw Compactor, token compression, or LLM cost optimization. Check the [FAQ](https://github.com/aeromomo/claw-compactor#faq) first! - Network accessline 7
Ask questions about Claw Compactor, token compression, or LLM cost optimization. Check the [FAQ](https://github.com/aeromomo/claw-compactor#faq) first! - type: textarea - Network accessline 8
Check the [FAQ](https://github.com/aeromomo/claw-compactor#faq) first!
.github/FUNDING.yml
.github/ISSUE_TEMPLATE/config.yml
- Network accessline 2
contact_links: - name: OpenClaw Community url: https://discord.com/invite/clawd - Network accessline 3
- name: OpenClaw Community url: https://discord.com/invite/clawd about: Join the OpenClaw Discord for support and discussion - Network accessline 4
url: https://discord.com/invite/clawd - Network accessline 5
about: Join the OpenClaw Discord for support and discussion - name: Documentation url: https://docs.openclaw.ai - Network accessline 6
- name: Documentation url: https://docs.openclaw.ai about: Check the docs before opening an issue - Network accessline 7
url: https://docs.openclaw.ai
.gitignore
- Access to secretsline 11
[Credential-related source omitted]
CHANGELOG.md
- Network accessline 5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - Network accessline 6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Network accessline 72
[7.0.0]: https://github.com/open-compress/claw-compactor/releases/tag/v7.0.0 - Network accessline 73
[1.0.0]: https://github.com/open-compress/claw-compactor/releases/tag/v1.0.0
CITATION.cff
- Network accessline 6
- name: "Bot777" - name: "OpenClaw Contributors" repository-code: "https://github.com/aeromomo/claw-compactor" - Network accessline 7
- name: "OpenClaw Contributors" repository-code: "https://github.com/aeromomo/claw-compactor" url: "https://openclaw.ai" - Network accessline 8
repository-code: "https://github.com/aeromomo/claw-compactor" - Network accessline 9
url: "https://openclaw.ai"
CODE_OF_CONDUCT.md
- Network accessline 47
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at the [OpenClaw Discord](https://discord.com/invite/clawd). - Network accessline 49
[OpenClaw Discord](https://discord.com/invite/clawd). - Network accessline 55
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), - Network accessline 57
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
CONTRIBUTING.md
- Network accessline 15
# Fork the repository on GitHub, then: git clone https://github.com/YOUR_USERNAME/claw-compactor.git - Network accessline 16
git clone https://github.com/YOUR_USERNAME/claw-compactor.git - Network accessline 34
- Check [open issues](https://github.com/open-compress/claw-compactor/issues) — look for `good first issue` or `help wanted` labels - Network accessline 144
- [Discord](https://discord.com/invite/clawd) — ask questions, discuss ideas - Network accessline 145
- [GitHub Discussions](https://github.com/open-compress/claw-compactor/discussions) — longer-form conversations
README.md
- Network accessline 2
<script type="application/ld+json"> { "@context": "https://schema.org", - Network accessline 3
{ "@context": "https://schema.org", "@type": "SoftwareApplication", - Network accessline 4
"@context": "https://schema.org", - Network accessline 9
"operatingSystem": "Cross-platform", "softwareVersion": "7.0.0", "license": "https://opensource.org/licenses/MIT", - Network accessline 10
"softwareVersion": "7.0.0", "license": "https://opensource.org/licenses/MIT", "url": "https://github.com/open-compress/claw-compactor", - Network accessline 11
"license": "https://opensource.org/licenses/MIT", - Network accessline 12
"url": "https://github.com/open-compress/claw-compactor", - Network accessline 13
"downloadUrl": "https://github.com/open-compress/claw-compactor", - Network accessline 15
"@type": "Organization", "name": "OpenClaw", "url": "https://openclaw.ai" - Network accessline 16
"name": "OpenClaw", "url": "https://openclaw.ai" }, - Network accessline 17
"url": "https://openclaw.ai" - Network accessline 37
[](https://github.com/open-compress/claw-compactor/actions) - Network accessline 38
[](https://codecov.io/gh/open-compress/claw-compactor) - Network accessline 39
[](https://python.org) - Network accessline 40
[](LICENSE) - Network accessline 41
[](https://pypi.org/project/claw-compactor/) - Network accessline 42
[](https://pypi.org/project/claw-compactor/) - Network accessline 43
[](https://github.com/open-compress/claw-compactor) - Network accessline 47
[Documentation](https://open-compress.github.io/claw-compactor) · [Architecture](ARCHITECTURE.md) · [Benchmarks](#benchmarks) · [Quick Start](#quick-start) · [API](#api) - Network accessline 195
git clone https://github.com/open-compress/claw-compactor.git - Network accessline 353
# Clone git clone https://github.com/open-compress/claw-compactor.git - Network accessline 354
git clone https://github.com/open-compress/claw-compactor.git - Network accessline 373
| Project | How | |:--------|:----| | [OpenClaw](https://openclaw.ai) | Built-in skill for all OpenClaw AI agents — compresses workspace context before every LLM call | - Network accessline 374
|:--------|:----| | [OpenClaw](https://openclaw.ai) | Built-in skill for all OpenClaw AI agents — compresses workspace context before every LLM call | | [OpenCompress](https://opencompress.ai) | Production compression engine powering the Op - Network accessline 375
| [OpenClaw](https://openclaw.ai) | Built-in skill for all OpenClaw AI agents — compresses workspace context before every LLM call | - Network accessline 376
| [OpenCompress](https://opencompress.ai) | Production compression engine powering the OpenCompress API | - Network accessline 378
Using Claw Compactor? [Open a PR](https://github.com/open-compress/claw-compactor/pulls) to add yourself here. - Network accessline 410
- [OpenClaw](https://openclaw.ai) — AI agent platform - Network accessline 411
- [ClawhubAI](https://clawhub.com) — Agent skills marketplace - Network accessline 412
- [OpenClaw Discord](https://discord.com/invite/clawd) — Community - Network accessline 413
- [OpenClaw Docs](https://docs.openclaw.ai) — Documentation - Network accessline 414
- [Full Documentation](https://open-compress.github.io/claw-compactor) — GitHub Pages docs
SKILL.md
- Network accessline 121
llm: provider: openai-compatible base_url: http://localhost:8403 - Network accessline 122
provider: openai-compatible base_url: http://localhost:8403 model: claude-code/sonnet - Network accessline 123
base_url: http://localhost:8403 - Access to secretsline 138
[Credential-related source omitted] - Network accessline 139
[Credential-related source omitted] - Access to secretsline 140
[Credential-related source omitted] - Network accessline 141
export OPENAI_BASE_URL=https://... # Optional: custom endpoint (local LLM, etc.) - Access to secretsline 233
[Credential-related source omitted] - Network accessline 257
[Credential-related source omitted] - Access to secretsline 257
[Credential-related source omitted] - Network accessline 258
[Credential-related source omitted] - Access to secretsline 258
[Credential-related source omitted] - Network accessline 259
| `OPENAI_BASE_URL` | `https://api.openai.com` | Custom endpoint for local LLMs | - Access to secretsline 418
[Credential-related source omitted]
benchmark/RESULTS.md
- Network accessline 130
- IR-F1 uses top-30 keyword extraction with stopword filtering - RandomDrop uses fixed seed (42) for reproducibility - EngramCompressor uses LLM proxy at `http://localhost:8403`, model `claude-code/sonnet` - Network accessline 131
- RandomDrop uses fixed seed (42) for reproducibility - EngramCompressor uses LLM proxy at `http://localhost:8403`, model `claude-code/sonnet` - All test data is synthetic / fully anonymized — no real user data - Network accessline 132
- EngramCompressor uses LLM proxy at `http://localhost:8403`, model `claude-code/sonnet`
benchmark/__init__.py
- Executable scriptline 1
Executable file
benchmark/compressors.py
- Executable scriptline 1
Executable file - Network accessline 9
Python 3.9+ / no external deps beyond stdlib. EngramCompressor uses the proxy at http://localhost:8403. - Network accessline 10
EngramCompressor uses the proxy at http://localhost:8403. - Access to secretsline 28
[Credential-related source omitted] - Access to secretsline 32
[Credential-related source omitted] - Access to secretsline 38
[Credential-related source omitted] - Network accessline 358
Uses the claw-compactor proxy at http://localhost:8403. - Network accessline 415
def __init__( self, base_url: str = "http://localhost:8403", - Network accessline 416
self, base_url: str = "http://localhost:8403", model: str = "claude-code/sonnet", - Network accessline 417
base_url: str = "http://localhost:8403", - Access to secretsline 428
[Credential-related source omitted] - Network accessline 440
req = urllib.request.Request( - Network accessline 450
try: with urllib.request.urlopen(req, timeout=self.timeout) as resp: - Network accessline 451
with urllib.request.urlopen(req, timeout=self.timeout) as resp:
benchmark/data/sample_01_devops.json
- Network accessline 46
{"role": "assistant", "content": "Excellent result! For further optimization, consider: GitHub Actions artifacts to share test results across shards, Codecov for coverage reporting, and eventually switching to self-hosted ARM runners which - Network accessline 47
{"role": "user", "content": "We're hitting rate limits on our external API calls during tests. How should we mock these?", "ts": "2026-03-01T10:00:00Z"}, {"role": "assistant", "content": "For API mocking in tests:\n\n**Jest**: Use `jest - Network accessline 48
{"role": "assistant", "content": "For API mocking in tests:\n\n**Jest**: Use `jest.mock()` or `msw` (Mock Service Worker) for realistic HTTP mocking. MSW intercepts requests at the network level.\n\n**pytest**: Use `responses` library or `r - Network accessline 49
{"role": "user", "content": "Makes sense. We have a third-party payment API that's hard to mock — they have a sandbox environment.", "ts": "2026-03-01T10:01:00Z"}, {"role": "assistant", "content": "For payment APIs with sandbox: use env - Network accessline 50
[Credential-related source omitted] - Access to secretsline 50
[Credential-related source omitted] - Dangerous shell operationline 60
{"role": "assistant", "content": "502 Bad Gateway from Nginx → Node typically means: 1) Node.js crashed and isn't listening, 2) upstream keep-alive timeout mismatch, 3) Node.js response is too slow (proxy timeout). Check: `sudo nginx -t`, r
benchmark/data/sample_02_trading.json
- Network accessline 34
{"role": "assistant", "content": "Strong feature set. Additions to consider:\n- **Order book imbalance**: (best bid qty - best ask qty) / (best bid + best ask). Real-time microstructure signal.\n- **Perpetual premium**: (perp price - index - Network accessline 35
{"role": "user", "content": "Liquidation heatmap data — where do you source it?", "ts": "2026-03-02T08:27:00Z"}, {"role": "assistant", "content": "Best sources for liquidation data:\n1. **Coinglass API**: Has historical liquidation data - Network accessline 36
{"role": "assistant", "content": "Best sources for liquidation data:\n1. **Coinglass API**: Has historical liquidation data, free tier available. `https://open-api.coinglass.com/public/v2/liquidation_history`\n2. **Binance WebSocket**: `wss
benchmark/data/sample_04_mixed_long.json
- Access to secretsline 214
[Credential-related source omitted]
benchmark/data/sample_05_sysadmin.json
- Dangerous shell operationline 18
{"role": "assistant", "content": "Handshake succeeds but routing fails. Check:\n1. EC2 Security Group: allow UDP 51820 inbound from office IP, and ICMP for ping\n2. VPC Route Table: add route `10.0.0.0/24 → EC2 instance ID`\n3. Office firew - Network accessline 26
{"role": "assistant", "content": "Redirect loop usually means your app thinks it's getting HTTP even though Nginx is serving HTTPS. If your app is behind a load balancer or proxy: set `X-Forwarded-Proto` header handling in your app. For Dja - Network accessline 27
{"role": "user", "content": "Found it — Nginx config had both Certbot's redirect AND my manual HTTP→HTTPS redirect. Removed duplicate. Fixed!", "ts": "2026-03-05T10:22:00Z"}, {"role": "assistant", "content": "Classic double-redirect iss - Network accessline 28
{"role": "assistant", "content": "Classic double-redirect issue when Certbot edits an already-modified config. Test your SSL: `curl -I https://example.com` and check the SSL rating at ssllabs.com/ssltest. Add HSTS header for extra security: - Dangerous shell operationline 30
{"role": "assistant", "content": "50GB is manageable with proper log rotation. Check current logrotate config: `cat /etc/logrotate.d/syslog`. Standard fix:\n```\n/var/log/syslog {\n daily\n rotate 7\n compress\n delaycompress\n - Dangerous shell operationline 36
{"role": "assistant", "content": "```bash\n#!/bin/bash\n# postgres-backup.sh — Daily Postgres backup to S3\n\nset -euo pipefail\n\nDATE=$(date +%Y-%m-%d-%H%M)\nDB_NAME=\"myapp\"\nBACKUP_DIR=\"/tmp/backups\"\nS3_BUCKET=\"s3://my-company-back
benchmark/evaluate.py
- Executable scriptline 1
Executable file
benchmark/report.py
- Executable scriptline 1
Executable file - Network accessline 200
lines.append("- IR-F1 uses top-30 keyword extraction with stopword filtering") lines.append("- RandomDrop uses fixed seed (42) for reproducibility") lines.append("- EngramCompressor uses LLM proxy at `http://localhost:8403`, model ` - Network accessline 201
lines.append("- RandomDrop uses fixed seed (42) for reproducibility") lines.append("- EngramCompressor uses LLM proxy at `http://localhost:8403`, model `claude-code/sonnet`") lines.append("- All test data is synthetic / fully anonym - Network accessline 202
lines.append("- EngramCompressor uses LLM proxy at `http://localhost:8403`, model `claude-code/sonnet`")
benchmark/run_benchmark.py
- Executable scriptline 1
Executable file
docs/README.md
- Network accessline 30
# Clone the repository git clone https://github.com/aeromomo/claw-compactor.git - Network accessline 31
git clone https://github.com/aeromomo/claw-compactor.git - Network accessline 93
- [GitHub Repository](https://github.com/aeromomo/claw-compactor) - Network accessline 94
- [Benchmark Results](benchmarks.md) - [OpenClaw Platform](https://openclaw.ai) - [Community Discord](https://discord.com/invite/clawd) - Network accessline 95
- [OpenClaw Platform](https://openclaw.ai) - Network accessline 96
- [Community Discord](https://discord.com/invite/clawd)
docs/contributing.md
- Network accessline 3
See the full [CONTRIBUTING.md](https://github.com/open-compress/claw-compactor/blob/main/CONTRIBUTING.md) for detailed instructions.
docs/getting-started/installation.md
- Network accessline 12
git clone https://github.com/open-compress/claw-compactor.git
docs/index.md
- Network accessline 34
git clone https://github.com/open-compress/claw-compactor.git - Network accessline 55
- [GitHub Repository](https://github.com/open-compress/claw-compactor) - Network accessline 56
- [Architecture Deep-Dive](architecture/overview.md) - [Benchmarks](benchmarks.md) - [Discord Community](https://discord.com/invite/clawd) - Network accessline 58
- [Discord Community](https://discord.com/invite/clawd)
engram.yaml
- Access to secretsline 3
[Credential-related source omitted] - Network accessline 9
# Base URL for OpenAI-compatible endpoint (ignored if provider=anthropic) # Local development only — use https:// in production base_url: http://localhost:8080 - Network accessline 11
base_url: http://localhost:8080 - Access to secretsline 14
[Credential-related source omitted]
mkdocs.yml
- Network accessline 1
site_name: Claw Compactor site_description: 14-Stage Fusion Pipeline for LLM Token Compression site_url: https://open-compress.github.io/claw-compactor - Network accessline 2
site_description: 14-Stage Fusion Pipeline for LLM Token Compression site_url: https://open-compress.github.io/claw-compactor repo_url: https://github.com/open-compress/claw-compactor - Network accessline 3
site_url: https://open-compress.github.io/claw-compactor - Network accessline 4
repo_url: https://github.com/open-compress/claw-compactor - Network accessline 59
social: - icon: fontawesome/brands/github link: https://github.com/open-compress/claw-compactor - Network accessline 60
- icon: fontawesome/brands/github link: https://github.com/open-compress/claw-compactor - icon: fontawesome/brands/discord - Network accessline 61
link: https://github.com/open-compress/claw-compactor - Network accessline 63
link: https://discord.com/invite/clawd
proxy/.gitignore
- Access to secretsline 5
[Credential-related source omitted]
proxy/README.md
proxy/compression-middleware.mjs
- Executable scriptline 1
Executable file
proxy/dashboard.html
- Network accessline 5
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Claude Code Proxy — Dashboard</title> <script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script> - Network accessline 6
<title>Claude Code Proxy — Dashboard</title> <script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script> <style> - Network accessline 7
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script> - Network accessline 300
return d.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }); } async function fetchJson(path) { return (await fetch(BASE + path)).json(); } - Network accessline 302
async function fetchJson(path) { return (await fetch(BASE + path)).json(); }
proxy/event-log.mjs
- Executable scriptline 1
Executable file
proxy/fair-queue.mjs
- Executable scriptline 1
Executable file
proxy/metrics-store.mjs
- Executable scriptline 1
Executable file
proxy/package-lock.json
- Network accessline 14
"node_modules/@ioredis/commands": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.0.tgz", - Network accessline 15
"version": "1.5.0", "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.0.tgz", "integrity": "sha512-eUgLqrMf8nJkZxT24JvVRrQya1vZkQh8BBeYNwGDqa5I0VUi8ACx7uFvAaLxintokpTenkK6DASvo/bvNbBGow==", - Network accessline 16
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.0.tgz", - Network accessline 20
"node_modules/cluster-key-slot": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - Network accessline 21
"version": "1.1.2", "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", - Network accessline 22
"resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - Network accessline 29
"node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - Network accessline 30
"version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - Network accessline 31
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - Network accessline 46
"node_modules/denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", - Network accessline 47
"version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", - Network accessline 48
"resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", - Network accessline 55
"node_modules/ioredis": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.9.3.tgz", - Network accessline 56
"version": "5.9.3", "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.9.3.tgz", "integrity": "sha512-VI5tMCdeoxZWU5vjHWsiE/Su76JGhBvWF1MJnV9ZtGltHk9BmD48oDq8Tj8haZ85aceXZMxLNDQZRVo5QKNgXA==", - Network accessline 57
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.9.3.tgz", - Network accessline 74
"funding": { "type": "opencollective", "url": "https://opencollective.com/ioredis" - Network accessline 75
"type": "opencollective", "url": "https://opencollective.com/ioredis" } - Network accessline 76
"url": "https://opencollective.com/ioredis" - Network accessline 79
"node_modules/lodash.defaults": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - Network accessline 80
"version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", - Network accessline 81
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - Network accessline 85
"node_modules/lodash.isarguments": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - Network accessline 86
"version": "3.1.0", "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", - Network accessline 87
"resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - Network accessline 91
"node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - Network accessline 92
"version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - Network accessline 93
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - Network accessline 97
"node_modules/redis-errors": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", - Network accessline 98
"version": "1.2.0", "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", - Network accessline 99
"resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", - Network accessline 106
"node_modules/redis-parser": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", - Network accessline 107
"version": "3.0.0", "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", - Network accessline 108
"resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", - Network accessline 118
"node_modules/standard-as-callback": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", - Network accessline 119
"version": "2.1.0", "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==", - Network accessline 120
"resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz",
proxy/package.json
- Executable scriptline 1
Executable file
proxy/portal.html
- Network accessline 248
const PANELS = { proxy: { url: '/dashboard/proxy', loaded: true }, openclaw: { url: `http://${thisHost}:8877/`, loaded: false }, - Network accessline 249
proxy: { url: '/dashboard/proxy', loaded: true }, openclaw: { url: `http://${thisHost}:8877/`, loaded: false }, aimm: { url: `http://${thisHost}:3000/dashboard`, loaded: false }, - Network accessline 250
openclaw: { url: `http://${thisHost}:8877/`, loaded: false }, - Network accessline 251
aimm: { url: `http://${thisHost}:3000/dashboard`, loaded: false }, - Network accessline 313
async function checkHealth() { try { const r = await fetch('/health'); - Network accessline 314
try { const r = await fetch('/health'); const d = await r.json(); - Network accessline 315
const r = await fetch('/health');
proxy/process-registry.mjs
- Executable scriptline 1
Executable file
proxy/quantum-lock.mjs
proxy/rate-limiter.mjs
- Executable scriptline 1
Executable file - Network accessline 27
const now = Date.now(); const existing = windows[model] || { requests: [] }; const valid = existing.requests.filter((r) => now - r.ts < WINDOW_MS); - Network accessline 28
const existing = windows[model] || { requests: [] }; const valid = existing.requests.filter((r) => now - r.ts < WINDOW_MS); const tokens = valid.reduce((sum, r) => sum + r.tok, 0); - Network accessline 29
const valid = existing.requests.filter((r) => now - r.ts < WINDOW_MS);
proxy/redis-client.mjs
- Executable scriptline 1
Executable file
proxy/retry.mjs
- Executable scriptline 1
Executable file
proxy/rewind-handler.mjs
- Executable scriptline 1
Executable file
proxy/server.mjs
- Executable scriptline 1
Executable file - Access to secretsline 46
[Credential-related source omitted] - Instruction override signalline 60
// CLI agent mode: workers are full autonomous agents (all tools enabled, --dangerously-skip-permissions) - Access to secretsline 105
[Credential-related source omitted] - Network accessline 111
return { baseUrl: "http://172.28.216.81:8080/v1", - Network accessline 112
baseUrl: "http://172.28.216.81:8080/v1", - Network accessline 127
const ANTHROPIC_API_BASE = "https://api.anthropic.com"; - Access to secretsline 147
[Credential-related source omitted] - Access to secretsline 152
[Credential-related source omitted] - Access to secretsline 335
[Credential-related source omitted] - Access to secretsline 355
[Credential-related source omitted] - Access to secretsline 363
[Credential-related source omitted] - Access to secretsline 366
[Credential-related source omitted] - Access to secretsline 367
[Credential-related source omitted] - Access to secretsline 536
[Credential-related source omitted] - Instruction override signalline 601
// --dangerously-skip-permissions: full autonomous agent, all tools enabled - Instruction override signalline 603
const args = ["-p", "--model", model, "--dangerously-skip-permissions"]; - Access to secretsline 1533
[Credential-related source omitted] - Network accessline 1975
const server = createServer(async (req, res) => { const url = new URL(req.url, `http://0.0.0.0:${PORT}`); - Network accessline 1976
const url = new URL(req.url, `http://0.0.0.0:${PORT}`); - Network accessline 2088
console.log(`Claude Code Proxy v0.5.1`); console.log(`Listening on http://0.0.0.0:${PORT}`); - Network accessline 2089
console.log(`Listening on http://0.0.0.0:${PORT}`); - Access to secretsline 2091
[Credential-related source omitted]
proxy/session-affinity.mjs
- Executable scriptline 1
Executable file
proxy/start.sh
- Executable scriptline 1
#!/bin/bash
proxy/test/event-log.test.mjs
- Executable scriptline 1
Executable file - Network accessline 90
const requests = log.getRecent({ type: "request" }); assert.equal(requests.length, 2); assert.ok(requests.every((e) => e.type === "request")); - Network accessline 91
assert.equal(requests.length, 2); assert.ok(requests.every((e) => e.type === "request")); }); - Network accessline 92
assert.ok(requests.every((e) => e.type === "request"));
proxy/test/helpers.mjs
- Executable scriptline 1
Executable file
proxy/test/integration.test.mjs
proxy/test/metrics-store.test.mjs
proxy/test/process-registry.test.mjs
- Executable scriptline 1
Executable file
proxy/test/rate-limiter.test.mjs
- Executable scriptline 1
Executable file
proxy/test/redis-client.test.mjs
- Executable scriptline 1
Executable file
proxy/test/token-tracker.test.mjs
- Executable scriptline 1
Executable file
proxy/token-tracker.mjs
- Executable scriptline 1
Executable file - Network accessline 247
}); requests = new Map(requests); requests.set(reqId, snapshot); - Network accessline 249
requests.set(reqId, snapshot); - Network accessline 252
if (requests.size > MAX_REQUESTS) { const keys = Array.from(requests.keys()); - Network accessline 253
const keys = Array.from(requests.keys()); - Network accessline 255
requests = new Map(requests); for (let i = 0; i < trimCount; i++) { requests.delete(keys[i]); - Network accessline 256
for (let i = 0; i < trimCount; i++) { requests.delete(keys[i]); } - Network accessline 257
requests.delete(keys[i]); - Network accessline 273
*/ function getRequest(reqId) { return requests.get(reqId) || null; - Network accessline 274
function getRequest(reqId) { return requests.get(reqId) || null; } - Network accessline 275
return requests.get(reqId) || null;
pyproject.toml
- Network accessline 48
[project.urls] Homepage = "https://github.com/open-compress/claw-compactor" - Network accessline 49
Homepage = "https://github.com/open-compress/claw-compactor" - Network accessline 50
Documentation = "https://docs.openclaw.ai" - Network accessline 51
Repository = "https://github.com/open-compress/claw-compactor" - Network accessline 52
"Bug Tracker" = "https://github.com/open-compress/claw-compactor/issues" - Network accessline 53
Changelog = "https://github.com/open-compress/claw-compactor/releases" - Network accessline 54
"Community" = "https://discord.com/invite/clawd"
references/compression-techniques.md
scripts/__init__.py
- Executable scriptline 1
Executable file
scripts/audit_memory.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/benchmark_fusion.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 482
[Credential-related source omitted] - Access to secretsline 483
[Credential-related source omitted] - Access to secretsline 484
[Credential-related source omitted] - Access to secretsline 485
[Credential-related source omitted] - Access to secretsline 486
[Credential-related source omitted] - Access to secretsline 487
[Credential-related source omitted] - Access to secretsline 488
[Credential-related source omitted] - Access to secretsline 489
[Credential-related source omitted] - Access to secretsline 493
[Credential-related source omitted] - Access to secretsline 494
[Credential-related source omitted] - Access to secretsline 495
[Credential-related source omitted] - Access to secretsline 496
[Credential-related source omitted] - Access to secretsline 497
[Credential-related source omitted] - Access to secretsline 498
[Credential-related source omitted] - Access to secretsline 502
[Credential-related source omitted] - Access to secretsline 503
[Credential-related source omitted] - Access to secretsline 504
[Credential-related source omitted] - Access to secretsline 544
[Credential-related source omitted] - Access to secretsline 547
[Credential-related source omitted]
scripts/cli.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/compress_memory.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/compressed_context.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/dedup_memory.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/dictionary_compress.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/engram-auto.sh
- Executable scriptline 1
#!/bin/bash - Access to secretsline 14
[Credential-related source omitted] - Access to secretsline 15
[Credential-related source omitted] - Access to secretsline 50
[Credential-related source omitted] - Access to secretsline 52
[Credential-related source omitted] - Access to secretsline 55
[Credential-related source omitted] - Access to secretsline 75
[Credential-related source omitted] - Access to secretsline 76
[Credential-related source omitted] - Access to secretsline 77
[Credential-related source omitted] - Access to secretsline 78
[Credential-related source omitted] - Access to secretsline 79
[Credential-related source omitted] - Access to secretsline 114
[Credential-related source omitted]
scripts/engram_auto.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/engram_cli.py
scripts/estimate_tokens.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/generate_summary_tiers.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/lib/__init__.py
- Executable scriptline 1
Executable file
scripts/lib/cli.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/lib/config.py
- Executable scriptline 1
Executable file - Access to secretsline 8
[Credential-related source omitted] - Access to secretsline 76
[Credential-related source omitted] - Access to secretsline 85
[Credential-related source omitted] - Access to secretsline 91
[Credential-related source omitted] - Access to secretsline 118
[Credential-related source omitted] - Access to secretsline 120
[Credential-related source omitted] - Network accessline 126
"llm": { "provider": "openai-compatible", "base_url": "https://api.openai.com", - Network accessline 127
"provider": "openai-compatible", "base_url": "https://api.openai.com", "api_key_env": "OPENAI_API_KEY", - Network accessline 128
"base_url": "https://api.openai.com", - Access to secretsline 129
[Credential-related source omitted] - Access to secretsline 160
[Credential-related source omitted] - Access to secretsline 197
[Credential-related source omitted] - Access to secretsline 243
[Credential-related source omitted] - Access to secretsline 244
[Credential-related source omitted] - Access to secretsline 248
[Credential-related source omitted] - Access to secretsline 252
[Credential-related source omitted] - Access to secretsline 253
[Credential-related source omitted] - Access to secretsline 261
[Credential-related source omitted] - Access to secretsline 262
[Credential-related source omitted]
scripts/lib/crunch_bench.py
- Executable scriptline 1
Executable file
scripts/lib/dedup.py
- Executable scriptline 1
Executable file
scripts/lib/dictionary.py
- Executable scriptline 1
Executable file
scripts/lib/engram.py
- Executable scriptline 1
Executable file - Access to secretsline 91
[Credential-related source omitted] - Access to secretsline 92
[Credential-related source omitted] - Access to secretsline 104
[Credential-related source omitted] - Access to secretsline 105
[Credential-related source omitted] - Access to secretsline 116
[Credential-related source omitted] - Access to secretsline 117
[Credential-related source omitted] - Access to secretsline 118
[Credential-related source omitted] - Access to secretsline 121
[Credential-related source omitted] - Access to secretsline 122
[Credential-related source omitted] - Access to secretsline 123
[Credential-related source omitted] - Network accessline 126
openai_base_url or cfg.get("openai_base_url") or os.environ.get("OPENAI_BASE_URL", "https://api.openai.com") - Network accessline 127
or cfg.get("openai_base_url") or os.environ.get("OPENAI_BASE_URL", "https://api.openai.com") ) - Network accessline 128
[Credential-related source omitted] - Access to secretsline 128
[Credential-related source omitted] - Access to secretsline 131
[Credential-related source omitted] - Access to secretsline 132
[Credential-related source omitted] - Access to secretsline 148
[Credential-related source omitted] - Access to secretsline 149
[Credential-related source omitted] - Access to secretsline 157
[Credential-related source omitted]
scripts/lib/engram/http.py
- Executable scriptline 1
Executable file - Network accessline 98
last_exc2: Optional[Exception] = None for attempt in range(max_retries + 1): req = urllib.request.Request(url, data=payload, headers=headers, method="POST") - Network accessline 99
for attempt in range(max_retries + 1): req = urllib.request.Request(url, data=payload, headers=headers, method="POST") try: - Network accessline 100
req = urllib.request.Request(url, data=payload, headers=headers, method="POST") - Network accessline 101
try: with urllib.request.urlopen(req, timeout=120) as resp: raw = resp.read().decode("utf-8") - Network accessline 102
with urllib.request.urlopen(req, timeout=120) as resp:
scripts/lib/engram_http.py
- Executable scriptline 1
Executable file - Network accessline 104
last_exc: Optional[Exception] = None for attempt in range(max_retries + 1): req = urllib.request.Request(url, data=payload, headers=headers, method="POST") - Network accessline 105
for attempt in range(max_retries + 1): req = urllib.request.Request(url, data=payload, headers=headers, method="POST") try: - Network accessline 106
req = urllib.request.Request(url, data=payload, headers=headers, method="POST") - Network accessline 107
try: with urllib.request.urlopen(req, timeout=120) as resp: raw = resp.read().decode("utf-8") - Network accessline 108
with urllib.request.urlopen(req, timeout=120) as resp:
scripts/lib/engram_learner.py
- Executable scriptline 1
Executable file
scripts/lib/engram_llm.py
- Executable scriptline 1
Executable file - Access to secretsline 27
[Credential-related source omitted] - Access to secretsline 28
[Credential-related source omitted] - Network accessline 36
[Credential-related source omitted] - Access to secretsline 36
[Credential-related source omitted] - Network accessline 37
[Credential-related source omitted] - Access to secretsline 37
[Credential-related source omitted] - Network accessline 38
openai_base_url: str = "https://api.openai.com", - Access to secretsline 42
[Credential-related source omitted] - Access to secretsline 43
[Credential-related source omitted] - Access to secretsline 60
[Credential-related source omitted] - Access to secretsline 62
[Credential-related source omitted] - Access to secretsline 66
[Credential-related source omitted] - Network accessline 69
def _call_anthropic(self, system: str, user: str) -> str: url = "https://api.anthropic.com/v1/messages" - Network accessline 70
url = "https://api.anthropic.com/v1/messages" - Access to secretsline 72
[Credential-related source omitted] - Access to secretsline 93
[Credential-related source omitted]
scripts/lib/engram_prompts.py
- Executable scriptline 1
Executable file
scripts/lib/engram_storage.py
- Executable scriptline 1
Executable file
scripts/lib/engram_utils.py
- Executable scriptline 1
Executable file
scripts/lib/exceptions.py
- Executable scriptline 1
Executable file
scripts/lib/feedback.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/__init__.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/base.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/cache_prefix.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/compact_hooks.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/content_detector.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/content_stripper.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/conversation_summarizer.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/cortex.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/diff_crunch.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/engine.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/ionizer.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/llm_summarizer.py
- Executable scriptline 1
Executable file - Access to secretsline 12
[Credential-related source omitted] - Network accessline 83
[Credential-related source omitted] - Network accessline 84
[Credential-related source omitted] - Access to secretsline 84
[Credential-related source omitted] - Network accessline 85
base_url: str = "https://api.anthropic.com", - Access to secretsline 88
[Credential-related source omitted] - Access to secretsline 107
[Credential-related source omitted] - Access to secretsline 121
[Credential-related source omitted] - Network accessline 129
data = json.dumps(body).encode("utf-8") req = urllib.request.Request(url, data=data, headers=headers, method="POST") - Network accessline 130
req = urllib.request.Request(url, data=data, headers=headers, method="POST") - Network accessline 132
try: with urllib.request.urlopen(req, timeout=60) as resp: - Network accessline 133
with urllib.request.urlopen(req, timeout=60) as resp: - Access to secretsline 156
[Credential-related source omitted] - Access to secretsline 166
[Credential-related source omitted] - Network accessline 175
[Credential-related source omitted] - Access to secretsline 175
[Credential-related source omitted] - Network accessline 176
model: str = DEFAULT_MODEL, base_url: str = "https://api.anthropic.com", provider: str = "anthropic", - Network accessline 177
base_url: str = "https://api.anthropic.com", - Access to secretsline 189
[Credential-related source omitted] - Access to secretsline 191
[Credential-related source omitted]
scripts/lib/fusion/log_crunch.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/neurosyntax.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/nexus.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/nexus_model.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/photon.py
scripts/lib/fusion/pipeline.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/plan_reinjection.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/quantum_lock.py
scripts/lib/fusion/search_crunch.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/semantic_dedup.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/skill_reinjection.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/structural_collapse.py
- Executable scriptline 1
Executable file
scripts/lib/fusion/tiered_compaction.py
scripts/lib/fusion/tool_result_budget.py
- Executable scriptline 1
Executable file
scripts/lib/markdown.py
- Executable scriptline 1
Executable file
scripts/lib/rewind/__init__.py
- Executable scriptline 1
Executable file
scripts/lib/rewind/marker.py
- Executable scriptline 1
Executable file
scripts/lib/rewind/retriever.py
- Executable scriptline 1
Executable file
scripts/lib/rewind/store.py
- Executable scriptline 1
Executable file
scripts/lib/rle.py
- Executable scriptline 1
Executable file
scripts/lib/tokenizer_optimizer.py
- Executable scriptline 1
Executable file
scripts/lib/tokens.py
- Executable scriptline 1
Executable file
scripts/lib/unicode_maps.py
- Executable scriptline 1
Executable file
scripts/mem_compress.py
- Executable scriptline 1
#!/usr/bin/env python3
scripts/observation_compressor.py
- Executable scriptline 1
#!/usr/bin/env python3
tests/__init__.py
- Executable scriptline 1
Executable file
tests/conftest.py
- Executable scriptline 1
Executable file
tests/test_audit_comprehensive.py
tests/test_audit_memory.py
- Executable scriptline 1
Executable file
tests/test_benchmark.py
- Executable scriptline 1
Executable file
tests/test_cli_commands.py
- Executable scriptline 1
Executable file
tests/test_compress_memory.py
- Executable scriptline 1
Executable file
tests/test_compress_memory_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_compressed_context.py
- Executable scriptline 1
Executable file
tests/test_config.py
- Executable scriptline 1
Executable file
tests/test_conversation_summarizer.py
- Executable scriptline 1
Executable file
tests/test_cortex.py
- Executable scriptline 1
Executable file
tests/test_crunch_bench.py
- Executable scriptline 1
Executable file
tests/test_dedup_memory.py
- Executable scriptline 1
Executable file
tests/test_dictionary.py
- Executable scriptline 1
Executable file
tests/test_dictionary_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_engram.py
- Executable scriptline 1
Executable file - Access to secretsline 62
[Credential-related source omitted] - Access to secretsline 94
[Credential-related source omitted] - Access to secretsline 475
[Credential-related source omitted] - Access to secretsline 476
[Credential-related source omitted] - Access to secretsline 482
[Credential-related source omitted] - Access to secretsline 493
[Credential-related source omitted] - Access to secretsline 494
[Credential-related source omitted] - Access to secretsline 506
[Credential-related source omitted] - Access to secretsline 507
[Credential-related source omitted] - Access to secretsline 526
[Credential-related source omitted] - Access to secretsline 537
[Credential-related source omitted] - Access to secretsline 546
[Credential-related source omitted] - Access to secretsline 555
[Credential-related source omitted] - Network accessline 692
err = urllib.error.HTTPError( url="http://test", code=429, - Network accessline 693
url="http://test", code=429, msg="Too Many Requests", hdrs=None, fp=None, # type: ignore[arg-type] ) - Network accessline 713
with patch("claw_compactor.engram_http._HTTPX_AVAILABLE", False), \ patch("urllib.request.urlopen", side_effect=fake_urlopen), \ - Network accessline 714
patch("urllib.request.urlopen", side_effect=fake_urlopen), \ - Network accessline 716
result = http_post("http://test", {}, {}, max_retries=3) - Network accessline 730
call_count += 1 err = urllib.error.HTTPError( url="http://test", code=401, - Network accessline 731
err = urllib.error.HTTPError( url="http://test", code=401, msg="Unauthorized", hdrs=None, fp=None, # type: ignore[arg-type] - Network accessline 732
url="http://test", code=401, - Network accessline 738
with patch("claw_compactor.engram_http._HTTPX_AVAILABLE", False), \ patch("urllib.request.urlopen", side_effect=fake_urlopen), \ - Network accessline 739
patch("urllib.request.urlopen", side_effect=fake_urlopen), \ - Network accessline 740
patch("time.sleep"): with pytest.raises(RuntimeError, match="401"): http_post("http://test", {}, {}, max_retries=3) - Network accessline 742
http_post("http://test", {}, {}, max_retries=3)
tests/test_engram_auto.py
- Executable scriptline 1
Executable file - Access to secretsline 290
[Credential-related source omitted] - Access to secretsline 296
[Credential-related source omitted] - Access to secretsline 310
[Credential-related source omitted] - Access to secretsline 343
[Credential-related source omitted] - Access to secretsline 344
[Credential-related source omitted] - Network accessline 346
"llm": { "provider": "openai-compatible", "base_url": "http://localhost:8403", - Network accessline 347
"provider": "openai-compatible", "base_url": "http://localhost:8403", "api_key_env": "OPENAI_API_KEY", - Network accessline 348
"base_url": "http://localhost:8403", - Access to secretsline 349
[Credential-related source omitted] - Network accessline 355
kwargs = engram_engine_kwargs(cfg) assert kwargs["openai_api_key"] == "test-oai-key" assert kwargs["openai_base_url"] == "http://localhost:8403" - Network accessline 356
[Credential-related source omitted] - Access to secretsline 356
[Credential-related source omitted] - Network accessline 357
assert kwargs["openai_base_url"] == "http://localhost:8403" - Access to secretsline 362
[Credential-related source omitted] - Access to secretsline 367
[Credential-related source omitted] - Access to secretsline 374
[Credential-related source omitted] - Access to secretsline 375
[Credential-related source omitted] - Network accessline 387
"llm": { "provider": "openai-compatible", "base_url": "http://localhost:9999", - Network accessline 388
"provider": "openai-compatible", "base_url": "http://localhost:9999", "api_key_env": "OPENAI_API_KEY", - Network accessline 389
"base_url": "http://localhost:9999", - Access to secretsline 390
[Credential-related source omitted] - Access to secretsline 417
[Credential-related source omitted] - Access to secretsline 459
[Credential-related source omitted] - Access to secretsline 489
[Credential-related source omitted] - Access to secretsline 510
[Credential-related source omitted] - Access to secretsline 543
[Credential-related source omitted] - Access to secretsline 547
[Credential-related source omitted] - Access to secretsline 550
[Credential-related source omitted] - Access to secretsline 554
[Credential-related source omitted] - Access to secretsline 557
[Credential-related source omitted] - Access to secretsline 561
[Credential-related source omitted] - Network accessline 624
"llm": { "provider": "openai-compatible", "base_url": "http://localhost:9999", - Network accessline 625
"provider": "openai-compatible", "base_url": "http://localhost:9999", "api_key_env": "OPENAI_API_KEY", - Network accessline 626
"base_url": "http://localhost:9999", - Access to secretsline 627
[Credential-related source omitted] - Access to secretsline 641
[Credential-related source omitted] - Access to secretsline 669
[Credential-related source omitted] - Access to secretsline 694
[Credential-related source omitted] - Access to secretsline 719
[Credential-related source omitted] - Network accessline 758
"llm": { "provider": "openai-compatible", "base_url": "http://localhost:9999", - Network accessline 759
"provider": "openai-compatible", "base_url": "http://localhost:9999", "api_key_env": "OPENAI_API_KEY", - Network accessline 760
"base_url": "http://localhost:9999", - Access to secretsline 761
[Credential-related source omitted] - Access to secretsline 775
[Credential-related source omitted] - Access to secretsline 802
[Credential-related source omitted] - Access to secretsline 828
[Credential-related source omitted] - Network accessline 873
"llm": { "provider": "openai-compatible", "base_url": "http://localhost:9999", - Network accessline 874
"provider": "openai-compatible", "base_url": "http://localhost:9999", "api_key_env": "OPENAI_API_KEY", - Network accessline 875
"base_url": "http://localhost:9999", - Access to secretsline 876
[Credential-related source omitted] - Access to secretsline 890
[Credential-related source omitted] - Access to secretsline 910
[Credential-related source omitted] - Access to secretsline 936
[Credential-related source omitted]
tests/test_engram_learner.py
- Executable scriptline 1
Executable file
tests/test_error_handling.py
- Executable scriptline 1
Executable file
tests/test_estimate_tokens.py
- Executable scriptline 1
Executable file
tests/test_existing_edge_cases.py
tests/test_feedback.py
- Executable scriptline 1
Executable file
tests/test_fusion_engine.py
- Executable scriptline 1
Executable file
tests/test_fusion_pipeline.py
- Executable scriptline 1
Executable file
tests/test_generate_summary_tiers.py
- Executable scriptline 1
Executable file
tests/test_integration.py
- Executable scriptline 1
Executable file
tests/test_lib_dedup.py
- Executable scriptline 1
Executable file
tests/test_lib_markdown.py
- Executable scriptline 1
Executable file
tests/test_lib_tokens.py
- Executable scriptline 1
Executable file
tests/test_main_entry.py
- Executable scriptline 1
Executable file
tests/test_markdown_advanced.py
- Executable scriptline 1
Executable file
tests/test_neurosyntax.py
- Executable scriptline 1
Executable file
tests/test_new_features.py
- Executable scriptline 1
Executable file
tests/test_new_features_v8.py
- Executable scriptline 1
Executable file - Access to secretsline 77
[Credential-related source omitted] - Access to secretsline 91
[Credential-related source omitted] - Access to secretsline 147
[Credential-related source omitted] - Network accessline 650
content = "Check this: " - Network accessline 660
content = 'Look: <img src="https://example.com/pic.jpg" />' - Network accessline 741
f"Image 1: data:image/png;base64,{b64}\n" f"Image 2: data:image/jpeg;base64,{b64}\n" f"" - Network accessline 742
f"Image 2: data:image/jpeg;base64,{b64}\n" f"" ) - Network accessline 743
f"" - Access to secretsline 781
[Credential-related source omitted] - Access to secretsline 791
[Credential-related source omitted] - Access to secretsline 798
[Credential-related source omitted] - Access to secretsline 801
[Credential-related source omitted] - Access to secretsline 804
[Credential-related source omitted] - Access to secretsline 810
[Credential-related source omitted] - Access to secretsline 821
[Credential-related source omitted] - Access to secretsline 828
[Credential-related source omitted] - Access to secretsline 829
[Credential-related source omitted] - Access to secretsline 1077
[Credential-related source omitted] - Access to secretsline 1156
[Credential-related source omitted]
tests/test_nexus.py
- Executable scriptline 1
Executable file
tests/test_observation_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_observation_compressor.py
- Executable scriptline 1
Executable file
tests/test_performance.py
- Executable scriptline 1
Executable file
tests/test_phase3_structured.py
tests/test_photon.py
- Executable scriptline 1
Executable file - Possible obfuscationline 63
b"\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00" - Possible obfuscationline 64
b"\xff\xdb\x00C\x00\x08\x06\x06\x07\x06\x05\x08\x07\x07\x07\t\t\x08\n\x0c" - Possible obfuscationline 65
b"\x14\r\x0c\x0b\x0b\x0c\x19\x12\x13\x0f\x14\x1d\x1a\x1f\x1e\x1d\x1a\x1c" - Possible obfuscationline 67
b"\x13\r\x12\x11\x0f\x12\x11\x10\x10\x18\x16\x10\x16\x10\x1d\x18\x1c\x18" - Possible obfuscationline 68
b"\xff\xc0\x00\x0b\x08\x00\x01\x00\x01\x01\x01\x11\x00" - Possible obfuscationline 69
b"\xff\xc4\x00\x1f\x00\x00\x01\x05\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00" - Possible obfuscationline 70
b"\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b" - Possible obfuscationline 71
b"\xff\xc4\x00\xb5\x10\x00\x02\x01\x03\x03\x02\x04\x03\x05\x05\x04\x04" - Possible obfuscationline 72
b"\x00\x00\x01}\x01\x02\x03\x00\x04\x11\x05\x12!1A\x06\x13Qa" - Possible obfuscationline 73
b"\xff\xda\x00\x08\x01\x01\x00\x00?\x00\xfb\xd2\x8a(\x00\xff\xd9" - Network accessline 172
def test_should_apply_with_image_url_key(self): ctx = _ctx('{"type":"image_url","image_url":{"url":"https://example.com"}}') - Network accessline 173
ctx = _ctx('{"type":"image_url","image_url":{"url":"https://example.com"}}') - Network accessline 215
"type": "image_url", "image_url": { "url": "https://example.com/image.jpg", - Network accessline 216
"image_url": { "url": "https://example.com/image.jpg", "detail": "high", - Network accessline 217
"url": "https://example.com/image.jpg",
tests/test_pipeline.py
- Executable scriptline 1
Executable file
tests/test_quantum_lock.py
- Executable scriptline 1
Executable file - Access to secretsline 73
[Credential-related source omitted] - Access to secretsline 75
[Credential-related source omitted] - Access to secretsline 80
[Credential-related source omitted] - Access to secretsline 126
[Credential-related source omitted] - Access to secretsline 350
[Credential-related source omitted]
tests/test_real_workspace.py
- Executable scriptline 1
Executable file
tests/test_rewind.py
- Executable scriptline 1
Executable file
tests/test_rle.py
- Executable scriptline 1
Executable file
tests/test_rle_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_roundtrip.py
- Executable scriptline 1
Executable file
tests/test_roundtrip_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_semantic_dedup.py
- Executable scriptline 1
Executable file
tests/test_structural_collapse.py
- Executable scriptline 1
Executable file - Access to secretsline 401
[Credential-related source omitted] - Access to secretsline 402
[Credential-related source omitted] - Access to secretsline 403
[Credential-related source omitted] - Access to secretsline 404
[Credential-related source omitted] - Access to secretsline 405
[Credential-related source omitted]
tests/test_tiered_compaction.py
- Executable scriptline 1
Executable file
tests/test_tiers_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_token_economics.py
- Executable scriptline 1
Executable file
tests/test_tokenizer_optimizer.py
tests/test_tokenizer_optimizer_comprehensive.py
- Executable scriptline 1
Executable file
tests/test_tokens.py
- Executable scriptline 1
Executable file
tests/test_tool_result_budget.py
- Executable scriptline 1
Executable file
tests/test_v8_deep.py
- Executable scriptline 1
Executable file - Access to secretsline 409
[Credential-related source omitted] - Access to secretsline 418
[Credential-related source omitted] - Access to secretsline 427
[Credential-related source omitted] - Network accessline 725
def test_markdown_image_stripped(self): from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user("Check this: ")] - Network accessline 726
from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user("Check this: ")] result, stats = strip_images_and_docs(msgs) - Network accessline 727
msgs = [_user("Check this: ")] - Network accessline 728
result, stats = strip_images_and_docs(msgs) assert "screenshot" in result[0]["content"] assert "https://example.com" not in result[0]["content"] - Network accessline 729
assert "screenshot" in result[0]["content"] assert "https://example.com" not in result[0]["content"] assert stats["images_stripped"] == 1 - Network accessline 730
assert "https://example.com" not in result[0]["content"] - Network accessline 733
def test_markdown_image_empty_alt(self): from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user("")] - Network accessline 734
from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user("")] result, stats = strip_images_and_docs(msgs) - Network accessline 735
msgs = [_user("")] - Network accessline 739
def test_html_image_stripped(self): from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user('Look: <img src="https://example.com/img.png" />')] - Network accessline 740
from claw_compactor.fusion.content_stripper import strip_images_and_docs msgs = [_user('Look: <img src="https://example.com/img.png" />')] result, stats = strip_images_and_docs(msgs) - Network accessline 741
msgs = [_user('Look: <img src="https://example.com/img.png" />')] - Network accessline 828
"role": "user", "content": [ {"type": "image_url", "image_url": {"url": "https://example.com/very/long/path/to/image.png"}}, - Network accessline 829
"content": [ {"type": "image_url", "image_url": {"url": "https://example.com/very/long/path/to/image.png"}}, ], - Network accessline 830
{"type": "image_url", "image_url": {"url": "https://example.com/very/long/path/to/image.png"}}, - Access to secretsline 1078
[Credential-related source omitted]
How the signals fit together
Facts from a static read of the files at the pinned commit. They describe what the code does, not why.
Some files could not be read; the facts below still hold.
Declared and executed: 4 facts
- Contacts 172.28.216.81, which SKILL.md, the README and the plugin manifest do not mentionproxy/server.mjs:112High confidence
- Contacts api.anthropic.com, which SKILL.md, the README and the plugin manifest do not mentionproxy/server.mjs:127High confidence
- Contacts api.anthropic.com, which SKILL.md, the README and the plugin manifest do not mentionscripts/lib/engram_llm.py:70High confidence
- Contacts api.anthropic.com, which SKILL.md, the README and the plugin manifest do not mentionscripts/lib/fusion/llm_summarizer.py:85High confidence
Signal confidence: 496 facts
- Network access in prose of documentationCHANGELOG.md:5Low confidence
- Network access in prose of documentationCHANGELOG.md:6Low confidence
- Network access in prose of documentationCHANGELOG.md:72Low confidence
- Network access in prose of documentationCHANGELOG.md:73Low confidence
- Network access in prose of documentationCODE_OF_CONDUCT.md:47Low confidence
- Network access in prose of documentationCODE_OF_CONDUCT.md:49Low confidence
- Network access in prose of documentationCODE_OF_CONDUCT.md:55Low confidence
- Network access in prose of documentationCODE_OF_CONDUCT.md:57Low confidence
- Network access in code of documentationCONTRIBUTING.md:15Low confidence
- Network access in code of documentationCONTRIBUTING.md:16Low confidence
- Network access in prose of documentationCONTRIBUTING.md:34Low confidence
- Network access in prose of documentationCONTRIBUTING.md:144Low confidence
- Network access in prose of documentationCONTRIBUTING.md:145Low confidence
- Network access in prose of documentationREADME.md:2Low confidence
- Network access in prose of documentationREADME.md:3Low confidence
- Network access in prose of documentationREADME.md:4Low confidence
- Network access in prose of documentationREADME.md:9Low confidence
- Network access in prose of documentationREADME.md:10Low confidence
- Network access in prose of documentationREADME.md:11Low confidence
- Network access in prose of documentationREADME.md:12Low confidence
- Network access in prose of documentationREADME.md:13Low confidence
- Network access in prose of documentationREADME.md:15Low confidence
- Network access in prose of documentationREADME.md:16Low confidence
- Network access in prose of documentationREADME.md:17Low confidence
- Network access in prose of documentationREADME.md:37Low confidence
- Network access in prose of documentationREADME.md:38Low confidence
- Network access in prose of documentationREADME.md:39Low confidence
- Network access in prose of documentationREADME.md:40Low confidence
- Network access in prose of documentationREADME.md:41Low confidence
- Network access in prose of documentationREADME.md:42Low confidence
- Network access in prose of documentationREADME.md:43Low confidence
- Network access in prose of documentationREADME.md:47Low confidence
- Network access in code of documentationREADME.md:195Low confidence
- Network access in code of documentationREADME.md:353Low confidence
- Network access in code of documentationREADME.md:354Low confidence
- Network access in prose of documentationREADME.md:373Low confidence
- Network access in prose of documentationREADME.md:374Low confidence
- Network access in prose of documentationREADME.md:375Low confidence
- Network access in prose of documentationREADME.md:376Low confidence
- Network access in prose of documentationREADME.md:378Low confidence
- Network access in prose of documentationREADME.md:410Low confidence
- Network access in prose of documentationREADME.md:411Low confidence
- Network access in prose of documentationREADME.md:412Low confidence
- Network access in prose of documentationREADME.md:413Low confidence
- Network access in prose of documentationREADME.md:414Low confidence
- Network access in code of the SKILL.mdSKILL.md:121High confidence
- Network access in code of the SKILL.mdSKILL.md:122High confidence
- Network access in code of the SKILL.mdSKILL.md:123High confidence
- Access to secrets in code of the SKILL.mdSKILL.md:138High confidence
- Network access in code of the SKILL.mdSKILL.md:139High confidence
and 446 more
Only the first 500 facts are listed.
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Compatible | Standard SKILL.md SKILL.md | .claude/skills/<skill-name>/ |
| Codex | Compatible | Standard SKILL.md SKILL.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Compatible | Standard SKILL.md SKILL.md | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard SKILL.md SKILL.md | .opencode/skills/<skill-name>/ |
- Native The repository ships a manifest, folder or frontmatter field for this agent.
- Compatible A standard SKILL.md that this agent can read.
- Unknown No evidence either way.
Derived automatically from paths, manifests and frontmatter. Not tested on each agent.
Explore alternatives and comparisons
Add this badge to your README
It updates every night and links to this page.
[](https://hotskills.dev/skill/open-compress-claw-compactor/)