SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python context-engineering Projects
-
headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Headroom is a proxy between your harness and LLM api, reduce token usage by stripping out unnecessary context and other optimizations I haven't fully understood yet. I created a wrapper CLI headroom-kit to help me use it with the copilot app and vscode. If you use nix headroom-kit-nix.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Use ai-agent-book as a Lab Manual, Not a 12,000-Star Reading List | dev.to | 2026-07-21
The open-source repository bojieli/ai-agent-book contains the Chinese book Understanding AI Agents: Design Principles and Engineering Practice, a compiled PDF, and chapter-based code. It uses the Apache-2.0 license.
-
OpenViking
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Project mention: 7 GitHub Repos That Turn Your AI Coding Agent Into a Real Teammate | dev.to | 2026-11-12Repo: volcengine/OpenViking
-
Project mention: GitHub AI Repos ประจำสัปดาห์: สัปดาห์ที่ agent มีด่านตรวจของตัวเอง (7 ต.ค. 2026) | dev.to | 2026-10-10
[1] GitHub Trending, weekly, 2026, https://github.com/trending?since=weekly [2] GitHub Trending, รายภาษา (Go, Python, TypeScript) weekly และ monthly, 2026, https://github.com/trending/go?since=weekly [3] GitHub Ranking AI, Top 100 AI Agents, 2026, https://raw.githubusercontent.com/yuxiaopeng/Github-Ranking-AI/main/Top100/AI%20Agents.md [4] NVIDIA/OpenShell, README, 2026, https://github.com/NVIDIA/OpenShell [5] NVIDIA OpenShell documentation, 2026, https://docs.nvidia.com/openshell/latest/index.html [6] NVIDIA/OpenShell, releases, v0.1.2, 28 กันยายน 2026, https://github.com/NVIDIA/OpenShell/releases [7] ifixai-ai/iFixAi, README, 2026, https://github.com/ifixai-ai/iFixAi [8] mvschwarz/openrig, README, 2026, https://github.com/mvschwarz/openrig [9] mvschwarz/openrig, releases, v0.6.5, 4 ตุลาคม 2026, https://github.com/mvschwarz/openrig/releases [10] cursor/plugins, README, 2026, https://github.com/cursor/plugins [11] anthropics/knowledge-work-plugins, README, 2026, https://github.com/anthropics/knowledge-work-plugins [12] JuliusBrussee/caveman, README, 2026, https://github.com/JuliusBrussee/caveman [13] Adeyemi, M. D., Rossi, R. A., Dernoncourt, F., "CAVEWOMAN: How Large Language Models Behave Under Linguistic Input and Output Compression", arXiv 2606.24083, 2026, https://arxiv.org/abs/2606.24083 [14] Shiryaev, D., "Does Speaking to Agents Like Cavemen Really Save 65% of Tokens? We Test", JetBrains AI Blog, 2026, https://blog.jetbrains.com/ai/2026/07/speak-to-ai-agents-like-cavemen-tosave-tokens/ [15] headroomlabs-ai/headroom, README, 2026, https://github.com/headroomlabs-ai/headroom [16] VectifyAI/PageIndex, README, 2026, https://github.com/VectifyAI/PageIndex [17] VectifyAI/PageIndex, releases, v0.2.21, 1 ตุลาคม 2026, https://github.com/VectifyAI/PageIndex/releases
-
cognee
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
Project mention: Can a user retrieve information outside their permissions, including through the lexical search path, caches, or indirect references? | dev.to | 2026-11-03The query language. Cognee pull request #5844, merged into its dev branch on 15 October 2026: "CYPHER and NATURAL_LANGUAGE search types run raw Cypher against the graph database." And: "Any user with read access to a dataset could execute arbitrary queries". The change: "ALLOW_CYPHER_QUERY now defaults to false." For turning it back on: "Only do that when every user of the deployment is trusted."
-
Project mention: Open Source Radar · 2026-10-22: Skill pipelines and isolated agent workspaces | dev.to | 2026-10-22
GitHub: https://github.com/semantica-agi/semantica
-
Pinned Honcho source tree
-
APM (Agent Package Manager) is a dependency management tool for AI agents published by Microsoft. It treats skills, prompts, instruction files, and MCP servers as packages.
-
cocoindex-code
A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent 🌟 Star if you like it!
Project mention: I Built a Code AST MCP That Saves 70% Tokens and Went Viral (54K+ Views) | dev.to | 2026-03-10I built cocoindex-code - a super lightweight embedded MCP that:
-
agentic-context-engine
🧠 Make your agents learn from experience. Now available as a hosted solution at kayba.ai
Project mention: agentic-context-engine VS Radioso - a user suggested alternative | libhunt.com/r/agentic-context-engine | 2026-09-08 -
Project mention: PowerContext, Context for work that humans and agents hand off and continue | news.ycombinator.com | 2026-09-14
-
ApeRAG
ApeRAG: Production-ready GraphRAG with multi-modal indexing, AI agents, MCP support, and scalable K8s deployment
-
Project mention: Promptise Foundry – a Python agentic framework for building production systems | news.ycombinator.com | 2026-05-04
-
awesome-harness-engineering
Awesome list for AI agent harness engineering: tools, patterns, evals, memory, MCP, permissions, observability, and orchestration.
Project mention: 7 GitHub Repos That Turn Your AI Coding Agent Into a Real Teammate | dev.to | 2026-11-12Repo: ai-boost/awesome-harness-engineering
-
mcp-server-gateway
MCP gateway & OAuth MCP servers. LangGraph agent: memory, eval/tracking, PII guard, context trimming. Docker quick start for enterprise agents.
Repo: https://github.com/harish-gaggar/mcp-server-gateway
-
activity-frames
Turn your workday into structured workflows agents can execute. 100% local, served over MCP.
Project mention: A compiler that turns a day at my computer into agent memory, no LLM | news.ycombinator.com | 2026-08-11 -
-
lamindb
Open-source data management for multimodal AI. Query, trace, and govern with a lineage-native, format-agnostic lakehouse for agents and teams. Supports biological formats and registries - by the creators of Scanpy. 🍊YC S22
-
Project mention: Keeping project decisions across Claude Code and Codex sessions with docs-governance | dev.to | 2026-09-26
-
event-deep-research
AI Agent that researches the lives of historical figures and extracts events into structured JSON timelines using LangGraph multi-agent orchestration.
-
keep-the-why
The why layer of repo-native project memory: the reasoning behind a codebase as Markdown in the repo, versioned by Git, for coding agents and humans, so nothing rejected is proposed twice. No database, no daemon, no account.
I arrived at this while building the eval suite for Keep the Why, a repo-native project-memory skill for coding agents. The lesson applies to any setup where one model performs a task and another one grades it, because neither side of that measurement stays still. And if you do not record the instrument, a regression in the instrument looks exactly like a regression in your product.
-
-
contextrot
Find out where your coding agent starts degrading. Personal context-rot analytics from your own sessions - 100% local, zero-config: uvx contextrot
Project mention: Show HN: Contextrot– Analyze where Claude Code degrades from its own session log | news.ycombinator.com | 2026-07-05
Python context-engineering discussion
Python context-engineering related posts
-
7 GitHub Repos That Turn Your AI Coding Agent Into a Real Teammate
-
Microsoft's APM is npm for agent context: one apm.yml, 9 harnesses, byte-exact lockfiles
-
Show HN: We Build Shareable Context Layer for Agent Teams
-
Agent Package Manager: Keep Skills Updated with Dependabot
-
APM – A dependency manager for AI agents
-
Cut Claude Code token spend with Headroom: a 5 step setup
-
Cutting RAG Token Bloat: Compression Before Retrieval in Production Pipelines
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 Nov 2026
Index
What are some of the best open-source context-engineering projects in Python? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | headroom | 79,196 |
| 2 | ai-agent-book | 57,713 |
| 3 | OpenViking | 42,196 |
| 4 | PageIndex | 40,408 |
| 5 | cognee | 33,278 |
| 6 | Semantica | 14,601 |
| 7 | honcho | 7,870 |
| 8 | apm | 4,364 |
| 9 | cocoindex-code | 2,978 |
| 10 | agentic-context-engine | 2,611 |
| 11 | powercontext | 1,640 |
| 12 | ApeRAG | 1,319 |
| 13 | Foundry | 897 |
| 14 | awesome-harness-engineering | 896 |
| 15 | mcp-server-gateway | 586 |
| 16 | activity-frames | 531 |
| 17 | synalinks | 467 |
| 18 | lamindb | 436 |
| 19 | docs-governance | 325 |
| 20 | event-deep-research | 257 |
| 21 | keep-the-why | 165 |
| 22 | colin | 124 |
| 23 | contextrot | 114 |