Analyze Batches

pi-cyberneticsourcetypescript
Path: pi-cybernetic/.understand-anything/notes-analysis/analyze-batches.tsRelative: .understand-anything/notes-analysis/analyze-batches.tsSubproject: pi-cyberneticCategory: other
Lines: 139Bytes: 5,068Imports: 4Exports: 0

Content Preview

  1. import { Agent } from "@earendil-works/pi-agent-core";
  2. import { getModel } from "@earendil-works/pi-ai";
  3. import { Type } from "typebox";
  4. import * as fs from "fs";
  5. const PROJECT_ROOT = "/home/mikes/leverage-loops-projects/pi-cybernetic";
  6. const PLUGIN_ROOT = "/home/mikes/.understand-anything-plugin";
  7. const SKILL_DIR = `${PLUGIN_ROOT}/skills/understand`;
  8. // Read the file-analyzer agent definition
  9. const analyzerPrompt = fs.readFileSync(`${PLUGIN_ROOT}/agents/file-analyzer.md`, "utf-8");
  10. // Read b