Skip to main content

ai-hats-cline

A Cline surface plugin for the ai-hats framework. It registers the cline CLI as a first-class ai-hats provider through the ai_hats.providers entry point, so ai-hats discovers it with zero edits to src/ai_hats/** (the T10 IoC seam, HATS-870).

Install it alongside ai-hats and cline appears next to the built-ins:

$ ai-hats list providers
  agy     →  GEMINI.md
  claude  →  (session cache)
  cline   →  (session cache)

(The right-hand column is where the role reaches the surface from. Only agy has a project-root file; claude and cline receive the composition from the per-session cache and write nothing to the root.)

Then compose any role onto cline:

$ ai-hats -p cline -r <role>          # HITL: launches an interactive cline TUI

What it owns

  • ClineProvider — the ai_hats.providers.Provider adapter for cline:
    • the composed role reaches cline inline via -s "<role>" (no static CLINE.mdupdate_system_prompt is a no-op);
    • HITL launches the interactive TUI (cline -i); the automate path runs headless (cline --yolo --json "<prompt>");
    • --worktree is never passed (ai-hats-wt owns isolation);
    • the role's skills are materialized into the per-session cache (<cache_root>/sessions/<sid>/skills — outside the project, default ~/.cache/ai-hats/<project-key>/, HATS-1398) and delivered to cline via --config <cache> (cline scans <base>/skills) — nothing lands in the project root (clean-root invariant, HATS-1171). CLINE_DATA_DIR is pinned to the real cline home so --config keeps the machine's auth.
  • ClineParser + resolve_transcript — cline's ~/.cline/data/sessions/<id>/<id>.messages.json is discovered by the provider and parsed into a real audit.md (👤/👾 turn markers) and usage.json (token metrics), so reflect gets a factual layer for cline sessions (HATS-960, HATS-1087).

Requirements

  • cline v3.x on PATH, authenticated (cline auth).
  • ai-hats (this plugin depends on the integrator for the Provider ABC, per ADR-0014).

Not yet here

  • Runtime bash-tool hooks: cline's TS plugin sandbox needs jiti (unbundled), so ai-hats ships no plugin — guarding falls to SurfaceGuard. A native hooks.json guard (no jiti) is tracked in HATS-1083.
  • cline teams/spawn, and PyPI publish.

Release files for ai-hats-cline 0.5.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 ai-hats-cline 0.5.0
File Size Uploaded
ai_hats_cline-0.5.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-hats-cline 0.5.0
File Interpreter ABI Platform
ai_hats_cline-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / ai_hats_cline-0.5.0.tar.gz

Download URL ai_hats_cline-0.5.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4fb5e98cb8e282c0de6b1259bcf1fa19ee1949fcae26bbf84add2fc93ce94df8
BLAKE2b-256 checksum
How to use checksums
df65a668eecbc52934bbe73bd25800e049a0a3f4ed1e3e41a9a23330f6c16484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / ai_hats_cline-0.5.0-py3-none-any.whl

Download URL ai_hats_cline-0.5.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd459af2124084cc53d4164c2592482181b2fe0984ed4ffdf23c00f488438c1b
BLAKE2b-256 checksum
How to use checksums
32306b939bb0e79cfc549a9657abd13eff35c1f379a1d732b14fd4ea66e15456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.3.0

2 release files

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