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

推荐订阅源

有赞技术团队
有赞技术团队
B
Blog
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
量子位
博客园 - 叶小钗
T
Tailwind CSS Blog
小众软件
小众软件
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
雷峰网
雷峰网
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
V
V2EX
博客园_首页
I
InfoQ
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - atveit/pi-mojo: A mojo port of the PI AI Agent T...
amund · 2026-05-24 · via Hacker News - Newest: "AI"

pi-mojo is a native Mojo port of Pi—a popular, tool-efficient agentic AI platform (utilizing only 4 core tools) prominent in open-source systems like OpenClaw. It provides the Mojo community with a compiled, self-contained reference implementation to explore systems-level agent architectures, type-safe structures, and native C integrations.


🚀 Getting Started

Prerequisites

Ensure you have the Modular Mojo compiler installed:

Running Examples

The repository features progressive, systems-level agentic AI examples demonstrating the spectrum of agent architectures and compiled system execution capabilities:

🤖 Example 1: Progressive AI Completions & Chat (Sample Run)

A progressive exploration of text completions, starting from zero dependencies, local llm and live cloud LLMs.

mojo -I src examples/example_1_basic_ai/example_basic_ai.mojo

💻 Example 2: Systems Coding Agent (Sample Run)

A systems agent that translates high-level task descriptions into shell commands and executes them natively via system process spawning.

mojo -I src examples/example_2_coding_agent/example_coding_agent.mojo

🔧 Example 3: Native AI Tool Calling (Sample Run)

A cloud-only agent demonstrating how to expose native Mojo functions as tools (Function Calling) to a live LLM.

mojo -I src examples/example_3_tool_calling/example_tool_calling.mojo

🌊 Example 4: Real-Time AI Event Streaming (Sample Run)

A cloud-only completions stream demonstrating real-time streaming token parsing and flushed printing.

mojo -I src examples/example_4_event_stream/example_event_stream.mojo

Example 5: GPU-Accelerated Hardware Analytics (Sample Run)

A local performance benchmark executing parallel token classification on a hardware-accelerated GPU pipeline.

mojo -I src examples/example_5_gpu_analytics/example_gpu_analytics.mojo

🌐 Example 6: Concurrent Multi-URL Web Research Agent (Sample Run)

A concurrent web agent spawning parallel thread pools to fetch and sanitize multiple websites concurrently, then synthesizing research reports via Gemini 3.5 Flash.

mojo -I src examples/example_6_web_researcher/example_web_researcher.mojo

🔍 Example 7: Codebase Semantic Auditor & Refactoring Agent (Sample Run)

A systems security auditor agent crawling files dynamically and extracting zero-copy StringView lifetimes slices to synthesize refactoring proposals.

mojo -I src examples/example_7_codebase_auditor/example_codebase_auditor.mojo

🔁 Example 8: Long-Running Coder Agent (Sample Run)

An autonomous systems-level coding agent running in a persistent loop (Plan -> Act -> Observe -> Repeat) that maintains session state history, executes system commands, and solves multi-step engineering tasks.

mojo -I src examples/example_8_long_running_coder/example_long_running_coder.mojo --interactive

💓 Example 9: Local LLM Service Heartbeat Check (Sample Run)

A diagnostics checker that executes health queries and round-trip timing checks to verify the state of local LLM models on port 1234.

mojo -I src examples/example_9_local_heartbeat/example_local_heartbeat.mojo

🔄 Example 10: Towards Full-Fledged Agentic Loops (Sample Run)

An autonomous background-ticking daemon agent driven by a heartbeat clock that polls workspace states, monitors compilation status, patches error logs, and drives tasks to completion.

mojo -I src examples/example_10_full_fledged_agent/example_full_fledged_agent.mojo --interactive

🤖 Example 11: Playbook-Guided Autonomous Agent

An autonomous systems agent using the v0.2 playbook package to match tasks against a local repository of successful command playbooks (Alignment), and synthesize new ones upon success (Extraction).

mojo -I src examples/example_11_playbook_agent/example_playbook_agent.mojo --interactive

💾 Example 12: Crash-Resilient Durable Agent Loop

An autonomous systems agent using the v0.2 durable package to checkpoint its full state (messages, history, iteration index) to disk at every turn, enabling seamless recovery and completion after unexpected system crashes or restarts.

mojo -I src examples/example_12_durable_agent/example_durable_agent.mojo --interactive

🔬 Example 13: Basic Karpathy Autoresearch Loop

An autonomous systems agent implementing a basic Karpathy autoresearch loop (Propose -> Compile/Run -> Evaluate Metric -> Keep/Discard) to dynamically optimize a math compute kernel.

mojo run -I src examples/example_13_autoresearch/example_autoresearch.mojo

🏗️ High-Level System Architecture

pi-mojo unifies compiled, high-performance systems logic with dynamic agent loops. High-level agent packages leverage low-level subprocess utilities and filesystem caching tools to achieve zero-overhead execution.

In v0.2, we introduced the Autonomous Playbook package (src/packages/playbook/) to enable agents to learn from successful executions and avoid trial-and-error, as well as the Durable Checkpointing package (src/packages/durable/) to enable resilient state recovery across process boundaries. Each of the examples is built around a concrete systems-level story narrative.

For complete technical implementation details, sequence diagrams of the execution, and the repository directory layout, refer to ARCHITECTURE.md.

🎭 Real-World Systems Scenarios

For comprehensive, end-to-end systems engineering operations demonstrations, check out our dedicated Systems Storyboard Scenarios suite.

Instead of basic progressive API capability showcases, these scenarios are built around narrative-driven systems storyboards, including:

For details on running these operations storyboards, see the Scenarios Hub README.


🛡️ License

Licensed under the MIT License (refer to the LICENSE file for details).