#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

Compare on GitHub

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.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit c1b936d40b1145c7a257bd6e34a17994f467495f

2kGitHub stars
-1star in 7 days
1skill in this repository
0commits in 30 days

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

Aug 2, 2026Nov 3, 20262,006

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 tokens

Always available to the agent

SKILL.md

3,600 tokens

When the skill is activated

Reference documents

30,311 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Overview
  2. Auto Mode (Recommended — Run at Session Start)
  3. Core Commands
  4. Engram — Layer 6: Real-Time Observational Memory
  5. Integration with OpenClaw Memory System
  6. OpenClaw Skill Installation
  7. Heartbeat / Cron Automation
  8. Output Artifacts Reference
  9. Troubleshooting

Scripts executed separately

  • benchmark/__init__.py
  • benchmark/compressors.py
  • benchmark/evaluate.py
  • benchmark/report.py
  • benchmark/run_benchmark.py
  • proxy/compression-middleware.mjs
  • proxy/event-log.mjs
  • proxy/fair-queue.mjs
  • proxy/metrics-store.mjs
  • proxy/package.json
  • proxy/process-registry.mjs
  • proxy/quantum-lock.mjs
  • proxy/rate-limiter.mjs
  • proxy/redis-client.mjs
  • proxy/retry.mjs
  • proxy/rewind-handler.mjs
  • proxy/server.mjs
  • proxy/session-affinity.mjs
  • proxy/start.sh
  • proxy/test/event-log.test.mjs
  • proxy/test/helpers.mjs
  • proxy/test/integration.test.mjs
  • proxy/test/metrics-store.test.mjs
  • proxy/test/process-registry.test.mjs
  • proxy/test/rate-limiter.test.mjs
  • proxy/test/redis-client.test.mjs
  • proxy/test/token-tracker.test.mjs
  • proxy/token-tracker.mjs
  • scripts/__init__.py
  • scripts/audit_memory.py
  • scripts/benchmark_fusion.py
  • scripts/cli.py
  • scripts/compress_memory.py
  • scripts/compressed_context.py
  • scripts/dedup_memory.py
  • scripts/dictionary_compress.py
  • scripts/engram-auto.sh
  • scripts/engram_auto.py
  • scripts/engram_cli.py
  • scripts/estimate_tokens.py
  • scripts/generate_summary_tiers.py
  • scripts/lib/__init__.py
  • scripts/lib/cli.py
  • scripts/lib/config.py
  • scripts/lib/crunch_bench.py
  • scripts/lib/dedup.py
  • scripts/lib/dictionary.py
  • scripts/lib/engram.py
  • scripts/lib/engram/http.py
  • scripts/lib/engram_http.py
  • scripts/lib/engram_learner.py
  • scripts/lib/engram_llm.py
  • scripts/lib/engram_prompts.py
  • scripts/lib/engram_storage.py
  • scripts/lib/engram_utils.py
  • scripts/lib/exceptions.py
  • scripts/lib/feedback.py
  • scripts/lib/fusion/__init__.py
  • scripts/lib/fusion/base.py
  • scripts/lib/fusion/cache_prefix.py
  • scripts/lib/fusion/compact_hooks.py
  • scripts/lib/fusion/content_detector.py
  • scripts/lib/fusion/content_stripper.py
  • scripts/lib/fusion/conversation_summarizer.py
  • scripts/lib/fusion/cortex.py
  • scripts/lib/fusion/diff_crunch.py
  • scripts/lib/fusion/engine.py
  • scripts/lib/fusion/ionizer.py
  • scripts/lib/fusion/llm_summarizer.py
  • scripts/lib/fusion/log_crunch.py
  • scripts/lib/fusion/neurosyntax.py
  • scripts/lib/fusion/nexus.py
  • scripts/lib/fusion/nexus_model.py
  • scripts/lib/fusion/photon.py
  • scripts/lib/fusion/pipeline.py
  • scripts/lib/fusion/plan_reinjection.py
  • scripts/lib/fusion/quantum_lock.py
  • scripts/lib/fusion/search_crunch.py
  • scripts/lib/fusion/semantic_dedup.py
  • scripts/lib/fusion/skill_reinjection.py
  • scripts/lib/fusion/structural_collapse.py
  • scripts/lib/fusion/tiered_compaction.py
  • scripts/lib/fusion/tool_result_budget.py
  • scripts/lib/markdown.py
  • scripts/lib/rewind/__init__.py
  • scripts/lib/rewind/marker.py
  • scripts/lib/rewind/retriever.py
  • scripts/lib/rewind/store.py
  • scripts/lib/rle.py
  • scripts/lib/tokenizer_optimizer.py
  • scripts/lib/tokens.py
  • scripts/lib/unicode_maps.py
  • scripts/mem_compress.py
  • scripts/observation_compressor.py
  • tests/__init__.py
  • tests/conftest.py
  • tests/test_audit_comprehensive.py
  • tests/test_audit_memory.py
  • tests/test_benchmark.py
  • tests/test_cli_commands.py
  • tests/test_compress_memory.py
  • tests/test_compress_memory_comprehensive.py
  • tests/test_compressed_context.py
  • tests/test_config.py
  • tests/test_conversation_summarizer.py
  • tests/test_cortex.py
  • tests/test_crunch_bench.py
  • tests/test_dedup_memory.py
  • tests/test_dictionary.py
  • tests/test_dictionary_comprehensive.py
  • tests/test_engram.py
  • tests/test_engram_auto.py
  • tests/test_engram_learner.py
  • tests/test_error_handling.py
  • tests/test_estimate_tokens.py
  • tests/test_existing_edge_cases.py
  • tests/test_feedback.py
  • tests/test_fusion_engine.py
  • tests/test_fusion_pipeline.py
  • tests/test_generate_summary_tiers.py
  • tests/test_integration.py
  • tests/test_lib_dedup.py
  • tests/test_lib_markdown.py
  • tests/test_lib_tokens.py
  • tests/test_main_entry.py
  • tests/test_markdown_advanced.py
  • tests/test_neurosyntax.py
  • tests/test_new_features.py
  • tests/test_new_features_v8.py
  • tests/test_nexus.py
  • tests/test_observation_comprehensive.py
  • tests/test_observation_compressor.py
  • tests/test_performance.py
  • tests/test_phase3_structured.py
  • tests/test_photon.py
  • tests/test_pipeline.py
  • tests/test_quantum_lock.py
  • tests/test_real_workspace.py
  • tests/test_rewind.py
  • tests/test_rle.py
  • tests/test_rle_comprehensive.py
  • tests/test_roundtrip.py
  • tests/test_roundtrip_comprehensive.py
  • tests/test_semantic_dedup.py
  • tests/test_structural_collapse.py
  • tests/test_tiered_compaction.py
  • tests/test_tiers_comprehensive.py
  • tests/test_token_economics.py
  • tests/test_tokenizer_optimizer.py
  • tests/test_tokenizer_optimizer_comprehensive.py
  • tests/test_tokens.py
  • tests/test_tool_result_budget.py
  • tests/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 bytes
  • ARCHITECTURE.mddoc27,022 bytes
  • CHANGELOG.mddoc4,244 bytes
  • CITATION.cffasset706 bytes
  • CODE_OF_CONDUCT.mddoc2,336 bytes
  • CONTRIBUTING.mddoc4,001 bytes
  • LICENSEasset1,078 bytes
  • README.mddoc16,755 bytes
  • SECURITY.mddoc440 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • SKILL.mdcore14,002 bytes
  • assets/banner.pngasset909,779 bytes
  • assets/banner.webpasset36 bytes
  • benchmark/RESULTS.mddoc5,904 bytes
  • benchmark/__init__.pyruns20 bytes
  • benchmark/compressors.pyruns17,973 bytes
  • benchmark/data/sample_01_devops.jsonasset20,694 bytes
  • benchmark/data/sample_02_trading.jsonasset15,836 bytes
  • benchmark/data/sample_03_ml_short.jsonasset8,757 bytes
  • benchmark/data/sample_04_mixed_long.jsonasset22,600 bytes
  • benchmark/data/sample_05_sysadmin.jsonasset15,159 bytes
  • benchmark/evaluate.pyruns9,851 bytes
  • benchmark/report.pyruns10,448 bytes
  • benchmark/results/benchmark_results.jsonasset16,892 bytes
  • benchmark/run_benchmark.pyruns8,230 bytes
  • docs/README.mddoc4,919 bytes
  • docs/api/engine.mddoc1,110 bytes
  • docs/api/rewind.mddoc1,258 bytes
  • docs/api/stages.mddoc893 bytes
  • docs/architecture/overview.mddoc1,981 bytes
  • docs/architecture/pipeline.mddoc2,018 bytes
  • docs/architecture/stages.mddoc1,778 bytes
  • docs/benchmarks.mddoc4,627 bytes
  • docs/contributing.mddoc149 bytes
  • docs/getting-started/installation.mddoc712 bytes
  • docs/getting-started/quickstart.mddoc1,865 bytes
  • docs/index.mddoc2,031 bytes
  • engram.yamlasset1,528 bytes
  • mkdocs.ymlasset1,647 bytes
  • proxy/.gitignoreasset62 bytes
  • proxy/README.mddoc3,767 bytes
  • proxy/compression-middleware.mjsruns10,064 bytes
  • proxy/dashboard.htmlasset40,632 bytes
  • proxy/event-log.mjsruns5,942 bytes
  • proxy/fair-queue.mjsruns8,739 bytes
  • proxy/metrics-store.mjsruns11,444 bytes
  • proxy/package-lock.jsonasset4,510 bytes
  • proxy/package.jsonruns375 bytes
  • proxy/portal.htmlasset9,211 bytes
  • proxy/process-registry.mjsruns12,217 bytes
  • proxy/quantum-lock.mjsruns8,863 bytes
  • proxy/rate-limiter.mjsruns3,705 bytes
  • proxy/redis-client.mjsruns2,097 bytes
  • proxy/retry.mjsruns4,794 bytes
  • proxy/rewind-handler.mjsruns9,393 bytes
  • proxy/server.mjsruns82,293 bytes
  • proxy/session-affinity.mjsruns4,609 bytes
  • proxy/start.shruns723 bytes
  • proxy/test/event-log.test.mjsruns7,479 bytes
  • proxy/test/helpers.mjsruns2,425 bytes
  • proxy/test/integration.test.mjsruns10,106 bytes
  • proxy/test/metrics-store.test.mjsruns7,356 bytes
  • proxy/test/process-registry.test.mjsruns12,753 bytes
  • proxy/test/rate-limiter.test.mjsruns3,860 bytes
  • proxy/test/redis-client.test.mjsruns1,748 bytes
  • proxy/test/token-tracker.test.mjsruns6,877 bytes
  • proxy/token-tracker.mjsruns13,960 bytes
  • pyproject.tomlasset2,275 bytes
  • references/README.mddoc1,438 bytes
  • references/architecture.mddoc12,211 bytes
  • references/benchmarks.mddoc4,179 bytes
  • references/compression-prompts.mddoc1,942 bytes
  • references/compression-techniques.mddoc8,237 bytes
  • references/testing.mddoc6,307 bytes
  • scripts/__init__.pyruns0 bytes
  • scripts/audit_memory.pyruns6,522 bytes
  • scripts/benchmark_fusion.pyruns48,706 bytes
  • scripts/cli.pyruns746 bytes
  • scripts/compress_memory.pyruns7,881 bytes
  • scripts/compressed_context.pyruns8,798 bytes
  • scripts/dedup_memory.pyruns5,086 bytes
  • scripts/dictionary_compress.pyruns5,617 bytes
  • scripts/engram-auto.shruns5,058 bytes
  • scripts/engram_auto.pyruns41,036 bytes
  • scripts/engram_cli.pyruns17,522 bytes
  • scripts/estimate_tokens.pyruns4,297 bytes
  • scripts/generate_summary_tiers.pyruns8,837 bytes
  • scripts/lib/__init__.pyruns1,113 bytes
  • scripts/lib/cli.pyruns648 bytes
  • scripts/lib/config.pyruns11,407 bytes
  • scripts/lib/crunch_bench.pyruns10,354 bytes
  • scripts/lib/dedup.pyruns3,425 bytes
  • scripts/lib/dictionary.pyruns9,918 bytes
  • scripts/lib/engram.pyruns16,669 bytes
  • scripts/lib/engram/http.pyruns5,358 bytes
  • scripts/lib/engram_http.pyruns5,489 bytes
  • scripts/lib/engram_learner.pyruns14,681 bytes
  • scripts/lib/engram_llm.pyruns3,628 bytes
  • scripts/lib/engram_prompts.pyruns7,176 bytes
  • scripts/lib/engram_storage.pyruns9,269 bytes
  • scripts/lib/engram_utils.pyruns2,633 bytes
  • scripts/lib/exceptions.pyruns535 bytes
  • scripts/lib/feedback.pyruns5,876 bytes
  • scripts/lib/fusion/__init__.pyruns2,807 bytes
  • scripts/lib/fusion/base.pyruns3,723 bytes
  • scripts/lib/fusion/cache_prefix.pyruns6,672 bytes
  • scripts/lib/fusion/compact_hooks.pyruns6,986 bytes
  • scripts/lib/fusion/content_detector.pyruns10,810 bytes
  • scripts/lib/fusion/content_stripper.pyruns6,195 bytes
  • scripts/lib/fusion/conversation_summarizer.pyruns8,916 bytes
  • scripts/lib/fusion/cortex.pyruns1,877 bytes
  • scripts/lib/fusion/diff_crunch.pyruns7,669 bytes
  • scripts/lib/fusion/engine.pyruns24,229 bytes
  • scripts/lib/fusion/ionizer.pyruns9,344 bytes
  • scripts/lib/fusion/llm_summarizer.pyruns12,608 bytes
  • scripts/lib/fusion/log_crunch.pyruns8,316 bytes
  • scripts/lib/fusion/neurosyntax.pyruns14,058 bytes
  • scripts/lib/fusion/nexus.pyruns10,724 bytes
  • scripts/lib/fusion/nexus_model.pyruns7,026 bytes
  • scripts/lib/fusion/photon.pyruns17,817 bytes
  • scripts/lib/fusion/pipeline.pyruns3,332 bytes
  • scripts/lib/fusion/plan_reinjection.pyruns9,528 bytes
  • scripts/lib/fusion/quantum_lock.pyruns7,844 bytes
  • scripts/lib/fusion/search_crunch.pyruns8,578 bytes
  • scripts/lib/fusion/semantic_dedup.pyruns14,351 bytes
  • scripts/lib/fusion/skill_reinjection.pyruns6,435 bytes
  • scripts/lib/fusion/structural_collapse.pyruns16,271 bytes
  • scripts/lib/fusion/tiered_compaction.pyruns15,408 bytes
  • scripts/lib/fusion/tool_result_budget.pyruns4,597 bytes
  • scripts/lib/markdown.pyruns9,852 bytes
  • scripts/lib/rewind/__init__.pyruns396 bytes
  • scripts/lib/rewind/marker.pyruns1,506 bytes
  • scripts/lib/rewind/retriever.pyruns2,181 bytes
  • scripts/lib/rewind/store.pyruns3,286 bytes
  • scripts/lib/rle.pyruns5,104 bytes
  • scripts/lib/tokenizer_optimizer.pyruns5,806 bytes
  • scripts/lib/tokens.pyruns2,607 bytes
  • scripts/lib/unicode_maps.pyruns3,372 bytes
  • scripts/mem_compress.pyruns29,395 bytes
  • scripts/observation_compressor.pyruns15,106 bytes
  • tests/__init__.pyruns0 bytes
  • tests/conftest.pyruns3,316 bytes
  • tests/test_audit_comprehensive.pyruns4,020 bytes
  • tests/test_audit_memory.pyruns2,299 bytes
  • tests/test_benchmark.pyruns4,762 bytes
  • tests/test_cli_commands.pyruns7,626 bytes
  • tests/test_compress_memory.pyruns3,811 bytes
  • tests/test_compress_memory_comprehensive.pyruns6,799 bytes
  • tests/test_compressed_context.pyruns5,219 bytes
  • tests/test_config.pyruns1,901 bytes
  • tests/test_conversation_summarizer.pyruns7,318 bytes
  • tests/test_cortex.pyruns8,922 bytes
  • tests/test_crunch_bench.pyruns17,923 bytes
  • tests/test_dedup_memory.pyruns4,168 bytes
  • tests/test_dictionary.pyruns11,069 bytes
  • tests/test_dictionary_comprehensive.pyruns7,806 bytes
  • tests/test_engram.pyruns44,177 bytes
  • tests/test_engram_auto.pyruns39,426 bytes
  • tests/test_engram_learner.pyruns15,129 bytes
  • tests/test_error_handling.pyruns6,575 bytes
  • tests/test_estimate_tokens.pyruns3,027 bytes
  • tests/test_existing_edge_cases.pyruns15,568 bytes
  • tests/test_feedback.pyruns12,647 bytes
  • tests/test_fusion_engine.pyruns36,725 bytes
  • tests/test_fusion_pipeline.pyruns18,551 bytes
  • tests/test_generate_summary_tiers.pyruns3,621 bytes
  • tests/test_integration.pyruns10,197 bytes
  • tests/test_lib_dedup.pyruns4,244 bytes
  • tests/test_lib_markdown.pyruns12,436 bytes
  • tests/test_lib_tokens.pyruns3,272 bytes
  • tests/test_main_entry.pyruns6,254 bytes
  • tests/test_markdown_advanced.pyruns8,984 bytes
  • tests/test_neurosyntax.pyruns14,497 bytes
  • tests/test_new_features.pyruns2,752 bytes
  • tests/test_new_features_v8.pyruns46,652 bytes
  • tests/test_nexus.pyruns21,141 bytes
  • tests/test_observation_comprehensive.pyruns9,834 bytes
  • tests/test_observation_compressor.pyruns4,754 bytes
  • tests/test_performance.pyruns6,840 bytes
  • tests/test_phase3_structured.pyruns24,329 bytes
  • tests/test_photon.pyruns16,322 bytes
  • tests/test_pipeline.pyruns4,402 bytes
  • tests/test_quantum_lock.pyruns14,802 bytes
  • tests/test_real_workspace.pyruns6,615 bytes
  • tests/test_rewind.pyruns20,518 bytes
  • tests/test_rle.pyruns3,671 bytes
  • tests/test_rle_comprehensive.pyruns4,629 bytes
  • tests/test_roundtrip.pyruns8,877 bytes
  • tests/test_roundtrip_comprehensive.pyruns8,121 bytes
  • tests/test_semantic_dedup.pyruns27,416 bytes
  • tests/test_structural_collapse.pyruns31,673 bytes
  • tests/test_tiered_compaction.pyruns7,759 bytes
  • tests/test_tiers_comprehensive.pyruns5,921 bytes
  • tests/test_token_economics.pyruns9,729 bytes
  • tests/test_tokenizer_optimizer.pyruns5,930 bytes
  • tests/test_tokenizer_optimizer_comprehensive.pyruns8,058 bytes
  • tests/test_tokens.pyruns803 bytes
  • tests/test_tool_result_budget.pyruns4,609 bytes
  • tests/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 GitHub

