index

index is an agent for Claude Code from phel-lang/phel-lang. It costs 0 tokens per session (903 once invoked), scanned A, original, MIT.

A task guide and reference index for Phel, a programming language that runs on PHP. It maps common jobs to step-by-step recipes, commands, and deeper references.

In plain words
What is it for?
Use it to scaffold projects, build HTTP or command-line applications, add tests, use the interactive REPL, find core functions, add types, debug errors, profile slow code, and work with asynchronous code.
Why use it?
It gives an agent a clear starting point for Phel work instead of making it search through the whole project or documentation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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 agents/phel-lang/phel-lang/index
Clone the repo
git clone --depth 1 https://github.com/phel-lang/phel-lang

Made for: Claude Code.

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 index

README.md
[![agentmods](https://agentmods.dev/badge/agents/phel-lang/phel-lang/index.svg)](https://agentmods.dev/agents/phel-lang/phel-lang/index)
Your own site
<a href="https://agentmods.dev/agents/phel-lang/phel-lang/index"><img src="https://agentmods.dev/badge/agents/phel-lang/phel-lang/index.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00000 $0.00903
Opus 5 $0.00000 $0.00451
Sonnet 5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured 6d ago against content hash 7e54e19eb59f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

index 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 6d 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.

resources/agents/index.md · 38 lines

How it starts

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

Agent index

Rules + CLI: RULES.md.

Intent map

Intent Recipe Deep reference
Scaffold new project tasks/scaffold-project.md https://phel-lang.org/documentation/getting-started/
HTTP app or JSON API tasks/http-app.md src/phel/router.phel, src/phel/http.phel
CLI tool tasks/cli-tool.md https://phel-lang.org/documentation/php-interop/
Add tests tasks/add-tests.md src/phel/test.phel, https://phel-lang.org/documentation/testing/
REPL tasks/repl-workflow.md src/phel/repl.phel
Find core fn tasks/use-core-lib.md phel doc <fn>, https://phel-lang.org/documentation/guides/cookbook/
Type a fn (params + return) tasks/typed-defn.md https://phel-lang.org/documentation/getting-started/, https://phel-lang.org/documentation/guides/schema/
Debug errors tasks/debug-errors.md https://phel-lang.org/documentation/guides/cookbook/
Profile hot paths tasks/typed-defn.md § Find hot paths phel profile <path>
Async / fibers tasks/async.md https://phel-lang.org/documentation/language/async/, src/phel/async.phel
Memoize tasks/memoize.md phel doc memoize, phel doc memoize-lru
Write macros tasks/write-macros.md https://phel-lang.org/documentation/language/macros/
Common pitfalls tasks/common-gotchas.md RULES.md § Gotchas
Use a PHP library tasks/use-php-libs.md https://phel-lang.org/documentation/php-interop/
Validate data tasks/validate-with-schema.md src/phel/schema.phel, https://phel-lang.org/documentation/guides/schema/
Pattern match tasks/pattern-match.md src/phel/match.phel, https://phel-lang.org/documentation/language/functions-and-recursion/
Lint code https://phel-lang.org/documentation/tooling/cli-commands/
Editor / nREPL https://phel-lang.org/documentation/tooling/editor-support/, https://phel-lang.org/documentation/tooling/repl/
Hot-reload https://phel-lang.org/documentation/tooling/cli-commands/
Syntax reference quick-syntax.md https://phel-lang.org/documentation/getting-started/, https://phel-lang.org/documentation/language/reader-shortcuts/
Idioms https://phel-lang.org/documentation/guides/cookbook/, examples/
Call Phel from PHP https://phel-lang.org/documentation/web/framework-integration/
Data structures https://phel-lang.org/documentation/language/data-structures/, https://phel-lang.org/documentation/language/lazy-sequences/, https://phel-lang.org/documentation/language/transducers/

Read the full file on GitHub · 38 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. 6d ago First seen · 38 lines · 0 tokens per session scan A 7e54e19eb59f

Subscribe to this mod's changes

index is an agent published in the GitHub repository phel-lang/phel-lang (524 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 903 tokens. 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.