惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 【当耐特】
A
About on SuperTechFans
Last Week in AI
Last Week in AI
雷峰网
雷峰网
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - whitecell-dev/Semantic-Extractor: I'm using ...
MaykonMan · 2026-05-24 · via Hacker News - Newest: "LLM"

Griffe + constraints, served over MCP.

Ground truth about framework usage rules, not just API signatures.


The Problem

Griffe tells you what a framework has. It doesn't tell you how the framework forces you to use it.

  • Which decorators can nest?
  • What signature transformations happen?
  • What are the type constraints?
  • Where can a decorator legally be placed?

LLMs need these rules to generate correct code.


The Solution

Semantic Extractor compiles framework source code into a structured IR bundle that captures:

Layer What It Captures Example
API signatures Functions, classes, methods (Griffe-compatible) def command(...)
Decorator placement Where decorators can legally appear `COMMAND_BUILDER = FUNCTION
Signature invariants How decorators transform function signatures --kebab-casesnake_case parameter
Type constraints Validation rules for parameters Path constraints: exists, file_okay, writable
Graph edges Parent-child relationships groupcommand (contains_command)
Node roles Multi-role bitmask `COMMAND

Then serves it over MCP for token-efficient, on-demand retrieval.


The Pattern

Framework Source Code
        ↓
[Semantic Extractor] → Static Analysis → IR Bundle (JSON)
        ↓
[MCP Server] → Queryable Knowledge for LLMs
        ↓
LLM asks: "What are the constraints on @click.option?"
MCP replies: "Must be FUNCTION. Transforms kebab-case to snake_case. Injects as keyword argument."

Griffe gives you the mirror. Semantic Extractor gives you the compiler.


What It Offers That Traditional MCP Tools Don't

Traditional MCP Semantic Extractor
Knowledge source Documentation (stale, incomplete) Source code (ground truth)
What it knows What the framework does How the framework must be used
Granularity Function-level Constraint-level
Output Natural language descriptions Structured invariants + rules
Guarantees "Probably correct" Ground truth from source

Supported Frameworks (Validated)

Python

  • Click (decorator constraints, signature invariants)
  • Loguru (lazy evaluation, binding, sinks)
  • Flask (routes, methods, blueprints)
  • HTTPX (client, request/response)
  • SQLModel (models, relationships)
  • Textual (widgets, bindings, messages)
  • Starlette (routes, middleware)
  • Dishka (dependency injection)
  • Griffe (API extraction)
  • Snoop (debugging)

Lua/Luau

  • Luau (Roblox) (type system, constraints)
  • Lua (bundle)

Swift

  • SwiftUI (view modifiers, state, bindings)

MCP Tools (Planned)

Tool Description
get_framework_info Framework metadata, version, capabilities
get_decorator_constraint Placement rules for a decorator
get_signature_invariant Signature transformation rules
get_type_constraint Type validation rules
get_command_edges Parent-child relationship graph
get_node_role Role bitmask for a symbol

The LLM doesn't guess. It retrieves ground truth.


Example: Click Decorator Constraints

# Without Semantic Extractor
LLM: "I'll nest a @click.command inside another @click.command"
# → Wrong. Only groups can nest commands.

# With Semantic Extractor
LLMMCP: get_decorator_constraint("command")
MCPLLM: "COMMAND_BUILDER = FUNCTION | TOP_LEVEL. Cannot be nested."
LLM: "I must use @click.group to nest commands."

The LLM retrieves the rule before generating incorrect code.


Repository Structure

semantic-extractor/
├── extractors/
│   ├── python/
│   │   ├── calyx_click_v6.py
│   │   ├── calyx_loguru.py
│   │   ├── calyx_flask_v6.py
│   │   └── ...
│   ├── lua/
│   └── swift/
├── bundles/
│   ├── calyx_click_v6.json
│   ├── calyx_loguru_v6.json
│   └── ...
├── mcp/
│   └── server.py (coming soon)
└── README.md

License

MIT


Griffe tells you what exists. Semantic Extractor tells you how it must be used.