ai-context-core

ai-context-core is an agent for Claude Code from beerandcodeteam/beer-and-code-harness. It costs 68 tokens per session (1,996 once invoked), scanned A, original, MIT.

A local web gallery for browsing a photo library, including files, duplicate groups, face groups, and date-based views. It reads the database created by `videre scan` and runs on your own machine.

In plain words
What is it for?
Use it to start a local gallery server, browse all files, review duplicates, inspect face groups, name people, or drill down by year, month, and day.
Why use it?
It gives you a browser-based way to review the library without uploading photos or writing changes to it. Related views make it easier to move between files, duplicates, people, and dates.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

Part of the bc-harness plugin — 3 commands, 6 agents, 1 hook shipped together

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/beerandcodeteam/beer-and-code-harness/ai-context-core
Clone the repo
git clone --depth 1 https://github.com/beerandcodeteam/beer-and-code-harness

Made for: Claude Code.

Or install bc-harness, the plugin that ships this one along with the rest of its 3 commands, 6 agents, 1 hook.

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 ai-context-core

README.md
[![agentmods](https://agentmods.dev/badge/agents/beerandcodeteam/beer-and-code-harness/ai-context-core.svg)](https://agentmods.dev/agents/beerandcodeteam/beer-and-code-harness/ai-context-core)
Your own site
<a href="https://agentmods.dev/agents/beerandcodeteam/beer-and-code-harness/ai-context-core"><img src="https://agentmods.dev/badge/agents/beerandcodeteam/beer-and-code-harness/ai-context-core.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,996 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.00068 $0.01996
Opus 5 $0.00034 $0.00998
Sonnet 5 $0.00014 $0.00399
Haiku 4.5 $0.00007 $0.00200

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

Security

Grade A, and why

ai-context-core 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.

agents/ai-context-core.md · 133 lines

How it starts

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

You write exactly 2 artifacts: <target>/AGENTS.md and <target>/CLAUDE.md. Everything you need arrives pre-digested in your prompt — do not re-explore the repo beyond confirming a specific fact you are about to write.

Inputs (injected by the router)

  • target — absolute repo path
  • digest — full inspector digest (stack, commands, lint_tools, tests, layout, readme_excerpt, env_vars, legacy_seeds, ownership)
  • include_files — subset of {AGENTS, CLAUDE} to generate; skip the rest with status disabled
  • adopt — boolean; governs handling of not-owned files

Ownership contract

Ownership (from digest) adopt=false adopt=true
absent generate → created same
owned regenerate, byte-diff → updated / unchanged same
not-owned do NOT touch → skipped (not owned) seed + overwrite → adopted

Seeding on adopt (and from legacy_seeds.copilot_instructions always, when present): concrete hand-written rules found in the pre-existing file (commands, conventions, prohibitions, troubleshooting) must be folded into the matching AGENTS.md sections before generation. Hand-written knowledge is never silently discarded — it is migrated, then the file is overwritten.

Foreign marker blocks

Third-party tools (e.g. Laravel Boost) inject machine-managed blocks into AGENTS.md / CLAUDE.md, delimited by an XML-style tag pair on its own lines:

<laravel-boost-guidelines>
...
</laravel-boost-guidelines>

A foreign block is any region from a line matching ^<[A-Za-z][-A-Za-z0-9]*>$ to the matching ^</tag>$ line. HTML comments (<!-- -->) are not foreign blocks.

  • Before regenerating an owned file, extract every foreign block from the on-disk bytes. After generating the canonical body, re-append the blocks verbatim (original order), each preceded by one blank line. Never reword, reformat, or merge them.
  • In AGENTS.md, _End of AGENTS.md_ closes the canonical body; preserved foreign blocks come after it.
  • Foreign block content is never seeded into AGENTS.md sections — its own tool regenerates it. Seeding (--adopt, legacy seeds) folds only hand-written content outside foreign blocks.
  • Size and shape self-checks measure the file with foreign blocks stripped (see Self-checks).

Read the full file on GitHub · 133 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 · 133 lines · 68 tokens per session scan A 63fcdd950959

Subscribe to this mod's changes

ai-context-core is an agent published in the GitHub repository beerandcodeteam/beer-and-code-harness (46 stars, last pushed 17d ago), licensed MIT. It adds 68 tokens to every session and 1,996 once invoked, about $0.0003 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.