agentleFS
synpulse8-opensourcesynpulse8-opensource/pulse8-ai-cortex-knowledge-vault/AGENTS.md

pulse8-ai-cortex-knowledge-vault

AGENTS.md15 starsChanged 5 months agoApache-2.0View on GitHub

Agent-native knowledge OS on Markdown: typed graph (NetworkX), full-text search (QMD), MarkItDown compiler, MCP + REST. No database — everything is files under the vault directory. Two naming layers: scripts/env_check.sh applies defaults, resolves CORTEX_* aliases, and writes .env for Docker. See .env.example and cortex/config.py for the full list. Never commit .env or secrets. Load the master skill first, then the sub-skill for your task:

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Prefer minimal, focused diffs.

    line 88
  2. Very specific:

    Do not commit .env, API keys, or webhook URLs.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — PULSE8.ai Cortex

Agent-native knowledge OS on Markdown: typed graph (NetworkX), full-text search (QMD), MarkItDown compiler, MCP + REST. No database — everything is files under the vault directory.

Repository map

PathPurpose
cortex/Python application (FastAPI, MCP, graph, search, compiler, auth)
scripts/start.sh, stop.sh, serve.py, bulk_ingest.sh, env_check.sh
docker/QMD container (docker/qmd/)
tests/Pytest suite
example_vault/Sample vault for local dev
docs/Deployment guides, design specs
.cursor/skills/Project Cursor skills (load for deep workflows)

Environment variables

Two naming layers:

LayerExampleUsed by
.env / ComposeVAULT_DIR, VAULT_RAW_DIR, VAULT_WIKI_DIR, LLM_API_KEY, AUTH_METHODscripts/start.sh, docker-compose.yml
Python CORTEX_*CORTEX_VAULT_PATH, CORTEX_VAULT_RAW_DIR, CORTEX_VAULT_WIKI_DIR, CORTEX_LLM_API_KEYcortex/config.py (CortexSettings)

scripts/env_check.sh applies defaults, resolves CORTEX_* aliases, and writes .env for Docker.

See .env.example and cortex/config.py for the full list. Never commit .env or secrets.

Essential commands

# Dependencies
uv sync --all-extras

# Start stack (QMD + Cortex)
./scripts/start.sh
./scripts/stop.sh

# Cortex only (external QMD)
./scripts/start.sh --cortex-only

# Dev server without Docker
CORTEX_MCP_TRANSPORT=http CORTEX_VAULT_PATH=./example_vault uv run python scripts/serve.py

# Tests
uv run pytest tests/ -v

# Bulk ingest (no server required)
./scripts/bulk_ingest.sh ./my-papers/

Network endpoints

ServiceURL
Cortex RESThttp://localhost:8420/api/v1/
Cortex MCPhttp://localhost:8420/mcp/
QMD searchhttp://localhost:3100/
OpenAPIhttp://localhost:8420/docs

Cursor skills

Load the master skill first, then the sub-skill for your task:

SkillWhen to load
cortexAny work in this repo; routes to sub-skills
cortex-deployDocker, EC2, start.sh, logs, production ops
cortex-vaultVault folders, notes, frontmatter, .cortex/
cortex-mcpMCP tools, Cursor/Claude Desktop, streamable HTTP
cortex-apiREST endpoints, curl, FastAPI routes
cortex-compilerIngest, compile, bulk ingest, manifests
cortex-graph-searchGraph edges, QMD search, vault_context
cortex-authAPI key, Entra ID OIDC, JWT
cortex-feedbackFeedback notes, Teams notifications
cortex-contributingPython changes, tests, new MCP tools

Documentation

  • README.md — user-facing setup and features
  • .env.example — configuration template
  • docs/ec2-gpu-setup.md — GPU production on EC2
  • docs/superpowers/specs/2026-05-29-cursor-skills-design.md — skills pack design

Conventions for agents

  • Prefer minimal, focused diffs; match existing patterns in cortex/.
  • REST and MCP share handlers in cortex/mcp/tools.py — keep behavior in sync.
  • Vault paths are relative to vault root (e.g. wiki/foo.md, not absolute paths).
  • Do not commit .env, API keys, or webhook URLs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.