Skip to content

v0.1.3 — Import Graph + Cost Estimates

Choose a tag to compare

@Sayeem3051 Sayeem3051 released this 05 Apr 13:20
· 26 commits to main since this release

What's New

✨ Import Graph Analysis

  • ctxeng now automatically pulls in locally imported Python modules
  • If auth.py is 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_estimate shows 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-cost to hide from output
  • Supported: Claude, GPT-4o, GPT-4, Gemini, Llama

Previous releases

  • v0.1.2 — .ctxengignore support, 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