@sedge-hq/sedge
v0.19.1
Published
An always-on, event-driven agent that lives on your machine, built on pi.
Maintainers
Readme
curl -fsSL sedge.sh | sh # or: npm i -g @sedge-hq/sedgesedge # the TUI
sedge -p "…" # one reply, then exit
sedge dash # what the agents are doing: inbox, runs, outbox, timers, memory, logs
sedge start --service # keep the daemon running across logins
sedge stop
sedge update
sedge pi … # the agent's own commands (packages, mcp, config, …)Reach it from your phone: in sedge, say "set up telegram". It asks for the bot token in a
hidden field, keeps it in your keychain, and gives you a link that pairs your account.
Channels are how you and sedge talk (Telegram, Slack, email). Signals wake it when something happens
elsewhere (CI, GitHub, new mail, your calendar, a page or feed, a webhook, a folder, a command's output, an MQTT topic), and
you say what it should do then: "tell me when my CI fails". Conditions, throttles and an optional
cheap triage model keep a noisy signal from waking it for nothing; a fixed reaction can handle
an event with no model at all, and a signal can end itself ("tell me once", "for the next hour").
Packages can act too (publish to MQTT, post to Slack, reply to mail), and you can send it photos and files. Both come as packages
(sedge install telegram), and sedge can write a signal for anything else
(@sedge-hq/kit).
Behind the TUI, a daemon keeps working after you close the terminal: an inbox of events, timers
it sets itself, memory, approvals you answer from your phone, subagents that split up work, and
updates. Optional limits cap what it spends, and an optional OS sandbox confines its commands. Its conversations are
durable (pi-durable): a run a
restart cuts short picks up where it stopped. The agent is pi,
bundled; your logins are in ~/.pi/agent.
It thinks with the model you choose: sign in to Claude, ChatGPT, Gemini, GitHub Copilot and about forty others, add a server that speaks OpenAI's API (your company's, Azure, Ollama, LM Studio, llama.cpp), or download a model that suits your computer and runs on it, free and offline (Models). The desktop app has all of it in a window, with your chats and its pages in tabs.
Read the docs: getting started, models, use cases, channels and signals, agents, workflows, memory, extensions, MCP and skills, how it works, logs and runs, limits and costs, security, the sandbox, commands, configuration, writing your own, and development.
Prior art
- Building always-on agents, from Claude: the pattern sedge follows. An event inbox, short runs that survive restarts, timers, memory, approvals and an outbox.
- The components of agent memory, from Anthropic: how sedge's memory is laid out, and the nightly review.
- Pine, a reactive harness for agents: another agent that runs in the background and wakes when something happens.
Develop
bun install
bun run sedge # from source, against ./.sedge-dev
bun run check # lint, format, typecheck
bun run test
bun run e2e:telegram # the whole Telegram path, against a fake Bot APIReleases go out through changesets: bun run changeset, merge the release PR.
MIT
