Single-file Python agent. Multimodal + web search. Pure stdlib — no frameworks, no dependency trees. Eject the entry plug, type one command, and it fights. 单文件 Python 智能体。多模态 + Web Search。纯标准库——无框架、无依赖树。弹出插入栓,敲一条命令,它就出战。
SEEKING A PERFECT BALANCE BETWEEN CODE SIZE, COMPLEXITY, AND THE CAPABILITY OF THE AGENT. 在代码体积、复杂度和智能体能力之间,追求完美的平衡。
Every subsystem is deliberated by three MAGI modules. Verdict: unanimous. The proof is the 1604-line core that still ships a full agentic loop, three-tier context compaction, an event bus and a reversible extension registry. 每个子系统都由三台 MAGI 评议表决。裁定结果:全体一致。证据是这份仅 1604 行的核心——依然完整承载 agentic 循环、三级上下文压缩、事件总线与可逆扩展注册表。
view_image extension loads local screenshots / UI mockups into the model's vision context.view_image 扩展将本地截图/界面稿载入模型视觉上下文。conf.py (tool whitelist / unloads / prompt overrides) + extensions/. Ships standard / minimal / codemode — activate with MANGO_PRESET; without it: pure built-in tools.按预设目录组织:conf.py(工具白名单/卸载/prompt 覆盖)+ extensions/。内置 standard / minimal / codemode — 用 MANGO_PRESET 激活;不设置则为纯内置工具。SKILL.md. Install in ~/.mangocli/skills/, invoke via use_skill.通过 SKILL.md 复用工作流。安装至 ~/.mangocli/skills/,通过 use_skill 调用。LOCAL-FIRST. AUDITABLE. HACKABLE. YOUR MACHINE, YOUR AGENT. 本地优先、可审计、可魔改。你的机器,你的智能体。
Frameworks hide the loop behind abstractions until the agent becomes a black box. Mangopi refuses that: everything is one importable Python file — the prompt, the tool dispatch, the compaction heuristics, the extension registry. Fork it, gut it, rebuild it. 框架把循环藏在抽象背后,直到智能体变成黑箱。Mangopi 拒绝这条路:一切都在一个可导入的 Python 文件里——prompt、工具分发、压缩策略、扩展注册表。fork 它、拆解它、重建它。
/qQuit退出
/nNew session新会话
/cCompact手动压缩
/hHelp帮助
Recommended. Requires Python 3.10+.推荐方式。需 Python 3.10+。
Clone and run. Zero setup.克隆即运行,零配置。