asteria: Instructions file for Codex

AGENTS.md

asteria AGENTS.md is an instructions file for Codex, OpenCode from n-r-w/asteria. It costs 1,258 tokens per session, scanned A, original, MIT.

Project-specific instructions for Asteria, a code-navigation server that uses language-server information to help agents find symbols and understand code.

In plain words
What is it for?
Use them when working on Asteria, especially when adding a language-server adapter, writing tests, or following its logging and configuration conventions.
Why use it?
They give an agent the project's goals, technical rules, and required documentation before it changes the code.

Instructions file for CodexOpenCode

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

This is n-r-w/asteria's own configuration. It tells Codex and OpenCode how to work on asteria 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 asteria configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/rvnikulenk/dev/nrw/serena/src/solidlsp/language_servers/.

Reuse

Borrowing it

Nothing to install: this file belongs to n-r-w/asteria. 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/n-r-w/asteria/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/n-r-w/asteria

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 asteria AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/n-r-w/asteria/agents-md/github.svg)](https://agentmods.dev/instructions/n-r-w/asteria/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/n-r-w/asteria/agents-md"><img src="https://agentmods.dev/badge/instructions/n-r-w/asteria/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 asteria AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/n-r-w/asteria/agents-md"><img src="https://agentmods.dev/badge/instructions/n-r-w/asteria/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,258 This file is loaded in full into every session.
When invoked 1,258 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.01258 $0.01258
Opus 5.5 $0.00503 $0.00503
Sonnet 5.5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

Measured 19d ago against content hash 82bc4102da6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

asteria 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 19d 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 · 76 lines

How it starts

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

Project Specific Rules and Information

Project Overview

Symbolic(LSP) Search MCP Server. Designed for AI agents, not for humans.

Goal

  1. Provide LLM agents with the ability to efficiently and accurately navigate code, minimizing the number of tokens (file content reading).
  2. CRITICAL: No unnecessary "noise" in responses to the client. Only information that helps the LLM agent understand where the needed symbol is located, what it represents, and how to reach it.

Tech stack

  1. github.com/modelcontextprotocol/go-sdk for MCP server implementation
  2. github.com/stretchr/testify for tests
  3. go.uber.org/mock (no custom mocks, //go:generate directives in interface files)
  4. github.com/caarlos0/env/v11 for loading configuration from environment variables
  5. log/slog for logging (must use structured logging with context). Use global logger with context, instead of passing logger instances around. E.g. slog.DebugContext.

Documentation

  1. How to implement a new LSP adapter: docs/lsp-server-implementation-guide.md. MUST read before starting implementation.
  2. Implementation of a similar service in python to identify patterns of working with various LSP adapters: /Users/rvnikulenk/dev/nrw/serena/src/solidlsp/language_servers/. No need to copy algorithms from there, it's only for borrowing ideas and practical examples. Use it as well when problems arise with implementation, especially with initialize_params.

MCP Tools

This server implements following tools:

  1. get_symbols_overview: high-level understanding of the code symbols in a file. Returns information containing symbols grouped by kind in a compact format.
  2. find_symbol: retrieves information on all symbols/code entities (classes, methods, etc.) based on the given name path pattern. The returned symbol information can be used for edits or further queries.
  3. find_referencing_symbols: Finds references to the symbol. Returns metadata and code snippets around each reference.

Read the full file on GitHub · 76 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. 19d ago Changed · +1 lines · +22 tokens per session 82bc4102da6c
  2. 1mo ago Changed · -1 lines · -8 tokens per session e192c5259073
  3. 2mo ago First seen · 76 lines · 1,244 tokens per session scan A 693d40ef656e

Subscribe to this mod's changes

asteria AGENTS.md is an instructions file published in the GitHub repository n-r-w/asteria (2 stars, last pushed 20d ago), licensed MIT. It adds 1,258 tokens to every session, about $0.0050 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-31.