Claude Auto Compact

C+ 70 completed
Other
unknown / shell · tiny
20
Files
1,563
LOC
0
Frameworks
4
Languages

Pipeline State

completed
Run ID
#352148
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
14.14
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #48041
Member of a group with 1 similar repo(s) — canonical #107106 view group →
Top concepts (2)
Project DescriptionLibrary
Repobility · code-quality intelligence platform · https://repobility.com

AI Prompt

Create a command-line tool, ideally using shell scripting and Python, that provides automatic partial compaction for Claude Code sessions. The tool needs to implement two hooks: a 'Stop hook' to warn the user when context usage is high, and a 'SessionEnd hook' that automatically runs a compaction process when the session exits. This process should summarize older exchanges while keeping the last N turns verbatim. It must handle configuration via a JSON file, check context usage, and ideally integrate with an existing tool like `decant`.
shell python cli automation context-management scripting json claude
Generated by gemma4:latest

Catalog Information

Automatic partial compaction for Claude Code sessions. Keeps your recent context verbatim while summarizing older exchanges — triggered automatically when you exit a session.

Description

Automatic partial compaction for Claude Code sessions. Keeps your recent context verbatim while summarizing older exchanges — triggered automatically when you exit a session.

Novelty

3/10

Tags

shell python cli automation context-management scripting json claude

Claude Models

claude-opus-4-6

Quality Score

C+
70.4/100
Structure
67
Code Quality
78
Documentation
46
Testing
70
Practices
68
Security
100
Dependencies
50

Strengths

  • Good test coverage (56% test-to-source ratio)
  • Good security practices \u2014 no major issues detected
  • Properly licensed project

Weaknesses

  • No CI/CD configuration \u2014 manual testing and deployment

Recommendations

  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency

Security & Health

5.6h
Tech Debt (D)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (9)
Repobility analyzer · published findings · https://repobility.com
MIT
License
2.5%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

shell
68.2%
python
14.1%
markdown
10.9%
json
6.7%

Frameworks

None detected

Concepts (2)

Findings curated by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Methodology: Repobility · https://repobility.com/research/state-of-ai-code-2026/
auto_descriptionProject DescriptionAutomatic partial compaction for Claude Code sessions. Keeps your recent context verbatim while summarizing older exchanges — triggered automatically when you exit a session.80%
auto_categoryLibrarylibrary70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/76257.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV