myco 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- myco-0.2.0/.gitignore +60 -0
- myco-0.2.0/LICENSE +21 -0
- myco-0.2.0/PKG-INFO +322 -0
- myco-0.2.0/README.md +289 -0
- myco-0.2.0/docs/adapters/README.md +65 -0
- myco-0.2.0/docs/primordia/README.md +78 -0
- myco-0.2.0/examples/ascc/README.md +150 -0
- myco-0.2.0/forage/README.md +86 -0
- myco-0.2.0/forage/repos/gbrain/LICENSE +21 -0
- myco-0.2.0/forage/repos/gbrain/README.md +594 -0
- myco-0.2.0/forage/repos/gbrain/docs/integrations/README.md +104 -0
- myco-0.2.0/forage/repos/hermes-agent/LICENSE +21 -0
- myco-0.2.0/forage/repos/hermes-agent/README.md +177 -0
- myco-0.2.0/forage/repos/hermes-agent/environments/README.md +324 -0
- myco-0.2.0/forage/repos/hermes-agent/environments/benchmarks/tblite/README.md +73 -0
- myco-0.2.0/forage/repos/hermes-agent/environments/benchmarks/yc_bench/README.md +115 -0
- myco-0.2.0/forage/repos/hermes-agent/optional-skills/mlops/saelens/references/README.md +70 -0
- myco-0.2.0/forage/repos/hermes-agent/packaging/homebrew/README.md +14 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/byterover/README.md +41 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/hindsight/README.md +134 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/holographic/README.md +36 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/honcho/README.md +220 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/mem0/README.md +38 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/openviking/README.md +40 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/retaindb/README.md +40 -0
- myco-0.2.0/forage/repos/hermes-agent/plugins/memory/supermemory/README.md +99 -0
- myco-0.2.0/forage/repos/hermes-agent/pyproject.toml +128 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/creative/ascii-video/README.md +290 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/creative/manim-video/README.md +23 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/creative/p5js/README.md +64 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/mlops/training/grpo-rl-training/README.md +97 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/research/research-paper-writing/templates/README.md +251 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/research/research-paper-writing/templates/aaai2026/README.md +534 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/research/research-paper-writing/templates/acl/README.md +50 -0
- myco-0.2.0/forage/repos/hermes-agent/skills/research/research-paper-writing/templates/colm2025/README.md +3 -0
- myco-0.2.0/forage/repos/hermes-agent/website/README.md +45 -0
- myco-0.2.0/forage/repos/mempalace/.claude-plugin/README.md +57 -0
- myco-0.2.0/forage/repos/mempalace/.codex-plugin/README.md +75 -0
- myco-0.2.0/forage/repos/mempalace/LICENSE +21 -0
- myco-0.2.0/forage/repos/mempalace/README.md +732 -0
- myco-0.2.0/forage/repos/mempalace/benchmarks/README.md +124 -0
- myco-0.2.0/forage/repos/mempalace/hooks/README.md +138 -0
- myco-0.2.0/forage/repos/mempalace/mempalace/README.md +40 -0
- myco-0.2.0/forage/repos/mempalace/pyproject.toml +88 -0
- myco-0.2.0/forage/repos/mempalace/tests/benchmarks/README.md +138 -0
- myco-0.2.0/forage/repos/nuwa-skill/LICENSE +21 -0
- myco-0.2.0/forage/repos/nuwa-skill/README.md +298 -0
- myco-0.2.0/forage/repos/nuwa-skill/examples/sun-yuchen-perspective/README.md +298 -0
- myco-0.2.0/notes/README.md +37 -0
- myco-0.2.0/pyproject.toml +86 -0
- myco-0.2.0/src/myco/__init__.py +8 -0
- myco-0.2.0/src/myco/cli.py +846 -0
- myco-0.2.0/src/myco/cohorts.py +200 -0
- myco-0.2.0/src/myco/cohorts_cmd.py +80 -0
- myco-0.2.0/src/myco/compress_cmd.py +831 -0
- myco-0.2.0/src/myco/config_cmd.py +174 -0
- myco-0.2.0/src/myco/discover.py +148 -0
- myco-0.2.0/src/myco/evolve.py +326 -0
- myco-0.2.0/src/myco/forage.py +486 -0
- myco-0.2.0/src/myco/forage_cmd.py +151 -0
- myco-0.2.0/src/myco/graph.py +297 -0
- myco-0.2.0/src/myco/graph_cmd.py +106 -0
- myco-0.2.0/src/myco/import_cmd.py +470 -0
- myco-0.2.0/src/myco/init_cmd.py +210 -0
- myco-0.2.0/src/myco/inlet_cmd.py +365 -0
- myco-0.2.0/src/myco/io_utils.py +172 -0
- myco-0.2.0/src/myco/lint.py +2747 -0
- myco-0.2.0/src/myco/mcp_server.py +1921 -0
- myco-0.2.0/src/myco/migrate.py +415 -0
- myco-0.2.0/src/myco/notes.py +2362 -0
- myco-0.2.0/src/myco/notes_cmd.py +653 -0
- myco-0.2.0/src/myco/project.py +64 -0
- myco-0.2.0/src/myco/redact.py +45 -0
- myco-0.2.0/src/myco/session_miner.py +74 -0
- myco-0.2.0/src/myco/sessions.py +406 -0
- myco-0.2.0/src/myco/sessions_cmd.py +78 -0
- myco-0.2.0/src/myco/templates/CLAUDE.md +57 -0
- myco-0.2.0/src/myco/templates/MYCO.md +123 -0
- myco-0.2.0/src/myco/templates/WORKFLOW.md +233 -0
- myco-0.2.0/src/myco/templates/_canon.yaml +484 -0
- myco-0.2.0/src/myco/templates/log.md +8 -0
- myco-0.2.0/src/myco/templates/mcp.json +9 -0
- myco-0.2.0/src/myco/templates/operational_narratives.md +8 -0
- myco-0.2.0/src/myco/templates.py +37 -0
- myco-0.2.0/src/myco/upstream.py +375 -0
- myco-0.2.0/src/myco/upstream_cmd.py +195 -0
- myco-0.2.0/wiki/README.md +51 -0
myco-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
*.egg-info/
|
|
6
|
+
*.egg
|
|
7
|
+
|
|
8
|
+
# Build artifacts
|
|
9
|
+
dist/
|
|
10
|
+
build/
|
|
11
|
+
*.whl
|
|
12
|
+
|
|
13
|
+
# Virtual environments
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
env/
|
|
17
|
+
|
|
18
|
+
# OS files
|
|
19
|
+
.DS_Store
|
|
20
|
+
Thumbs.db
|
|
21
|
+
|
|
22
|
+
# Editor files
|
|
23
|
+
.vscode/
|
|
24
|
+
.idea/
|
|
25
|
+
*.swp
|
|
26
|
+
*.swo
|
|
27
|
+
*~
|
|
28
|
+
|
|
29
|
+
# Misc
|
|
30
|
+
*.orig
|
|
31
|
+
|
|
32
|
+
# Claude Code session-local settings (not source of truth)
|
|
33
|
+
.claude/
|
|
34
|
+
|
|
35
|
+
# Local archival substrate (not published)
|
|
36
|
+
# Wave 8 root-directory hygiene (2026-04-11): collapsed root-level scratch
|
|
37
|
+
# entries — all were either deleted outright or relocated under nested
|
|
38
|
+
# natural homes. See docs/contract_changelog.md v0.8.0 banner.
|
|
39
|
+
#
|
|
40
|
+
# ASCC session transcripts (relocated from ascc_sessions/)
|
|
41
|
+
examples/ascc/.local_sessions/
|
|
42
|
+
# Ad-hoc extraction scratch pattern for any future vision-recovery runs
|
|
43
|
+
_vision_recovery_*.txt
|
|
44
|
+
# Local narrative draft if re-created
|
|
45
|
+
CORE_NARRATIVE_SYNTHESIS.md
|
|
46
|
+
# Locally generated assets (not source of truth)
|
|
47
|
+
assets/architecture.png
|
|
48
|
+
# Local publishing helper
|
|
49
|
+
scripts/pypi_upload.bat
|
|
50
|
+
|
|
51
|
+
# NOTE (Wave 8, contract v0.8.0): the six `docs/current/*_craft_*.md`
|
|
52
|
+
# entries that used to live here were removed — docs/current/ was renamed
|
|
53
|
+
# to docs/primordia/ in contract v1.5.0 (historical label; see
|
|
54
|
+
# contract_changelog.md Wave 8 re-baseline notice). The underlying craft
|
|
55
|
+
# files now live in docs/primordia/ and are tracked normally.
|
|
56
|
+
# The Wave 8 cleanup also physically deleted _extract_session.py,
|
|
57
|
+
# _myco_user_msgs.txt, _myco_assistant_vision_hits.txt, commit_msg.txt,
|
|
58
|
+
# and PYPI_SETUP.md from the root — they no longer need gitignore entries.
|
|
59
|
+
.myco_state/sessions.db
|
|
60
|
+
.pytest_cache/
|
myco-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Myco Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
myco-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: myco
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Self-Evolving Knowledge Substrate for AI Agents (pre-release)
|
|
5
|
+
Project-URL: Homepage, https://github.com/Battam1111/Myco
|
|
6
|
+
Project-URL: Repository, https://github.com/Battam1111/Myco
|
|
7
|
+
Project-URL: Issues, https://github.com/Battam1111/Myco/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/Battam1111/Myco/tree/main/docs
|
|
9
|
+
Author: Myco Contributors
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: agents,ai,cognitive-substrate,extended-cognition,knowledge-management,llm,memory,self-evolving
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
25
|
+
Requires-Python: >=3.8
|
|
26
|
+
Requires-Dist: pyyaml>=5.0
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest-xdist<4,>=3.0; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest<9,>=7.0; extra == 'dev'
|
|
30
|
+
Provides-Extra: mcp
|
|
31
|
+
Requires-Dist: mcp>=1.0.0; extra == 'mcp'
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
<div align="center">
|
|
35
|
+
|
|
36
|
+
<img src="assets/logo_dark_280.png" alt="Myco" width="200">
|
|
37
|
+
|
|
38
|
+
# Myco
|
|
39
|
+
|
|
40
|
+
**An Autonomous Cognitive Substrate for AI agents.**
|
|
41
|
+
|
|
42
|
+
*Your agent is a CPU. Myco is everything else — and the operating system upgrades itself.*
|
|
43
|
+
|
|
44
|
+
[](https://github.com/Battam1111/Myco)
|
|
45
|
+
[](https://www.python.org/)
|
|
46
|
+
[](LICENSE)
|
|
47
|
+
[](#three-immutable-laws)
|
|
48
|
+
|
|
49
|
+
[The Living Substrate](#the-living-substrate) · [Five Capabilities](#five-capabilities) · [How You Work With Myco](#how-you-work-with-myco) · [Three Immutable Laws](#three-immutable-laws) · [Standing on Fifty Years](#standing-on-fifty-years) · [Try It Today](#try-it-today)
|
|
50
|
+
|
|
51
|
+
**Languages:** English (canonical) · [中文](README_zh.md) · [日本語](README_ja.md)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## The Living Substrate
|
|
58
|
+
|
|
59
|
+
Modern LLM agents are brilliant and amnesiac. Each session is a fresh CPU boot — raw compute, zero persistence. What the agent learned yesterday evaporates at the session boundary. What the team learned last month rots into contradiction. The ground the agent stands on is not actually ground; it is a pile of static files hoping to survive contact with reality.
|
|
60
|
+
|
|
61
|
+
Myco is the ground.
|
|
62
|
+
|
|
63
|
+
> **Myco is an Autonomous Cognitive Substrate for AI agents. Your agent is the CPU: raw compute, zero persistence. Myco is everything else — the memory, the filesystem, the operating system, the peripherals — and the OS upgrades itself. All evolution is non-parametric: text, structure, lint rules on disk. No model weights are ever touched. This is why Myco works across agent vendors, survives model swaps, and accumulates value in exactly the medium LLM agents are best at manipulating.**
|
|
64
|
+
|
|
65
|
+
This framing is not a metaphor dressed up as architecture. It is the architecture. The **kernel** is a project-agnostic cognitive OS. Each project directory is an **instance** — an application running on that OS. Upgrades to the kernel flow downstream; friction discovered inside instances flows back upstream. The substrate is alive in the thermodynamic sense: it **metabolizes** inbound knowledge, compresses it into the shape your agent's attention can actually use, and **excretes** what no longer earns its keep. A substrate that stops metabolizing is not a stable knowledge base — it is a corpse. **Stagnation is death.** **Perpetual evolution** is not a nice-to-have; it is the single condition under which the substrate stays a substrate.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Five Capabilities
|
|
70
|
+
|
|
71
|
+
Myco is not a memory layer, not an agent runtime, and not a skill framework. It is the layer beneath all three — the living ground they run on. Five capabilities define what that ground does.
|
|
72
|
+
|
|
73
|
+
### 1. Knowledge metabolism — the seven-step pipeline
|
|
74
|
+
|
|
75
|
+
A memory layer stores and retrieves. A substrate **metabolizes**. Every piece of inbound content — a paper you read, a friction your agent hit, a design decision made in chat — flows through a seven-step pipeline:
|
|
76
|
+
|
|
77
|
+
**Discover → Evaluate → Extract → Integrate → Compress → Verify → Excrete**
|
|
78
|
+
|
|
79
|
+
Discover scans inbound channels. Evaluate decides whether the content is worth the substrate's attention. Extract pulls out the load-bearing structure. Integrate wires it into the existing body of knowledge. Compress cuts everything that no longer earns attention. Verify checks that the compression did not break load-bearing claims. **Excrete** — the step most knowledge systems forget — actively ejects knowledge that has decayed, been superseded, or stopped being true. A digestive tract without an outlet is a tumor. The seven-step pipeline is Myco's core metabolic act, and the verbs are named from it on purpose: `eat` / `evaluate` / `extract` / `integrate` / `compress` / `view` / `prune` / `hunger`.
|
|
80
|
+
|
|
81
|
+
### 2. Meta-evolution — the substrate rewrites its own rules
|
|
82
|
+
|
|
83
|
+
Every LLM system evolves *the agent's behavior*. Myco evolves **the ground the agent stands on**. When a lint rule stops catching real problems, or starts catching false positives, or the canon schema outgrows itself, Myco's metabolic evolution engine notices and proposes a change. Hunger signals sense friction during normal work. Session reflection captures execution learnings automatically. Predictive hunger anticipates future knowledge needs from session history. Cross-instance skill transfer distills universal patterns back into the kernel. Alongside these four inward gears, a fifth face — the **metabolic inlet** — turns outward, pulling in external papers, repos, and articles. Evolution proceeds by **mutation and selection**: the system generates candidate rule changes, and the human is the selection pressure that decides which mutations survive.
|
|
84
|
+
|
|
85
|
+
### 3. Self-model — a substrate that knows itself
|
|
86
|
+
|
|
87
|
+
Myco maintains a four-layer self-model so that it can tell, at any moment, what it contains and whether that knowledge is still alive:
|
|
88
|
+
|
|
89
|
+
- **A · Inventory** — what exists in the substrate right now (automated).
|
|
90
|
+
- **B · Gap sensing** — what the substrate *should* know but doesn't yet (semi-automated).
|
|
91
|
+
- **C · Decay sensing** — what used to be true but no longer is, split into *factual decay* (version drift, renamed files) and *structural decay* (the architecture that was right at day 3 is wrong at day 30). Factual decay is what `myco lint` already catches; structural decay is the hardest open problem in the whole design space.
|
|
92
|
+
- **D · Efficacy** — **dead-knowledge detection**: notes that entered the substrate and were never read again. If knowledge is not consumed, it is not knowledge; it is sediment.
|
|
93
|
+
|
|
94
|
+
The self-model is what lets Myco ask the only question that matters for a living knowledge system: *is this still earning its place?*
|
|
95
|
+
|
|
96
|
+
### 4. Cross-session continuity — the substrate that outlives any one conversation
|
|
97
|
+
|
|
98
|
+
Everything above the substrate is ephemeral — chats end, models roll, runtimes restart. Myco is what persists. It is the one artifact the next session inherits *in full*, regardless of which agent vendor the next session happens to use. Tacit knowledge that used to be rediscovered every Monday morning becomes durable; the expensive part of getting smart about a project happens exactly once.
|
|
99
|
+
|
|
100
|
+
### 5. Agent-adaptive universality — the substrate reshapes to the agent
|
|
101
|
+
|
|
102
|
+
The substrate is not a pre-carved mold your agent must fit. Myco's entry points, compression rules, and lint thresholds are expected to evolve to match whichever agent is operating on it — Claude, GPT, Cursor, Claude Code, a future model we haven't seen yet. Universality runs in the right direction: the ground adapts to the tree, not the other way around.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## A Picture of the Whole
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
┌─────────────────────────────────────┐
|
|
110
|
+
│ LLM Agent │
|
|
111
|
+
│ (CPU — raw compute, no RAM) │
|
|
112
|
+
└──────────────▲──────────────────────┘
|
|
113
|
+
│ 19 MCP tools + CLI
|
|
114
|
+
│ (read / eat / digest / lint …)
|
|
115
|
+
┌──────────────┴──────────────────────┐
|
|
116
|
+
│ Myco Kernel (OS) │
|
|
117
|
+
│ metabolism · self-model · lint · │
|
|
118
|
+
│ four gears · metabolic inlet │
|
|
119
|
+
│ ↑ upstream absorb │
|
|
120
|
+
│ ↓ kernel updates │
|
|
121
|
+
└──────────────┬──────────────────────┘
|
|
122
|
+
│
|
|
123
|
+
┌───────────────────────────┼────────────────────────────┐
|
|
124
|
+
▼ ▼ ▼
|
|
125
|
+
┌─────────┐ ┌─────────┐ ┌─────────┐
|
|
126
|
+
│ Project │ │ Project │ │ Project │
|
|
127
|
+
│ Instance│ │ Instance│ │ Instance│
|
|
128
|
+
│ A │ │ B │ │ C │
|
|
129
|
+
└─────────┘ └─────────┘ └─────────┘
|
|
130
|
+
(an application running on the cognitive OS — wiki / _canon / notes / log)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Kernel** is the project-agnostic cognitive OS: shared code, shared lint engine, shared evolution protocol. **Instance** is your project directory — an application running on that OS. Upgrades to the kernel flow downstream to every instance on upgrade. Friction and distilled patterns discovered inside an instance flow back up to the kernel via the upstream outbox. This is not an analogy. It is literally how Myco is structured, and the L11 lint dimension enforces that write-surface hygiene.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## How You Work With Myco
|
|
138
|
+
|
|
139
|
+
Traditional knowledge bases assume a human author and a machine reader. Myco flips that. Your agent is the primary subject — it reads the substrate, writes into it, proposes changes to it, and runs its daily work on it. You are the **occasional gatekeeper**: the selection pressure that approves mutations, vetoes bad directions, and calls craft sessions when structural assumptions need to be challenged.
|
|
140
|
+
|
|
141
|
+
Three dynamics define the collaboration:
|
|
142
|
+
|
|
143
|
+
**Mutation and selection.** Myco mutates. You select. The system constantly proposes new knowledge, new lint rules, new compression strategies; your role is not to author these proposals but to judge which ones deserve to survive. Selection pressure — applied consistently — is what keeps a self-evolving substrate from going cancerous.
|
|
144
|
+
|
|
145
|
+
**Transparency as survival mechanism.** Every change in Myco is auditable: every note has provenance, every lint rule has a debate record, every kernel upgrade has an upstream bundle. This is not a bureaucratic virtue. **Transparency → legibility → human selection pressure → anti-cancer.** Lose transparency, lose legibility; lose legibility, lose selection pressure; lose selection pressure, and a self-optimizing substrate begins metastasizing in directions no one can evaluate. Transparency is the immune system, not the paperwork.
|
|
146
|
+
|
|
147
|
+
**Agent-as-subject.** The classical "Second Brain" puts the human in the driver's seat and the tool in the passenger seat. Myco inverts this. The agent is the primary reader, writer, thinker-on-substrate; you step in when selection, strategy, or structural judgment is needed. This inversion is what distinguishes a **substrate** from a personal knowledge manager.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Three Immutable Laws
|
|
152
|
+
|
|
153
|
+
Everything in Myco can evolve — knowledge structure, compression rules, lint dimensions, even the evolution engine itself. Everything except these three. The L9 lint dimension enforces the identity of the substrate against drift; the L13 lint dimension enforces that every rule change has an auditable craft record.
|
|
154
|
+
|
|
155
|
+
| # | Law | Why it is load-bearing |
|
|
156
|
+
|---|-----|------------------------|
|
|
157
|
+
| **C1** | **Accessible** | Any agent, from any vendor, must be able to find the entry point and self-explain the substrate without prior training. If the ground is not accessible, the tree cannot grow on it. |
|
|
158
|
+
| **C2** | **Transparent** | Every change must be auditable by a human. This is what sustains human selection pressure against a self-evolving system. Lose transparency → lose selection pressure → the substrate becomes **cancerous**. |
|
|
159
|
+
| **C3** | **Perpetually Evolving** | **Stagnation is death.** A substrate that stops metabolizing is definitionally no longer a substrate; it is a static knowledge base, which is the failure mode of every prior system Myco was built to escape. |
|
|
160
|
+
|
|
161
|
+
These three are the constitution. Everything else is legislation.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Compression Is Cognition
|
|
166
|
+
|
|
167
|
+
Myco's operating assumption:
|
|
168
|
+
|
|
169
|
+
> **Storage is infinite. Attention is not.**
|
|
170
|
+
|
|
171
|
+
Disks grow on demand; your agent's context window does not. So Myco **never forgets** — nothing is deleted from cold storage — but it **aggressively compresses** what flows into attention. This is not engineering plumbing; it is the substrate's primary cognitive act. Three candidate criteria shape what gets compressed and when:
|
|
172
|
+
|
|
173
|
+
- **Usage frequency** — pages no agent has read recently go cold.
|
|
174
|
+
- **Temporal relevance** — time-bound facts excrete at expiry.
|
|
175
|
+
- **Exclusivity** — knowledge your agent already has from pretraining wastes substrate space; keep only what your agent would otherwise lack.
|
|
176
|
+
|
|
177
|
+
Compression is also **agent-adaptive**: what needs to be written down for one agent may be redundant for another with different pretraining. The substrate adjusts; the agent does not. Irreducible texture is lost on purpose; if you need lexical fidelity, keep a raw archive. What the substrate preserves is the load-bearing structure — the provenance chain, the decisions, the reasons a thing is true.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Standing on Fifty Years
|
|
182
|
+
|
|
183
|
+
Myco did not fall out of the sky. It stands on the shoulders of five traditions, each contributing one load-bearing insight:
|
|
184
|
+
|
|
185
|
+
- **Karpathy LLM Wiki** — a structured knowledge compilation is the correct substrate shape for an agent, not a chat log or a vector store. This is the geometric assumption.
|
|
186
|
+
- **Polanyi Tacit Knowledge** — most operational intelligence is tacit, held in proximal/distal structure, and cannot be captured by enumeration. This is why Myco persists procedures and narratives, not just facts.
|
|
187
|
+
- **Argyris Double-Loop Learning** — single-loop learning fixes actions, double-loop learning fixes the rules that govern actions. This is the L-struct / L-meta split and the reason the substrate itself must evolve.
|
|
188
|
+
- **Toyota PDCA** — Plan / Do / Check / Act is the base cycle of a self-improving system. The four gears are PDCA compiled onto an LLM substrate.
|
|
189
|
+
- **Voyager Skill Library** — iterative, grounded skill accumulation is possible if you store what worked and let the next episode build on it. This is the shape of cross-project distillation.
|
|
190
|
+
|
|
191
|
+
Myco is the first system to put these five on the same base and let them run as one metabolism. See [`docs/theory.md`](docs/theory.md).
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Already Running Unconsciously
|
|
196
|
+
|
|
197
|
+
The uncomfortable, load-bearing truth: **we were already running the primitive version of this system without realizing it.** An 8-day, 80+ file reinforcement-learning research project — ASCC — ran the complete four-gear cycle to completion by hand. Manually triggered lint. Verbal friction logs. Human-driven meta-evolution. Fifteen-plus structured debates. It worked. And then it worked *again* on the next project.
|
|
198
|
+
|
|
199
|
+
<div align="center">
|
|
200
|
+
|
|
201
|
+
| 80+ files | 10 wiki pages | 15+ structured debates | 23/23 lint dimensions green |
|
|
202
|
+
|:---------:|:-------------:|:----------------------:|:----------------------------:|
|
|
203
|
+
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
Myco is the formalization of a pattern that already proved itself in the wild. The v0.x → v1.0 trajectory is not "invent new things"; it is "make what was working by hand work by itself." Patterns extracted via cross-project distillation now live in the kernel; the unconscious prototype is [`examples/ascc/`](examples/ascc/). We are not asking you to trust a theory. We are asking you to trust a pattern that already kept a demanding research project honest across 80+ files and 15+ debates — and to help us turn the dials that make it run without the human having to be the engine.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Open Problems
|
|
211
|
+
|
|
212
|
+
Myco is early, and the highest-value contribution you can make is to pick one of these and push:
|
|
213
|
+
|
|
214
|
+
1. **Cold start.** How does the substrate bootstrap on a brand-new project with no history, no canon, no friction record? Current answer: hand-crafted `myco init` templates. Desired: the substrate learns its own bootstrap from prior distillations.
|
|
215
|
+
2. **Trigger signals.** What fires session reflection? What fires the metabolic inlet? Friction count is a proxy; the right signals are an open research question.
|
|
216
|
+
3. **Alignment at depth.** If Myco evolves rules the human can no longer meaningfully evaluate, how is it kept aligned? Transparency is necessary but not sufficient — we need *legible* transparency at scale.
|
|
217
|
+
4. **Compression engineering.** What to drop, when, without losing load-bearing tacit knowledge? The three candidate criteria are starting points, not solutions.
|
|
218
|
+
5. **Structural decay detection (Self-Model C layer).** Factual decay is caught. Structural decay — when the architecture right on day 3 is wrong on day 30 — is not yet. Arguably the hardest problem in the space.
|
|
219
|
+
6. **Dead-knowledge tracking (Self-Model D layer).** Minimum viable seed shipped (Wave 18, v1.4.0) — `myco view` records `view_count` + `last_viewed_at`, `myco hunger` reports the `dead_knowledge` signal, `myco prune` (Wave 33) is the auto-excretion path. Still open: view audit log, cross-reference graph, adaptive thresholds that evolve with substrate age.
|
|
220
|
+
|
|
221
|
+
The continuously-maintained registry lives at [`docs/open_problems.md`](docs/open_problems.md). If you want to contribute something high-impact, pick one of these and go.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Today and Tomorrow
|
|
226
|
+
|
|
227
|
+
| Phase | What is true | What is coming |
|
|
228
|
+
|-------|-------------|----------------|
|
|
229
|
+
| **v0.x (today)** | Four inward gears shipped · 23-dimension lint green · metabolism CLI live · MCP server exposes 19 tools · kernel/instance separation enforced · one unconscious prototype (ASCC) validated end-to-end · Self-Model D layer seeded (view tracking + dead-knowledge signal + `myco prune` auto-excretion) · Metabolic Inlet MVP scaffold shipped (`myco inlet`, Wave 35 / v0.27.0) · L19 dimension-count consistency lint (Wave 38 / v0.29.0) · L20 translation mirror lint (Wave 39 / v0.30.0) · L21 contract version inline lint (Wave 40 / v0.31.0) · L22 wave-seed lifecycle lint (Wave 41 / v0.32.0) | Inlet cold-start, autonomous trigger signals, and continuous compression remain open. Most gear-firing is still human-triggered. |
|
|
230
|
+
| **v1.0** | Metabolic inlet fully autonomous · Self-Model D implemented · structural decay detector seeded · trigger signals replaced by learned heuristics | Human is no longer the engine; human is strictly the selection pressure. |
|
|
231
|
+
| **v∞** | Kernel evolves without any single human being able to hold its structure in their head — but *any* human can still audit any change, because C2 Transparent never lifts. | Open question. This is where [Open Problem 3](#open-problems) becomes load-bearing. |
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Try It Today
|
|
236
|
+
|
|
237
|
+
If you want to stop reading and start running:
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
# Install from source (PyPI publication coming soon)
|
|
241
|
+
pip install git+https://github.com/Battam1111/Myco.git
|
|
242
|
+
|
|
243
|
+
# Start a new instance on the kernel
|
|
244
|
+
myco init my-project --level 2
|
|
245
|
+
|
|
246
|
+
# Or migrate an existing project (non-destructive; your CLAUDE.md stays)
|
|
247
|
+
myco migrate ./your-project --entry-point CLAUDE.md
|
|
248
|
+
myco lint --project-dir ./your-project # baseline the substrate
|
|
249
|
+
myco hunger --project-dir ./your-project # metabolic dashboard
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**MCP integration** — your agent gets 19 tools automatically, no manual prompting:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
pip install 'git+https://github.com/Battam1111/Myco.git#egg=myco[mcp]'
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
A ready-to-use `.mcp.json` ships in the repo. Once installed in Claude Code, Cursor, or any MCP-speaking client, your agent auto-discovers:
|
|
259
|
+
|
|
260
|
+
- **Substrate health** · `myco_lint` · `myco_status` · `myco_search` · `myco_log` · `myco_reflect`
|
|
261
|
+
- **Knowledge metabolism** · `myco_eat` · `myco_digest` · `myco_view` · `myco_hunger`
|
|
262
|
+
- **Compression & excretion** · `myco_compress` · `myco_uncompress` · `myco_prune`
|
|
263
|
+
- **External intake** · `myco_inlet` · `myco_forage` · `myco_upstream`
|
|
264
|
+
- **Intelligence** · `myco_graph` · `myco_cohort` · `myco_session` · `myco_discover`
|
|
265
|
+
|
|
266
|
+
The CLI alone is enough to use Myco. The MCP layer is what turns capture into a reflex. Call `myco_hunger(execute=true)` at session boot — the substrate self-heals.
|
|
267
|
+
|
|
268
|
+
### The biological vocabulary in one table
|
|
269
|
+
|
|
270
|
+
Myco's verbs are metaphorical on purpose — metabolism is the mental model. If you want the plain-English map without reading the theory:
|
|
271
|
+
|
|
272
|
+
| Myco verb | Plain English | CLI | MCP tool |
|
|
273
|
+
|---|---|---|---|
|
|
274
|
+
| `eat` | Capture content as a durable note | `myco eat` | `myco_eat` |
|
|
275
|
+
| `digest` | Move a note through its lifecycle (raw → digesting → extracted → integrated → excreted) | `myco digest` | `myco_digest` |
|
|
276
|
+
| `evaluate` | Score a raw note for substrate fit (extract / discard / shelve) | `myco evaluate` | (CLI only) |
|
|
277
|
+
| `extract` | Lift the load-bearing structure out of a digesting note | `myco extract` | (CLI only) |
|
|
278
|
+
| `integrate` | Wire an extracted note into the existing knowledge body | `myco integrate` | (CLI only) |
|
|
279
|
+
| `compress` | Synthesize N raw/digesting notes into 1 extracted note with audit trail | `myco compress` | `myco_compress` |
|
|
280
|
+
| `uncompress` | Reverse a compression, restore inputs to pre-compression state | `myco uncompress` | `myco_uncompress` |
|
|
281
|
+
| `prune` | Auto-excrete dead-knowledge notes flagged by the D-layer signal | `myco prune` | `myco_prune` |
|
|
282
|
+
| `view` | Read notes with filters (records `view_count` + `last_viewed_at`) | `myco view` | `myco_view` |
|
|
283
|
+
| `lint` | 23-dimension substrate health check | `myco lint` | `myco_lint` |
|
|
284
|
+
| `correct` | Apply auto-fixes from a prior lint pass (alias: `myco molt`) | `myco correct` | (CLI only) |
|
|
285
|
+
| `forage` | Manage external source material (add/list/digest) | `myco forage` | `myco_forage` |
|
|
286
|
+
| `inlet` | Ingest external content with provenance tracking | `myco inlet` | `myco_inlet` |
|
|
287
|
+
| `hunger` | Metabolic dashboard: raw backlog, stale notes, dead knowledge | `myco hunger` | `myco_hunger` |
|
|
288
|
+
| `absorb` | Sync kernel improvements from downstream instances | `myco upstream absorb` | `myco_upstream` |
|
|
289
|
+
| `graph` | Link graph analysis: backlinks, orphans, clusters, stats | `myco graph` | `myco_graph` |
|
|
290
|
+
| `cohort` | Semantic cohort intelligence: tag co-occurrence, compression suggestions, gaps | `myco cohort` | `myco_cohort` |
|
|
291
|
+
| `session` | Session memory: index, search, prune agent conversation transcripts | `myco session` | `myco_session` |
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## Contributing
|
|
296
|
+
|
|
297
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). The highest-impact contributions are:
|
|
298
|
+
|
|
299
|
+
1. **Battle reports** on any of the six [Open Problems](#open-problems).
|
|
300
|
+
2. **Platform adapters** in [`docs/adapters/`](docs/adapters/) for the agent environment you already use.
|
|
301
|
+
3. **Design sketches** for the Metabolic Inlet primitive — particularly discover / evaluate / extract phases.
|
|
302
|
+
4. **Translations** of this README. Current: English canonical · [中文](README_zh.md) · [日本語](README_ja.md).
|
|
303
|
+
|
|
304
|
+
## License
|
|
305
|
+
|
|
306
|
+
MIT — see [LICENSE](LICENSE).
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## The Mycelium
|
|
311
|
+
|
|
312
|
+
The name is not decoration. Mycelium is the underground fungal network beneath every forest: it is not plumbing. It secretes enzymes that decompose fallen leaves into nutrients (**metabolism**). It remembers effective growth paths and redirects strategy accordingly (**meta-evolution**). It redistributes resources from abundant zones to starved ones (**intelligent compression**). It forms symbiosis with the roots of trees of every species it encounters (**agent-adaptive universality**). A healthy mycelium is the reason a forest is a forest and not a stand of lonely trunks.
|
|
313
|
+
|
|
314
|
+
Agents are the trees above ground. Myco is the living network beneath, making the whole forest work.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
<div align="center">
|
|
319
|
+
|
|
320
|
+
**Your agent is a CPU. Myco is everything else — and the operating system upgrades itself.**
|
|
321
|
+
|
|
322
|
+
</div>
|