[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112911":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":12,"stars7d":11,"stars30d":11,"stars90d":13,"forks30d":13,"starsTrendScore":14,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":8,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":13,"starSnapshotCount":13,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},112911,"tpu-agent-suite","google-pytorch\u002Ftpu-agent-suite","google-pytorch",null,"Python",64,7,1,0,5,45.91,"Apache License 2.0",false,"main",[],"2026-11-23 20:12:01","2026-11-23 15:41:45","# TPU agent suite\n\nAutonomous TPU development and onboarding agents for Google Cloud TPUs.\n\nThis repository builds and distributes **TPU agent suite packages**: declarative bundles of multi-agent skills, routing protocols, and tools that compile and install natively across major agent harnesses—including **Claude Code** and **Antigravity**, with **Codex** and **Cursor** coming soon.\n\n---\n\n## Releases\n\n- **Stable Releases (Recommended)**: Google periodically cuts verified, pre-compiled harness archives in **[GitHub Releases](https:\u002F\u002Fgithub.com\u002Fgoogle-pytorch\u002Ftpu-agent-suite\u002Freleases)**. End users should download and install from the [latest release](https:\u002F\u002Fgithub.com\u002Fgoogle-pytorch\u002Ftpu-agent-suite\u002Freleases\u002Flatest) rather than building from `main`.\n- **Development (`main` Branch)**: The `main` branch tracks active ongoing development and may include unreleased or evolving changes between stable releases.\n\n---\n\n## Architecture\n\n| Component | Path | Description |\n| :--- | :--- | :--- |\n| **Framework** | [`framework\u002F`](framework\u002F) | Compiler, installer, runtime and compute access layer. Lets us develop agents that run on multiple harnesses. |\n| **Package** | [`package\u002F`](package\u002F) | The TPU agent suite, released as `tpu-agent-suite`. |\n| **Evaluations** | [`eval\u002F`](eval\u002F) | Harbor suites and configs that score the package. |\n\nUsers talk to the **`tpu-agent`** skill. It routes each request to a\nspecialist: onboarding, profiling, a hardware check, cited\nTPU facts, and kernels. See the [design docs](docs\u002Fdesign\u002FREADME.md) for how the framework\nand the suite are built.\n\n---\n\n## Quickstart\n\n### 1. Prerequisites\n\n- Python 3.12+ and the host-side packages the agents run with, XProf among\n  them, in a virtualenv (`pip install -r package\u002Frequirements-client.txt`;\n  see [docs\u002Finstall.md](docs\u002Finstall.md#1-host-prerequisites)). PyYAML alone\n  builds and installs the package, but leaves the agents without XProf.\n- Standalone CLI tools (backend-dependent):\n  - **`gcloud`** ([Google Cloud CLI](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall)) for Cloud TPU VMs, GCS staging, and GCP credentials (`gcloud auth login && gcloud auth application-default login`)\n  - **`kubectl`** ([Kubernetes CLI](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Ftools\u002F)) and **`gke-gcloud-auth-plugin`** (`gcloud components install gke-gcloud-auth-plugin`) for GKE Pod and Job workloads (`gcloud container clusters get-credentials \u003CCLUSTER_NAME> --region=\u003CREGION>`)\n\nThe installer checks only the host-side Python packages. The first session\nsets up your backend and checks its tools, credentials and target (see\n[docs\u002Finstall.md](docs\u002Finstall.md#check-the-setup)).\n\n### 2. Build\n\nCompile the canonical agent package into native distributions for every supported harness:\n\n```bash\nmake build\n```\n\nThis writes `dist\u002F\u003Charness>\u002Ftpu-agent-suite\u002F` for `claude-code`, `codex`, `antigravity`, and `cursor`.\n\n### 3. Install\n\nSee [`docs\u002Finstall.md`](docs\u002Finstall.md) ([headless \u002F CI](docs\u002Finstall.md#headless-installs-ci-containers)).\n\n### 4. Use\n\nEnsure your [virtual environment](docs\u002Finstall.md#1-host-prerequisites) is activated whenever you use this agentic suite. Once inside the session, the `tpu-agent` skill is activated by any relevant natural language request, so no explicit invocation is needed. For example:\n\n- **Onboarding & Benchmarking**:\n  > *\"Onboard Qwen\u002FQwen3.8-27B to run as a vLLM inference server on Cloud TPU using the torch_tpu backend. Send it a test completion request, then benchmark it and report TTFT, ITL and throughput in a table.\"*\n\n- **Profiling**:\n  > *\"Analyze the XProf profile at \u002Fpath\u002Fto\u002Fprofile and identify memory bottlenecks and TPU compute utilization.\"*\n\n- **Kernel Optimization**:\n  > *\"Optimize this custom Pallas flash-attention kernel for TPU v6e and run a self-refinement benchmark loop.\"*\n\nWhat each request routes to, where workloads run, and where outputs land are in [`docs\u002Fusing.md`](docs\u002Fusing.md).\n\n---\n\n## Documentation\n\n| Guide | For |\n| :--- | :--- |\n| [`docs\u002Finstall.md`](docs\u002Finstall.md) | Host and TPU prerequisites, build, install scopes and backends, upgrade\u002Funinstall |\n| [`docs\u002Fusing.md`](docs\u002Fusing.md) | Prompting guide, what `tpu-agent` routes each request to, and where outputs land |\n| [`docs\u002Fdeveloping.md`](docs\u002Fdeveloping.md) | Dev environment, `make` loop, CI gates, adding agents, tpu-knowledge-base sources and eval contributions |\n| [`docs\u002Fdesign\u002F`](docs\u002Fdesign\u002FREADME.md) | How the framework and the suite are designed |\n| [`framework\u002FREADME.md`](framework\u002FREADME.md) | Compiler, installer, hooks, and runtime reference |\n| [`framework\u002Fcompute\u002FREADME.md`](framework\u002Fcompute\u002FREADME.md) | Compute CLI and backend drivers |\n| [`package\u002FREADME.md`](package\u002FREADME.md) | Converting an existing skill into a TPU agent suite package, step by step |\n| [`eval\u002FREADME.md`](eval\u002FREADME.md) | Running evaluations |\n\n---\n\n## Running Evaluations\n\nEvaluations are orchestrated using [Harbor](https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor) and configured under [`eval\u002F`](eval\u002F):\n\n```bash\n# Set up evaluation virtual environment\n.\u002Feval\u002Fsetup.sh\nsource eval\u002F.venv\u002Fbin\u002Factivate\n\n# Verify evaluation configuration and dataset schemas\n.\u002Feval\u002Fverify.sh smoke-check\n\n# Run evaluation with Harbor\nexport GEMINI_API_KEY=\"your-api-key\"\n.\u002Feval\u002Frun.py --config claude-code\u002Fagent-suite --dataset tpu-hello-world\n```\n\n> **Automated PR Evaluations**: Smoke-check evaluations run automatically in CI whenever a pull request modifies agent packages, framework code, or evaluation files.\n\nFor the full list of configs, credentials, and the interactive sandbox, see [`eval\u002FREADME.md`](eval\u002FREADME.md).\n\n---\n\n## Contribution & Code Review Policy\n\nAll code contributions, tests, and agent packages live in this repository. Every pull request runs the following CI checks:\n\n- **`make verify`**: manifest, delegation graph, schema, and knowledge base checks.\n- **`make test`**: framework and package test suites (translation parity per harness).\n- **`make build`**: distributions for all harnesses compile cleanly.\n- **`make lint`**: advisory content checks, reported as annotations.\n- **pre-commit**: formatting and static checks (`.pre-commit-config.yaml`).\n\nLocal setup for these checks, and the short path for common contributions, is in [`docs\u002Fdeveloping.md`](docs\u002Fdeveloping.md). Note that external contributions are not being accepted at this time (see [`CONTRIBUTING.md`](CONTRIBUTING.md)).\n\n---\n\n## Security\n\nThis project is eligible for the [Google Open Source Software Vulnerability Rewards Program (OSS VRP)](https:\u002F\u002Fbughunters.google.com\u002Fabout\u002Frules\u002F6521337925468160\u002Fgoogle-open-source-software-vulnerability-reward-program-rules).\n\nIf you suspect a security vulnerability in this project, please report it via [g.co\u002Fvulnz](https:\u002F\u002Fg.co\u002Fvulnz). Please do not report security vulnerabilities through public GitHub issues.\n","TPU agent suite 是一个面向 Google Cloud TPU 的自动化开发与接入代理工具集，提供声明式多智能体协作框架，支持在 Claude Code、Antigravity 等主流 AI 编程助手环境中原生运行。其核心功能包括请求路由、TPU 硬件检测、性能分析（集成 XProf）、集群配置检查及知识检索，并通过统一编译器生成跨平台可安装包。项目采用模块化架构，分离框架层与技能包，兼顾可扩展性与部署一致性。适用于需要快速验证 TPU 环境、调试分布式训练任务或在 AI 编程环境中集成 TPU 专项能力的开发者与 MLOps 工程师。",2,"2026-11-24 04:44:35","CREATED_QUERY"]