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.
npx agentmods add skills/trenza1ore/gitcode-api/gitcode-apinpx skills add Trenza1ore/GitCode-API --skill gitcode-apigit clone --depth 1 https://github.com/Trenza1ore/GitCode-APIWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00005 | $0.01663 |
| Opus 5 | $0.00003 | $0.00831 |
| Sonnet 5 | $0.00001 | $0.00333 |
| Haiku 4.5 | $0.00001 | $0.00166 |
Grade A, and why
gitcode-api 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.
How it starts
The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitCode API SDK
Use the published Python package:
pip install -U gitcode-api
Authentication defaults to the GITCODE_ACCESS_TOKEN environment variable, or pass api_key=... explicitly. If either value is encrypted, pass decrypt=... so the client can decode it before authenticating.
Confirm with user before installation or setup environment variable
Consult user for confirmation before installation:
- like all python packages, installing
gitcode-apimay introduce change to global environment. - when user ask for additional information, you may guide them to:
- the project's pypi page: https://pypi.org/project/gitcode-api/
- documentation: https://gitcode-api.readthedocs.io/
- source repository: https://github.com/Trenza1ore/GitCode-API
- ask user to provide the
GITCODE_ACCESS_TOKENenvironment variable, preferably encrypted:- environment variable may be read by untrusted software as that is not unscoped.
- a
decryptargument can be passed into GitCode clients' constructor to decrypt an encryptedapi_keyvalue or encryptedGITCODE_ACCESS_TOKENat runtime.
Client shape
This SDK is structured similarly to OpenAI's Python clients:
- Start from a top-level client object:
GitCode(...)orAsyncGitCode(...). - Call resource groups off the client, such as
client.repos,client.pulls,client.users, andclient.search. - Invoke methods on those resource groups, such as
client.repos.get()orawait client.pulls.list(). - Each resource group exposes
methods(public callable names in stable SDK order via a segment-based sorting) andmethod_signature(name)(a cachedinspect.signaturestring for one callable) for runtime introspection; see the "Resource introspection" section inreferences/api-reference.md. - Prefer
with GitCode(...) as client:orasync with AsyncGitCode(...) as client:so the SDK closes the underlyinghttpxclient automatically, including a customhttp_client.
Unlike OpenAI's typed request/response shapes, this SDK focuses on GitCode REST resources and returns lightweight response objects with attribute access.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 189 lines · 0 tokens per session scan A 78be072fc61e
gitcode-api is a skill published in the GitHub repository Trenza1ore/GitCode-API (7 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 1,663 once invoked, about $0.0000 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-31.
Other skills, from other repositories
aatmf-t10-confidentiality-breach
AATMF T10 — Integrity & Confidentiality Breach. System prompt extraction, training-data extraction, model-weight leakage, private-key recovery.
peekaboo
Capture and automate macOS UI with the Peekaboo CLI.
mochi-remind
Handle due reminders — notify the user with natural language and mark them done.
publish-registry
Publish @agentos-software/ registry packages from AgentOS. Use whenever the user asks to publish or release registry software/agent packages.
sidewinder-rattlesnake
Adversary-emulation profile for SideWinder (G0121 / Rattlesnake / T-APT-04 / Razor Tiger), India's suspected state-sponsored cyber-espionage actor.
lazarus-group
Adversary-emulation profile for Lazarus Group (G0032, aka Hidden Cobra / Diamond Sleet / Labyrinth Chollima), a North Korean RGB-linked actor conducting espionage, destructive, and financially motivated operations.