
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
code-graph-llm
Advanced tools
A language-agnostic, ultra-compact codebase mapper and agent memory system designed specifically for LLM agents. It optimizes context and token usage while enabling agents to learn from their own mistakes across sessions.
code-graph init.PROJECT_REFLECTIONS.md.imports, requires, extends, and implements..gitignore files.## GRAPH EDGES section.npm install -g code-graph-llm
# OR
npm install --save-dev code-graph-llm
# Initialize Agent Rules and Reflection files (Scaffolding)
code-graph init
# Generate the llm-code-graph.md map
code-graph generate
# Record a project reflection (Memory)
code-graph reflect <CATEGORY> "Lesson learned"
# Example: code-graph reflect ENV "Always use 'cmd /c npm' on Windows."
# Start the live watcher for real-time updates
code-graph watch
# Install the Git pre-commit hook (Enforces Map & Memory sync)
code-graph install-hook
Instruct your agent to follow the STRICT AGENT PROTOCOL in AGENT_RULES.md. This ensures the agent:
PROJECT_REFLECTIONS.md before starting any task.llm-code-graph.md) after structural changes.The llm-code-graph.md file provides a high-level map and structural graph for relational reasoning:
Example Map Entry:
- [CORE] src/auth.js (↑3 ↓5) [TODO: Add JWT rotation] | desc: Handles user authentication.
- syms: [login [ (username, password) ], validateToken [ (token: string) ]]
## GRAPH EDGES
[src/auth.js] -> [imports] -> [jwt-library]
[AdminUser] -> [inherits] -> [BaseUser]
"Before acting, read
llm-code-graph.md. Follow the protocol inAGENT_RULES.md. If you encounter a bug or an environment quirk, use thecode-graph reflecttool to record the lesson inPROJECT_REFLECTIONS.md."
Maximize efficiency by pointing your agent directly to the llm-code-graph.md and AGENT_RULES.md files.
Add this to your .clinerules file:
Before starting any task:
1. Read `llm-code-graph.md` for project structure.
2. Read `AGENT_RULES.md` for operational protocol.
3. Read `PROJECT_REFLECTIONS.md` for past lessons.
Add to .cursorrules or .windsurfrules:
Always reference `llm-code-graph.md` to understand the codebase architecture before performing edits. Strictly follow the "Reflection Cycle" in `AGENT_RULES.md`.
Add to .github/copilot-instructions.md:
When answering questions about this codebase, prioritize the mapping data in `llm-code-graph.md`. If a task fails or a mistake is corrected, suggest a reflection entry for `PROJECT_REFLECTIONS.md`.
Create a GEMINI.md file (if not already using AGENT_RULES.md):
- Always read `llm-code-graph.md` as the primary source of truth.
- Use the `run_shell_command` tool to execute `code-graph reflect` after fixing non-obvious bugs.
In your project instructions or session startup:
"Read
llm-code-graph.mdfor a high-level overview. If you discover a project-specific quirk, record it usingcode-graph reflect <CAT> <LESSON>."
Add to your project prompt or prompts.md:
"Use
llm-code-graph.mdto navigate the file structure. Strictly adhere to the reflection cycle inAGENT_RULES.mdto ensure project memory is maintained across iterations."
For any other agent, add this to your system instructions:
"This project uses
code-graph-llmfor context management. Always consultllm-code-graph.mdbefore exploring files. If you learn something new about the environment (e.g., shell quirks, library oddities), persist that knowledge using thecode-graph reflecttool."
.gitignore.imports, requires, extends, and implements.llm-code-graph.md file with a dedicated ## GRAPH EDGES section.FAQs
Compact, language-agnostic codebase mapper for LLM token efficiency.
The npm package code-graph-llm receives a total of 71 weekly downloads. As such, code-graph-llm popularity was classified as not popular.
We found that code-graph-llm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.