Skip to content
Mikoshi

Docs

Development

Working on Mikoshi (Mikoshi team only)

Development Setup

Prerequisites

  • Python 3.12+
  • Latest Go 1.24.x patch (only for Bubble Tea TUI development and release artifacts)
  • Docker (running)
  • uv
  • Git

Local Development

  1. Clone the repository

    bash
    git clone git@github.com:khkstudios/Mikoshi.git
    cd Mikoshi
  2. Install dependencies

    bash
    make setup-dev
    
    # or manually:
    uv sync
    uv run pre-commit install
  3. Configure LLM

    bash
    export MIKOSHI_LLM="openrouter/z-ai/glm-5.3"
    export LLM_API_KEY="your-api-key"
  4. Run Mikoshi

    bash
    uv run mikoshi --target https://example.com

Adding Skills

Skills are specialized knowledge packages that enhance agent capabilities. They live in mikoshi/skills/

Creating a Skill

  1. Choose the right category
  2. Create a .md file with YAML frontmatter (name and description fields)
  3. Include practical examples—working payloads, commands, test cases
  4. Provide validation methods to confirm findings
  5. Open a pull request

Changing Code

Pull Request Process

  1. Track the work — Describe the problem or feature in an issue on the private repository
  2. Branch — Create a branch from main
  3. Make changes — Follow existing code style
  4. Write tests — Ensure coverage for new features
  5. Run checks — make check-all should pass
  6. Submit PR — Link to issue and provide context

Code Style

  • PEP 8 with 100-character line limit
  • Type hints for all functions
  • Docstrings for public methods
  • Small, focused functions
  • Meaningful variable names

Package Builds

Editable installs do not require Go; they run the TUI from source (go run).

Wheels are intentionally strict: they always bundle the matching Go sidecar and are platform-specific.

bash
make wheel

The build hook (scripts/tui_sidecar_hook.py) requires Go 1.24.x or newer, embeds the sidecar as mikoshi/bin/mikoshi-tui, and assigns the current platform tag. Frozen releases built by scripts/build.sh and mikoshi.spec also require the sidecar.

Reporting Issues

Include:

  • Python version and OS
  • Mikoshi version (mikoshi --version)
  • LLM being used
  • Full error traceback
  • Steps to reproduce

Support

Support

Report bugs and request features.