Skip to content

Repository files navigation

Context Crucible

Context Crucible turns a repository plus a task prompt into a budgeted context pack for coding agents. It scores files using query overlap, import graph centrality, symbols, path matches, and explicit leakage guards.

The project is built for the uncomfortable middle ground between "dump the repo into the prompt" and "hope semantic search finds the right file." It produces a manifest engineers can audit before an agent sees the context.

Install

git clone https://github.com/nripankadas07/context-crucible
cd context-crucible
python -m pip install -e .

Quick Start

context-crucible pack . --task "fix the JSON pointer resolver" --budget 1400

Design

  • static source discovery for Python and TypeScript
  • import/reference graph scoring
  • token-budgeted file selection
  • hidden-test and oracle-patch leakage guard
  • Markdown pack plus JSON-compatible manifest

Development

python -m unittest discover -s tests -v

About

Budgeted repository context packer for coding agents with salience scoring and leakage guards.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages