scaleway-cli AGENTS.md

Repository instructions for the Scaleway command-line tool, including how to build, test, format, and lint its Go code.

In plain words
What is it for?
Building binaries, running tests and linters, formatting code, updating the Scaleway SDK, and working within the repository's command structure.
Why use it?
They give an agent the project's expected commands and structure, reducing guesswork when changing the code.

Instructions file for CodexOpenCode

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/scaleway/scaleway-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/scaleway/scaleway-cli

Made for: Codex, OpenCode.

Per session 979 This file is loaded in full into every session.
When invoked 979 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00979 $0.00979
Opus 5 $0.00490 $0.00490
Sonnet 5 $0.00196 $0.00196
Haiku 4.5 $0.00098 $0.00098

Measured yesterday against content hash 17e69e277822, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scaleway-cli AGENTS.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 yesterday.

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.

AGENTS.md · 115 lines

How it starts

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

AGENTS.md

This file provides guidance to AI Agents when working with code in this repository.

Build, Test, and Lint Commands

# Build all binaries
make build           # or ./scripts/build.sh

# Run linters
make lint            # or ./scripts/lint.sh
make fmt             # auto-fix lint issues (runs golangci-lint --fix)

# Run tests
make test            # or ./scripts/run-tests.sh
./scripts/run-tests.sh -run <regex>  # run specific tests
./scripts/run-tests.sh -g            # update golden files
./scripts/run-tests.sh -c            # record new cassettes (requires valid API credentials)
./scripts/run-tests.sh -D            # enable debug mode

# Update SDK dependency
make bump-sdk        # updates scaleway-sdk-go to latest master

Architecture Overview

Project Structure

This is a Go CLI (scw) for managing Scaleway cloud infrastructure. The codebase follows a modular architecture centered around a core command execution engine.

cmd/scw/              # Main entry point
commands/             # Command registration (GetCommands() merges all namespaces)
core/                 # Core CLI engine: bootstrap, command execution, printing, validation
internal/namespaces/  # Auto-generated + manual API command implementations (60+ namespaces)
internal/             # Shared utilities: editor, interactive, config, cache, etc.
docs/                 # Documentation (auto-generated command docs + developer guides)

Core Engine (core/)

The core package provides the CLI framework:

  • bootstrap.go - Initializes config, client, and command execution pipeline
  • command.go - Command definition and execution logic
  • printer.go - Output formatting (JSON, human-readable, templated)
  • validate.go - Argument validation
  • testing.go - Test framework with golden files and cassette recording (VCR pattern)

Commands Pattern

Commands are organized by namespace (e.g., instance, k8s, lb) and registered in commands/commands.go:

func GetCommands() *core.Commands {
    commands := core.NewCommandsMerge(
        instance.GetCommands(),
        k8s.GetCommands(),
        // ...
    )
}

Read the full file on GitHub · 115 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. yesterday First seen · 115 lines · 979 tokens per session scan A 17e69e277822

Subscribe to this mod's changes

scaleway-cli AGENTS.md is an instructions file published in the GitHub repository scaleway/scaleway-cli (996 stars, last pushed yesterday), licensed Apache-2.0. It adds 979 tokens to every session, about $0.0049 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.