惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
量子位
雷峰网
雷峰网
宝玉的分享
宝玉的分享
V
Visual Studio Blog
博客园_首页
小众软件
小众软件
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - mrdanielcasper/CoreTex: A UNIX-inspired, biomime...
danielcasper · 2026-05-27 · via Hacker News - Newest: "AI"

🧠 CoreTex: UNIX Inspired Biomimetic Agentic Control Plane and Knowledge Engine

Pre-Alpha Architecture Security Python 3.12+ Coverage License: Apache 2.0 Obsidian Discord

Note to Systems Engineers: I took the biomimicry domain-driven design quite far (e.g., the master daemon is the Medulla, short-term memory is the Hippocampus). It is eccentric, but underneath is (arguably) a highly optimized, concurrent, lock-safe, and execution engine that runs purely on flat files.

CoreTex is a UNIX-inspired, biomimetic agent harness and knowledge engine intended to help you use AI safely, cost-effectively, and in a way that helps you integrate the whole of your life.

Borrowing deeply from human neuroanatomy, CoreTex lets you organize and synthesize information (supercharging Obsidian Vaults), write and execute code in a hardened environment, and utilize peripherals (camera, mic, etc.) alongside webhooks and headless web browsing to observe and react to the outside world.

CoreTex is also intended to be an always-on daemon, understanding your goals and helping you achieve them over time.

CoreTex ctx-only local workflow demo


🏗️ Architectural Highlights & What Makes It Different

  1. UNIX Philosophy: Everything is a file like it's the 1970s! State, IPC, data, and queue files are guarded by OS-level locks. Databases are banished to the shadow realm (excluding the SQLite FTS5 DB which reads the flat files for performance). Composability with standard operators is supported - pipe, redirect, etc.
  2. Cerebellar Muscle Memory (Zero-Token Execution): When CoreTex successfully completes writing code, e.g. setting up a project, the Cerebellum can make it an engram to rerun at 0-cost. Highly experimental and will need improvements. Roadmap item to enable engram sharing. Token economics is a major concern for CoreTex.
  3. 5-Tier Biomimetic Memory Stack:
    • Working Memory - token aware compression inserted between active head and tail for infinite task continuity without amnesia.
    • Short-Term Recall (Vectorless Search): Replace the DB with a local SQLite FTS5 index and BM25 ranking. Snippet truncation finds code matches without bloating the context window.
    • Relation Knowledge - maps dependencies and markdown connections to a serialized graph, protected by the Anterior Cingulate Cortex circuit breaker if a loop is detected.
    • Episodic Memory - keeps a ledger of its objectives and actions in a thread safe WAL JSONL stream.
    • Long Term Memory - when CoreTex sleeps, it rotates logs and extracts key memories from them which are used to align the system to you
  4. Safe-by-Default: The default "Cognitive Mode" is strictly for reading/writing/working on an Obsidian vault or files. Code execution requires explicit user opt-in and is isolated inside an offline Deno-hosted V8 + WebAssembly jail with strict resource limits.

🧠 Dual-Memory Architecture (Epistemology vs. Teleology)

