Moving AI Agent Logic to YAML: Run from Telegram, VS Code, and CLI

One developer got tired of writing TypeScript tools for every connector in OpenClaw (Postgres, SSH, Slack, etc.). His solution: move the agent business logic into a agent.yaml file and run it via OE Runtime as an HTTP server. OpenClaw's SKILL.md points at that server, and the same YAML now works from Telegram, VS Code, and the CLI — no code duplication.
Architecture
The flow looks like this:
User message in Telegram → OpenClaw calls POST /run-file → OE Runtime executes agent.yaml → result back in Telegram
Agent Definition in YAML
Instead of writing TypeScript for each tool, the agent is defined declaratively:
name: Database Analyst
instructions: |
You are a database analyst...
steps:
- name: Query
content: List all tables and row counts
connectors:
- connection_name: My Database
connection_type: postgresql
Why This Works
The key side effect: the same agent.yaml runs from VS Code, CLI, and HTTP. No duplication. This separates the agent logic from the UI layer and makes it portable across surfaces.
Who This Is For
If you're building with OpenClaw and want to reduce TypeScript boilerplate, or need your agent to run in multiple environments (chat, IDE, terminal), this pattern is worth a look.
📖 Read the full source: r/openclaw
👀 See Also

Qwen 3.6 27B Q8_k_xl as a Local Daily Driver for VSCode
A developer shares their experience using Qwen-3.6-27B-q8_k_xl by Unsloth in VSCode Insiders via LM Studio on an RTX 6000 Pro, finding it 'good enough' for daily coding tasks without API tokens.

Developer builds 3,106-line Python desktop app with Claude Code in 3 weeks, no prior coding experience
A developer with zero Python knowledge built a 3,106-line desktop application in three weeks using Claude Code, describing features section by section through a 500,000+ character conversation. The app handles content sourcing, logging, metrics tracking, research, gamified milestones, and remote triggering from a phone.

Developer Reports AI Coding Challenges: Design Decisions and Real-User Debugging
A developer building an iOS app with Claude Code for 5 months reports that while the AI can generate functional code easily, making design decisions and debugging issues that only appear with real users are the most difficult parts. The app has 220k lines and real users are testing it.

Porting Doom to PS3 Using Claude AI Without Programming Experience
A developer with zero C programming experience used Claude AI over 25 chat sessions to port Chocolate Doom 3.1.0 to PS3 hardware, achieving 35fps with native cellGcm API calls and custom audio/input systems.