@schlenkr/ragents
v0.1.52
Published
RAgents host: server, engine, plugins and tools without a source checkout
Maintainers
Readme
@schlenkr/ragents
RAgents is a web workshop for AI agents: you chat with a coordinator that starts further agents and equips actors with TypeScript functions and their own views. Everything that happens goes into an append-only journal, and the state of a run is always rebuilt by replaying that journal.
This package is the RAgents host - server, engine, plugins and the scripts behind the subcommands -
so the host runs without a source checkout. Installing it gives you one command, ragents.
Install
npm install -g @schlenkr/ragentsCommands
acp [--profile <profile|path>] [--data-dir <folder>]- serve stable Agent Client Protocol v1 over stdio for an editor such as Zed. Each editor chat uses a run bound to its project folder, with streamed replies, tool progress, plans, and history. Logs go to stderr. Profile, host, and token selection matchrun;RAGENTS_URLcan connect to a remote host with this machine registered as the run's workstation.ragents acp --profile developerconnect <server-url>- fetch the client profile of a RAgents server together with the plugin bundles it names and start the local server with it; the models come over the server's relay. The local host needs the same host API as the server; nothing is built or installed.RAGENTS_TOKEN=<token> ragents connect https://ragents.example.comstart <profile|path>- start a profile shipped with the package (core,developer,showcase), your ownragents.config.<name>.tsanywhere on disk, or a revision thatconnectalready fetched, without asking the server. The web interface comes finished with the package, the same for every profile; the web halves of the plugins load from their bundles.ragents start developer ragents start ~/projects/mine/ragents.config.mine.tsprovision [<profile>|--workspace]- fetch the tools the plugins of that profile need, such as the language servers; a second call downloads nothing.ragents provision developerworkspace-client <server-url> [folder ...]- register this machine and its folders as a workspace for a server, so a run on that server works in these folders. Includes the same ripgrep and Windows Bash as the VS Code extension.RAGENTS_USERandRAGENTS_PASSWORDin the environment enable session renewal;RAGENTS_TOKENsupplies an existing or personal token. Terminal or parent closure stops it and its children. Use--detachedexplicitly for nohup or a service manager; SIGINT/SIGTERM still stop it.ragents workspace-client https://ragents.example.com ~/projects/demoplugin build <folder...>- build your own plugin sources into bundles, with type checks against the host API; the result goes to./dist/plugins/<id>, and a profile names that folder.--out <folder>changes the target,--watchrebuilds on every change.ragents plugin build ./acme.ticketsrun <folder> "<task>"- start the host if none answers, bind a new run to the folder and wait until the turn is finished; the last line is alwaysrun: <id>. This host serves no web interface - an agent does not need one; usestartfor that.ragents run ~/projects/demo "Fix the type error in src/broken.ts"send <run> "<text>"- continue in the same run and wait the same way.ragents send 7f3c1e64-9a2b-4d11-8c30-1f5e9a77c001 "Now add a test for it"journal <run> [--tools]- read the history of a run without a server;--toolsshows the tool calls instead of the conversation.ragents journal 7f3c1e64-9a2b-4d11-8c30-1f5e9a77c001 --toolsstop <run>- pause the whole run: the running turns end and nothing starts untilsendorresumecontinues it.--turnends only the running turn of the primary actor,--runis the emergency stop,stop --hoststops the remembered host process.ragents stop 7f3c1e64-9a2b-4d11-8c30-1f5e9a77c001resume <run>- continue a paused run without a message.ragents resume 7f3c1e64-9a2b-4d11-8c30-1f5e9a77c001--versionor-v- print the installed version.
Requirements
- Node 22 (>= 22.19.0). No git, no pnpm, no source checkout; the package carries its finished web interface, the same for every profile, and loads the web halves of plugins from their bundles.
dotnet(.NET 10 SDK) for the C# diagnostics through Roslyn and the F# diagnostics through FSAC; without it TypeScript diagnostics still work.- Model access: either
OPENROUTER_API_KEYin the environment, orragents connect <server-url>against a RAgents server that relays the models.
Documentation
The specification, the usage and operations guides, the profile and plugin reference and the homepage live in the repository: https://github.com/SchlenkR/RAgents
License
Licensed under the PolyForm Shield License 1.0.0: use, including commercial use, is permitted; offering it as a competing product or service is not. See LICENSE.
