xrk-agent-runtime
Skill140 starsChanged 8 months agoMITView on GitHub
当你需要理解 XRK-AGT 的运行时核心(AgentRuntime 主类)、事件总线、HTTP/WS 启动流程与全局对象时使用。
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .cursor/rules/vibe-learn-craft.mdcCursor rule
- .cursor/rules/xrk-core-code.mdcCursor rule
- .cursor/rules/xrk-dev-requirements.mdcCursor rule
- .cursor/rules/xrk-infrastructure.mdcCursor rule
- .cursor/rules/xrk-project.mdcCursor rule
- .cursor/rules/xrk-third-party-plugins.mdcCursor rule
- accessibility-complianceSkill
- design-system-patternsSkill
- fronted-designSkill
- immersive-short-videoSkill
- interaction-designSkill
- mobile-android-designSkill
- mobile-ios-designSkill
- react-native-designSkill
- responsive-designSkill
- ui-ux-pro-maxSkill
- visual-design-foundationsSkill
- web-component-designSkill
- xrk-ai-workflowSkill
- xrk-app-devSkill
- xrk-authSkill
- xrk-coding-styleSkill
- xrk-configSkill
- xrk-crawlSkill
- xrk-dockerSkill
- xrk-docsSkill
- xrk-github-researchSkill
- xrk-http-apiSkill
- xrk-infrastructureSkill
- xrk-llmSkill
- xrk-mcpSkill
- xrk-node-runtimeSkill
- xrk-pluginsSkill
- xrk-project-overviewSkill
- xrk-rendererSkill
- xrk-runtime-utilSkill
- xrk-subserverSkill
- xrk-system-coreSkill
- xrk-taskerSkill
- xrk-v3-apiSkill
- xrk-www-compatSkill
The file
Files
文档与代码
- 文档:
docs/agent-runtime.md、docs/runtime-surface.md、docs/server.md - 代码:
src/agent-runtime.js、src/utils/runtime-globals.js
关键职责
- 启动 HTTP/HTTPS/WebSocket 服务器,以及基础中间件(压缩、安全头、CORS、日志、基础认证等)。
- 初始化加载器:TaskerLoader / HttpApiLoader / AiWorkflowLoader / PluginLoader。
- 维护运行时
AgentRuntime(Proxy):AgentRuntime[self_id]、AgentRuntime.tasker/AgentRuntime.wsf/AgentRuntime.uin/AgentRuntime.em()/AgentRuntime.makeLog()。
全局写法(业务 core/)
- 裸名
AgentRuntime,勿import AgentRuntime、new AgentRuntime()、勿global.AgentRuntime。 - HTTP handler:
req.agentRuntime或第三参AgentRuntime。 - 挂载仅在
src/:setRuntimeGlobal('AgentRuntime', runtime)(start.js、tasker/loader.js)。 - 详见
docs/runtime-surface.md、.cursor/rules/xrk-dev-requirements.mdc。
其它
- 事件总线:
em('{tasker}.{post_type}', data);级联只剥点号父级(onebot.message→onebot)。插件过滤见#utils/event-keys.js,文档docs/事件系统标准化文档.md· skillxrk-tasker。 callRoute/ 公网探测:全局fetch+AbortSignal.timeout(见src/agent-runtime.js)。- Node 26 约定:skill
xrk-node-runtime。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

