Skip to content
المشاريع

حول

بيئة تشغيل مفتوحة المصدر ووحدة تطوير برمجيات (SDK) لوكلاء الذكاء الاصطناعي في التطبيقات الأصلية.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
جارٍ جمع السجل
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Sailry logo

Sailry Harness

An open-source AI agent runtime and SDK for native apps.

Quick start · Architecture · Plugin SDK · Sailry Code · 简体中文

Apache-2.0 License GitHub Stars Discord Listed on Awesome MyGo

Sailry Harness (github.com/sailry/sailry-harness) provides the shared agent runtime, desktop and mobile foundations, and public Go, Flutter, and plugin SDKs. It can also run as a standalone base app.

[!TIP] Looking for the coding app? See Sailry Code and its end-user releases.

Architecture

Desktop and mobile clients connect to a Host over encrypted peer-to-peer links. The Host runs agents, calls models and tools, and keeps projects and credentials on its machine.

  • Node runs agents and tools, enforces approvals, and stores credentials and session history. It runs inside Desktop or as a headless Host.

  • Link v2 connects clients and Nodes over end-to-end encrypted libp2p links, with six-digit pairing and automatic relay fallback.

  • Client keeps session and workspace state in sync and recovers after disconnects. Desktop uses MyGo; mobile uses Flutter.

See the architecture guide for ownership boundaries, storage, and module dependencies.

SDKs and extension points

Downstream products use the public sdk/ and apps/mobile/ packages. Packages under internal/ are not public APIs.

  • Go Desktop: assemble native desktop apps, pages, panels, and settings.
  • Go Node and Host: register agent tools and assemble a headless Host.
  • Flutter mobile: build Android and iOS controllers with product-specific views.
  • Plugin SDK: add JavaScript views and Node tools with agent-plugins, skills, or MCP.

Built-in general capabilities

The base app assembles reusable modules for agent work modes, Bots that work in parallel, sandboxed commands, and workspace file search. A new profile starts with an empty Bot and squad catalog. Create a Bot in Settings or install Explore or Research from Templates.

It also includes browser and desktop automation, Office/PDF and local OCR, HTML previews, media generation, web search, knowledge collections, memory, scheduled tasks, and local dictation. New profiles have no preinstalled plugins or themes.

Quick start

Use as a Go library

Install Go 1.27.3 and the platform prerequisites described in Setup. Create a module and add Harness as a dependency.

unset GOROOT
export GOTOOLCHAIN=go1.27.3 CGO_ENABLED=0
mkdir my-agent
cd my-agent
go mod init example.com/my-agent
go get github.com/sailry/sailry-harness@main

@main selects the current preview SDK. For a released SDK, use @latest or pin a published SemVer tag. Go records the resolved version in your go.mod.

Save this minimal Host entry point as main.go. It uses the public SDK and the built-in Harness module assembly.

package main

import (
	"log"
	"os"

	"github.com/sailry/sailry-harness/sdk/host"
	"github.com/sailry/sailry-harness/sdk/native/node"
	"github.com/sailry/sailry-harness/sdk/product"
)

func main() {
	code, err := host.Run(os.Args[1:], host.Options{
		Identity: product.Desktop{
			ID:             "my-agent",
			Version:        "0.1.0",
			DefaultProfile: "~/.my-agent",
		},
		Assembly: node.HarnessAssembly(),
	})
	if err != nil {
		log.Fatal(err)
	}
	os.Exit(code)
}
go mod tidy
go run . --help

To start the Host, run just native in a Harness checkout to prepare the Turso library under .runtime/native/<goos>-<goarch>/. Set its absolute path in your own project:

export SAILRY_TURSO_LIB=/absolute/path/to/turso-library
go run . serve --data-dir "$PWD/.runtime/profiles/my-agent"

Use host.RunContext to control shutdown from an existing application.

For a native desktop app, use sdk/desktop with the optional sdk/desktop/harness preset. The SDK overview lists the public extension points.

Run from source

Clone the repository to run the base app or develop Harness itself.

git clone https://github.com/sailry/sailry-harness.git
cd sailry-harness
just native
just desktop
  • just desktop dev uses the isolated ~/.sailry-harness-dev profile instead of ~/.sailry-harness.
  • just host starts a headless Host; just check runs the project checks.
  • To test Harness changes in Code, use a gitignored go.work in your Code checkout that references the local Harness checkout.

Harness APIs are in early preview. New Harness releases consist of SemVer library tags and release notes, not Desktop, Host, Android or iOS binaries or app updates. Sailry Code is a separate product with its own downloads and updates.

Products and ecosystem

  • Sailry Code: the AI coding workstation built on Harness, with a file workbench, Git and worktrees, terminals, databases, and SSH.
  • Sailry Plugins: optional runtime plugins.
  • Sailry Themes: official light and dark themes.

Documentation

Telemetry, community, and license

Privacy

Anonymous error reports and feature counts are enabled by default. They do not include conversations, files, credentials, paths, or custom names. Disable them in Settings → General → Diagnostics and privacy, or set SAILRY_TELEMETRY=off or DO_NOT_TRACK=1. Public model benchmarks come from ModelDial.

Community

Discord · GitHub Issues

WeChat QR code for the Sailry community

License

Desktop and Mobile animal portraits come from OneWorks Avatar.

Apache-2.0 · Trademarks · Third-party notices · Third-party licenses

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…