synalinks CLAUDE.md

A set of project instructions for Synalinks, a Python framework for building applications that use language models, including search-based systems and autonomous agents. It records the project structure and the commands used to install dependencies, test, lint, format, and build documentation.

In plain words
What is it for?
Use it when changing Synalinks code, running its tests with coverage, checking style, formatting files, or building its documentation.
Why use it?
It gives a coding agent the project context and repeatable development commands it needs to work consistently in the repository.

Instructions file

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 instructions/synalinks/synalinks/claude-md
Clone the repo
git clone --depth 1 https://github.com/SynaLinks/synalinks
Per session 804 This file is loaded in full into every session.
When invoked 804 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod 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.00804 $0.00804
Opus 5 $0.00402 $0.00402
Sonnet 5 $0.00161 $0.00161
Haiku 4.5 $0.00080 $0.00080

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

Security

Grade A, and why

synalinks CLAUDE.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 3d 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.

Origin

This is a copy

89% identical to synalinks AGENTS.md — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 87 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Synalinks is a neuro-symbolic Language Model (LM) framework inspired by Keras. It provides a declarative API for building, training, and deploying LM-based applications including RAGs, autonomous agents, and self-evolving reasoning systems.

Development Commands

# Install dependencies
./shell/install.sh

# Run tests with coverage
./shell/test.sh

# Run a single test file
uv run pytest synalinks/src/path/to/test_file.py -v

# Run a specific test
uv run pytest synalinks/src/path/to/test_file.py::test_function_name -v

# Lint check
./shell/lint.sh

# Format code
./shell/format.sh

# Build documentation
./shell/doc.sh

Architecture

Core Abstractions

The framework follows a Keras-like pattern with these core abstractions:

  • Module (synalinks/src/modules/module.py): Base class for all composable units, similar to Keras Layers. Modules have:

    • __init__(): Define attributes and create variables
    • build(): Create state that depends on input shapes
    • call(): The forward pass logic (async)
    • get_config()/from_config(): Serialization support
  • Program (synalinks/src/programs/program.py): Groups modules into trainable/deployable objects (like Keras Models). Inherits from both Trainer and Module. Supports:

    • Functional API: Chain module calls from Input to outputs
    • Subclassing: Override call() method
    • Sequential: Stack of single-input/single-output modules
  • DataModel: Pydantic-based structured data with JSON schema support. All module I/O uses DataModels.

Key Components

  • Generator (synalinks/src/modules/core/generator.py): Core module for LM inference with structured outputs
  • FunctionCallingAgent (synalinks/src/modules/agents/function_calling_agent.py): Autonomous agent with parallel tool calling
  • ChainOfThought (synalinks/src/modules/ttc/chain_of_thought.py): Generator with thinking field for step-by-step reasoning

Read the full file on GitHub · 87 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. 3d ago First seen · 87 lines · 804 tokens per session scan A 1e6d9592879f

Subscribe to this mod's changes

synalinks CLAUDE.md is an instructions file published in the GitHub repository SynaLinks/synalinks (455 stars, last pushed 3d ago), licensed Apache-2.0. It adds 804 tokens to every session, about $0.0040 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to synalinks AGENTS.md, differing in 13 lines, and is treated as a copy.