Skip to main content

ImportFromMyHarness

Move an opencode project into Claude Code in one command. It converts instructions, rules, skills, agents, MCP servers and oh-my-opencode-slim agents, and lists whatever it couldn't convert instead of silently dropping it.

Direction Status
opencode → Claude Code supported and tested
Claude Code → opencode experimental: mappings exist, not tested yet
Other harnesses add one TOML file (how)

demo

Install

curl -fsSL https://raw.githubusercontent.com/ShulkwiSEC/ImportFromMyHarness/main/install.sh | sh

It checks for uv (and offers to install it), installs the tool, then offers a guided first run. No sudo; re-running upgrades. Flags: sh -s -- -y (no questions), sh -s -- --no-setup. Or without the script: uvx importfrommyharness (run once) or uv tool install importfrommyharness.

Use

importfrommyharness            # guided setup (in a terminal)
importfrommyharness scan   opencode:~/my-project
importfrommyharness import opencode:~/my-project --to claude            # dry run
importfrommyharness import opencode:~/my-project --to claude --apply    # write

Options: --out DIR (default: the source path), --only skill,mcp, --json. Exit codes: 0 ok, 1 error, 2 bad usage, 3 done, with lossy or unmapped items (see report).

What you get

  • Dry run by default. Existing JSON entries are never overwritten; existing files that change get a .bak.
  • Things with no safe equivalent (npm plugins, permission rules, hooks, plugin config) are saved under .importfrommyharness/unmapped/ and listed in the report, never dropped silently.
  • Literal secrets in MCP env/headers are replaced with ${NAME} references; .env is never read.
  • opencode modes become Claude agents; default_agent becomes "agent" in .claude/settings.json.
  • Scriptable: --json report on stdout, messages on stderr, no prompts outside setup.

Add a harness

Drop one file in src/importfrommyharness/harnesses/<name>.toml: a name, a detect list, and [[item]] rows (kind, path, fmt, optional map/xform/docs). Copy claude.toml as a template. A plugin pack sets host and origin instead of name (see opencode+oh-my-opencode-slim.toml). No Python changes unless you need a new field transform (add it to XF in engine.py).

Tests

uv run python -m unittest discover tests

Metadata

Release files for importfrommyharness 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for importfrommyharness 0.1.0
File Size Uploaded Provenance Actions
importfrommyharness-0.1.0.tar.gz 11.2 kB Without provenance Details for importfrommyharness-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for importfrommyharness 0.1.0
File Interpreter ABI Platform Actions
importfrommyharness-0.1.0-py3-none-any.whl Python 3 none any Details for importfrommyharness-0.1.0-py3-none-any.whl

Total release size: 26.1 kB

Release files / importfrommyharness-0.1.0.tar.gz

Download URL importfrommyharness-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdec5d0aea93312a778b82a96494367260e278c810cbee25ffda6486648397f2
BLAKE2b-256 checksum
How to use checksums
d0e069ea76ca6d397896d7ffe8a232d4e745abbaf345771595c2806b1174904a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Kali GNU/Linux","version":"2026.3","id":"kali-rolling","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / importfrommyharness-0.1.0-py3-none-any.whl

Download URL importfrommyharness-0.1.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e2d59e0971fea3b0752e2afe905fd2353d7857baa7d67160e4e2a36cec54b25
BLAKE2b-256 checksum
How to use checksums
23e0310369f6e499e523cde09e7756c8e071fd67391228a4b10c812a1c0ab7c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Kali GNU/Linux","version":"2026.3","id":"kali-rolling","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for importfrommyharness 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page