Skip to content

54 desktop app - #58

Merged
SaifRehman merged 9 commits into
mainfrom
54_desktop_app
Jul 9, 2026
Merged

54 desktop app#58
SaifRehman merged 9 commits into
mainfrom
54_desktop_app

Conversation

@SaifRehman

Copy link
Copy Markdown
Contributor

No description provided.

SaifRehman and others added 9 commits July 6, 2026 12:16
Code review flagged agentfm-go/dist/* (8 platform binaries + checksums),
the dev agentfm binary, and committed .pyc files as tracked repo bloat.
Untrack them (files stay on disk) and add .gitignore rules — build
artifacts ship via GitHub Releases, not VCS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- New Getting Started tab: prereqs (Podman/Ollama/CLI) + copy-paste
  worker commands for running public and private agents, framed around
  the app being the Boss that dispatches to CLI-run workers.
- Remove 'last seen · Xs ago' from the peer-history Status field (just
  online/offline now).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a grouped 'every flag' table (agent, limits, network, API gateway,
trust & observability) with descriptions + defaults, list the -mode
values, and enrich the public/private worker samples with -desc,
-capability, -author, and -maxtasks/-maxcpu/-maxgpu.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ntfm -mode relay

Two relay implementations (the cmd/relay lighthouse and a stripped-down
agentfm -mode relay) was confusing and the built-in one silently lacked
the archive ledger + infinite limits + telemetry routing. Consolidate:

- host.go: relay branch now uses EnableRelayService(WithInfiniteLimits())
  + ForceReachabilityPublic + EnableNATService; GossipSub gets PeerExchange.
- cmd/agentfm/relay.go (new): full-featured runRelayMode — telemetry
  subscribe+drain and an archive ledger at ~/.agentfm/relay_ledger.db that
  serves catch-up, exactly what the standalone binary did.
- -identity now applies to relay mode, defaulting to a stable
  ~/.agentfm/relay_identity.key (cwd-independent).
- Delete cmd/relay/; release.sh builds only agentfm; docs updated.

Verified live: worker visible through the relay, and a fresh boss caught
up the full ledger from the relay's archive. Full -race suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
README listed only Worker/Boss/Relay; add a lean one-line Witness entry
(ledger-only replica for offline catch-up) so the role is discoverable
on the main page. Getting Started already documents it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Each -mode (worker/api/boss/relay/witness/genkey) has its own parameters,
so document it that way instead of one flat flag list:
- Getting Started: replace the category-grouped flag tables with a
  'Modes & parameters' section — per-mode purpose + copyable example +
  that mode's flags, then a shared 'common to all P2P modes' table.
- README: add a 'Modes' table with a one-line example per mode.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The packaged app resolves its backend as agentfm-${process.platform}-${process.arch}
(e.g. agentfm-darwin-x64 on Intel, agentfm-win32-x64 on Windows), but
build-binaries.sh emitted Go's GOARCH/GOOS names (agentfm-darwin-amd64,
agentfm-windows-amd64). arm64 happened to match; Intel/Windows installs
could not find the backend ('binary not found at .../bin/agentfm-darwin-x64').
Map GOOS/GOARCH -> Node platform/arch when naming outputs; add a 'mac' arg
for macOS-only builds.

Also rebuild the app icon on a near-black rounded tile — the logo's 'AGENT'
wordmark is white and was invisible on the old white background.

Verified: packaged arm64 app spawns its bundled backend (200 /health); the
x64 .app now carries a genuine x86_64 agentfm-darwin-x64 at the same path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Witness is advanced/optional — the relay already persists the ledger, so
mentioning witness up front confused newcomers. Remove it from the README
roles list + Modes table and the Getting Started modes section. Keep it
documented in the deep reference (docs/cli.md, docs/trust.md) since
-mode witness is still a real command shown by 'agentfm --help'.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@SaifRehman
SaifRehman merged commit b6ff21c into main Jul 9, 2026
3 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant