How klawisha012/agentsync works
AgentSync helps users manage and share portable AI-agent configurations: users discover accounts and publications, inspect versioned manifests, and use the CLI to apply or publish configurations. The backend also contains account, social, comment, and publication capabilities, plus a local agent and MCP interface. The excerpts confirm several frontend-to-API calls and manifest-rendering relationships; backend handler wiring and most CLI-to-agent relationships were not shown, so those links are omitted.
Main entry points: api.js API client · [id]/page.js Publication viewer · stats/page.js Publication statistics · list.js Account directory
Components 28
Web application
- Account directory
frontend/app/accounts/list.js - Published agents
frontend/app/[name]/agents.js - Comments
frontend/app/[name]/comments.js - Publication viewer
frontend/app/publications/[id]/page.js - Manifest builder
frontend/app/publications/[id]/manifest.js - File tree
frontend/app/file-tree.js - Account settings
frontend/app/settings/page.js - Login and registration
frontend/app/login/card.js - Password recovery
frontend/app/recover/page.js - Publication statistics
frontend/app/stats/page.js - Product landing page
frontend/app/home.js - Distribution summary
frontend/app/distribution.js - API client
frontend/app/api.js - Avatar display
frontend/app/avatar.js
Backend service
- HTTP server entry
backend/cmd/http/main.go - HTTP handlers
backend/internal/server/server.go - Account management
backend/internal/server/account.go - Publication lifecycle
backend/internal/server/publish.go - Social features
backend/internal/server/social.go - Comment handling
backend/internal/server/comments.go - Database access
backend/internal/server/db.go
Local agent tools
- Agent CLI
backend/cmd/cli/run.go - Local agent runtime
backend/internal/agent/agent.go - Skill operations
backend/internal/agent/skills.go - Portable configurations
backend/internal/agent/portable.go
Agent integration
- MCP entry point
backend/cmd/mcp/main.go - MCP interface
backend/internal/mcp/mcp.go
Other components
- HTTP API
Connections 12
- Account directory → API client: requests accounts
frontend/app/accounts/list.js - Published agents → API client: updates agents
frontend/app/[name]/agents.js - Comments → API client: requests comments
frontend/app/[name]/comments.js - Publication viewer → API client: loads publication
frontend/app/publications/[id]/page.js - Publication viewer → Manifest builder: builds tree
frontend/app/publications/[id]/page.js - Publication viewer → File tree: renders tree
frontend/app/publications/[id]/page.js - Account settings → API client: updates account
frontend/app/settings/page.js - Login and registration → API client: authenticates
frontend/app/login/card.js - Password recovery → API client: requests recovery
frontend/app/recover/page.js - Publication statistics → API client: loads accounts
frontend/app/stats/page.js - Publication statistics → Distribution summary: computes summary
frontend/app/stats/page.js - API client → HTTP API: fetches API
frontend/app/api.js