Skip to content

pifferologo/cloud-agents-cli

Repository files navigation

agents-cli

A TypeScript CLI and skill suite for building agents on Google Cloud. Install with npm, run with Node.js 20+, and pair with any coding agent.

Feature Highlights

  • TypeScript throughout — strict-mode CLI, library, and tests with shared base tsconfig
  • Seven agent skills — installable knowledge packs for coding assistants
  • Typed docs scripts — MkDocs site JavaScript compiled from src/docs/
  • Zero Python runtime — no pyproject.toml, no uv, no mixed language tree

Architecture

flowchart TB
  subgraph cli [agents-cli TypeScript CLI]
    Main[commander CLI]
    Info[info / setup]
    Skills[skills list]
  end

  subgraph lib [src/ library]
    Config[config/env]
    Logger[logger]
  end

  subgraph assets [Bundled assets]
    SkillsDir[skills/]
    DocsSite[docs/ MkDocs content]
  end

  Main --> Info
  Main --> Skills
  Main --> Config
  Skills --> SkillsDir
Loading

Installation

Prerequisites

Tool Version
Node.js 20+
Redis not required

From source

git clone https://github.com/google/agents-cli.git
cd agents-cli
npm install
npm run validate
node dist/cli/main.js --version

Global link (development)

npm link
agents-cli info

Skills only

npx skills add google/agents-cli

Configuration

Copy .env.example to .env:

Variable Default Description
AGENTS_CLI_LOG_LEVEL info Log verbosity
AGENTS_CLI_SKILLS_DIR Optional custom skills directory

Project structure

agents-cli/
├── src/
│   ├── cli/              # CLI entry (commander)
│   ├── config/           # Environment configuration + barrel export
│   ├── docs/             # MkDocs site scripts (→ docs/src/javascripts/)
│   ├── logger.ts
│   └── index.ts          # Library exports
├── tests/
├── skills/               # Agent skill markdown packages
├── docs/                 # MkDocs site content (optional build)
├── package.json          # commander, dotenv, zod
├── tsconfig.base.json    # Shared TS compiler baseline
├── tsconfig.json         # App + tests typecheck (no emit)
├── tsconfig.build.json   # Production build emit to dist/
└── tsconfig.docs.json    # Docs script compilation

Development

npm install
npm run validate          # typecheck + lint + test + build
npm run test              # unit tests only
npm run build:app         # compile runtime library + CLI
npm run build:docs        # compile site scripts
agents-cli skills list

Library usage

import { loadAppConfig } from "agents-cli";

const config = loadAppConfig();
console.log(config.logLevel);

Package exports

import { loadAppConfig } from "agents-cli/config";
import { createLogger } from "agents-cli/logger";

Testing

Command Scope
npm run validate Full pipeline
npm run test Vitest unit tests
npm run typecheck Strict TypeScript
npm run lint ESLint

Troubleshooting

agents-cli not found

Run npm run build then npm link, or use node dist/cli/main.js.

Skills directory empty

Ensure you cloned the full repo — skills live in skills/ at the repository root.

FAQ

Is this the Google PyPI google-agents-cli package? This fork is a TypeScript reimplementation focused on tooling, skills, and Redis persistence. It does not include the original Python scaffold/deploy stack.

Do I need Python? No. The application runtime is Node.js only. MkDocs (optional) uses Python only if you build the docs site separately.

Is Redis required? No. This CLI is fully functional without Redis.

License

Apache 2.0 — see LICENSE.

About

google cloud agent cli for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from piffer labs

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors