claw-compactor

分类: 工具与效率 | 上传者: open-compressopen-compress | 下载: 0 | 版本: v1.0(最新)

Claw Compactor — OpenClaw 代理的 6 层令牌压缩技能。使用确定性规则引擎将工作区令牌支出削减 50–97%

更新日志: Source: GitHub https://github.com/open-compress/claw-compactor

目录结构

当前层级: tree/main/

  • 📁 .github/
    • 📁 DISCUSSION_TEMPLATE/
      • 📄 ideas.yml 830 B
      • 📄 q-a.yml 571 B
    • 📁 ISSUE_TEMPLATE/
      • 📄 bug_report.md 701 B
      • 📄 config.yml 285 B
      • 📄 feature_request.md 784 B
    • 📁 workflows/
      • 📄 ci.yml 2.3 KB
      • 📄 docs.yml 484 B
      • 📄 publish.yml 466 B
      • 📄 stale.yml 522 B
    • 📄 FUNDING.yml 49 B
    • 📄 PULL_REQUEST_TEMPLATE.md 1.2 KB
  • 📁 assets/
    • 📄 banner.png 888.5 KB
    • 📄 banner.webp 36 B
  • 📁 benchmark/
    • 📁 data/
      • 📄 sample_01_devops.json 20.2 KB
      • 📄 sample_02_trading.json 15.5 KB
      • 📄 sample_03_ml_short.json 8.6 KB
      • 📄 sample_04_mixed_long.json 22.1 KB
      • 📄 sample_05_sysadmin.json 14.8 KB
    • 📁 results/
      • 📄 benchmark_results.json 16.5 KB
    • 📄 __init__.py 20 B
    • 📄 compressors.py 17.6 KB
    • 📄 evaluate.py 9.6 KB
    • 📄 report.py 10.2 KB
    • 📄 RESULTS.md 5.8 KB
    • 📄 run_benchmark.py 8.0 KB
  • 📁 docs/
    • 📁 api/
      • 📄 engine.md 1.1 KB
      • 📄 rewind.md 1.2 KB
      • 📄 stages.md 893 B
    • 📁 architecture/
      • 📄 overview.md 1.9 KB
      • 📄 pipeline.md 2.0 KB
      • 📄 stages.md 1.7 KB
    • 📁 getting-started/
      • 📄 installation.md 712 B
      • 📄 quickstart.md 1.8 KB
    • 📄 benchmarks.md 4.5 KB
    • 📄 contributing.md 149 B
    • 📄 index.md 2.0 KB
    • 📄 README.md 4.8 KB
  • 📁 proxy/
    • 📁 test/
      • 📄 event-log.test.mjs 7.3 KB
      • 📄 helpers.mjs 2.4 KB
      • 📄 integration.test.mjs 9.9 KB
      • 📄 metrics-store.test.mjs 7.2 KB
      • 📄 process-registry.test.mjs 12.5 KB
      • 📄 rate-limiter.test.mjs 3.8 KB
      • 📄 redis-client.test.mjs 1.7 KB
      • 📄 token-tracker.test.mjs 6.7 KB
    • 📄 .gitignore 62 B
    • 📄 compression-middleware.mjs 9.8 KB
    • 📄 dashboard.html 39.7 KB
    • 📄 event-log.mjs 5.8 KB
    • 📄 fair-queue.mjs 8.5 KB
    • 📄 metrics-store.mjs 11.2 KB
    • 📄 package-lock.json 4.4 KB
    • 📄 package.json 375 B
    • 📄 portal.html 9.0 KB
    • 📄 process-registry.mjs 11.9 KB
    • 📄 quantum-lock.mjs 8.7 KB
    • 📄 rate-limiter.mjs 3.6 KB
    • 📄 README.md 3.7 KB
    • 📄 redis-client.mjs 2.0 KB
    • 📄 retry.mjs 4.7 KB
    • 📄 rewind-handler.mjs 9.2 KB
    • 📄 server.mjs 80.4 KB
    • 📄 session-affinity.mjs 4.5 KB
    • 📄 start.sh 723 B
    • 📄 token-tracker.mjs 13.6 KB
  • 📁 references/
    • 📄 architecture.md 11.9 KB
    • 📄 benchmarks.md 4.1 KB
    • 📄 compression-prompts.md 1.9 KB
    • 📄 compression-techniques.md 8.0 KB
    • 📄 README.md 1.4 KB
    • 📄 testing.md 6.2 KB
  • 📁 scripts/
    • 📁 lib/
      • 📁 engram/
        • 📄 http.py 5.2 KB
      • 📁 fusion/
        • 📄 __init__.py 2.7 KB
        • 📄 base.py 3.6 KB
        • 📄 cache_prefix.py 6.5 KB
        • 📄 compact_hooks.py 6.8 KB
        • 📄 content_detector.py 10.6 KB
        • 📄 content_stripper.py 6.0 KB
        • 📄 conversation_summarizer.py 8.7 KB
        • 📄 cortex.py 1.8 KB
        • 📄 diff_crunch.py 7.5 KB
        • 📄 engine.py 23.7 KB
        • 📄 ionizer.py 9.1 KB
        • 📄 llm_summarizer.py 12.3 KB
        • 📄 log_crunch.py 8.1 KB
        • 📄 neurosyntax.py 13.7 KB
        • 📄 nexus.py 10.5 KB
        • 📄 nexus_model.py 6.9 KB
        • 📄 photon.py 17.4 KB
        • 📄 pipeline.py 3.3 KB
        • 📄 plan_reinjection.py 9.3 KB
        • 📄 quantum_lock.py 7.7 KB
        • 📄 search_crunch.py 8.4 KB
        • 📄 semantic_dedup.py 14.0 KB
        • 📄 skill_reinjection.py 6.3 KB
        • 📄 structural_collapse.py 15.9 KB
        • 📄 tiered_compaction.py 15.0 KB
        • 📄 tool_result_budget.py 4.5 KB
      • 📁 rewind/
        • 📄 __init__.py 396 B
        • 📄 marker.py 1.5 KB
        • 📄 retriever.py 2.1 KB
        • 📄 store.py 3.2 KB
      • 📄 __init__.py 1.1 KB
      • 📄 cli.py 648 B
      • 📄 config.py 11.1 KB
      • 📄 crunch_bench.py 10.1 KB
      • 📄 dedup.py 3.3 KB
      • 📄 dictionary.py 9.7 KB
      • 📄 engram.py 16.3 KB
      • 📄 engram_http.py 5.4 KB
      • 📄 engram_learner.py 14.3 KB
      • 📄 engram_llm.py 3.5 KB
      • 📄 engram_prompts.py 7.0 KB
      • 📄 engram_storage.py 9.1 KB
      • 📄 engram_utils.py 2.6 KB
      • 📄 exceptions.py 535 B
      • 📄 feedback.py 5.7 KB
      • 📄 markdown.py 9.6 KB
      • 📄 rle.py 5.0 KB
      • 📄 tokenizer_optimizer.py 5.7 KB
      • 📄 tokens.py 2.5 KB
      • 📄 unicode_maps.py 3.3 KB
    • 📄 __init__.py 0 B
    • 📄 audit_memory.py 6.4 KB
    • 📄 benchmark_fusion.py 47.6 KB
    • 📄 cli.py 746 B
    • 📄 compress_memory.py 7.7 KB
    • 📄 compressed_context.py 8.6 KB
    • 📄 dedup_memory.py 5.0 KB
    • 📄 dictionary_compress.py 5.5 KB
    • 📄 engram-auto.sh 4.9 KB
    • 📄 engram_auto.py 40.1 KB
    • 📄 engram_cli.py 17.1 KB
    • 📄 estimate_tokens.py 4.2 KB
    • 📄 generate_summary_tiers.py 8.6 KB
    • 📄 mem_compress.py 28.7 KB
    • 📄 observation_compressor.py 14.8 KB
  • 📁 tests/
    • 📄 __init__.py 0 B
    • 📄 conftest.py 3.2 KB
    • 📄 test_audit_comprehensive.py 3.9 KB
    • 📄 test_audit_memory.py 2.2 KB
    • 📄 test_benchmark.py 4.7 KB
    • 📄 test_cli_commands.py 7.4 KB
    • 📄 test_compress_memory.py 3.7 KB
    • 📄 test_compress_memory_comprehensive.py 6.6 KB
    • 📄 test_compressed_context.py 5.1 KB
    • 📄 test_config.py 1.9 KB
    • 📄 test_conversation_summarizer.py 7.1 KB
    • 📄 test_cortex.py 8.7 KB
    • 📄 test_crunch_bench.py 17.5 KB
    • 📄 test_dedup_memory.py 4.1 KB
    • 📄 test_dictionary.py 10.8 KB
    • 📄 test_dictionary_comprehensive.py 7.6 KB
    • 📄 test_engram.py 43.1 KB
    • 📄 test_engram_auto.py 38.5 KB
    • 📄 test_engram_learner.py 14.8 KB
    • 📄 test_error_handling.py 6.4 KB
    • 📄 test_estimate_tokens.py 3.0 KB
    • 📄 test_existing_edge_cases.py 15.2 KB
    • 📄 test_feedback.py 12.4 KB
    • 📄 test_fusion_engine.py 35.9 KB
    • 📄 test_fusion_pipeline.py 18.1 KB
    • 📄 test_generate_summary_tiers.py 3.5 KB
    • 📄 test_integration.py 10.0 KB
    • 📄 test_lib_dedup.py 4.1 KB
    • 📄 test_lib_markdown.py 12.1 KB
    • 📄 test_lib_tokens.py 3.2 KB
    • 📄 test_main_entry.py 6.1 KB
    • 📄 test_markdown_advanced.py 8.8 KB
    • 📄 test_neurosyntax.py 14.2 KB
    • 📄 test_new_features.py 2.7 KB
    • 📄 test_new_features_v8.py 45.6 KB
    • 📄 test_nexus.py 20.6 KB
    • 📄 test_observation_comprehensive.py 9.6 KB
    • 📄 test_observation_compressor.py 4.6 KB
    • 📄 test_performance.py 6.7 KB
    • 📄 test_phase3_structured.py 23.8 KB
    • 📄 test_photon.py 15.9 KB
    • 📄 test_pipeline.py 4.3 KB
    • 📄 test_quantum_lock.py 14.5 KB
    • 📄 test_real_workspace.py 6.5 KB
    • 📄 test_rewind.py 20.0 KB
    • 📄 test_rle.py 3.6 KB
    • 📄 test_rle_comprehensive.py 4.5 KB
    • 📄 test_roundtrip.py 8.7 KB
    • 📄 test_roundtrip_comprehensive.py 7.9 KB
    • 📄 test_semantic_dedup.py 26.8 KB
    • 📄 test_structural_collapse.py 30.9 KB
    • 📄 test_tiered_compaction.py 7.6 KB
    • 📄 test_tiers_comprehensive.py 5.8 KB
    • 📄 test_token_economics.py 9.5 KB
    • 📄 test_tokenizer_optimizer.py 5.8 KB
    • 📄 test_tokenizer_optimizer_comprehensive.py 7.9 KB
    • 📄 test_tokens.py 803 B
    • 📄 test_tool_result_budget.py 4.5 KB
    • 📄 test_v8_deep.py 52.4 KB
  • 📄 .gitignore 145 B
  • 📄 ARCHITECTURE.md 26.4 KB
  • 📄 CHANGELOG.md 4.1 KB
  • 📄 CITATION.cff 706 B
  • 📄 CODE_OF_CONDUCT.md 2.3 KB
  • 📄 CONTRIBUTING.md 3.9 KB
  • 📄 engram.yaml 1.5 KB
  • 📄 LICENSE 1.1 KB
  • 📄 mkdocs.yml 1.6 KB
  • 📄 pyproject.toml 2.2 KB
  • 📄 README.md 16.4 KB
  • 📄 SECURITY.md 440 B
  • 📄 SKILL.md 13.7 KB

SKILL.md

登录后下载/点赞/收藏 ❤ 2.1K | ★ 0
评论 0

请先登录后评论。

评论加载中...