CoreTex operates on a strict separation of concerns, managing your workspace state through two distinct, human-readable Obsidian ledgers:

  • The Identity Matrix (Meta/Core_Beliefs.md): The Hippocampus continuously learns your preferences, coding style, and identity from background execution logs, appending semantic facts to shape the AI's personality over time.
  • The Master Kanban (Meta/Goals.md): A Markdown board where you define your high-level Goals and Subgoals. The OS auto-tags tasks with unique cryptographic IDs (#goal/UID) and deterministically checks off completed tasks via a zero-token Python state machine.

🌌 Proactive Default Mode Network (DMN)

When you stop working, CoreTex doesn't just sit idle. The DMN wakes up, reads the uncompleted frontline of your Goals.md file, actively reads your project code to gather context, and queues highly specific CLI tasks into Pending_Actions.md. You simply wake up, review the Threat Analysis, and type ./ctx approve to execute the system's daydreams.


⚡ Example Usage

CoreTex operates on text files and local indexing, meaning you can parse your entire codebase before spending a single API token.

1. Absorb data (0 Token Cost - Local SQLite Indexing)

./ctx absorb ./my_old_project -d Studio/MyProject -t "legacy, python"
./ctx absorb ./journal -d Personal/Journal -t "journal, writing"

2. Execute a sandboxed agentic task

./ctx task "Audit ./my_project for concurrency race conditions and output to audit.md"

3. Native Unix Piping

cat error.log | grep "Timeout" | ./ctx task "Explain this failure cascade"

4. Daydreaming

./ctx daydream
# NOTE: CURRENTLY ONLY DAYDREAMS ABOUT ITSELF, SELFISH MACHINE.
# TOPIC-BASED DREAMING IS AN IMMEDIATE TO-DO

🚀 Installation

CoreTex features a unified setup script to automatically handle prerequisites, virtual environments, and container architectures.

🍏 macOS & 🐧 Linux

chmod +x setup.sh
./setup.sh --check      # Optional: run preflight diagnostics
./setup.sh              # Interactive setup (use --local or --docker to bypass prompts)

🔷 Windows (PowerShell)

powershell -ExecutionPolicy Bypass -File .\setup.ps1 -Check
powershell -ExecutionPolicy Bypass -File .\setup.ps1  # Use -Local or -Docker to bypass prompts

Note: CoreTex natively supports routing via Enterprise API Gateways (Cloudflare, Portkey, Helicone) for observability. Select [Gateway] during setup.


🪐 Deployment & Initialization ("Synaptic Genesis")

The setup utility offers two distinct runtime architectures:

  1. Local (Recommended): Uses Astral's hyper-fast uv and the deno secure runtime.
  2. Isolated Container: Uses Docker Compose with strict UID/GID mapping to prevent root-owned file pollution.

Both paths launch the Synaptic Genesis wizard to configure your nervous system:

  • Operating Profile: Cognitive Mode (safe advisory) or Agentic Mode (sandboxed execution).
  • Sensory Innervation: Toggle vision scrapers (Playwright) or local hardware mic/speakers.
  • Synapses & Workspace: Link your LLMs (OpenAI, Anthropic, local Ollama) and bind CoreTex to a target directory.

Once complete, restart your terminal and command the swarm:

./ctx status
./ctx task "Summarize this repository in five bullets"

First Use

./ctx status # health check
./ctx live # engage main daemon
./ctx task "do a thing" # executes along route + domain
./ctx absorb examples/show-hn-mini-project --domain Professional --tags show-hn,demo
./ctx daydream

🧬 The Compiled Markdown Engine

CoreTex OS does not use archaic, monolithic YAML files or hardcoded Python scripts to define its AI agents. It uses a Zero-Debt Compiled Markdown Engine, allowing you to manage your entire AI swarm directly from Obsidian.

Agents are defined as 1-to-1 Markdown files (System/agents/*.md), consisting of strict Pydantic-validated frontmatter and Jinja2-compiled prompts.

---
name: Subconscious Daydreamer
model: openai/gpt-4o-mini
fallbacks:
  - openrouter/anthropic/claude-3-haiku
temperature: 0.6
max_tokens: 4000
creates_milestone: false
tools:
  - read_safe_file
  - search_vault
---
You are the Subconscious Daydreamer of CoreTex OS.

Your execution domain is currently: {{ domain }}
The system time is: {{ timestamp }}

PHASE 1 (INVESTIGATION): Actively use your tools to gather context on the user's Active Subgoals.

⚡ Architectural Highlights

  • Zero-I/O Hot Reloading: The OS cryptographically hashes the agents/ directory. If you hit CTRL+S in Obsidian or VS Code, the engine silently hot-reloads the agent into memory in microseconds without needing a system restart.
  • Native Fallbacks: If an LLM provider goes down (e.g., a 502 Bad Gateway), the engine natively intercepts the error, falls back to the next model in the agent's fallbacks array, and retries seamlessly without dropping the context window.
  • Shift-Left Validation: A strict Pydantic validation layer ensures that if you make a typo in an agent's frontmatter (like requesting a tool that doesn't exist), the OS will refuse to boot and throw a precise error pointing to the file.
  • Jinja Sandboxing: System prompts are natively compiled using a sandboxed FileSystemLoader, preventing arbitrary directory traversal prompt injections.

🔀 Separation of Concerns

CoreTex strictly separates biological hardware limits, execution pipelines, and agent identities:

  1. System/agents/*.md: Agent Personas, system prompts, and intrinsic baseline tools.
  2. System/config/routes.yaml: The Execution Switchboard. Dictates swarm order and contextually grants "dangerous" tools (like code execution) based on the principle of least privilege.
  3. System/config/system.yaml: The Biological limits. Controls token budgets, daily sleep cycles, and error-loop thresholds.

🔐 Security & Sandboxing (Safe-by-Default)

Running LLM-generated code locally is inherently dangerous. CoreTex ships in Cognitive Mode by default—it can write code and plan tasks, but it cannot execute scripts. If you explicitly opt-in (CORETEX_ENABLE_CODE_EXECUTION=true in your .env), CoreTex activates a strict containment matrix:

  1. The Deno + WASM Jail: CoreTex does not run generated code in your native Python or Bash environment. It forces the LLM to write code executed inside an ephemeral, unprivileged Deno + WebAssembly instance.
    1. Firecracker support is on the horizon
  2. The Volume Mask: The agent is physically incapable of seeing files outside the specific directory bound during setup.
  3. Cognitive Fallback: If Deno is missing or unreachable, the system safely degrades back to Cognitive Mode, immediately stripping the agent's subprocess execution tools entirely.

📁 Optional Obsidian Integration

Obsidian is a first class citizen in CoreTex. CoreTex will automatically detect the .obsidian configuration folder and atomically configure native hotkeys (Ctrl+Alt+S). Note: To map active shell commands directly to these hotkey bindings from within the graphic editor interface, please ensure the standard obsidian-shellcommands community plugin is active in your vault. You may struggle with these.


⌨️ Core Commands

Commands include:

  • ./ctx setup: Boot the interactive onboarding wizard to configure API keys, LLM routing, and workspace bindings.
  • ./ctx task "<prompt>": Dispatches a multi-agent swarm to accomplish a goal.
  • ./ctx daydream: Triggers the Default Mode Network (DMN) to autonomously organize files, compress old memories, and refactor code in the background.
  • ./ctx status: Opens the real-time Cortical Telemetry dashboard to monitor active agent loops and memory usage.

Sensory Perception Subcommands (Sense)

Trigger CoreTex external receptors directly from the execution plane:

  • ./ctx sense screenshot "https://google.com" "google.png" - Takes a headless web screenshot.
  • ./ctx sense perceive "google.png" "Describe layout" - Uses the Occipital Lobe to analyze visual stimuli.
  • ./ctx sense scrape "https://github.com" - Transduces a web page into raw markdown text format.
  • ./ctx sense listen --duration 10 - Activates physical microphone hardware receptors.
  • ./ctx sense speak output.wav - Dispatches sound arrays down physical speaker hardware channels.

💀 Systemic Apoptosis (Zero-Residue Uninstall)

If you are done with CoreTex, leave no trace behind:

./ctx destroy

This securely purges all local ledgers, token tracking logs, environment API keys, and execution queues. It respects your machine.


🤝 Contributing

CoreTex values Shift-Left engineering. We enforce focused regression coverage around security, file locking, and execution bypass logic. To verify your PR against our automated gates:

uv run pytest System/tests Sense/tests -v
uv run ruff check .

⭐️ Star the Project

If you believe in a local, flat-file AI harness and want to see where this biological experiment goes, please consider giving the repo a star! It is the best way to help other developers discover the project which will help me keep it going.