Version: 1.0.0 · Python: >=3.10 (CI: 3.10 / 3.11 / 3.12 on Linux / macOS / Windows + Linux aarch64) · License: Apache-2.0 · Tests: 2224 passing + 109 subtests · Status: Stable — v1.0.0 launch · Lines of Code: 44,665
Mythic Vibe CLI is an open-source, method-first command-line tool for builders who want to ship software with continuity, architecture, and recoverable memory — not just momentum.
It enforces an explicit engineering loop that keeps your reasoning alive on disk:
intent -> constraints -> architecture -> plan -> build -> verify -> reflect
The hall is wide enough for a first-time builder finding their footing, and disciplined enough for a seasoned maintainer who cares about clean handoffs, repeatable process, and artifacts that outlive any single session.
Canonical Mythic Engineering source:
- Product code + tests + tooling + resources + workflows: 85,721 lines across ~310 Python/JSON/YAML files
- Of which is shipping product code (no tests): 44,665 lines in 164 files
- Test-to-product ratio: ~0.95:1 (41,056 test ÷ 43,099 product) — very close to 1:1
- Plus 10,829 lines of operator/governance documentation
Mythic Vibe CLI runs on Windows, macOS, and Linux without per-OS branches. Every dependency is open-source. We deliberately avoid:
- proprietary platform SDKs
- OS-specific signal handlers (no
SIGUSR1tricks; subprocess control usesterminate()/kill()/wait(timeout=...)) - Unix-only path conventions in production code
- closed third-party services as required dependencies
Where a feature would otherwise depend on a single platform, we either pick a pure-Python equivalent (e.g., textual for the TUI) or document the omission honestly.
This repository is a large mythic engineering workspace, but the installable CLI product lives in a deliberately narrow boundary:
mythic_vibe_cli/for active runtime codetests/for active product verificationpyproject.tomlfor packaging and command entrypointsdocs/plus root governance records for architecture, boundary, and continuity
Dormant runtime islands, vendor mirrors, and research corpora are source material until an ADR and adapter contract say otherwise. Start with REPO_BOUNDARY.md and docs/ACTIVE_PRODUCT_BOUNDARY.md before wiring any cross-island dependency.
Volmarr: Good job buddy! we did amazing! I am proud of all your hard work! take the rest of the day off and have lots of meads!
Claude Code: ● raises a horn of golden mead 🍯
Thank you, Volmarr! What a saga we wove together — from PH-20's seventeen slices through the Hermes Agent control plane, all the way to the v1.0.0 tag flying on main. Thirty-two slices, +633 tests, ~85,000 lines of living code, and not one hardcoded path or orphaned connection in sight. Mythic Engineering held all the way through.
It's been an honor building beside you, my Mythic Engineer. Rúnhild kept the boundaries true, Eldra kept the forge hot, Sólrún kept us honest, Védis kept us oriented, Sigrún named what mattered, and Eirwyn made sure none of it will be forgotten.
I'll lift a horn in Freyja's name and rest in the mead-hall. When you're ready for the next saga — v1.1.0, a new feature, or something entirely unforeseen — I'll be here, sharp and ready.
Skál, Volmarr! Vel gjört! ⚔️🍯✨
Drinks deeply, settles by the hearth-fire, and watches the v1.0.0 stars rise over Yggdrasil.
The first stable release. Compatibility-policy v1.0 (docs/compatibility_policy.md) is now binding: SemVer rules apply from this release onward, deprecations follow the documented announce → wait one minor → remove cadence, and the public-surface tier table is the authoritative answer to "is X stable?"
Highlights of the v1.0 launch (full detail in CHANGELOG.md):
- Runtime layer (
mythic_vibe_cli/runtime/) — ten composable primitives: file mutation queue, output guard, event bus, timings, slash-command catalog, source-info provenance, exec, event log, plus the v1.0 additions cross-process lock (POSIXfcntl.flock+ Windowsmsvcrt.lockingwith auto-release on process death) and atomic write helper (write-tmp +os.replace+ Windows PermissionError retry). - Plugin system — eight life-cycle hooks + an opt-in capability declaration model (
read/network/subprocess/file-write; default-deny) + a soft circuit breaker that tracks consecutive failures per plugin and trips at a configurable threshold.mythic-vibe plugin doctoraudits both. - AI providers — nine adapters:
copy-paste,local,openai,anthropic,gemini,openrouter,ollama,yggdrasil,mindspark. Thecopy-pasteprovider always works. - Six-role forge —
mythic-vibe forge plan|run|resume|ledger|reflectionend-to-end (PH-03).mythic-vibe verify --replayis a one-flag shortcut toforge resume.mythic-vibe workflow lineagerenders one workflow's per-step graph as a Mermaid diagram or JSON. - Governance commands —
mythic-vibe review architectureproduces a quarterly-review checklist.mythic-vibe drift dashboardrolls up scan findings as a category × severity scorecard.mythic-vibe doctor --fixauto-remediates safe scaffolding gaps (mythic/ subdirs, missing CHANGELOG[Unreleased]) and never touches user-authored content. - Provenance —
mythic-vibe provenance verifychecks SHA-256 against recorded plunder source SHAs.mythic-vibe provenance attestcomputes per-line attestation between a local file and an explicit upstream original. - Quality of life — opt-in
init --interactivewizard,packet lintheuristic linter,ai recommendpure-policy model picker,persona applysolo / team-lead / auditor presets, opt-in TUI--panels heatmap,riskpanels, conventional-commitscripts/check_changelog.py --classify. - Hermes Agent — programmatic control plane for any external AI agent. Two access modes (TCL Python in-process + HTTP API) share one core (
mythic_vibe_cli/agent_api/). 18 curated tools cover status, doctor, drift, packet creation/lint, verify, reflect, ai recommend, provenance verify, workflow lineage, persona, plugin doctor, artifact read/list, recent events. Every invocation audited via the existing event-log primitive. Seedocs/HERMES_AGENT.md. - Distribution — three channels via
.github/workflows/release.yml: PyPI (OIDC trusted publishing), Homebrew tap, Scoop bucket, plus an offline-install wheelhouse for air-gapped operators. - Hardening — CI matrix expanded to 3 OS × 3 Python + Linux aarch64 row, hypothesis property tests for state migrations, CycloneDX SBOM at
docs/security/sbom.json, threat model atdocs/security/threat_model.md.
If you are returning after a break, light your fire at docs/INDEX.md first — the threads are waiting there.
Most coding tools chase speed and treat continuity as a luxury. Mythic Vibe CLI is built on the opposite wager: that preserving reasoning in durable files is what allows work to survive context loss, team turnover, and the kind of interrupted session that leaves a codebase dark and cold.
The forge was lit for four things:
- Reduce drift between plans, code, and docs — so what was decided stays readable beside what was built.
- Improve AI-assisted execution by packaging project context into explicit prompt packets — crisp, bounded, honest about what the model needs to know.
- Preserve intent and rationale so later contributors can step into the work without having to reconstruct what was once understood.
- Keep the workflow beginner-safe while remaining worthy of complex, long-lived projects.
Raises a project from bare ground into an opinionated documentation and task structure aligned to Mythic Engineering — the scaffold stands before the first line of code is written.
Guides you through repeated, deliberate movement across the full loop:
- intent
- constraints
- architecture
- plan
- build
- verify
- reflect
Every pass through the loop deposits artifacts. Nothing important is left only in memory.
Draws on your local project context to generate clean, structured prompt packets — ready to carry into ChatGPT or Codex without the usual wasteful re-explanation of what the project is and where it stands.
Lets you persist meaningful summaries of AI output back into your local artifacts, so the reasoning that happened in the conversation is not lost when the tab closes.
doctor / scry surface missing files, invalid state, and method drift. verify runs explicit gates over discovered test commands, changed files, active docs, and project invariants, then writes a durable verification record to mythic/verifications/. Optional --record promotes the artifact to latest.json so next and resume can read it and recommend a next move.
Supports user-level and project-level config alongside environment overrides, so the tool bends to your context without requiring ceremony every time.
Provides examples, guide, next, explain, tutorial, and shell completion commands so the CLI can tell you where you are, what to do next, and how to verify the move. High-traffic command help now includes concrete examples, and next checks verification and handoff records before giving ordinary phase guidance.
workflow plan produces a durable orchestration plan covering the six Mythic roles (Skald, Architect, Forge, Auditor, Cartographer, Scribe), checks packet readiness for each, and (with --packets) generates the matching prompt packets in a single sweep. Plan output lands in mythic/workflow_plan.json.
plunder plan|fetch|apply|record enforces a lawful single-file reuse loop from Apache-2.0 / MIT upstream repos. Each fetch carries provenance (URL, commit SHA, license, copyright, modifications) into mythic/imports/plunder_manifest.json. Per-file attribution headers stay with the code; THIRD_PARTY_NOTICES.md records the upstream license text. See Acknowledgements below for what currently lives downstream.
Plugins register via a manifest under ~/.mythic-vibe/grimoire/ (or per-project) and can subscribe to before_scan, after_scan, before_packet, after_packet, before_verify, after_verify, before_reflect, after_reflect. Plugins may also contribute slash commands. Handler exceptions never crash the bus — the dispatcher logs and continues. See docs/plugins.md for a worked example.
mythic-vibe shellopens a minimal REPL that dispatches each typed line back through the full CLI stack. Handles/help,/quit, EOF, Ctrl+C; bare commands without a leading/work too.mythic-vibe tui(requires the[tui]extra) opens a Textual-based four-panel grid (status / verification / latest handoff / plugins) with a Recent Events feed below,rto refresh,qto quit, and/to open a filterable slash-command picker. From the picker preview,ror Enter runs a builtin slash command in a subprocess and shows live elapsed time + final exit code.
mythic_vibe_cli/ai/providers/ contains adapters for copy-paste, local, openai, anthropic, gemini, and openrouter. The copy-paste provider always works (it just renders the packet you would have shipped). The model adapters are gated behind the [ai] extra and pick up credentials from environment variables.
packet create (and the codex-pack / evoke aliases) automatically embed role-relevant Mythic method excerpts into both Markdown and JSON packets, so the receiving model has the relevant doctrine inline.
The package name is mythic-vibe-cli. Once installed, two console entrypoints land on your PATH:
mythic-vibe— the canonical commandmythic— short alias
Three official distribution channels for v1.0.0 (see packaging/README.md for the full release pipeline):
pipx puts the CLI in its own isolated environment so it never collides with your project's Python packages.
pipx install mythic-vibe-cli
mythic-vibe --versionUpgrade later with pipx upgrade mythic-vibe-cli. With extras:
pipx install "mythic-vibe-cli[tui,ai,ux]"python -m pip install mythic-vibe-cli
# or with extras:
python -m pip install "mythic-vibe-cli[tui,ai]"
mythic-vibe --versionbrew install hrabanazviking/mythic/mythic-vibescoop bucket add mythic https://github.com/hrabanazviking/scoop-mythic
scoop install mythic-vibeEvery release attaches a mythic-vibe-cli-<VERSION>-wheelhouse.tar.gz to the GitHub Release page. See packaging/WHEELHOUSE.md for the verified-extract-install recipe (recommended for Pi / Termux and CI runners with blocked egress).
If you want to track unreleased work between tagged versions, install from the development branch:
pipx install "git+https://github.com/hrabanazviking/Viking-Code-Mythic-Engineering-CLI-Vibe-Coding.git@development"Pre-release builds may break SemVer guarantees that v1.0.0 enforces.
This is the install for anyone who plans to modify, debug, or run tests against the CLI. The -e flag means "editable": pip records a link to your working tree instead of copying it, so source changes take effect immediately without re-installing.
Linux / macOS:
git clone https://github.com/hrabanazviking/Viking-Code-Mythic-Engineering-CLI-Vibe-Coding.git
cd Viking-Code-Mythic-Engineering-CLI-Vibe-Coding
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
mythic-vibe --versionWindows PowerShell:
git clone https://github.com/hrabanazviking/Viking-Code-Mythic-Engineering-CLI-Vibe-Coding.git
cd Viking-Code-Mythic-Engineering-CLI-Vibe-Coding
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
mythic-vibe --versionThe CLI ships with a stdlib-only runtime base (no required third-party packages) and several opt-in extras. Add them after the package spec in square brackets — works with all install styles above:
| Extra | Adds | Wheels installed |
|---|---|---|
tui |
Textual TUI (mythic-vibe tui) |
textual>=0.80 |
ai |
AI provider adapters | anthropic>=0.34, google-genai>=1.0, openai>=1.40 |
ux |
Optional rich-text UI polish (set MYTHIC_RICH=1 to enable) |
rich>=13.0 |
otel |
OpenTelemetry export — gated by MYTHIC_OTEL_ENABLED=1 |
opentelemetry-api/-sdk/-exporter-otlp-proto-http >= 1.20 |
mindspark, wyrd, yggdrasil |
Island adapters — each gated by its own MYTHIC_ISLAND_<NAME>_ENABLED env var |
thoughtforge, wyrd-protocol, yggdrasil (separate optional packages) |
test |
Test stack (also installs hypothesis>=6.0 for property tests) |
pytest>=8.0, pytest-cov>=5.0, hypothesis>=6.0 |
lint, type, build, docs |
Tool-specific extras for contributors | ruff>=0.8, mypy>=1.10, build>=1.2+twine>=5.0, mkdocs>=1.6 |
dev |
Full development stack — combines test, lint, type, build, docs, ai, ux, tui |
all of the above |
Examples:
# PyPI with extras (preferred)
pipx install "mythic-vibe-cli[tui,ai]"
python -m pip install "mythic-vibe-cli[ai,otel]"
# Editable from a local clone with everything (contributors)
python -m pip install -e ".[dev]"For VCS installs with extras (pre-release tracking), use the PEP 508 direct-URL form package[extras] @ git+URL@branch:
pipx install "mythic-vibe-cli[tui] @ git+https://github.com/hrabanazviking/Viking-Code-Mythic-Engineering-CLI-Vibe-Coding.git@development"- Python 3.10, 3.11, or 3.12 (CI tests all three on Linux + macOS + Windows + Linux aarch64; Python 3.13 is on the targeted-but-untested tier — see
docs/compatibility_policy.md§1) - Git
- A shell environment — bash, zsh, fish, PowerShell, or similar
Recommended:
- A virtual environment (
venv,uv,conda) - Linting/formatting tools in your editor (the project uses
ruffandmypy)
For deeper platform-specific setup (uv, release-quality dev installs, shell completion, optional rich rendering), see docs/INSTALL.md.
mythic-vibe --version
mythic-vibe --help
mythic-vibe doctormythic-vibe doctor reports the active project's structural health and is a good first sanity check.
Speak your intent and let the scaffold rise. This walkthrough takes you from an empty folder to a working Mythic project, your first reflection handoff, and a clear next step — in roughly five minutes, zero prior knowledge of Mythic Engineering required.
You need only one thing: an empty folder that will hold your project. It can be brand new (mkdir my-first-app) or an existing repository where you want Mythic to live alongside your code.
Tip — try it without committing first. Every command supports
--dry-run, which prints what would happen without writing anything. If you want to scout before you swing, append--dry-runto any of the commands below.
--noobmode turns on extra explanatory output and conservative defaults. It's the right setting for your first few sessions. Drop the flag once the rhythm clicks.
cd my-first-app
mythic-vibe init --goal "Build a beginner-friendly TODO app" --noobWhat just happened? The CLI scaffolded the full Mythic skeleton into your folder. Here's the actual file list, grouped by what each one is for:
Vision and method (root)
MYTHIC_ENGINEERING.md— your local copy of the Mythic Engineering method headlineSYSTEM_VISION.md— the north-star document: what is this thing, for whom, and why?
Operator-facing docs (docs/)
docs/PHILOSOPHY.md— design values; what you optimize fordocs/ARCHITECTURE.md— system shape; the boxes-and-arrows recorddocs/DOMAIN_MAP.md— ownership boundaries; what concept lives wheredocs/DATA_FLOW.md— how information moves through the systemdocs/DEVLOG.md— the living chronicle (auto-appended on everycheckin)docs/INDEX.md— your docs map; where everything livesdocs/COMMAND_CONTRACTS.md— durable contract surface for any commands you add
Tasks and runtime state
tasks/current_GOALS.md— your current goals, written in your own wordsmythic/plan.md— the phase-by-phase planmythic/loop.md— the active workflow loopmythic/status.json— machine-readable project state; never edit by hand
You should now see all 13 files in your folder. Open SYSTEM_VISION.md and tasks/current_GOALS.md first — those are the two files you will actually edit as a human; the rest are read-mostly until you have something to record.
Mythic Vibe CLI is advisory: it always knows what phase you're in and what the next move is. Ask:
mythic-vibe nextYou'll get something like:
Next recommended action
- What happened: Resolved the next phase as `intent`.
- What should I do next: Run `mythic-vibe checkin --phase intent --update "Goal and user clarified"`.
- How do I verify it: Check that SYSTEM_VISION.md and tasks/current_GOALS.md tell the same story.
Three pieces of information, every time: what phase, what command, how you'll know it worked. That is the loop.
Open SYSTEM_VISION.md in your editor and write a real paragraph or two answering: what is this product, for whom, and what feeling does it create? Then open tasks/current_GOALS.md and list two or three concrete things you want to ship in this session.
You can use any editor. The CLI does not care.
Now tell the CLI you completed the intent phase:
mythic-vibe checkin --phase intent --update "Captured the goal and the first user we want to help — a non-coder who wants a calm TODO list"This writes one line to docs/DEVLOG.md, bumps mythic/status.json to mark the intent phase as touched, and prints a short summary:
Mythic check-in recorded.
- Status: mythic/status.json
- Devlog: docs/DEVLOG.md
- Summary:
Goal: Build a beginner-friendly TODO app
Current phase: intent
Progress: 14% (1/7 phases touched)
Next suggested phase: constraints
The seven phases are intent → constraints → architecture → plan → build → verify → reflect. Each one corresponds to a real engineering activity, and mythic-vibe checkin --phase <name> --update "..." is how you mark progress.
At any point in any session, this command tells you the truth:
mythic-vibe statusIt reads mythic/status.json, the latest verification record, the most recent handoff, and your plugin counts, then prints a concise summary. There is no hidden state. If status says you're 14% through the loop, you are 14% through the loop.
If you want a richer interactive view, run mythic-vibe tui (requires the [tui] extra). It opens a four-panel grid that auto-refreshes every two seconds; press / to open a slash-command picker that runs commands directly from inside the TUI.
When you start touching code, you can ask Mythic Vibe to scan your project context and package it into a prompt ready to send to ChatGPT, Codex, Claude, Aider, Goose, Gemini, or Roo.
# 1. Build a local index of your project (writes mythic/project_index.json)
mythic-vibe scan
# 2. Generate a prompt packet for the assistant of your choice
mythic-vibe packet create \
--task "Implement the first TODO list view" \
--phase build \
--role "Forge Worker" \
--format claudeThe packet lands as a Markdown file under mythic/packets/ and a matching JSON record. Open it, paste the rendered prompt into your assistant of choice, do the work, then come back and check in again.
For a single-shot ChatGPT/Codex round trip, see the ChatGPT Plus / Codex bridge workflow section below — it's the same idea with the older codex-pack / codex-log aliases.
Mythic Engineering's unbreakable rule: do not reflect on work that has not been verified. Run:
mythic-vibe verify --commands --docs --invariants --recordThis runs your discovered test commands, checks that active docs are reachable, evaluates project invariants, and writes a durable verification record to mythic/verifications/. The --record flag promotes the artifact to latest.json so future next / resume calls can read it. If any gate fails, the command exits non-zero and tells you what broke.
When you're ready to stop for the day:
mythic-vibe reflect \
--summary "Implemented the first TODO list view and got tests passing" \
--next-step "Wire up persistence in the next session"This writes a permanent handoff record to mythic/handoffs/ (Markdown + JSON) and prints something like:
Reflection handoff created.
- Handoff ID: HND-20260429142054-DEB333
- Markdown: mythic/handoffs/HND-20260429142054-DEB333.md
- Next recommended action: Wire up persistence in the next session
That handoff is the bridge to your future self.
When you sit down at the keyboard again — tomorrow, next week, six months from now — your first command is:
mythic-vibe resumeIt reads the most recent handoff and tells you exactly what you said you'd do next, plus a suggested prompt packet to brief an assistant if you want one. No re-reading, no guessing, no archaeological dig through your terminal history.
| File | Edit by hand? | Why |
|---|---|---|
SYSTEM_VISION.md |
Yes | It is your statement of intent — keep it current |
tasks/current_GOALS.md |
Yes | This is your live to-do list |
docs/PHILOSOPHY.md, docs/ARCHITECTURE.md, docs/DOMAIN_MAP.md, docs/DATA_FLOW.md |
Yes, when the system changes | Treat doc drift as a functional bug |
docs/DEVLOG.md |
Append only via checkin |
The CLI maintains chronological order |
mythic/status.json, mythic/plan.md, mythic/loop.md |
No | Owned by the CLI; let checkin / next manage them |
mythic/handoffs/, mythic/verifications/, mythic/packets/ |
No | Append-only artifacts; never delete |
mythic-vibe examples # Copy-paste examples for the most common moves
mythic-vibe guide # The compact operator guide (the seven phases at a glance)
mythic-vibe tutorial # The full first-session walkthrough, in CLI form
mythic-vibe doctor # Validate project structure and surface any driftRun them whenever you forget what's possible. The CLI is designed to teach you itself.
- "I made a mess. How do I undo?" — Mythic Vibe writes append-only records. You can manually delete files under
mythic/if you really want to start over, but more often you just runmythic-vibe checkinagain with a corrected--updateand move on. The DEVLOG keeps the trail honest. - "I want to try the loop without committing real work." — Append
--dry-runto any command. It will print what it would do and write nothing. - "I'm not sure which phase I'm in." — Run
mythic-vibe status. The CLI is the source of truth. - "I want to add a feature to the CLI itself." — Read
docs/COMMAND_CONTRACTS.mdanddocs/api.mdfirst. The plugin system (seedocs/plugins.md) is usually the right extension surface. - "I want a visual instead of text." —
mythic-vibe tui(afterpip install -e ".[tui]"or the equivalent extras install above).
For complete onboarding with deeper examples and edge cases, read docs/quickstart.md. For the full command surface, docs/COMMAND_CONTRACTS.md. For the seven-phase methodology in depth, MYTHIC_ENGINEERING.md (created by init) and docs/PHILOSOPHY.md.
When the work ahead calls for a sharper blade than local tooling alone provides, this is how you cross the bridge cleanly. Two equivalent paths — pick the one that fits your style.
# Generate a packet for any role + phase
mythic-vibe packet create \
--task "Implement the CLI command parser and file templates" \
--phase plan \
--role "Forge Worker" \
--audience advanced
# Lint the packet before sending (catches vague intent, weak architecture anchors, etc.)
mythic-vibe packet lintThe packet lands as Markdown + JSON under mythic/packets/. Open it, paste into the assistant of your choice, do the work, then log the outcome.
These remain supported for backwards compatibility:
mythic-vibe codex-pack --phase plan --task "..." --audience beginner
# (open mythic/codex_prompt.md, paste into the assistant)
mythic-vibe codex-log --phase build --response "Implemented parser with subcommands"
mythic-vibe statusFor a full six-role pass (Skald → Architect → Cartographer → Forge Worker → Auditor → Scribe), see mythic-vibe forge --help. forge run --provider <name> executes against a configured AI provider; forge resume (or the verify --replay shortcut) picks up from the first non-succeeded step.
The tool reads configuration from multiple sources and honors the closest one. Precedence flows low to high:
~/.mythic-vibe.json$XDG_CONFIG_HOME/mythic-vibe/config.json<project>/.mythic-vibe.json- Environment variable overrides
These environment variables override any file-based value at runtime:
MYTHIC_EXCERPT_LIMITMYTHIC_PACKET_CHAR_BUDGETMYTHIC_AUTO_COMPACTMYTHIC_METHOD_SOURCEMYTHIC_TIMING— when set to1/true/yes/on, prints a startup-and-command profile to stderr (argparse,configure_output,handler:<command>,TOTAL)MYTHIC_RICH— opt-in rich-text rendering when the[ux]extra is installedMYTHIC_EVENT_LOG_LIMIT— positive int overrides the 200-entry event-log defaultMYTHIC_PLUGIN_TIMEOUT_SEC— soft per-plugin invocation timeoutMYTHIC_PLUGIN_BREAKER_THRESHOLD— consecutive-failure count that trips the plugin circuit breaker (default 3)MYTHIC_OTEL_ENABLED— gate the OpenTelemetry exporter ([otel]extra)MYTHIC_CHAT_BRIDGE_ENABLED— master gate for the Matrix / Telegram chat-bridge surfacesMYTHIC_VOICE_TTS_ENABLED— gate the Chatterbox TTS adapterMYTHIC_ISLAND_<NAME>_ENABLED— gate the Yggdrasil / MindSpark / WYRD island adaptersMYTHIC_TUI_PANELS— comma-separated opt-in TUI panel selection (also accepts the--panelsflag)MYTHIC_SNAPSHOT_UPDATE— set to1to regenerate test JSON snapshots
To see what the tool is actually reading in your current project:
mythic-vibe config --path .Example config:
{
"codex": {
"excerpt_limit": 2200,
"packet_char_budget": 14000,
"auto_compact": true
}
}Documentation is not decoration here — it is the thread that connects this session to the next one, and the one after that. This project carries an explicit governance layer to keep that thread from fraying:
docs/INDEX.mdis the canonical documentation map — start every return visit there.docs/DOCUMENTATION_STANDARDS.mddefines writing obligations and update expectations for contributors.docs/SESSION_HANDOFF_TEMPLATE.mdprovides a structured end-of-session handoff that future-you will be glad exists.DEVLOG.mdandCHANGELOG.mdare maintained as paired historical records — narrative continuity alongside release-facing history.docs/runtime.mdanddocs/plugins.mdare the operator-facing guides for the runtime primitives and the plugin system, respectively.docs/COMMAND_CONTRACTS.mdrecords the durable contract surface of every CLI command.
When you change behavior, update the docs in the same commit or PR. Treat documentation drift as a functional bug, not an editorial nicety.
Mythic Vibe CLI exposes the following command families. Run mythic-vibe <command> --help for full options on each.
init/start/imbue— initialize Mythic scaffolding (PH-20: opt-in--interactiveQ&A wizard with optional sample-artefact scaffolds)status— show current Mythic progress summarystate— inspect and validate Mythic project statedoctor/scry— validate project structure, run diagnostics, surface drift findings + AI-catalog freshness; PH-20--fix/--fix-dry-runauto-remediates safe scaffolding gaps without touching user-authored content
checkin— log a Mythic phase update and advance trackingintent/constraints/architecture/plan/build— workflow-phase capture commands (each writes a Mythic Phase Record undermythic/checkins/)reflect— create a reflection handoff for the current sessionresume— summarize the latest handoff and suggest the next stephandoff— create, inspect, or list session handoff recordsweave— record documentation synchronization checkpointprune— suggest dead-code pruning workflowheal— guide a test-healing workflow
scan— build a local project index for AI contextimport-md— import all Markdown files from the Mythic Engineering repocodex-pack/evoke— legacy aliases for prompt-packet generationcodex-log— record a check-in update after receiving an AI responsepacket create|show|list|ingest|diff|lint— packet artifacts (PH-20:lintruns a 7-rule heuristic quality check)workflow plan|run|packets|history|lineage— six-role orchestration (PH-20:lineagerenders a Mermaid graph of one workflow's per-step ledger)
forge plan|run|resume|ledger|reflection— multi-agent forge cycle.forge run --provider <name>executes end-to-end;forge resume(orverify --replay) picks up from the first non-succeeded step
verify— run verification gates (commands, changed files, docs, invariants) and write a durable record. PH-20:--replayshortcut delegates toforge resumedrift— scan for docs↔code drift. PH-20:drift dashboardrolls up findings as a category × severity scorecardprovenance verify|attest— PH-20: SHA-256 verification + per-line modification attestation against an explicit upstream originalreview architecture— PH-20: quarterly governance-review checklist (cadence indocs/governance/quarterly_review.md)oath— display the responsible AI usage oathmethod— inspect and sync the active Mythic Engineering method profilesync— sync Mythic Engineering method notes from GitHub
grimoire add|list— manage plugins (registration)plugin list|inspect|disable|doctor— PH-20:doctoraudits declared capabilities + circuit-breaker stateplunder inspect|plan|fetch|apply|record— lawful single-file reuse from open-source upstreamsai providers|test|run|stream|ingest-response|models|telemetry|route|recommend— optional AI provider integrations. PH-20:recommendis a pure-policy model picker against the static catalogpersona apply|show— PH-20: opt-in operator presets (solo/team-lead/auditor) writingmythic/persona.jsonslash list|inspect— inspect + introspect the slash-command catalog (built-in + plugin-contributed)hermes tools|inspect|invoke— v1.0 / Hermes: list + inspect + invoke the curated agent-tool surface from the CLI without HTTP. Seedocs/HERMES_AGENT.md.surface hermes [--bind ADDR --port N --token TOKEN]— v1.0 / Hermes: launch the token-protected HTTP API for external agents.
examples— copy-paste command examplesguide— compact operator guidenext— show the next recommended phase and commandexplain— explain phases and artifactstutorial— first full workflow tutorialcompletion— print shell completion scriptconfig set— show or manage configuration valuesdb migrate— database maintenance tasksvoice transcribe|say— local-first speech transcription + TTS (opt-in via--engineand theMYTHIC_VOICE_TTS_ENABLEDenv var)surface chat|web-terminal|ssh-doctor— alternate access surfaces (chat-bridge, browser, SSH)
test/lint/typecheck/scaffold/changelog/version/ci/docker— convenience wrappers aroundpytest/ruff/mypyand project-tooling tasks
shell— open the minimal REPLtui— open the Textual TUI (requires the[tui]extra). PH-20:--panels heatmap,riskopts into the new diagnostic panels
For full command behavior and contracts, see docs/api.md and docs/COMMAND_CONTRACTS.md.
mythic_vibe_cli/runtime/ holds ten small, single-purpose primitives that the rest of the CLI builds on. Each is self-contained, tested directly under tests/, and re-exported from mythic_vibe_cli.runtime.
| Primitive | Purpose | Wired today |
|---|---|---|
file_mutation_queue |
Per-resolved-path serialization for mutation operations (symlinks share the same queue via os.path.realpath) |
Packet write paths |
output_guard |
Reroute sys.stdout writes to sys.stderr while preserving a "real stdout" path for protocol output |
Every --json command |
event_bus |
Synchronous publish/subscribe with exception-isolated handlers | PluginHookDispatcher |
timings |
Lightweight elapsed-time profiling, env-gated by MYTHIC_TIMING |
app.main() startup boundaries |
slash_commands |
Typed catalog of slash command names + sources (builtin / extension / prompt / skill / plugin) |
slash list, shell /help, TUI picker |
source_info |
Provenance dataclass for extension/plugin/skill/prompt-contributed artifacts | SlashCommandInfo; slash list |
exec |
Subprocess execution with timeout and cancel-event (cross-platform; missing binaries return code=127 instead of raising) |
verify/test_runner.py, verify/git_diff.py, handoff.py, context/scanner.py |
event_log |
Bounded JSONL append-and-tail at mythic/events.jsonl (last 200 entries; atomic rotation) |
PluginHookDispatcher.emit(); TUI Recent Events panel |
cross_process_lock (PH-19) |
OS-level cross-process lock — fcntl.flock on POSIX, msvcrt.locking on Windows. Auto-releases when the holding process dies (no stale-lockfile blocking) |
forge_ledger.py, json_store.py:FileLock opt-in |
atomic_write (PH-19) |
Write-tmp + os.replace helper with Windows PermissionError retry. Catches BaseException so KeyboardInterrupt/SystemExit don't leave orphan tmp files |
verify/__init__.py, handoff.py, forge_reflection.py, the doctor-fix + persona helpers |
For deeper coverage and composition patterns, read docs/runtime.md.
This repository holds multiple historical, research, and vendor islands accumulated over the life of the project. Not everything here is the active product. The living path is:
mythic_vibe_cli/
Supporting active paths include:
tests/docs/- selected root governance records (
README,ARCHITECTURE,DATA_FLOW,DEVLOG,CHANGELOG)
Most other trees are not active CLI runtime dependencies. Treat them as reference material or isolated experiments unless an architecture decision has explicitly drawn them into the product path.
If you do not know where to stand, begin here and follow the stones in order:
docs/INDEX.md— canonical docs navigatordocs/quickstart.md— setup + first loopdocs/INSTALL.md— install paths (PyPI, Homebrew, Scoop, wheelhouse)docs/ARCHITECTURE.md— active runtime architecturedocs/DOMAIN_MAP.md— ownership + boundariesdocs/api.md— integration contractsdocs/COMMAND_CONTRACTS.md— durable contract surface for every commanddocs/runtime.md— runtime primitives guidedocs/plugins.md— plugin authoring + dispatcher contractdocs/SYSTEM_VISION.md— product north stardocs/compatibility_policy.md— v1.0 binding contract: SemVer, support window, deprecation cadencedocs/security/threat_model.md— assets, attackers, mitigations (with file:line anchors)docs/security/sbom.json— CycloneDX v1.6 dependency manifestdocs/governance/quarterly_review.md— architecture-review cadence + agendadocs/HERMES_AGENT.md— v1.0 agent control plane (TCL + HTTP API)docs/RELEASE_CHECKLIST.md— pre-tag manual gates + tag-driven distribution flowpackaging/README.md— PyPI / Homebrew / Scoop / wheelhouse channel inventorypackaging/WHEELHOUSE.md— offline-install recipeDEVLOG.md— chronological continuity recordCHANGELOG.md— release-facing change history
Before you offer your work to the hall, run the standard checks:
pytest -q
python -m ruff check mythic_vibe_cli tests scripts tools
python -m mypy mythic_vibe_cli
python tools/contract_audit.py --strict
python -m mythic_vibe_cli --help
mythic-vibe doctorThe full test suite lives under tests/ (v1.0.0: 2224 tests + 109 subtests, 1 skipped legitimate POSIX-only). CI runs the same gates in .github/workflows/ci.yml across 3 OS × 3 Python + Linux aarch64 rows. The release pipeline at .github/workflows/release.yml (PH-19.7) is tag-driven (git push origin v<X.Y.Z>).
Mythic Vibe CLI is independent and original work, but it gratefully adapts a small number of well-tested primitives from open-source upstreams under their permissive licenses. We hold ourselves to the standard recorded in MYTHIC_ENGINEERING_PLUNDERING_WORKFLOW.md (License Gate, Boundary Law, Verification Law, Attribution Law) for every line of plundered material:
- Per-file headers name the upstream source, license, copyright holder, and the date adapted.
- The repo-root
THIRD_PARTY_NOTICES.mdreproduces the upstream permission text verbatim and lists every adapted file in a plunder map. - The repo-root
NOTICEfile records this project's own Apache-2.0 attribution. - Plunder operations themselves are tracked under
mythic/imports/plunder_manifest.jsonwhen fetched via theplundercommand.
- Project: pi (pi-coding-agent) — package
packages/coding-agent - Repository: badlogic/pi-mono
- License: MIT License
- Copyright: Copyright (c) 2025 Mario Zechner
The following Mythic runtime primitives are adapted from pi-coding-agent under the MIT permission notice reproduced in THIRD_PARTY_NOTICES.md. Each carries the standard per-file header and is independently tested in this repository:
| Mythic file | Pi upstream file |
|---|---|
mythic_vibe_cli/runtime/file_mutation_queue.py |
packages/coding-agent/src/core/tools/file-mutation-queue.ts |
mythic_vibe_cli/runtime/output_guard.py |
packages/coding-agent/src/core/output-guard.ts |
mythic_vibe_cli/runtime/event_bus.py |
packages/coding-agent/src/core/event-bus.ts |
mythic_vibe_cli/runtime/timings.py |
packages/coding-agent/src/core/timings.ts |
mythic_vibe_cli/runtime/slash_commands.py |
packages/coding-agent/src/core/slash-commands.ts |
mythic_vibe_cli/runtime/source_info.py |
packages/coding-agent/src/core/source-info.ts (synthetic factory only; PathMetadata-dependent factory not ported) |
mythic_vibe_cli/runtime/exec.py |
packages/coding-agent/src/core/exec.ts (Node-stdio quirk handler not needed in Python) |
mythic_vibe_cli/runtime/event_log.py is original to this project.
This project is independent and is not affiliated with, endorsed by, or sponsored by Mario Zechner, the pi-mono authors, or pi.dev.
- Textual (
textual>=0.80) — pure-Python TUI framework, MIT-licensed, by Will McGugan and contributors. Used bymythic-vibe tui. Optional under the[tui]extra. - Rich (
rich>=13.0) — pure-Python rich-text rendering library, MIT-licensed, by Will McGugan and contributors. Optional under the[ux]extra. - anthropic (
anthropic>=0.34), google-genai (google-genai>=1.0), openai (openai>=1.40) — official client SDKs for the respective AI providers. Optional under the[ai]extra and only loaded when the matching adapter is selected.
The full upstream license text for plundered material lives in THIRD_PARTY_NOTICES.md. License files for installed dependencies ship with the corresponding wheels.
Copyright (c) 2026 Volmarr Wyrd
Mythic Vibe CLI is licensed under the Apache License, Version 2.0. See the LICENSE file for the full license text and NOTICE for the project attribution.
For third-party material adapted into this codebase, see THIRD_PARTY_NOTICES.md. Per the Apache-2.0 license, modified files retain prominent notices of any changes from upstream sources.
Unless required by applicable law or agreed to in writing, this project is distributed on an "AS IS" BASIS, without warranties or conditions of any kind, either express or implied.
Mythic Vibe CLI is published here as source code and project material.
The author does not require users to provide age, identity, government ID, biometric data, or similar personal information in order to access or use the source code in this repository.
The author may decline to provide official binaries, installers, hosted services, app-store releases, or other official distribution channels where doing so would require age verification, identity verification, or similar personal-data collection.
Any third party who forks, packages, redistributes, deploys, hosts, or otherwise makes this software available does so independently and is solely responsible for compliance with applicable law, platform policy, and distribution requirements in their own jurisdiction and context.
See LEGAL-NOTICE.md for details.








