github.com · 59 min read
Graphify is an open-source tool that transforms codebases, docs, PDFs, images, etc. into a queryable knowledge graph. It uses tree-sitter for local deterministic AST parsing to extract code relationships (calls, imports, inheritance) without any LLM calls. Non-code files are semantically extracted via your AI assistant's model. The output includes an interactive HTML visualization, CLI queries (query/path/explain), and an MCP server for team use. Every edge is tagged EXTRACTED or INFERRED, providing transparency. Ideal for engineers navigating large monorepos, tracing dependencies, or understanding architecture.
x.com · 13 min read
This essay explores the shift from single-loop optimization to graph-structured improvement in AI agent engineering. It dissects four failure modes of single loops: Goodhart's law, blindness to target correctness, conflict among loops, and measurement decay. Mature systems employ graphs of loops—champion-challenger, drift monitoring, rollback, and audit loops—each watching and constraining others. But graphs alone fail without anchors: measures that touch reality, frozen rules, and human judgment on what 'better' means. The key is groundedness, not topology. For AI engineers, MLOps practitioners, and agent designers.
x.com · 21 min read
Most multi-step agents are built as linear chains, each step waiting for the previous one, wasting parallelism and creating bottlenecks. This article introduces graph engineering for agents using Claude Code's dynamic workflows. It presents 14 steps to transform linear scripts into directed acyclic graphs (DAGs) where nodes are bounded work units with contracts (validated input/output schemas) and edges are data dependencies. Key patterns include parallel fan-out (parallel()), fan-in barriers, runtime routing, adversarial verifiers, and convergent cycles. The author provides JavaScript/TypeScript code examples and topology diagrams, showing how to scale agents from a single-threaded line to a coordinated fleet. Targeted at engineers building complex agent systems who want to improve throughput, reliability, and cost efficiency.