Readit News logoReadit News
justinwp commented on You need to rewrite your CLI for AI agents   justin.poehnelt.com/posts... · Posted by u/justinwp
jeppeb · 7 days ago
The article states that agents work better with JSON than documented flags - that seems counterintuitive . How is this assumption validated?
justinwp · 7 days ago
Try building a CLI with a complex JSON as flags approach. :)
justinwp commented on You need to rewrite your CLI for AI agents   justin.poehnelt.com/posts... · Posted by u/justinwp
sheept · 7 days ago
Sure, but the post itself brags,

> gws ships 100+ SKILL.md files

Which must altogether be hundreds of lines of YAML frontmatter polluting your context.

justinwp · 7 days ago
You don't need to install all of them.
justinwp commented on Google Workspace CLI   github.com/googleworkspac... · Posted by u/gonzalovargas
mmaunder · 8 days ago
Google really know how to screw up a product experience.

npm install -g @googleworkspace/cli

gws auth setup

{ "error": { "code": 400, "message": "gcloud CLI not found. Install it from https://cloud.google.com/sdk/docs/install", "reason": "validationError" } }

Which takes you to...

https://docs.cloud.google.com/sdk/docs/install-sdk

Where you have to download a tarball, extract it and run a shell script.

I mean how hard is it to just imitate everyone else out there and make it a straight up npm install?

justinwp · 7 days ago
You don't need to use gcloud if you already have:

1. A GCP project (needed for OAuth) 2. Enabled APIs in said project

justinwp commented on Google Workspace CLI   github.com/googleworkspac... · Posted by u/gonzalovargas
mace01 · 8 days ago
Seems weird to require another tool (gcloud) to set it up, but it does look to be tightly integrated with google cloud.
justinwp · 7 days ago
You can skip that setup if you already have the OAuth credentials.
justinwp commented on Google Workspace CLI   github.com/googleworkspac... · Posted by u/gonzalovargas
virgildotcodes · 8 days ago
God, getting this set up is frustrating. I've spent 45 minutes trying to get this to work, just following their defaults the whole way through.

Multiple errors and issues along the way, now I'm on `gws auth login`, and trying to pick the oAuth scopes. I go ahead and trust their defaults and select `recommended`, only to get a warning that this is too many scopes and may error out (then why is this the recommended setting??), and then yeah, it errors out when trying to authenticate in the browser.

The error tells me I need to verify my app, so I go to the app settings in my cloud console and try to verify and there's no streamlined way to do this. It seems the intended approach is for me to manually add, one by one, each of the 85 scopes that are on the "recommended" list, and then go through the actual verification.

Have the people that built and released this actually tried to install and run this, just a single time, purely following their own happy path?

justinwp · 7 days ago
There are many gotchas in this process and unfortunately there is no easy way to deal with the OAuth setup.
justinwp commented on Google Workspace CLI   github.com/googleworkspac... · Posted by u/gonzalovargas
mogili1 · 7 days ago
I was excited to see this but all of that went away when I realized you need to create an app in GCP to use it. Can't really expect non technical users to set this up across the company.
justinwp · 7 days ago
Yeah, still no way around this unfortunately.
justinwp commented on You need to rewrite your CLI for AI agents   justin.poehnelt.com/posts... · Posted by u/justinwp
justinwp · 8 days ago
Title is a little clickbait, but not really! :)

---

Human DX optimizes for discoverability and forgiveness. Agent DX optimizes for predictability and defense-in-depth. These are different enough that retrofitting a human-first CLI for agents is a losing bet.

justinwp commented on One CLI for all ofGoogle Workspace – built for humans and AI agents   github.com/googleworkspac... · Posted by u/justinwp
justinwp · 8 days ago
Drive, Gmail, Calendar, and every Workspace API. Structured JSON output. 40+ agent skills included.

u/justinwp

KarmaCake day230December 11, 2016View Original