graphone
AGENTS.md90 starsChanged 9 months agoMITView on GitHub
- Pipes a download into a shell
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Check local code first: - Before using GitHub tools (read_github, search_github, etc.), always explore the local codebase using standard …
- Distinctive: line 7
Use GitHub tools only when you need to reference external repositories or when explicitly asked about remote code
- Very specific: line 10
Use robust multiline commit messages: - Do not embed literal \n in a single git commit -m string.
- Very specific: line 11
PAT push hygiene: - If pushing with GITHUB_PAT, pass it via git auth headers/env only.
- Very specific: line 13
Visual verification uses readiness loops, not fixed sleeps: - Follow the global workflow bash -> readiness loop -> take_screenshot -> bash …
- Very specific: line 44
Platform strategy: Keep core behavior platform-agnostic.
- Very specific: line 166
npm run check: - Run type checking standalone (uses svelte-check --fail-on-warnings) - Very specific: line 167
npm run check:watch: - Run type checking in watch mode during development - Very specific: line 172
Single CSS entry: Use one index.css with @import 'tailwindcss' - do NOT split into multiple CSS files with @import
- Very specific: line 173
No CSS imports in Svelte
<style>: Import CSS in <script> block only: import '$lib/styles/index.css'
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Graphone - Agent Quick Reference
Agent Workflow Guidelines
- Check local code first - Before using GitHub tools (
read_github,search_github, etc.), always explore the local codebase using standard file tools (read,bashwithfind/grep, etc.) - Check pi-mono first for feature implementations - Since graphone is a visual wrapper around pi-mono, look up implementations in local
../pi-monofirst (when available). Many features already exist there and can be mimicked or adapted for desktop UI - Use GitHub tools only when you need to reference external repositories or when explicitly asked about remote code
- Do not track or push
docs/changes - Thedocs/folder and all files under it are local-only in this repo context. Do notgit add/commit/push anything indocs/(including withgit add -f) unless the user explicitly overrides this rule in the current task. - Use title + body commit messages by default - Unless the user explicitly requests otherwise, write commits with a concise title and a descriptive body (not title-only).
- Use robust multiline commit messages - Do not embed literal
\nin a singlegit commit -mstring. Use multiple-mflags (one per paragraph) orgit commit -Fwith a heredoc/file so line breaks render correctly on GitHub. - PAT push hygiene - If pushing with
GITHUB_PAT, pass it via git auth headers/env only; never echo, print, or otherwise expose the token in commands/output. - Default autonomous iteration guidance - For general coding-agent-first execution patterns (tests, TDD/debug loops, logs, traces, artifacts, contracts, smokes, escalation), see
docs/agent-first-autonomous-iteration-playbook.md - Visual verification uses readiness loops, not fixed sleeps - Follow the global workflow
bash -> readiness loop -> take_screenshot -> bash cleanup. The readiness wait must happen inside the startupbashcall because screenshot tools cannot run until that tool call returns. - Do not start and stop dev helpers in parallel - Startup and cleanup are separate sequential tool calls, with
take_screenshotbetween them. Runningstart-dev-and-wait.shandstop-dev.shin parallel is invalid and defeats the workflow. - Prefer project helper scripts for visual checks - For Graphone, use
tooling/scripts/start-dev-and-wait.shandtooling/scripts/stop-dev.shinstead of rewriting startup/cleanup loops inline.
Build Commands
npm install- Install dependenciesnpm run check- Type check Svelte/TypeScript (runs automatically on build)npm run check:watch- Type check in watch mode (for development)npm run check:repo- Run repository guardrails (legacy path/symlink regression checks)npm run format- Format all code (Svelte, TypeScript, Markdown, Rust)npm run format:check- Check if code is formatted (CI-style, exits with error if not)npm run dev:linux- Dev server (Linux native)npm run dev:windows- Dev server (Windows cross-compile)npm run build- Type check + build frontend (runscheckfirst)npm run build:linux- Full Linux AppImage/deb build (includes type check)npm run build:windows- Full Windows NSIS installer build (includes type check)npm run build:windows:exe- Build Windows .exe only (no installer needed)npm run build:windows:portable- Build Windows .exe + stage portable runtime folder with sidecar assetsnpm run build:macos:local- Build local ad-hoc signed macOS.app+.dmgnpm run build:macos:local:app- Build local ad-hoc signed macOS.apponlynpm run build:all- Build Linux + Windowsnpm run run:windows- Build (if needed), stage portable runtime, and launch the Windows app via host interop (if available)
Stack & Architecture
- Frontend: Svelte 5 + TypeScript + Vite
- Desktop shell: Rust + Tauri 2.0 (
src-tauri) for native desktop packaging/windowing - Canonical runtime/service: Graphone-local SDK host sidecar (
services/agent-host, compiled with bun) - Pattern: Desktop uses one host sidecar process that multiplexes multiple in-process agent sessions
- Strategic direction: Design new features for multi-agent orchestration first (parallel sessions, concurrent windows/views, and coordination-friendly state flows)
- Platform strategy: Keep core behavior platform-agnostic; isolate OS-specific behavior behind small adapters and maintain parity across Linux/Windows/macOS (and future targets)
- Architecture direction: Tauri is a replaceable desktop shell, not the long-term app/runtime boundary. Build around service + client seams so browser and future mobile clients do not depend on Tauri.
- SDK source: Host sidecar consumes
@mariozechner/pi-coding-agentfrom npm
Project Structure
graphone/
├── apps/
│ └── desktop/
│ └── web/ # Svelte frontend app
│ ├── src/
│ └── static/
├── src-tauri/ # Rust/Tauri desktop shell (replaceable host shell)
│ ├── src/ # Rust backend
│ ├── binaries/ # Sidecar binaries (auto-populated by build.rs)
│ ├── capabilities/ # Tauri permissions (desktop.json, mobile.json)
│ ├── .cargo/config.toml # lld linker settings per-target
│ ├── build.rs # Auto-builds host sidecar binary with bun
│ ├── Cargo.toml
│ ├── tauri.conf.json # base bundle config (Windows/macOS)
│ ├── tauri.linux.conf.json # Linux resource-based sidecar bundle override
│ └── tauri.macos.local.conf.json # Local macOS ad-hoc signing/resource bundle config
├── services/
│ └── agent-host/ # Graphone host sidecar source
├── tooling/
│ └── scripts/ # Build/run/verify scripts
└── package.jsonFrontend canonical paths:
apps/desktop/web/srcapps/desktop/web/static
Canonical repo map (quick):
apps/desktop/web→ Svelte frontend workspacesrc-tauri→ Rust/Tauri desktop shell (not the canonical runtime boundary)services/agent-host→ host sidecar source (bun)tooling/scripts→ helper scripts
Environment Status (February 2026)
Host System
- Platform: Linux VM (3D acceleration enabled)
- OS: Ubuntu 24.04.3 LTS
- Arch: x86_64
Installed Components
| Component | Version | Status |
| Node.js | v22.21.0 | ✅ |
| npm | 10.9.4 | ✅ |
| bun | 1.x | ✅ Required for sidecar compilation |
| Rust | 1.93.0 | ✅ |
| Tauri CLI | 2.10.0 | ✅ |
| cargo-xwin | Latest | ✅ Windows cross-compile |
| lld | Latest | ✅ Fast linking |
| nsis | Latest | ✅ Windows installers |
| libwebkit2gtk-4.1-dev | Latest | ✅ |
| libappindicator3-dev | Latest | ✅ |
| librsvg2-dev | 2.58.0 | ✅ |
| DISPLAY | Varies | ✅ Linux GUI session dependent |
| WAYLAND_DISPLAY | Varies | ✅ Linux GUI session dependent |
| Python3 | 3.12.3 | ✅ python3 |
Rust Targets
| Target | Status |
| x86_64-unknown-linux-gnu | ✅ Linux desktop |
| x86_64-pc-windows-msvc | ✅ Windows cross-compile |
| aarch64-linux-android | ✅ Android ARM64 |
| x86_64-linux-android | ✅ Android x86_64 |
Critical Development Notes
Linux Filesystem (Critical)
- Store project on a local Linux filesystem (
/home/<username>/projects/) and avoid shared/network mounts for best build performance
Windows Cross-Compilation
- Uses
cargo-xwinvia--runner cargo-xwinflag (npm scripts handle this automatically) - NSIS creates Windows installers on Linux; MSI requires Windows (WiX toolset)
- TaskDialogIndirect issue RESOLVED - Windows manifest embedded via Tauri's
WindowsAttributes.app_manifest()
Sidecar Build (Automatic)
- Sidecar is built automatically during Tauri/Cargo builds via
src-tauri/build.rs - Build source:
services/agent-host(Graphone-local host multiplexer) - Runtime SDK assets:
node_modules/@mariozechner/pi-coding-agent(pinned npm dependency) - Requires bun:
curl -fsSL https://bun.sh/install | bash - Binary naming:
pi-<target-triple>(with.exefor Windows) - bun compiles host
dist/cli.jsto a standalone binary (not cargo/Rust)
Linker Configuration (.cargo/config.toml)
- Linux:
lldviaclang -fuse-ld=lld(2-10x faster than system linker) - Windows: Handled automatically by
cargo-xwin - Android:
lld(from NDK)
Common Issues & Solutions
| Issue | Solution |
bun: command not found | export PATH="$HOME/.bun/bin:$PATH" |
pi-coding-agent missing in node_modules | Run npm install in project root |
makensis.exe: No such file | sudo apt install nsis or use build:windows:exe |
shell32.lib / kernel32.lib not found | Use npm run build:windows (handles cargo-xwin) |
| Windows app won't open | Install WebView2 Runtime on Windows |
| Slow builds | Verify project is on a local Linux filesystem (not a shared/network mount) |
| "TaskDialogIndirect could not be located" | Fixed - rebuild with npm run build:windows |
Frontend Development Rules
Type Checking
npm run buildnow includes type checking - The build script runssvelte-checkfirst to catch TypeScript/Svelte errorsnpm run check- Run type checking standalone (usessvelte-check --fail-on-warnings)npm run check:watch- Run type checking in watch mode during development- Type errors and warnings will fail the build - fix them before committing
Tailwind v4 + Svelte 5
- Single CSS entry: Use one
index.csswith@import 'tailwindcss'- do NOT split into multiple CSS files with@import - No CSS imports in Svelte
<style>: Import CSS in<script>block only:import '$lib/styles/index.css'
Cross-Platform Layout (WebView2 vs WebKitGTK)
Windows WebView2 requires explicit height inheritance for flexbox layouts to work:
/* Required in global CSS for Windows */
html,
body,
#app,
#svelte {
height: 100%;
width: 100%;
}
html,
body {
overflow: hidden;
}Flexbox Pattern for Fixed Header/Scrollable Content/Fixed Footer
<!-- Parent must have explicit height (h-screen) -->
<div class="flex flex-col h-screen overflow-hidden">
<!-- Header/Input: prevent shrinking -->
<header class="shrink-0">...</header>
<!-- Scrollable area: flex-1 + min-h-0 is critical -->
<div class="flex-1 min-h-0 overflow-y-auto">...</div>
<!-- Footer/Input: prevent shrinking -->
<section class="shrink-0">...</section>
</div>Key classes: shrink-0 (fixed elements), flex-1 min-h-0 (scrollable area), overflow-hidden (container)
External References
- Tauri 2.0: https://v2.tauri.app
- bun: https://bun.sh/docs
- cargo-xwin: https://github.com/rust-cross/cargo-xwin
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