Skills 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

  1. #523 on Oct 31
  2. #524 on Nov 1
  3. #528 on Nov 2
  4. #530 on Nov 3
  5. #531 from Nov 4 to Nov 5
  6. #533 since Nov 6
24 earlier periods
  1. #359 on Aug 2
  2. #361 on Aug 5
  3. #366 on Aug 8
  4. #373 on Aug 12
  5. #382 on Aug 16
  6. #385 on Aug 20
  7. #384 on Aug 21
  8. #412 on Sep 1
  9. #407 on Sep 2
  10. #417 on Sep 8
  11. #415 on Sep 9
  12. #417 on Sep 11
  13. #422 on Sep 19
  14. #440 on Sep 22
  15. #443 on Sep 28
  16. #447 on Sep 30
  17. #444 on Oct 6
  18. #455 on Oct 10
  19. #465 on Oct 17
  20. #484 on Oct 22
  21. #507 on Oct 25
  22. #516 on Oct 28
  23. #517 on Oct 29
  24. #522 on Oct 30

Before you install

Network or broad shell

Automated 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:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
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

  • Network accessline 1
    github: aeromomo custom: ["https://openclaw.ai"]
  • Network accessline 2
    custom: ["https://openclaw.ai"]

.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
    [![CI](https://github.com/open-compress/claw-compactor/actions/workflows/ci.yml/badge.svg)](https://github.com/open-compress/claw-compactor/actions)
  • Network accessline 38
    [![codecov](https://codecov.io/gh/open-compress/claw-compactor/graph/badge.svg)](https://codecov.io/gh/open-compress/claw-compactor)
  • Network accessline 39
    [![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://python.org)
  • Network accessline 40
    [![License](https://img.shields.io/badge/license-MIT-purple)](LICENSE)
  • Network accessline 41
    [![PyPI](https://img.shields.io/pypi/v/claw-compactor?color=blue&label=PyPI)](https://pypi.org/project/claw-compactor/)
  • Network accessline 42
    [![Downloads](https://img.shields.io/pypi/dm/claw-compactor?color=green&label=downloads)](https://pypi.org/project/claw-compactor/)
  • Network accessline 43
    [![Stars](https://img.shields.io/github/stars/open-compress/claw-compactor?style=social)](https://github.com/open-compress/claw-compactor)
  • Network accessline 47
    [Documentation](https://open-compress.github.io/claw-compactor) &middot; [Architecture](ARCHITECTURE.md) &middot; [Benchmarks](#benchmarks) &middot; [Quick Start](#quick-start) &middot; [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

  • Access to secretsline 40
    [Credential-related source omitted]
  • Access to secretsline 49
    [Credential-related source omitted]
  • Network accessline 90
    Access at `http://localhost:8403/dashboard/proxy`:

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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 56
    [Credential-related source omitted]
  • Access to secretsline 58
    [Credential-related source omitted]

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

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 19
    import { rm } from "node:fs/promises";

proxy/test/metrics-store.test.mjs

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 15
    import { rm } from "node:fs/promises";

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

  • Access to secretsline 31
    [Credential-related source omitted]
  • Access to secretsline 66
    [Credential-related source omitted]
  • Access to secretsline 70
    [Credential-related source omitted]

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

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Access to secretsline 358
    [Credential-related source omitted]

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

  • Executable scriptline 1
    Executable file
  • Possible obfuscationline 85
    return base64.b64decode(cleaned)

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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 66
    [Credential-related source omitted]
  • Access to secretsline 68
    [Credential-related source omitted]

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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 73
    [Credential-related source omitted]

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

  • Executable scriptline 1
    Executable file
  • Network accessline 29
    def test_has_tables_pipe_no_separator(self):         assert not _has_tables("a | b\nc | d")
  • Network accessline 30
    assert not _has_tables("a | b\nc | d")

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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 126
    [Credential-related source omitted]
  • Access to secretsline 135
    [Credential-related source omitted]
  • Access to secretsline 143
    [Credential-related source omitted]

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: ![screenshot](https://example.com/img.png)"
  • 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"![alt](http://example.com/img.png)"
  • Network accessline 742
    f"Image 2: data:image/jpeg;base64,{b64}\n"             f"![alt](http://example.com/img.png)"         )
  • Network accessline 743
    f"![alt](http://example.com/img.png)"
  • 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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 110
    [Credential-related source omitted]
  • Access to secretsline 111
    [Credential-related source omitted]

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

  • Executable scriptline 1
    Executable file
  • Access to secretsline 163
    [Credential-related source omitted]

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: ![screenshot](https://example.com/img.png)")]
  • Network accessline 726
    from claw_compactor.fusion.content_stripper import strip_images_and_docs         msgs = [_user("Check this: ![screenshot](https://example.com/img.png)")]         result, stats = strip_images_and_docs(msgs)
  • Network accessline 727
    msgs = [_user("Check this: ![screenshot](https://example.com/img.png)")]
  • 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("![](https://example.com/img.png)")]
  • Network accessline 734
    from claw_compactor.fusion.content_stripper import strip_images_and_docs         msgs = [_user("![](https://example.com/img.png)")]         result, stats = strip_images_and_docs(msgs)
  • Network accessline 735
    msgs = [_user("![](https://example.com/img.png)")]
  • 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

and 446 more

Only the first 500 facts are listed.

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeCompatibleStandard SKILL.md SKILL.md.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard 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.

open-compress/claw-compactor: #533 on hotskills, 2k stars

[![open-compress/claw-compactor on hotskills](https://hotskills.dev/badge/open-compress-claw-compactor.svg)](https://hotskills.dev/skill/open-compress-claw-compactor/)