In-house product PipelineLoop architecture Private deployment

LingHarnessAI foundation

In the AI era, your data security foundation.

An enterprise AI agent runtime built around our PipelineLoop architecture: task loop, context management, multi-model failover, and a skills and tools ecosystem are built in. The engine and data run in your environment.

01 — Our engine

The PipelineLoop architecture

Not a black-box call into a model SDK, but our own middleware-driven execution loop. Every step passes through a pluggable chain, so behavior is controllable and the process is observable.

PipelineLoop · middleware-driven execution loop
ReAct loop
Task input → Pre-middleware → LLM call → Tool → Post-middleware → Result / event stream

Not finished? Loop again until there is a result.

Budget controlContext planningHistory compressionContract validationAction ledgerSafety guardrailsSandboxStall detectionError recoveryPrefix cacheOutput proposalPlan guard

12 built-in middleware layers, combinable per use case.

Black-box calls

Hand the request straight to a model SDK: what happens inside is invisible, failures mean a full retry, and behavior cannot be shaped by the business.

The PipelineLoop middleware chain

Every model call and tool execution passes through middleware: budgets, guardrails, and recovery policies attach as needed. The process is traceable, reviewable, and interruptible.

02 — Core capabilities

One engine for the agent’s entire infrastructure

From the task loop to the tool ecosystem, the building blocks an AI application needs are here.

01

PipelineLoop task loop

Our ReAct main loop plus middleware: budget control, context planning, stall detection, and error recovery combine per task, so long-running work keeps moving.

02

Context management

Context budgets are calculated per model, with history compressed and trimmed automatically. Long conversations and large documents stay organized.

03

Multi-model failover

OpenAI-compatible multi-model clients and fallback chains switch automatically when the primary model is unavailable, keeping work running.

04

Skills & tool ecosystem

A tool registry, standard Agent Skills (SKILL.md), and an MCP client (local stdio / remote Streamable HTTP).

05

Stability & safety

Guard and safety middleware, sub-agent orchestration, and human confirmation for critical actions give complex flows boundaries and brakes.

06

Events & tracing

SSE streaming, persisted events, resumable runs, and trace tracking make execution observable and reviewable.

03 — Secure and controllable

Data stays with you. Capability goes to your team.

From deployment to model choice, you set the data boundary.

Private deployment

The engine, skills, and toolchain run on your servers or inside your network, keeping data and execution in-house.

Choose your models

OpenAI-compatible and privately deployed models are supported. For sensitive data, nothing leaves the intranet.

Confirm critical actions

An ask_user confirmation node pauses before steps involving important data or external actions, and waits for a human.

Auditable end to end

Our Go engine has a minimal dependency closure and no black-box framework. Events, traces, and runtime state are recorded.

Not sure what it should cost? Read “Private AI deployment costs” → · Comparing Dify, Coze, or Bailian? Read “Enterprise AI agent foundation comparison” →

04 — An embeddable foundation

One module, embedded in your systems

LingHarness is a standalone Go module that servers, desktop apps, and internal systems can import directly. Choose your models, tools, and deployment; keep control of the capability.

  • Standalone module, import what you need
  • Minimal dependency closure, easy to audit
  • A shipped desktop workspace is built on it
// Import the core engine
import (
  "harness.czlytech.com/harness"
  "harness.czlytech.com/skill"
  "harness.czlytech.com/llm"
)

// Register tools, mount middleware,
// and run your own AI agent.

A runtime proven in production enterprise agent projects

05 — Use cases

Built for these scenarios

01

Internal assistant

Knowledge Q&A, document processing, and process lookup, answered from your own knowledge base without sending data to the public internet.

02

Intelligent business processes

Approvals, work orders, and reports connect to the agent, with human confirmation as a backstop and clear boundaries for automation.

03

Sensitive data

For strict data boundaries: privately deployed models plus an on-premises runtime make AI usable and governable.

04

Private AI applications

Build your own AI products and services on the foundation, keeping the capability in-house.

Want AI without data leaving your network?

Book a technical call and we’ll propose a deployment that fits your data boundary.