PROJECT_CONTEXT

A shared project-context file for Clew, a graph-based learning workspace where people build and review structured knowledge paths with an AI agent. It records the product’s identity, architecture, key decisions, and quality standards.

In plain words
What is it for?
Use it as background when developing, reviewing, or debugging Clew’s graph workspace, agent services, data model, frontend, or backend.
Why use it?
It gives coding agents a common source of project facts and constraints. This reduces the chance that agents make changes inconsistent with Clew’s design or long-term decisions.

Agent

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/miuuyy/clew/project_context
Clone the repo
git clone --depth 1 https://github.com/miuuyy/Clew
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 418 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 $0.00000 $0.00418
Opus 5 $0.00000 $0.00209
Sonnet 5 $0.00000 $0.00084
Haiku 4.5 $0.00000 $0.00042

Measured 2d ago against content hash 2f8178e38734, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PROJECT_CONTEXT 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 2d 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.

docs/agents/PROJECT_CONTEXT.md · 84 lines

What it actually says

Project Context

This file is the shared truth layer for coding agents working on Clew.

One-sentence definition

Clew is a graph-first learning workspace with an AI agent layer for building, auditing, and evolving structured knowledge paths.

Product identity

Clew is not:

  • a note app clone
  • a checklist app with AI pasted on top
  • a silent graph mutator
  • a generic autonomous agent platform

Clew is:

  • a graph workspace
  • with explicit proposal review
  • with rollbackable graph state
  • with closure logic tied to actual topics

Core decisions

The most important long-lived decisions are:

  1. graph mutations must be reviewable and reversible
  2. the frontend stays graph-first instead of dashboard-first
  3. the public local edition and hosted surface stay separate

See:

Architecture in one screen

Frontend

  • graph canvas
  • workspace shell
  • dialogs and settings
  • local debug surfaces

Backend

  • repository and snapshots
  • chat orchestrator
  • planner
  • quiz service
  • provider seam

Data

  • local SQLite workspace
  • graph state
  • snapshots
  • workspace config
  • chat and quiz runtime state

Quality bar

Clew should feel like:

  • a serious solo product
  • a portfolio-grade graph workspace
  • a public codebase that is readable and worth contributing to

It should not feel like:

  • a prototype with hacks
  • a dashboard with a graph widget
  • a pile of AI features without a center

Docs split

  • docs/site_faq/ = product-facing docs source
  • docs/ = engineering docs

Agents should preserve that split.

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. 2d ago First seen · 84 lines · 0 tokens per session scan A 2f8178e38734

Subscribe to this mod's changes

PROJECT_CONTEXT is an agent published in the GitHub repository miuuyy/Clew (163 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 418 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.