campus-cli CLAUDE.md

campus-cli CLAUDE.md is an instructions file for coding agents from alejooroncoy/campus-cli. It costs 1,442 tokens per session, scanned A, a copy of campus-cli AGENTS.md, ISC.

An agent guide for campus-cli, a command-line tool that connects to a student's university systems. The documented implementation supports Blackboard Learn at UPC, where Blackboard is the online course platform.

In plain words
What is it for?
Use it to check courses, assignment deadlines, grades, course content, and downloadable attachments in Blackboard. The guide mentions Canvas and Moodle support as future work, not as available features.
Why use it?
It lets an agent retrieve course information without making the student open a browser. The guide also gives the required login step and the order for finding courses, assignments, grades, and materials.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/alejooroncoy/campus-cli/claude-md
Clone the repo
git clone --depth 1 https://github.com/alejooroncoy/campus-cli

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for campus-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alejooroncoy/campus-cli/claude-md.svg)](https://agentmods.dev/instructions/alejooroncoy/campus-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/alejooroncoy/campus-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/alejooroncoy/campus-cli/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,442 This file is loaded in full into every session.
When invoked 1,442 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01442 $0.01442
Opus 5 $0.00721 $0.00721
Sonnet 5 $0.00288 $0.00288
Haiku 4.5 $0.00144 $0.00144

Measured 5d ago against content hash 9fb9bacbec59, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

campus-cli CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to campus-cli AGENTS.md — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

campus-cli — Agent Guide

This CLI/MCP server gives agents direct access to a student's university campus systems. Today only Blackboard Learn (UPC Aula Virtual) is implemented — all its tools use the blackboard_ prefix. Use it to help students check their courses, assignments, grades, and download materials — all without opening a browser. (Future: canvas_*, moodle_* for other universities — not implemented yet.)

Setup

Before using any tool, the user must be authenticated:

campus login              # opens browser for Microsoft SSO
campus whoami              # verify session is active

If you get Not authenticated, ask the user to run campus login.

Primary workflow

1. blackboard_list_courses                           → find the relevant courseId
2. blackboard_list_assignments <courseId>            → see pending tasks + due dates
3. blackboard_get_grades <courseId>                  → check current grades
4. blackboard_list_contents <courseId>               → browse course materials
5. blackboard_list_contents <courseId> <parentId>    → navigate into a subfolder
6. blackboard_list_attachments <courseId> <contentId>→ find downloadable files

Feedback workflow

1. blackboard_get_assignment_feedback <courseId>    → scores + instructor comments + feedback files for all assignments
2. blackboard_download_feedback_file <ids>          → download an annotated file the professor attached to the grade

Agent behavior rules

  • Always confirm before submitting (blackboard_submit_attempt). Show the user what will be submitted and ask for confirmation. The server also requires direct MCP elicitation and fails closed when the client cannot show it. blackboard_save_attempt_draft (saving progress without sending) does not need this confirmation — only the final submit does.
  • Downloads are sandboxed — MCP downloads go under ~/Downloads/campus-cli (or the user-configured CAMPUS_DOWNLOAD_DIR). outputDir is a relative subdirectory, never an arbitrary path, and existing files are not overwritten.
  • blackboard_save_attempt_draft/blackboard_submit_attempt only work on file/text/link-submission columns — not on quiz-style columns with interactive questions (both look identical from blackboard_list_assignments, since Ultra treats tests and assignments as the same resource/x-bb-asmt-test-link content type). If Blackboard returns 400 with a message like "Attempts cannot be created for assessments with non-presentation-only questions", that column is actually a quiz/test — tell the user, don't retry. A 403 bb-rest-attempt-past-due-exception is expected/normal once the due date has passed and late attempts aren't allowed — same as the web UI would show, not a bug.
  • Show grades in context — when showing grades, also show the assignment name, max score, and due date if available.
  • Navigate content recursively — if the user asks for materials, explore subfolders using blackboard_list_contents with parentId.
  • Use blackboard_raw_api for anything not covered — it is restricted to /learn/api/public/. POST, PUT, PATCH, and DELETE require direct user confirmation through MCP elicitation.
  • Session errors are recoverable — if you get a session error, tell the user to run campus login (not a fatal error).
  • Respect rate limits — don't fan out more than 5 parallel API calls.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 101 lines · 1,442 tokens per session scan A 9fb9bacbec59

Subscribe to this mod's changes

campus-cli CLAUDE.md is an instructions file published in the GitHub repository alejooroncoy/campus-cli (9 stars, last pushed today), licensed ISC. It adds 1,442 tokens to every session, about $0.0072 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to campus-cli AGENTS.md, differing in 16 lines, and is treated as a copy.