@org_pigeon/ai-context
v0.1.0
Published
Converts a Pigeon graph into token-efficient AI context documents for LLMs
Maintainers
Readme
@org_pigeon/ai-context
Converts a Pigeon graph into a token-efficient AI context document.
Use this to inject your entire project structure into a ChatGPT / Claude / Cursor conversation in one paste.
Install
npm install @org_pigeon/ai-context @org_pigeon/analyzerUsage
import { Analyzer } from "@org_pigeon/analyzer";
import { generateAiContext } from "@org_pigeon/ai-context";
const graph = await new Analyzer({ projectRoot: "/path/to/project" }).analyze();
const context = generateAiContext(graph, "my-app");
console.log(context);
// # PROJECT CONTEXT: my-app
// Generated: 2025-05-14T...
// Files: 42 | Functions: 180 | Routes: 14 | Env vars: 8
//
// ## FILES
// ### src/index.ts
// Functions: main, init
// Routes : GET /health | POST /users
// ...API
generateAiContext(graph, projectName): string
Returns a plain-text document suitable for pasting into any LLM.
License
MIT
