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
Who's talking about heyhuynhgiabuu/proxypal
- tddworks/ClaudeBar“Gemini vs Antigravity”GitHub · Dec 28, 2025 · 1 reactions
- router-for-me/CLIProxyAPI“Feature: Add copilot-unlimited-mode config for copilot-api compatibility”GitHub · Dec 14, 2025 · 1 reactions
- link-assistant/router“Make sure we use all the best experience from https://github.com/heyhuynhgiabuu/proxypal”GitHub · Jun 17, 2026
- router-for-me/CLIProxyAPI“OpenAI Codex returns 400: Unsupported parameter: prompt_cache_retention”GitHub · Jan 7, 2026
- router-for-me/CLIProxyAPI“400 error: messages.X.content.0.text.text: Field required”GitHub · Dec 26, 2025
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
- Dec 28, 2025Gemini vs Antigravity — tddworks/ClaudeBar1 reaction · 31 comments
- Dec 14, 2025Feature: Add copilot-unlimited-mode config for copilot-api compatibility — router-for-me/CLIProxyAPI1 reaction · 3 comments
- Jun 17, 2026Make sure we use all the best experience from https://github.com/heyhuynhgiabuu/proxypal — link-assistant/router0 reactions
- Jan 7, 2026OpenAI Codex returns 400: Unsupported parameter: prompt_cache_retention — router-for-me/CLIProxyAPI0 reactions
- Dec 26, 2025400 error: messages.X.content.0.text.text: Field required — router-for-me/CLIProxyAPI0 reactions · 3 comments
3 more on GitHub
- Dec 16, 2025Bug: OpenAI→Anthropic streaming translation fails with tool calls - missing message_start — router-for-me/CLIProxyAPI0 reactions · 2 comments
- Dec 14, 2025Bug: content_block_start sent before message_start in OpenAI→Anthropic translation — router-for-me/CLIProxyAPI0 reactions · 4 comments
- Dec 6, 2025docs: add ProxyPal to 'Who is with us?' section — router-for-me/CLIProxyAPI0 reactions · 1 comment
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.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
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
- Very specific: line 5
Use #[tauri::command] for all IPC functions.
- Very specific: line 20
Use Mutex<T> for interior mutability.
- Very specific: line 21
Use Arc<AtomicBool> for simple flags (e.g., should_stop).
- Very specific: line 22
Always handle mutex poisoning gracefully with map_err.
- Very specific: line 28
Use #[serde(rename_all = "camelCase")] for frontend compatibility.
- Distinctive: line 43
All new fields need defaults and migration logic.
- Very specific: line 49
Use tokio::process::Command for async subprocess spawning.
- Very specific: line 51
Use non-interactive options for SSH (BatchMode=yes, ExitOnForwardFailure=yes).
- Very specific: line 55
Use eprintln! with clear prefixes: [ProxyPal Debug], [Migration], [SSH].
≈ “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.
Files
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, Deserializefor 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::Commandfor 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.
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.

