{"data":{"slug":"hambaobao-hcp-coder","name":"HCP-Coder","tagline":"Hierarchical Context Pruning for code completion using pre-trained large language models","github_url":"https://github.com/Hambaobao/HCP-Coder","owner":"Hambaobao","repo":"HCP-Coder","owner_avatar_url":"https://avatars.githubusercontent.com/u/48345096?v=4","primary_language":"Python","stars":17,"forks":2,"topics":["code-completion","large-language-models"],"archived":false,"github_pushed_at":"2024-11-17T16:50:33+00:00","maintenance_label":"Dormant","url":"https://www.graphcanon.com/tools/hambaobao-hcp-coder","markdown_url":"https://www.graphcanon.com/tools/hambaobao-hcp-coder.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/hambaobao-hcp-coder","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=hambaobao-hcp-coder","description":"Hierarchical Context Pruning (HCP): A strategy to optimize real-world code completion with repository-level pre-trained code large language models","homepage_url":null,"license":"MIT","open_issues":1,"watchers":2,"ai_summary":"HCP-Coder provides an approach to optimize real-world code completion tasks with repository-level pre-trained models.","readme_excerpt":"## Requirements\n\n- Run `pip install -r requirements.txt` to install all requirements.\n\n&nbsp;","github_created_at":"2024-06-26T08:57:21+00:00","created_at":"2026-07-11T23:44:53.337921+00:00","updated_at":"2026-08-05T12:02:21.839002+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"},{"slug":"model-training","name":"Model Training","url":"https://www.graphcanon.com/categories/model-training","markdown_url":"https://www.graphcanon.com/categories/model-training.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/model-training"}],"tags":[{"slug":"code-completion","name":"code-completion"},{"slug":"large-language-models","name":"large language models"}],"trust":{"provenance":{"is_fork":false,"github_id":820329713,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-05T12:02:20.997Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":625,"last_release_at":null},"security_summary":{"status":"findings","scanner":"osv@v1","low_count":49,"high_count":0,"last_scan_at":"2026-07-11T23:44:54.798Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-05T12:02:21.509Z"},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-08-05T12:02:21.509Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-05T12:02:21.509Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["When deploying a solution that requires precise and context-aware code completions within the bounds of project repositories, leveraging HCP-Coder can enhance efficiency","Suitable if you have a large codebase where traditional methods of code completion do not adequately handle hierarchical or contextual nuances"],"when_not_to_use":["Avoid using for smaller projects that do not require extensive context pruning since the setup and overhead might outweigh benefits","Not ideal when working with languages that lack comprehensive pre-trained models, as HCP-Coder's performance hinges on repository-level pre-training"],"source":"enrich:decision_facts","observed_at":"2026-07-16T16:00:49.752Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Hierarchical Context Pruning (HCP) for optimizing real-world code completion tasks with repository-level pre-trained models"}]}}