FlyEnv AGENTS.md

Repository instructions for AI coding tools working on FlyEnv, a desktop app for installing and managing development tools such as PHP, Node.js, Python, and databases.

In plain words
What is it for?
For contributing to FlyEnv's Electron and Vue codebase and understanding its supported tools and libraries.
Why use it?
They explain the project's structure and technologies so an agent can make changes that fit the existing app.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/xpf0000/flyenv/agents-md
Clone the repo
git clone --depth 1 https://github.com/xpf0000/FlyEnv

Made for: Codex, OpenCode.

Per session 3,063 This file is loaded in full into every session.
When invoked 3,063 The same file — it is already loaded in full.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03063 $0.03063
Opus 5 $0.01532 $0.01532
Sonnet 5 $0.00613 $0.00613
Haiku 4.5 $0.00306 $0.00306

Measured 2d ago against content hash 101c0a5f3e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

FlyEnv AGENTS.md scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- May require `sudo xattr -dr "com.apple.quarantine"` for helper binaries

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Process Management**: child_process, node-pty
AGENTS.md · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FlyEnv - AI Agent Development Guide

Project Overview

FlyEnv is an All-In-One Full-Stack Environment Management Tool built with Electron and Vue 3. It provides a lightweight, modular development environment manager for Windows, macOS, and Linux, allowing developers to install and manage Apache, PHP, Node.js, Python, databases, and more—running natively without Docker.

Technology Stack

Core Technologies

  • Frontend Framework: Vue 3 (Composition API)
  • Desktop Framework: Electron 39.8.7
  • Build Tool: Vite 6.x + esbuild 0.28.x
  • Language: TypeScript 5.8.x
  • State Management: Pinia 3.x
  • UI Component Library: Element Plus 2.11.x
  • Styling: Tailwind CSS 3.4.x + SCSS
  • Internationalization: Vue I18n 11.x

Additional Libraries

  • Code Editor: Monaco Editor
  • Terminal: node-pty + xterm.js
  • HTTP Client: Axios
  • Process Management: child_process, node-pty
  • File Operations: fs-extra
  • Markdown Processing: markdown-it + Shiki

Project Architecture

FlyEnv follows Electron's multi-process architecture with three main components:

1. Main Process (/src/main)

Acts as a command relay station between the renderer and fork processes.

Key Files:

  • index.ts - Entry point, initializes Launcher
  • Launcher.ts - Application bootstrap, single-instance lock, event handling
  • Application.ts - Main application controller, window management, IPC handling

Core Managers:

  • WindowManager - Browser window creation and management
  • TrayManager - System tray functionality
  • MenuManager - Application menus
  • ConfigManager - Configuration persistence
  • ForkManager - Forked process management
  • NodePTY - Terminal PTY handling

2. Forked Asynchronous Process (/src/fork)

Executes all heavy commands asynchronously to prevent main thread blocking.

Read the full file on GitHub · 378 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 378 lines · 3,063 tokens per session scan B 101c0a5f3e2a

Subscribe to this mod's changes

FlyEnv AGENTS.md is an instructions file published in the GitHub repository xpf0000/FlyEnv (3,191 stars, last pushed 2d ago), licensed BSD-3-Clause. It adds 3,063 tokens to every session, about $0.0153 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.