Skip to main content

Splice Logo

Splice

Share orchestrated context between Kiro, Cursor, and Claude Code — one layer above the assistant.

PyPI GitHub

Splice is a thin meta-tooling layer for any codebase. It ingests errors, diffs, and files once, routes to the right agent profile (debugger, architect, implementer), and hands off a reduced context bundle between IDEs via a shared session in your repo.

Three orchestration modes: mock (offline) · Ollama (local, privacy-first) · Bedrock (cloud).
No AWS required for IDE hooks.


Install

pip install splice-cli

Then set up your project:

cd your-project
splice setup        # detects installed IDEs and copies hooks automatically
splice doctor       # verify config

Restart Kiro, Cursor, and/or Claude Code, then:

/harness debug the failing test in src/auth.ts

Why this exists

If you use Kiro, Cursor, and/or Claude Code on the same project, you probably:

  • Paste the same error log twice
  • Lose session continuity when switching IDEs
  • Burn tokens on README noise and unrelated files
  • Worry about sending proprietary code to cloud orchestrators

Splice fixes that with a single trigger: /harness

Metric Target Validated
Context reduction ≥ 30% ~44–67% (mock) · ~96% (Ollama + llama3.2)
Orchestration latency p95 < 3s ~0 ms (mock) · ~7s (Ollama local)
Privacy Code stays local ✅ mock + Ollama — no cloud orchestration

Quick start (without pip)

git clone https://github.com/hsaenzG/splice.git /tmp/splice
bash /tmp/splice/scripts/install-splice.sh /path/to/your-repo

Privacy-first: Ollama (recommended for local work)

Your orchestration code and context never leave your machine:

brew install ollama          # or https://ollama.com
brew services start ollama
ollama pull llama3.2

Edit .splice/config.json:

{ "orchestrator": "ollama", "ollama": { "model": "llama3.2" } }
splice doctor
/harness debug my issue        # in Kiro, Cursor, or Claude Code
Mode Code leaves machine? Cost
mock No — rules only Free
ollama No — localhost LLM Free
bedrock Yes — AWS Pay per token

Kiro/Cursor/Claude Code may still use their own cloud models when you chat. Splice controls only the orchestration step.


Daily workflow

# 1. Capture test/build output (optional)
npm test 2>&1 | splice capture-error

# 2. Triage in Kiro or Claude Code
/harness debug the auth failure

# 3. Implement in Cursor or Claude Code (same repo — shared .splice/session.json)
/harness apply the fix using the orchestrated bundle

# 4. Inspect bundle + metrics
splice status
cat .splice/active-bundle.md

How it works

flowchart LR
    subgraph IDEs
        K[Kiro]
        C[Cursor]
        CC[Claude Code]
    end

    subgraph SpliceLayer["Splice"]
        I[Ingest] --> O{Orchestrator}
        O -->|mock| B[Bundle]
        O -->|ollama| B
        O -->|bedrock| B
    end

    S[(.splice/)]

    K -->|/harness| I
    C -->|/harness| I
    CC -->|/harness| I
    O --> S
    B --> K
    B --> C
    B --> CC
Component Role
Kiro hook UserPromptSubmit → stdout appended to prompt
Cursor hook Writes active-bundle.md + rule reads it
Claude Code hook UserPromptSubmit + SessionStartadditionalContext
CLI setup, init, orchestrate, handoff, capture-error, doctor, status
Config .splice/config.json — per-project capture rules
Orchestrator mock · ollama · bedrock — ORCHESTRATORS.md

CLI reference

splice setup                                   # install IDE hooks into current project
splice setup /path/to/project --ide kiro       # specific project / specific IDE
splice init --assistant kiro|cursor|claude     # create or resume a session
splice orchestrate --assistant kiro --prompt "/harness ..."
splice handoff --from kiro --to cursor
splice capture-error                           # pipe stderr/stdout → .splice/last-error.log
splice doctor                                  # verify mock/ollama/bedrock
splice status                                  # show active session

Choose your orchestrator

Mode Best for Setup
mock Default — instant, offline "orchestrator": "mock"
ollama Privacy — code stays local ollama pull llama3.2
bedrock Cloud teams / AWS API "orchestrator": "bedrock"

Env override: SPLICE_ORCHESTRATOR=ollama

If Ollama is down, Splice falls back to mock automatically.


Configure your project

.splice/config.json (created automatically by splice setup):

{
  "project": "my-app",
  "orchestrator": "ollama",
  "captureGitDiff": true,
  "includePaths": ["src/**/*.ts"],
  "errorSources": [".splice/last-error.log"],
  "ollama": { "model": "llama3.2", "baseUrl": "http://localhost:11434" },
  "bedrock": { "modelId": "amazon.nova-lite-v1:0" },
  "promptPathPatterns": true
}
Field Description
orchestrator mock · ollama · bedrock
includePaths Glob patterns on every /harness
errorSources Log files as error context
promptPathPatterns Auto-detect paths in your prompt

AWS deploy (optional)

chmod +x scripts/deploy.sh && ./scripts/deploy.sh

Stack sets SPLICE_ORCHESTRATOR=bedrock on Lambda. Local hooks don't need AWS.


Project structure

├── splice_cli/              # pip-installable package
│   ├── cli.py               # splice entrypoint
│   ├── shared/              # orchestrator, collect, store, config
│   └── data/                # hooks + templates bundled with the package
├── scripts/
│   ├── install-splice.sh    # legacy bootstrap (pre-pip)
│   ├── splice-cli.py        # legacy CLI script
│   └── demo-dual-ide.py
├── integrations/hooks/      # Kiro + Cursor + Claude Code hook scripts
├── src/shared/              # same modules for AWS Lambda handlers
├── ORCHESTRATORS.md
├── INSTALL.md
└── demo-app/                # Optional workshop sample

Requirements


Docs

Doc Description
ORCHESTRATORS.md mock / Ollama / Bedrock
INSTALL.md Manual install (without pip)
DEMO_KIRO_CURSOR.md Live walkthrough (Kiro, Cursor, Claude Code)
NEXT_ITERATIONS.md Roadmap

Contributing

PRs welcome — especially IDE adapters (Windsurf, Zed) and Ollama model presets.


License

MIT — see LICENSE.


Author

Created by Hazel Saenz — LATAM Developer Advocate at AWS | Former AWS Serverless Hero.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

splice_cli-0.1.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splice_cli-0.1.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file splice_cli-0.1.0.tar.gz.

File metadata

  • Download URL: splice_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for splice_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9f7a8243f942ee5e5027fbaca0c4141308ca2aa2a53dac0cd72b28f2c8e4c1e
MD5 92a247efdc11f54842b1942aab181e6a
BLAKE2b-256 0bf42035c4d1c7a8ff75d9f52ba798eba5ed213ea171d65c284f37d07dce246a

See more details on using hashes here.

Provenance

The following attestation bundles were made for splice_cli-0.1.0.tar.gz:

Publisher: publish-pypi.yml on hsaenzG/splice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file splice_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: splice_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for splice_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5452b9883bfd93183723fcda8da875b604a048275297a921eee0b796305de7ca
MD5 aebed4bd180d121d184791d5bf3ab25a
BLAKE2b-256 e9ee1f534a999873ecfe046e522930a4a08532a1f7669ef7b3e78e78ef848df9

See more details on using hashes here.

Provenance

The following attestation bundles were made for splice_cli-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on hsaenzG/splice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page