rootly-graphify-importer: Instructions file for Codex

AGENTS.md

rootly-graphify-importer AGENTS.md is an instructions file for Codex, OpenCode from Rootly-AI-Labs/rootly-graphify-importer. It costs 4,539 tokens per session, scanned A, original, MIT.

Project instructions for Rootly Graphify Importer, a project that turns Rootly incident data into a knowledge graph. A knowledge graph connects related information so it can be explored and queried.

In plain words
What is it for?
Use them when running Graphify, answering incident or architecture questions, querying relationships, or rebuilding the graph after edits.
Why use it?
They tell the coding agent which generated reports and indexes to consult and how to keep the graph updated after code changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is Rootly-AI-Labs/rootly-graphify-importer's own configuration. It tells Codex and OpenCode how to work on rootly-graphify-importer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rootly-graphify-importer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Rootly-AI-Labs/rootly-graphify-importer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Rootly-AI-Labs/rootly-graphify-importer/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Rootly-AI-Labs/rootly-graphify-importer

Made for: Codex, OpenCode.

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 rootly-graphify-importer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md/github.svg)](https://agentmods.dev/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md"><img src="https://agentmods.dev/badge/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rootly-graphify-importer AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md"><img src="https://agentmods.dev/badge/instructions/rootly-ai-labs/rootly-graphify-importer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,539 This file is loaded in full into every session.
When invoked 4,539 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04539 $0.04539
Opus 5.5 $0.01816 $0.01816
Sonnet 5.5 $0.00908 $0.00908
Haiku 4.5 $0.00454 $0.00454

Measured 2mo ago against content hash b3dd0e4080ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rootly-graphify-importer 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 2mo 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.

AGENTS.md · 474 lines

How it starts

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

rootly-graphify

This project turns Rootly incident data into a knowledge graph. The Rootly corpus lives in graphify-rootly-data/ and the graph output in graphify-out/.

Always-on rules:

  • Before answering incident or architecture questions, read graphify-out/GRAPH_REPORT.md for god nodes and community structure
  • If graphify-out/wiki/index.md exists, navigate it instead of reading raw files
  • After modifying code files, run: python -c "from graphify.watch import _rebuild_code; from pathlib import Path; _rebuild_code(Path('.'))" to keep the graph current

graphify pipeline — full instructions

When the user asks you to run graphify on a path (e.g. "run graphify on graphify-rootly-data"), follow these steps in order.

Usage patterns

graphify <path>                  # full pipeline
graphify <path> --mode deep      # richer INFERRED edges
graphify <path> --update         # re-extract only new/changed files
graphify query "<question>"      # BFS traversal of graph.json
graphify path "NodeA" "NodeB"    # shortest path between two nodes
graphify explain "NodeName"      # explain a single node

Step 1 — Ensure graphify is installed

python -c "import graphify" 2>/dev/null || pip install graphifyy -q

Step 2 — Detect files

python -c "
import json
from graphify.detect import detect
from pathlib import Path
result = detect(Path('INPUT_PATH'))
Path('.graphify_detect.json').write_text(json.dumps(result, indent=2), encoding='utf-8')
print(result['total_files'], 'files,', result['total_words'], 'words')
for k, v in result.get('files', {}).items():
    if v: print(f'  {k}: {len(v)} files')
"

Replace INPUT_PATH with the actual path. Present a clean summary:

Corpus: X files · ~Y words
  docs:   N files
  code:   N files
  • If total_files is 0: stop with "No supported files found."
  • If total_words > 2,000,000 OR total_files > 500: warn and ask which subfolder to run on.
  • Otherwise: proceed directly to Step 3.

Read the full file on GitHub · 474 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. 2mo ago First seen · 474 lines · 4,539 tokens per session scan A b3dd0e4080ee

Subscribe to this mod's changes

rootly-graphify-importer AGENTS.md is an instructions file published in the GitHub repository Rootly-AI-Labs/rootly-graphify-importer (48 stars, last pushed 6mo ago), licensed MIT. It adds 4,539 tokens to every session, about $0.0182 per session on Opus 5.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.

Related

rootly-graphify-importer AGENTS.md compared with instructions from other repositories

rootly-graphify-importer AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rootly-graphify-importer AGENTS.mdRootly-AI-Labs/rootly-graphify-importerInstructions file486mo agoMITA4,539Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode