askco agent guide

Updated November 23, 2026

Open agents.md

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, and gws ships no shared credentials. Borrowing someone else's client_secret.json makes every call fail with 403.

Install

  1. 1Install gws with npm install -g @googleworkspace/cli.
  2. 2Run gws auth setup --login to create an OAuth client in the user's project and sign in (requires gcloud). Running only gws auth login without 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.
  3. 3Install askco with npm install -g askewly-command.
  4. 4Check with askco doctor. It exits 0 when ready and 1 when something is missing, and prints the exact next command to run.
StepChecksOn failure
1gws executableInstall command and GWS_BIN hint
2OAuth clientgws auth setup --login
3Sign-ingws auth login --scopes ... with every required scope
4ScopesNames the missing scopes + a re-login command that keeps current ones
5Live callCatches 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 --json

Which 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.

KindCommand
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 deadlineaskco 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
  • --due accepts only YYYY-MM-DD and YYYY-MM-DD HH:mm. A date alone means 23:59 in the device time zone (override with ASKCO_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 --start and --end together.
  • Use events delete only 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 none lists notes that have not been filed anywhere yet. If routed_to contains agent, the app's agent already handled the note; do not handle it again.
  • notes add --url does not fetch the page title. Pass the title with --title.
  • notes enhance writes a cleaned-up version next to the original and leaves the original as is.
  • notes keep only moves a note to the archive. notes delete removes the row, so use it only for notes the user agreed to delete.
  • Photo notes carry has_image_attachment: true; recording and file notes carry has_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]
  • --tag accepts only names that exist in tags 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"}}.

exitcodeMeaningWhat to do
1failureAny other failureRead the message
2usageWrong command or valueFix the command
3authSign-in, permission, or install problemaskco doctor
4not_foundTarget does not existList again
75rate_limited, unavailableQuota exceeded or temporary outageSame command after 45–60 seconds

Before retrying a write, check the result first so it is not applied twice.

Environment variables

NameWhat it does
ASKCO_READONLY=1Only read commands run; write commands exit 2. Give it to agents that read text written by others (web pages, email, invited events)
ASKCO_TZTime zone for reading dates and times (for example Asia/Seoul). Defaults to the device time zone
ASKCO_LANGHuman output language, ko or en. --json output is the same in any language
GWS_BINPath 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.file

drive.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 gws settings on the user's device.
  • It sends no user data anywhere. askco has no server of its own.