untether
Copilot instructions72 starsChanged 4 months agoMITView on GitHub
Untether is a Telegram bridge for AI coding agents (Claude Code, Codex, OpenCode, Pi, Gemini CLI, Amp). It runs on the user's machine and bridges agents to Telegram, so users can send tasks by voice or text, approve changes, and read results from their phone — while agents work in the background. Runners (src/untether/runners/) manage engine subprocesses, emit events via the 3-event contract (StartedEvent → ActionEvent(s) → CompletedEvent). RunnerBridge connects runners to the TelegramPresenter which handles message rendering and inline…
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- claude-stream-jsonSkill
- codex-opencode-piSkill
- jsonl-subprocess-runnerSkill
- release-coordinationSkill
- telegram-bot-apiSkill
- untether-architectureSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Use match/case, type | None unions, and other Python 3.12+ features
- Very specific: line 16
Use anyio for async (not raw asyncio)
- Very specific: line 17
Use msgspec.Struct for data classes (not dataclasses or pydantic models for schemas)
- Very specific: line 18
Use structlog for logging (not stdlib logging)
- Very specific: line 24
All Telegram writes go through TelegramOutbox — never call Bot API directly.
- Very specific: line 30
Verify the 3-event contract: StartedEvent → ActionEvent(s) → CompletedEvent
- Very specific: line 31
Use pytest-anyio for async tests
- Distinctive: line 37
Every bug fix references a GitHub issue
- Distinctive: line 38
Update CHANGELOG.md for user-facing changes
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Untether — Copilot Instructions
Untether is a Telegram bridge for AI coding agents (Claude Code, Codex, OpenCode, Pi, Gemini CLI, Amp). It runs on the user's machine and bridges agents to Telegram, so users can send tasks by voice or text, approve changes, and read results from their phone — while agents work in the background.
Stack
- Python 3.12+, anyio (async), msgspec (JSONL parsing), structlog (logging)
- Ruff (linting/formatting), pytest + anyio (testing), 80% coverage threshold
- pydantic-settings for config, httpx for HTTP, typer for CLI
Code style
- Australian English in user-facing strings (realise, colour, behaviour, licence)
- Type hints on all public functions
- Use
match/case,type | Noneunions, and other Python 3.12+ features - Use
anyiofor async (not raw asyncio) - Use
msgspec.Structfor data classes (not dataclasses or pydantic models for schemas) - Use
structlogfor logging (not stdlib logging)
Architecture
Runners (src/untether/runners/) manage engine subprocesses, emit events via the 3-event contract (StartedEvent → ActionEvent(s) → CompletedEvent). RunnerBridge connects runners to the TelegramPresenter which handles message rendering and inline keyboards.
All Telegram writes go through TelegramOutbox — never call Bot API directly.
Testing patterns
- Stub subprocess runners with fake CLI scripts for engine tests
FakeTransportprotocol doubles instead of real Telegram clients- Verify the 3-event contract:
StartedEvent→ActionEvent(s)→CompletedEvent - Use
pytest-anyiofor async tests
Commit conventions
- Conventional commits:
feat:,fix:,docs:,refactor:,test: - Feature branches:
feature/*,fix/*,docs/* - Every bug fix references a GitHub issue
- Update CHANGELOG.md for user-facing changes
Commands
Key Telegram commands: /cancel, /agent, /model, /planmode, /usage, /stats (session statistics), /auth (Codex re-auth), /export, /browse, /config, /verbose, /restart.
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.

