Urgent.News

What's breaking now, across thousands of outlets.

AI

Giving AI Agents Memory of PyPI: Building a Python Package Connector for Cognee

When building AI coding assistants or developer agents, one of the biggest challenges is hallucination of library APIs, outdated functions, and deprecated parameters . Large Language Models frequently invent methods that don’t exist or assume library versions from their pre-training cutoffs. To solve this, we built a native PyPI Data-Source Connector for Cognee (the open-source memory engine and…

To address the challenge of AI agents generating inaccurate information about library APIs, Python's PyPI Data-Source Connector was developed for Cognee. This open-source memory engine uses the official PyPI JSON REST API to fetch live package specifications, creating a structured knowledge graph of libraries, functions, and dependencies.

The connector extracts metadata like summaries, licenses, and documentation URLs, while parsing dependency requirements to build a precise library dependency graph. Metadata is then ingested into Cognee's semantic layers, generating structured markdown and linking entities within the graph. The connector is designed for production reliability, requiring no external API keys and featuring robust error handling.

It has undergone comprehensive testing with a 9-test suite, covering various scenarios. The project is part of Mergetober 2026 initiative by WeMakeDevs and Cognee, with a Pull Request available for further development.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

I priced my side project's LLM bill in 20 lines of JavaScript — here's the token math

I priced my side project's LLM bill in 20 lines of JavaScript — here's the token math Adding an AI summary feature to a side project cost me $156 a month at a volume I would have guessed was…

  • JavaScript code reveals LLM billing formula in 20 lines
  • Input tokens cost less than output tokens due to complexity
  • System prompt costs 20.5% of total bill despite being static

🕯️ SpookyCode: The Haunted Autonomous AI Coding Agent That Possesses Your Codebase and Banishes Tech Debt

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine What I Built Most coding agents today are sterile, transactional autocomplete machines.

  • SpookyCode is an open-source AI coding agent that takes control of a codebase
  • Agent operates in isolated workspace with deterministic tools and safety invariants
  • Unique features include CLI, multi-step engineering loop, and supernatural toolkits

More from Friday 30 October →