dgenio/contextweaver

Budget-aware context compilation and context firewall for tool-heavy AI agents.

53
/ 100
Established

Implements an eight-stage context compilation pipeline that selectively includes events, tool schemas, and dependencies based on per-phase token budgets, combined with a routing engine that beam-searches a bounded DAG of tool catalogs to generate compact choice cards. The architecture uses protocol-based storage backends (event logs, artifact stores, episodic memory) for flexibility, integrates with MCP and A2A agentic standards, and includes a context firewall that externalizes large tool results while injecting summaries into prompts—all deterministic, zero-dependency, and fully instrumented with per-build diagnostics.

Available on PyPI.

No Dependents
Maintenance 13 / 25
Adoption 10 / 25
Maturity 18 / 25
Community 12 / 25

How are scores calculated?

Stars

3

Forks

1

Language

Python

License

Apache-2.0

Last pushed

Mar 10, 2026

Monthly downloads

853

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/dgenio/contextweaver"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.