v0.1.3 — Import Graph + Cost Estimates
What's New
✨ Import Graph Analysis
- ctxeng now automatically pulls in locally imported Python modules
- If
auth.pyis relevant, files it imports get included automatically - Configurable depth (default: 1 hop) and score decay (default: 0.7)
- Works via static AST parsing — no runtime execution
- New API:
build_import_graph(),expand_with_imports() - New CLI flags:
--import-graph-depth N,--no-import-graph
💰 Cost Estimates
ctx.cost_estimateshows rough USD input cost for known models- Shown automatically in
ctx.summary():
Est. cost: ~$0.037 (claude-sonnet-4) - New public API:
estimate_cost(tokens, model) - New CLI flag:
--no-show-costto hide from output - Supported: Claude, GPT-4o, GPT-4, Gemini, Llama
Previous releases
- v0.1.2 —
.ctxengignoresupport, pathspec dependency - v0.1.0 — Initial release
Installation
pip install --upgrade ctxeng
Full Changelog
https://github.com/Sayeem3051/python-context-engineer/blob/main/CHANGELOG.md