askco agent guide
Updated November 23, 2026
askco is a command-line tool (CLI) that works with the same Google Tasks, Calendar, and Sheets data as the Command app. This guide is written for AI agents such as Claude Code and Codex. When a user hands you this address, follow it to check the setup and then work with their tasks, events, and notes.
The Markdown source of this guide is at https://dashboard.askewly.com/en/agents.md, and the site index is at https://dashboard.askewly.com/llms.txt. It covers npm askewly-command 0.2.2. Run askco --help for every command.
Before you start
- Node.js 18 or later
- The user's Google account
- The user's own Google Cloud project and OAuth client. Sign-in is handled by
gws(Google Workspace CLI), not by askco, andgwsships no shared credentials. Borrowing someone else'sclient_secret.jsonmakes every call fail with 403.
Install
- 1Install
gwswithnpm install -g @googleworkspace/cli. - 2Run
gws auth setup --loginto create an OAuth client in the user's project and sign in (requires gcloud). Running onlygws auth loginwithout this step fails. If the sign-in page says "Google hasn't verified this app", tell the user it is because the project is their own. - 3Install
askcowithnpm install -g askewly-command. - 4Check with
askco doctor. It exits 0 when ready and 1 when something is missing, and prints the exact next command to run.
| Step | Checks | On failure |
|---|---|---|
| 1 | gws executable | Install command and GWS_BIN hint |
| 2 | OAuth client | gws auth setup --login |
| 3 | Sign-in | gws auth login --scopes ... with every required scope |
| 4 | Scopes | Names the missing scopes + a re-login command that keeps current ones |
| 5 | Live call | Catches setups that look right but are blocked, such as a borrowed client |
When signing in again, use the command askco doctor prints instead of passing only the missing scopes. Passing only the missing ones silently breaks the user's other Google workflows.
Quick start
askco tasks list --json
askco tasks add --title "Draft the report" --section today
askco events list --date 2026-12-01 --jsonWhich command to use
When the user says "put it on my schedule", decide by whether it can be completed. If it is unclear, ask in one line instead of guessing.
| Kind | Command |
|---|---|
| Something to attend at a time, with nothing to complete (meetings, events) | askco events add |
| Has a deadline and can be marked done (submissions, payments) | askco tasks add --section deadlines --due |
| Today's work with no deadline | askco tasks add --section today |
Deadline tasks use the Google Tasks due date, so they also appear in Google Calendar. Do not add them to the calendar separately.
Tasks
askco tasks add --title TITLE [--section today|deadlines] [--due DATE] [--detail TEXT] [--project NAME]
askco tasks list [--section today|deadlines] [--status STATUS|active|all] [--limit N] --json
askco tasks search --query TEXT [--status active|all] --json
askco tasks recent [--limit N] --json
askco tasks update --id ID [--title TITLE] [--detail TEXT] [--due DATE|--clear-due]
askco tasks move --id ID --section today|deadlines [--due DATE]
askco tasks status --id ID --status todo|doing|done|held|delayed|archived
askco tasks tag|untag --id ID --tag NAME--dueaccepts onlyYYYY-MM-DDandYYYY-MM-DD HH:mm. A date alone means 23:59 in the device time zone (override withASKCO_TZ). Seconds and ISO strings exit 2.- "Later" or "put it away" means
--status archived. Archived tasks are kept and can be restored. - Moving a task without a due date to deadlines requires
--due.
Events
askco events add --title TITLE (--date YYYY-MM-DD | --start "YYYY-MM-DD HH:mm" --end "YYYY-MM-DD HH:mm") [--location TEXT]
askco events list (--date YYYY-MM-DD | --from YYYY-MM-DD --to YYYY-MM-DD) [--query TEXT] --json
askco events update --id EVENT_ID [--title TITLE] [--date ... | --start ... --end ...]
askco events delete --id EVENT_ID- Times are read in the device time zone. Give
--startand--endtogether. - Use
events deleteonly when the user asks to delete.
Notes
Notes and links live in the notes tab of the "커맨드 카탈로그" (Command catalog) spreadsheet in the user's Drive.
askco notes list --routed none --json
askco notes add (--text TEXT | --url https://... | --title TEXT) [--title TEXT]
askco notes update --id ID (--text TEXT | --title TEXT)
askco notes enhance --id ID --text "Cleaned-up version"
askco notes keep|unkeep --id ID
askco notes image --id ID [--out PATH] --json
askco notes attachment --id ID [--out PATH] --json
askco notes delete --id ID [--force]--routed nonelists notes that have not been filed anywhere yet. Ifrouted_tocontainsagent, the app's agent already handled the note; do not handle it again.notes add --urldoes not fetch the page title. Pass the title with--title.notes enhancewrites a cleaned-up version next to the original and leaves the original as is.notes keeponly moves a note to the archive.notes deleteremoves the row, so use it only for notes the user agreed to delete.- Photo notes carry
has_image_attachment: true; recording and file notes carryhas_attachment: true. Use a note's location fields (place,geo) only as context and never copy them elsewhere.
Projects and tags
askco projects list --json
askco projects show (--name NAME|--id ID) --json
askco projects create --name NAME [--description TEXT]
askco projects links add (--name NAME|--id ID) --title TITLE --target HTTPS_URL
askco tags list --json
askco tags add --name NAME [--color 1-11]--tagaccepts only names that exist intags list.- Projects, links, and tags are archived (
archive), never deleted.
Output and errors
Add --json to get JSON on stdout. Agents should always use it. Failures are one line on stderr plus a non-zero exit code; decide by the exit code. With --json, failures are also printed to stdout as one line: {"ok":false,"error":{"code","exit","retryable","status","message"}}.
| exit | code | Meaning | What to do |
|---|---|---|---|
| 1 | failure | Any other failure | Read the message |
| 2 | usage | Wrong command or value | Fix the command |
| 3 | auth | Sign-in, permission, or install problem | askco doctor |
| 4 | not_found | Target does not exist | List again |
| 75 | rate_limited, unavailable | Quota exceeded or temporary outage | Same command after 45–60 seconds |
Before retrying a write, check the result first so it is not applied twice.
Environment variables
| Name | What it does |
|---|---|
ASKCO_READONLY=1 | Only read commands run; write commands exit 2. Give it to agents that read text written by others (web pages, email, invited events) |
ASKCO_TZ | Time zone for reading dates and times (for example Asia/Seoul). Defaults to the device time zone |
ASKCO_LANG | Human output language, ko or en. --json output is the same in any language |
GWS_BIN | Path to the gws executable |
Required scopes
openid email profile
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/tasks
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/spreadsheets
https://www.googleapis.com/auth/drive.filedrive.file only sees files this tool and the app created. It is not full Drive access.
Where the data lives
- Tasks: the user's Google Tasks
- Timed events: the user's Google Calendar
- Projects, notes, and tags: the "커맨드 카탈로그" spreadsheet in the user's Drive. It is created on the first call if missing. askco and the app use the same sheet.
If the sheet cannot be found, do not let a new one be created. Check which sheet is cached with askco catalog status, and once the user confirms the sheet id, bind it again with askco catalog bind --spreadsheet-id ID.
What askco does not do
- It does not call Google APIs directly. Use these commands.
- It never reads, moves, or logs sign-in tokens. Tokens stay in
gwssettings on the user's device. - It sends no user data anywhere. askco has no server of its own.