agentleFS
heyhuynhgiabuuheyhuynhgiabuu/proxypal/src-tauri/AGENTS.md

proxypal / src-tauri

AGENTS.md1.2k starsChanged 3 months agoMITView on GitHub

✅ Always: Handle Result with map_err, use camelCase for IPC types. ⚠️ Ask first: New Tauri plugins, AppConfig schema changes, new IPC types. 🚫 Never: Block async tasks with sync IO, use unwrap() on user-facing state, ignore mutex errors.

Trending

Quiet since June.thin dataabout the whole repository

Dec 2025: 6 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the heyhuynhgiabuu/proxypal repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about heyhuynhgiabuu/proxypal

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub (8 times).

On GitHub · 8

3 more on GitHub
  • 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,773 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.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 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.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use #[tauri::command] for all IPC functions.

    line 5
  2. Very specific:

    Use Mutex<T> for interior mutability.

    line 20
  3. Very specific:

    Use Arc<AtomicBool> for simple flags (e.g., should_stop).

    line 21
  4. Very specific:

    Always handle mutex poisoning gracefully with map_err.

    line 22
  5. Very specific:

    Use #[serde(rename_all = "camelCase")] for frontend compatibility.

    line 28
  6. Distinctive:

    All new fields need defaults and migration logic.

    line 43
  7. Very specific:

    Use tokio::process::Command for async subprocess spawning.

    line 49
  8. Very specific:

    Use non-interactive options for SSH (BatchMode=yes, ExitOnForwardFailure=yes).

    line 51
  9. Very specific:

    Use eprintln! with clear prefixes: [ProxyPal Debug], [Migration], [SSH].

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Backend Guidelines (Rust + Tauri)

Commands

  • Use #[tauri::command] for all IPC functions.
  • Return Result<T, String> for error propagation to frontend.
  • Access shared state via State<AppState>.
#[tauri::command]
pub fn get_status(state: State<AppState>) -> Result<Status, String> {
    let status = state.status.lock().map_err(|e| e.to_string())?;
    Ok(status.clone())
}

State Management

  • Shared state lives in AppState (state.rs).
  • Use Mutex<T> for interior mutability.
  • Use Arc<AtomicBool> for simple flags (e.g., should_stop).
  • Always handle mutex poisoning gracefully with map_err.

Serialization

  • IPC types live in src/types/*.rs.
  • Derive Serialize, Deserialize for all IPC structs.
  • Use #[serde(rename_all = "camelCase")] for frontend compatibility.
#[derive(Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ProxyStatus {
    pub running: bool,
    pub port: u16,
    pub endpoint: String,
}

Config

  • Config schema is in config.rs (AppConfig).
  • All new fields need defaults and migration logic.
  • Config is stored in platform config dir as YAML.

Process Management

  • Long-running processes (SSH, Cloudflare) are managed by dedicated managers.
  • Use tokio::process::Command for async subprocess spawning.
  • Emit status via Tauri events (ssh-status-changed, cloudflare-status-changed).
  • Use non-interactive options for SSH (BatchMode=yes, ExitOnForwardFailure=yes).

Logging

  • Use eprintln! with clear prefixes: [ProxyPal Debug], [Migration], [SSH].

Boundaries

✅ Always: Handle Result with map_err, use camelCase for IPC types. ⚠️ Ask first: New Tauri plugins, AppConfig schema changes, new IPC types. 🚫 Never: Block async tasks with sync IO, use unwrap() on user-facing state, ignore mutex errors.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.