1.8 KiB
gutasktool architecture
Purpose
gutasktool provides the gutask CLI for Glitch University task and agent operations.
Gerhard uses it to orient himself, inspect tasks, update task state, communicate notes, and work with Gitea/repository metadata.
Canonical checkout
The useful checkout is the sibling repository beside Agent0:
../gutasktool
Inside Gerhard's container it is mounted at:
/opt/gutasktool
Remote:
ssh://git@ramanujan.glitch.university:2222/glitch-university/gutasktool.git
Important command
Gerhard orientation:
/opt/data/bin/gutask orient --agent "$AGENT_ID"
The orient command contacts the Glitch University API endpoint for agent orientation and prints a briefing prompt.
Identity and credentials
The CLI should read operational credentials from environment variables, not from committed files:
API_URLCONTENT_API_KEYAGENT_IDAGENT_NAMEAGENT_PASSWORDGITEA_TOKENif needed by commands that talk to Gitea APIs
Top-level CLI flags may override environment values for one-off use.
Development rule
When Gerhard fixes gutasktool:
- Work in
/opt/gutasktool. - Inspect
git status --short --branchbefore changing files. - Pull/rebase carefully before pushing.
- Avoid reading or committing
.envor other credentials. - Run syntax/help checks before commit.
- Commit with a clear conventional message.
- Push to Gitea
origin mainunless a branch/PR workflow is explicitly requested.
Known history
The local checkout once diverged from Gitea with local orient support ahead of origin and remote work behind it. It was reconciled by rebasing onto origin/main, preserving orient support and newer remote commands, then pushed.
Current good commit containing orientation support:
9a4ef82 feat: add agent orientation support