avibe AGENTS.md

avibe AGENTS.md is an instructions file for Codex, OpenCode from avibe-bot/avibe. It costs 4,281 tokens per session, scanned B, original, MIT.

Repository instructions for coding agents working on Avibe, a local system that connects AI agents to chat platforms such as Slack, Discord, and Telegram.

In plain words
What is it for?
Use them when changing Avibe’s configuration, message-platform integrations, agent backends, or regression-testing setup.
Why use it?
They explain the project structure and shared design rules, helping agents fix problems in the common system instead of patching only one platform.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/avibe-bot/avibe/agents-md
Clone the repo
git clone --depth 1 https://github.com/avibe-bot/avibe

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for avibe AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/avibe-bot/avibe/agents-md.svg)](https://agentmods.dev/instructions/avibe-bot/avibe/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/avibe-bot/avibe/agents-md"><img src="https://agentmods.dev/badge/instructions/avibe-bot/avibe/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,281 This file is loaded in full into every session.
When invoked 4,281 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04281 $0.04281
Opus 5 $0.02141 $0.02141
Sonnet 5 $0.00856 $0.00856
Haiku 4.5 $0.00428 $0.00428

Measured 3d ago against content hash f443ca199fae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

avibe AGENTS.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- macOS/Lima: `INCUS_CMD="limactl shell avibe-incus-regression -- sudo incus" ./scripts/run_regression.sh`
AGENTS.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Guidelines for Avibe

This document is the operating manual for coding agents working in this repository.

1. Project Overview

Avibe is the local-first Agent OS: one install command turns a machine into the runtime an agent lives in, and the user operates that runtime through Web or IM surfaces such as Slack, Discord, Telegram, Feishu/Lark, and WeChat.

Current product shape:

  • V2 config-driven service with a Web UI setup wizard and settings pages
  • multi-platform message transport with shared core orchestration
  • multi-backend agent routing across OpenCode, Claude Code, and Codex
  • local Incus-based unified regression environment for real cross-platform verification

Default mindset:

  • treat the system as multi-platform, multi-backend first
  • prefer root-cause fixes over narrow patches
  • preserve user-visible behavior unless the task explicitly changes product behavior

2. Design Philosophy and Architecture

Core Rule: Fix at the Highest Appropriate Layer

  • If a bug appears on one platform, check whether the same logic exists for the others before patching a platform adapter.
  • If a behavior should be shared by multiple backends, prefer the shared core or backend abstraction over a single backend implementation.
  • Keep transport/platform details out of core business logic whenever possible.

Decision checklist before writing code:

  1. Scope: is this platform-specific/backend-specific, or common?
  2. Abstraction: can the shared base or core layer own this behavior?
  3. Call path: is the code called from controller/handlers/common flow?
  4. Future-proofing: would a new platform/backend inherit the correct behavior automatically?

Codebase Map

  • main.py - entry point wiring config.V2Config into core/controller.py
  • core/controller.py - orchestration and dependency wiring
  • vibe/ui_server.py and vibe/api.py run in a separate process from the controller and reach controller-owned state over the internal socket; vibe/api.py builds its own AgentAuthService. In-memory registries therefore cannot span IM and Web surfaces: cross-surface exclusion needs an explicit IPC hop or a documented per-instance scope. See PR #1417's Known-by-design ledger.
  • core/handlers/ - platform/backend-agnostic business workflows
  • core/message_dispatcher.py - outbound message routing and reply enhancement flow
  • core/reply_enhancer.py - file-link and quick-reply prompt injection helpers
  • modules/im/ - IM platform adapters (slack.py, discord.py, telegram.py, feishu.py, wechat.py) plus shared base classes
  • modules/agents/ - agent backend adapters (opencode/, codex/, Claude-related modules) plus shared abstractions
  • modules/im/formatters/ - platform-specific formatting built on shared formatter concepts
  • config/ - V2 config, settings, sessions, paths, and compatibility conversion
  • ui/ - React + Vite + TypeScript Web UI
  • scripts/ - operational helpers, including regression testing workflows
  • tests/ - pytest-style unit/integration/regression coverage

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 321 lines · 4,281 tokens per session scan B f443ca199fae

Subscribe to this mod's changes

avibe AGENTS.md is an instructions file published in the GitHub repository avibe-bot/avibe (495 stars, last pushed 3d ago), licensed MIT. It adds 4,281 tokens to every session, about $0.0214 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.