[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-83100":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},83100,"lite-harness","LiteLLM-Labs\u002Flite-harness","LiteLLM-Labs","Unified API for running OpenCode, Claude Code, Codex agents","",null,"JavaScript",60,15,1,3,0,6,3.61,false,"main",true,[],"2026-06-12 02:04:31","# lite-harness\n\nCall all agent harnesses using the Claude Agent SDK format.\n\nlite-harness manages:\n\n- One TypeScript and Python interface for multiple agent harnesses\n- Harness switching with `harness`, model switching with `model`\n- Claude Agent SDK-compatible streaming messages and errors\n\n> Preview: the SDK is not published to npm or PyPI yet. Clone this repo to try\n> it. If you want a packaged release, please\n> [file an issue](https:\u002F\u002Fgithub.com\u002FLiteLLM-Labs\u002Flite-harness\u002Fissues).\n\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-Chat-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002FNkxw3rm3EE)\n\n## Setup (clone)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FLiteLLM-Labs\u002Flite-harness.git\ncd lite-harness\n\n# install the backend server's deps once — the SDK auto-spawns it from the clone\nnpm install --prefix src\u002Fsdk\u002Fserver\n\n# pick a model — set the key for your provider:\nexport ANTHROPIC_API_KEY=sk-ant-...   # for harness \"claude-code\"\nexport OPENAI_API_KEY=sk-...          # for harness \"codex\"\n```\n\n## TypeScript Usage\n\n```bash\nnpm install --prefix src\u002Fsdk\u002Ftypescript && npm run build --prefix src\u002Fsdk\u002Ftypescript\n```\n\n```ts\nimport { query } from \"@lite-harness\u002Fsdk\";\n\nconst prompt = \"Fix the failing test\";\n\n\u002F\u002F Claude Code harness\nfor await (const message of query({\n  prompt,\n  options: { harness: \"claude-code\", model: \"claude-opus-4-8\" },\n})) {\n  console.log(message);\n}\n\n\u002F\u002F Codex harness\nfor await (const message of query({\n  prompt,\n  options: { harness: \"codex\", model: \"gpt-5.5\" },\n})) {\n  console.log(message);\n}\n```\n\n## Python Usage\n\n```bash\npip install -e src\u002Fsdk\u002Fpython      # editable install of the client (Python 3.10+)\n```\n\n```python\nfrom lite_harness import query, AgentOptions\n\nprompt = \"Fix the failing test\"\n\n# Claude Code harness\nasync for message in query(\n    prompt=prompt,\n    options=AgentOptions(harness=\"claude-code\", model=\"claude-opus-4-8\"),\n):\n    print(message)\n\n# Codex harness\nasync for message in query(\n    prompt=prompt,\n    options=AgentOptions(harness=\"codex\", model=\"gpt-5.5\"),\n):\n    print(message)\n```\n\n## Supported Harnesses\n\nSee [`src\u002Fsdk\u002Fserver\u002Fproviders\u002F`](src\u002Fsdk\u002Fserver\u002Fproviders\u002F) for the full list.\n\n- `claude-code`: Claude Agent SDK \u002F Claude Code behavior.\n  Upstream: [Python](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-agent-sdk-python),\n  [TypeScript](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-agent-sdk-typescript).\n- `codex`: OpenAI Codex CLI behavior.\n  Upstream: [openai\u002Fcodex](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex).\n- `pi-ai`: Pi AI behavior.\n\n## With LiteLLM AI Gateway\n\nAdd LiteLLM AI Gateway when you want central keys, budgets, logs, fallbacks, and\nprovider routing.\n\n```bash\nexport LITELLM_API_BASE=https:\u002F\u002Flitellm.your-company.com\u002Fv1\nexport LITELLM_API_KEY=sk-litellm-...\n```\n\n```ts\nimport { query } from \"@lite-harness\u002Fsdk\";\n\nfor await (const message of query({\n  prompt: \"Debug this production trace\",\n  options: {\n    harness: \"codex\",\n    model: \"anthropic\u002Fclaude-opus-4-8\",\n  },\n})) {\n  console.log(message);\n}\n```\n\n## Docs\n\n[SDK](src\u002Fsdk\u002FREADME.md)\n\n## License\n\nMIT\n","lite-harness 是一个统一的API接口，用于运行OpenCode、Claude Code和Codex等代理。它提供了一个TypeScript和Python接口来管理多种代理，并支持通过`harness`和`model`参数切换不同的代理和模型。该项目兼容Claude Agent SDK格式的消息和错误流处理。适用于需要在一个统一框架下测试或使用多个代码生成代理的开发者场景。目前SDK尚未发布到npm或PyPI，用户需克隆仓库以尝试功能。",2,"2026-06-11 04:10:06","CREATED_QUERY"]