Python context-engineering

Open-source Python projects categorized as context-engineering

Top 23 Python context-engineering Projects

context-engineering
  1. 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.

    Project mention: Current agentic coding setup | dev.to | 2026-11-04

    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.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. ai-agent-book

    《深入理解 AI Agent:设计原理与工程实践》(李博杰 著)开源主仓库:全书正文、编译版 PDF 与按章配套代码

    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.

  4. 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-12

    Repo: volcengine/OpenViking

  5. PageIndex

    📑 PageIndex: Document Index for Vectorless, Reasoning-based RAG

    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

  6. 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-03

    The 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."

  7. Semantica

    Graph-Native Infrastructure for Context and Accountable AI Systems

    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

  8. honcho

    Memory library for building stateful agents

    Project mention: AI Memory OSS를 프롬프트가 아니라 백엔드 시스템으로 읽는 10가지 질문 | dev.to | 2026-07-16

    Pinned Honcho source tree

  9. apm

    Agent Package Manager

    Project mention: Automating AI Skill Updates with Dependabot and APM | dev.to | 2026-11-12

    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.

  10. 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-10

    I built cocoindex-code - a super lightweight embedded MCP that:

  11. 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
  12. powercontext

    Agent memory: long-term memory & agent memory handoff. Claude Code & Codex.

    Project mention: PowerContext, Context for work that humans and agents hand off and continue | news.ycombinator.com | 2026-09-14
  13. ApeRAG

    ApeRAG: Production-ready GraphRAG with multi-modal indexing, AI agents, MCP support, and scalable K8s deployment

  14. Foundry

    The foundation layer for agentic intelligence. (by promptise-com)

    Project mention: Promptise Foundry – a Python agentic framework for building production systems | news.ycombinator.com | 2026-05-04
  15. 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-12

    Repo: ai-boost/awesome-harness-engineering

  16. mcp-server-gateway

    MCP gateway & OAuth MCP servers. LangGraph agent: memory, eval/tracking, PII guard, context trimming. Docker quick start for enterprise agents.

    Project mention: Building an OAuth-Secured MCP Gateway for Enterprise Agents | dev.to | 2026-10-03

    Repo: https://github.com/harish-gaggar/mcp-server-gateway

  17. 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
  18. 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

  19. docs-governance

    Claude Code、Codex 与 ChatGPT 的文档驱动开发治理插件:防文档腐烂、维护上下文与决策、契约协作、测试与回归证据。

    Project mention: Keeping project decisions across Claude Code and Codex sessions with docs-governance | dev.to | 2026-09-26
  20. event-deep-research

    AI Agent that researches the lives of historical figures and extracts events into structured JSON timelines using LangGraph multi-agent orchestration.

  21. 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.

    Project mention: The Model Changed. My Skill Didn't. The Score Still Dropped. | dev.to | 2026-10-07

    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.

  22. colin

    A context engine that treats skills as software.

    Project mention: Colin | news.ycombinator.com | 2026-01-26
  23. 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
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python context-engineering discussion

Log in or Post with

Python context-engineering related posts

  • 7 GitHub Repos That Turn Your AI Coding Agent Into a Real Teammate

    6 projects | dev.to | 12 Nov 2026
  • Microsoft's APM is npm for agent context: one apm.yml, 9 harnesses, byte-exact lockfiles

    2 projects | dev.to | 9 Nov 2026
  • Show HN: We Build Shareable Context Layer for Agent Teams

    1 project | news.ycombinator.com | 7 Nov 2026
  • Agent Package Manager: Keep Skills Updated with Dependabot

    3 projects | dev.to | 7 Nov 2026
  • APM – A dependency manager for AI agents

    1 project | news.ycombinator.com | 7 Nov 2026
  • Cut Claude Code token spend with Headroom: a 5 step setup

    1 project | dev.to | 28 Oct 2026
  • Cutting RAG Token Bloat: Compression Before Retrieval in Production Pipelines

    1 project | dev.to | 27 Oct 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com