

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# apps/server — Agent Instructions23Express 5 REST API + WebSocket server for the knowledge graph.45## Entry Point67`src/index.ts` → Express 5 app. Port **7430** (`BRAIN_API_PORT` env var).89## Key Files1011| File | Purpose |12|------|---------|13| `src/app.ts` | Express app setup (middleware, error handling) |14| `src/brain-instance.ts` | Singleton Brain instance |15| `src/routes/` | Route modules |16| `src/schemas.ts` | Zod request/response schemas |17| `src/middleware/` | Auth, validation, error middleware |18| `src/services/` | Business logic services |19| `src/ws/` | WebSocket broadcast setup |20| `src/hooks/` | Lifecycle hooks |2122## Routes2324Wired in `src/routes/index.ts` via `registerRoutes(app, brain, options)`. Each25module is mounted with `app.use(...)` and declares its own full `/api/...`26paths — there is no prefix mounting. `GET /health` is defined directly in27`src/app.ts`.2829| Route module | Key paths | Purpose |30|--------------|-----------|---------|31| `auth.ts` | `/api/auth/{redeem-invite,login,logout,whoami,rotate}` | Identity & session auth |32| `admin.ts` | `/api/admin/{invites,tokens}`, `/api/{reindex,embeddings/status,export,import,rebuild-embeddings}`, `POST /api/query` | Admin ops, pipeline triggers, NL query (`requireAdmin`) |33| `entities.ts` | `/api/entities*` (+ `/observations`, `/neighbors`) | Entity CRUD |34| `relations.ts` | `/api/relations*` | Relation CRUD |35| `search.ts` | `/api/search`, `/api/stats` | FTS + vector search, graph stats |36| `query.ts` | `/api/query/{ownership,ownership-tree,parallel-work}` | Code-intelligence queries |37| `observe.ts` | `/api/observe/*` | Hook + forge event ingestion |38| `sync.ts` | `/api/sync/*` | Sync state management |39| `temporal.ts` | `/api/{timeline,contradictions,stale,decisions,temporal/entities}` | Bitemporal queries |4041## Adding a New REST Endpoint42431. Create a route module in `src/routes/` returning a router with full `/api/...` paths442. Mount it in `src/routes/index.ts` (`registerRoutes`) — not `src/index.ts`453. Add Zod schemas in `src/schemas.ts` for request validation4647## Conventions4849- WebSocket broadcast after mutations (real-time UI updates)50- Use `brain-instance.ts` singleton — never construct Brain directly51- Zod validation middleware on all routes52
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| thangaram611/second-brain.clinerules/01-project.md · 0 | Cline rules | setuptestmonorepodo-not | 65/100 | 14 days ago | |
| thangaram611/second-brain.clinerules/02-conventions.md · 0 | Cline rules | teststyledo-not | 40/100 | 14 days ago | |
| thangaram611/second-brain.clinerules/03-backend.md · 0 | Cline rules | styledatabase | 37/100 | 14 days ago | |
| thangaram611/second-brain.clinerules/04-frontend.md · 0 | Cline rules | style | 28/100 | 14 days ago | |
| thangaram611/second-brain.clinerules/05-testing.md · 0 | Cline rules | testdo-not | 35/100 | 14 days ago | |
| thangaram611/second-brain.clinerules/06-data-model.md · 0 | Cline rules | types | 25/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago | |
| thangaram611/second-brainpackages/ingestion/AGENTS.md · 0 | AGENTS.md | styleagent-behaviour | 48/100 | 14 days ago | |
| thangaram611/second-brain.cursor/rules/data-model.mdc · 0 | Cursor rules | types | 30/100 | 14 days ago | |
| thangaram611/second-brain.cursor/rules/frontend.mdc · 0 | Cursor rules | do-not | 31/100 | 14 days ago | |
| thangaram611/second-brain.cursor/rules/project.mdc · 0 | Cursor rules | testdo-notagent-behaviour | 50/100 | 14 days ago | |
| thangaram611/second-brain.cursor/rules/testing.mdc · 0 | Cursor rules | testdo-not | 27/100 | 14 days ago | |
| thangaram611/second-brain.windsurfrules · 0 | Windsurf rules | setupteststylearch+4 | 75/100 | 14 days ago | |
| thangaram611/second-brainAGENTS.md · 0 | AGENTS.md | setupteststyletypes+3 | 74/100 | 14 days ago | |
| thangaram611/second-brainCLAUDE.md · 0 | CLAUDE.md | agent-behaviour | 16/100 | 14 days ago | |
| thangaram611/second-brainapps/relay/AGENTS.md · 0 | AGENTS.md | monorepoagent-behaviour | 33/100 | 14 days ago | |
| thangaram611/second-brainapps/ui/AGENTS.md · 0 | AGENTS.md | styleuimonorepoagent-behaviour | 56/100 | 14 days ago | |
| thangaram611/second-brainpackages/collectors/AGENTS.md · 0 | AGENTS.md | agent-behaviour | 52/100 | 14 days ago | |
| thangaram611/second-brainpackages/core/AGENTS.md · 0 | AGENTS.md | testtypesdatabaseagent-behaviour | 62/100 | 14 days ago | |
| thangaram611/second-brainpackages/mcp-server/AGENTS.md · 0 | AGENTS.md | agent-behaviour | 44/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 68k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 13 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| aaif-goose/gooseAGENTS.md · 53k | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 8 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| deepseek-ai/deepseek-harnessnative/landlock-run/AGENTS.md · 104k | AGENTS.md | setupteststylearch+3 | 100/100 | today | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | today | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 201k | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+2 | 100/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/thangaram611-second-brain-apps-server-agents)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.