vibecore AGENTS.md

A project guide for Vibecore, a Python application with command-line and text-based interfaces, agent tools, widgets, and tests. It describes the project layout, commands, coding style, and testing rules.

In plain words
What is it for?
Changing Vibecore code, running its Python tests, checking types, and applying linting and formatting.
Why use it?
It helps coding agents find the right files and use the project’s required development commands without launching the interactive interface.

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/serialx/vibecore/agents-md
Clone the repo
git clone --depth 1 https://github.com/serialx/vibecore

Made for: Codex, OpenCode.

Per session 662 This file is loaded in full into every session.
When invoked 662 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00662 $0.00662
Opus 5 $0.00331 $0.00331
Sonnet 5 $0.00132 $0.00132
Haiku 4.5 $0.00066 $0.00066

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

Security

Grade A, and why

vibecore AGENTS.md scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 43 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • src/vibecore holds the app (main.py), Flow Mode orchestration (flow.py), and subpackages for agents, tools, widgets, session, models, and mcp.
  • Entry points are cli.py and main.py; defaults and prompts live in settings.py and prompts/.
  • Flow and multi-agent samples are under examples/; reference docs stay in docs/.
  • Tests mirror runtime modules in tests/, with fixtures in tests/fixtures and harness helpers in tests/_harness.

Build, Test, and Development Commands

  • uv sync — provision the dev environment against uv.lock.
  • uv run vibecore — launch the TUI locally; (NEVER RUN THIS)
  • uv run vibecore --print -p 'prompt' — launch vibecore in pipe mode. non-TUI. (USE THIS INSTEAD OF TUI)
  • uv run pytest … — run the suite or scoped folders like tests/ui.
  • uv run ruff check . / uv run ruff format . — lint and auto-format.
  • uv run pyright — type-check before requesting review.

Coding Style & Naming Conventions

  • Python 3.11, 4-space indentation, 120-character lines, double quotes via Ruff.
  • Use snake_case for modules, functions, variables; PascalCase for classes and TypedDicts.
  • Keep public APIs typed—py.typed means downstream users rely on annotations.
  • Place new tools, widgets, or agents beside existing peers to keep modules focused.

Testing Guidelines

  • pytest runs in strict asyncio mode; decorate async tests with pytest.mark.asyncio.
  • Name files test_*.py, reuse fixtures, and mirror new runtime code with matching tests.
  • UI changes touching message widgets must refresh tests/ui/test_message_snapshots.py.
  • Run full uv run pytest plus targeted suites before opening a PR.

Textual & UI Development Tips

  • Consult Textual source in .venv/lib/python3.11/site-packages/textual/ when extending widgets—docs lag the implementation.
  • Textual ignores CSS @keyframes; use widget animate() helpers for motion.
  • Streaming handlers in handlers/ expect incremental updates—ensure new widgets cooperate with that flow.

Read the full file on GitHub · 43 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. 2d ago First seen · 43 lines · 662 tokens per session scan A 518ebd6568e4

Subscribe to this mod's changes

vibecore AGENTS.md is an instructions file published in the GitHub repository serialx/vibecore (23 stars, last pushed 8mo ago), licensed MIT. It adds 662 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.