agent-probe-dev
Skill4.2k starsChanged 35 days agoMITView on GitHub
Develop, test and ship the Go agent probe (apps/agent) — build/test commands, protocol versioning, the nekoagent service wrapper, and constraints of router environments (OpenWrt/tmpfs). Use for any change under apps/agent.
- Commits and pushes
1 other project uses a version of this.
Trending
Quiet since August.thin dataabout the whole repository
Most recently taken up by
- foru17/clash-masterword for word, first seen Oct 8, 2026
Who's talking about foru17/neko-master
- @camilleroux.com“Neko Master : un dashboard self-hosted pour visualiser et auditer le trafic réseau en temps réel, avec …”Bluesky · Aug 3, 2026 · 4 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 foru17 / neko-master ⭐ 3,679 (+231) 🗒 TypeScript A modern and …”Bluesky · Aug 21, 2026 · 1 likes
- @chrisshort.net“foru17/neko-master: A modern and elegant dashboard for network traffic visualization and analysis. …”Bluesky · Jul 24, 2026 · 1 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 foru17 / neko-master ⭐ 2,741 (+186) 🗒 TypeScript A modern and elegant …”Bluesky · Jul 17, 2026 · 1 likes
- ruanyf/weekly“【开源自荐】Neko Master:现代化网络流量分析面板”GitHub · Feb 11, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
Other versions1 project uses a version of this.
Word for word · 1
- foru17/clash-master★ 4.2k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- add-stats-dimensionSkill
- db-conventionsSkill
- releaseSkill
- ui-conventionsSkill
- verify-changesSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Self-replacement: Never overwrite a running script/binary in place — download to a sibling .tmp/.new path and mv (same-filesystem rename) …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Agent Probe Development (apps/agent)
The agent is a Go binary deployed on routers/servers. It polls the local gateway (mihomo/Surge) and reports to the collector over HTTP (gzip JSON POST to /api/agent/report|heartbeat|config|policy-state) — not WebSocket.
Layout
main.go— entrypoint, flag parsinginternal/agent/runner.go— main loop: report/heartbeat/config-sync tickers, pending queue, retry batchinternal/gateway/— mihomo & Surge API clientsinternal/config/config.go— flags,AgentProtocolVersionnekoagent— POSIX-sh service manager wrapper (install/upgrade/systemd/procd/launchd)install.sh— curl-pipe installer
Verify
cd apps/agent
go vet ./... && go build ./... && go test ./...
sh -n nekoagent && sh -n install.sh # shell syntax gate — both scripts must parse with POSIX shHard rules
- Protocol versioning. Payload shape changes require bumping
AgentProtocolVersion(Go) AND the collector's minimum accepted version (agent auth inapps/collector/src/modules/app/app.ts); the collector rejects too-old agents with HTTP 426 + structured error. The Go structs and the collector's TS payload types are mirrored by hand — change both sides in one commit. - Data-loss protections are contracts: single in-flight retry batch,
requestIdidempotency dedup, counter-regression handling (gateway restart counts current value as new traffic), bounded pending queue withdroppedaccounting. Don't weaken these when refactoring the loop. - Router constraints. Target environments include OpenWrt/BusyBox:
nekoagentmust stay POSIX sh (no bashisms),/tmpis tmpfs (RAM) — clean up temp dirs (accumulate EXIT traps, don't overwrite them), and network calls in shell must carry timeouts + retries (curl --connect-timeout 10 --max-time 120 --retry 3). - Self-replacement. Never overwrite a running script/binary in place — download to a sibling
.tmp/.newpath andmv(same-filesystem rename) so the running inode survives. - Service management. systemd unit:
StartLimitIntervalSec/Burstbelong in[Unit], not[Service]. procd (OpenWrt) respawn has a finite retry budget — treat "cannot start" as exit non-zero so supervisors behave correctly.
Release
Tag-driven, independent from the main product: git tag agent-vX.Y.Z && git push origin agent-vX.Y.Z → .github/workflows/agent-release.yml publishes multi-arch binaries (~1 min). The binary version comes from the tag via ldflags — no version file. Full flow: docs/agent/release.en.md.
Known deferred issues and their context live in docs/dev/deep-review-2026-07.md (agent P0/P1 section) — check it before starting a fix batch so related items ship together.
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.

