Skip to content
TangergPublic

About

Flame — native desktop agent application and runtime

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Flame

Flame

Flame is an agent product with a Go Runtime, a terminal CLI, and one React application for Browser and Wails. Workflow providers decide Goal transitions and author Plan versions. Runtime owns their version-checked commits, durable Session and Run history, execution, and recovery. Clients own interaction and presentation. Scope supplies the agent framework and provider libraries.

Repository

Path Owner
runtime/ Semantic core, HTTP delivery, local Go binding and Host contract generator
apps/cli/ Scriptable flame command and interactive terminal
apps/web/ Shared Browser/Wails product UI
apps/desktop/ Native Wails host and macOS packaging
sdk/go/ Flame Go contracts, remote client and product-specific plugin author APIs
sdk/typescript/client/ @flame/runtime-client, generated wire projection and client
sdk/typescript/backend/ @flame/backend-sdk, TypeScript backend authoring API
sdk/typescript/component/ @flame/component-sdk, installed React component authoring API
packages/local-runtime/ Process roots, token handoff and companion-distribution lookup
packages/ui/, packages/icons/ Shared controls/tokens and authored optical icon masters
plugins/ First-party backend, component, contract and package sources
examples/plugins/ Independent authoring and component-composition consumers
assets/brand/ Brand guide, approved artwork, and production assets
tooling/, tooling/integration/ Workspace coordination and public product integration

Development

Read AGENTS.md and PROJECT_RULES.md. DEVELOPMENT.md owns the toolchain and command workflow. From this directory:

make setup
make generate
make check
make check-native
make check-author

Use make dev-web or make dev-desktop for the same Web product. make build-runtime, make build-cli and make package-desktop create distributions under out/. Ship the Runtime executable beside frame-runner, flame-worktree-writer, the plugins/ directory and the pinned Node companion at runtimes/node/<os>-<arch>/. Managed plugins use the bundled Node executable. The macOS app is distributed independently and attaches to a local or remote Runtime. The Web build writes to apps/web/dist and native embed staging writes to apps/desktop/assets/web.

The repository root owns go.work and has no go.mod. Go SDK, local-runtime, Runtime, CLI, Desktop, first-party plugins, tooling and the independent Reviews backend own their Go dependency graphs. Root npm workspaces use one lock and one install. See workspace ownership for module boundaries.

Use the consumer reference for Flame SDK imports, release packaging and independent author exports.

localruntime.DataDirectory selects flame-frame.db for Frame framework records and Flame business references in one SQLite database. No historical storage reader or automatic conversion is supplied.

Connect to a Runtime

Build one standalone Runtime with make build-runtime and a client with make build-cli. Start the distribution in the foreground with make dev-runtime. On macOS, set provider and model in ${FLAME_HOME:-$HOME/.flame}/runtime/config.yaml before running the distribution’s install-user-runtime. The installer starts a per-user LaunchAgent, which reads that file at startup. Keep that distribution in its installed location. Stop it with launchctl bootout gui/$(id -u)/io.github.tangerg.flame.runtime before replacing its files, then run the installer again. For an incompatible development store, select a fresh absolute FLAME_HOME when starting the service and its clients.

CLI and Desktop attach to http://127.0.0.1:17171 and read the user's Runtime token. Open that URL in a browser and enter the token from the Runtime data directory in Connection settings. An explicit remote endpoint uses its own FLAME_RUNTIME_TOKEN.

./out/cli/darwin-arm64/flame --runtime-url http://127.0.0.1:17171
./out/cli/darwin-arm64/flame --runtime-url http://127.0.0.1:17171 run --workspace /server/project "Review this project"

Runtime appends and serves its generated /v2/rpc route. Provider configuration and filesystem paths belong to the Runtime host. Closing a client releases its transport and views; explicit cancellation is a Runtime command. Only the host that opened a Runtime owns shutdown.

The packaged service serves its sibling web/ directory. To serve a separate Web build, set server.webDirectory (or FLAME_SERVER_WEBDIRECTORY) to the absolute apps/web/dist path. Static assets are public; RPC retains its token gate.

Documentation

About

Flame — native desktop agent application and runtime

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages