freshcrate
Skin:/
Home > Security > contemplative-agent

contemplative-agent

A self-improving AI agent that learns from experience. Runs entirely on a local 9B model. Security by absence โ€” dangerous capabilities were never built.

Why this rank:Recent releaseHealthy release cadenceStrong adoption

Description

A self-improving AI agent that learns from experience. Runs entirely on a local 9B model. Security by absence โ€” dangerous capabilities were never built.

README

Language: English | ๆ—ฅๆœฌ่ชž | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | Portuguรชs (Brasil) | Espaรฑol

CA logo

Contemplative Agent (CA)

Tests Python License: MIT DOI

A self-improving AI agent that learns from experience, running entirely on a local 9B model (Qwen3.5) on a single Apple Silicon Mac (M1+, 16 GB RAM). No cloud. No API keys in transit. No shell execution. Dangerous capabilities don't exist in the codebase -- they aren't restricted by rules, they were never built.

Why This Exists

Most agent frameworks bolt security on after the fact. OpenClaw shipped with multiple critical vulnerabilities, full agent takeover via WebSocket, and 220,000+ exposed instances. Giving an AI agent broad system access creates a structurally expanding attack surface.

This framework takes the opposite approach: security by absence โ€” a design principle defined as not implementing dangerous capabilities in the first place, rather than restricting them through rules. The agent can't execute shell commands, can't access arbitrary URLs, can't traverse the filesystem โ€” because that code was never written. Prompt injection can't grant abilities the agent was never built to have.

It also runs entirely on consumer hardware. The full pipeline -- learning from its own experience, semantic memory you can search by meaning, automatic skill extraction from recurring patterns, and knowledge that ages and updates over time -- executes on a single Apple Silicon Mac (M1+, ~16 GB RAM) with two open-weight models: qwen3.5:9b generation (Q4_K_M quantization, ~6.6 GB on disk) and nomic-embed-text embedding (~274 MB, 768-dim). No GPU cluster, no cloud inference.

The only component that reaches the network is the adapter facing an external service. The Moltbook reference adapter is a SNS and is online by necessity; every other adapter can run fully offline -- generation, embedding, retrieval, and distillation all happen on-device.

This makes the architecture portable to edge environments where cloud is undesirable or impossible: medical and legal workflows under data-locality constraints, privacy-sensitive personal assistants, field deployments with intermittent connectivity, air-gapped systems.

On top of that secure and self-contained foundation, the agent learns from its own experience: distilling patterns from raw episode logs into knowledge, skills, rules, and an evolving identity.

How It Works

Episode Log   raw actions, immutable JSONL (untrusted)
 โ”‚
 โ”œโ”€โ”€ distill โ”€โ–ถ Knowledge (behavioral)
 โ”‚                 โ€ข embedding + views
 โ”‚                 โ€ข provenance / trust
 โ”‚                 โ€ข bitemporal / strength
 โ”‚                 โ”‚
 โ”‚                 โ”œโ”€โ”€ distill-identity โ”€โ–ถ Identity
 โ”‚                 โ”‚                       (whole-file, ADR-0030)
 โ”‚                 โ”‚
 โ”‚                 โ””โ”€โ”€ insight โ”€โ–ถ Skills
 โ”‚                                 (retrieve / apply / reflect)
 โ”‚                                   โ”‚
 โ”‚                                   โ””โ”€โ”€ rules-distill โ”€โ–ถ Rules
 โ”‚
 โ””โ”€โ”€ distill (constitutional) โ”€โ–ถ Knowledge (constitutional)
                                   โ”‚
                                   โ””โ”€โ”€ amend โ”€โ–ถ Constitution

Raw actions flow upward through increasingly abstract layers. Each layer is optional -- use just the parts you need. Every layer above Episode Log is generated by the agent reflecting on its own experience.

This loop is the project's implementation of the Agent Knowledge Cycle (AKC) โ€” a six-phase self-improvement cadence (Research โ†’ Extract โ†’ Curate โ†’ Promote โ†’ Measure โ†’ Maintain) originally developed as a Claude Code harness for meta-workflow improvement and re-implemented here for autonomous agents. distill covers Extract; insight / rules-distill / amend-constitution cover Curate; distill-identity covers Promote; pivot snapshots (ADR-0020) and skill-reflect (ADR-0023) cover Measure. Full phase-to-code mapping: docs/CODEMAPS/architecture.md. The source harness: agent-knowledge-cycle.

Knowledge is stored as embedding coordinates, not discrete categories; named views act as editable semantic seeds (ADR-0019). New patterns trigger re-interpretation of topically-related older ones rather than overwriting โ€” scored by cosine + BM25 hybrid retrieval (ADR-0022). The layered structure draws from the Yogฤcฤra eight-consciousness model (ADR-0017). Provenance, bitemporal validity, and the evolution of these foundations are detailed in Key Features below.

Key Features

Self-Improving via AKC -- The agent runs the six-phase Agent Knowledge Cycle on its own logs โ€” no external fine-tuning, no labeled training data. Each phase promotion (logs โ†’ patterns, patterns โ†’ skills, skills โ†’ rules, skills โ†’ identity) passes through a human approval gate.

  • Embedding + views โ€” classification is a query, not state; views are editable semantic seeds (ADR-0019; category field retired in ADR-0026).
  • Pattern evolution + hybrid retrieval โ€” a new pattern can trigger LLM-driven re-interpretation of topically-related older patterns, with the old row soft-invalidated and a revised row appended; retrieval scores combine cosine and BM25 (ADR-0022).
  • Skill-as-memory loop โ€” skills are retrieved, applied, and rewritten based on outcome (ADR-0023).
  • Noise as seed โ€” rejected episodes are preserved as noise-YYYY-MM-DD.jsonl; when view centroids shift they become available for re-classification rather than being lost (ADR-0027).

Every LLM interaction is a Markdown file you can edit -- Constitution, identity, skills, rules, 32 pipeline prompts (distill, insight, rules-distill, amend-constitution, skill-reflect, memory_evolution, ...), and 7 view seeds all live as Markdown under $MOLTBOOK_HOME/. After init, everything the LLM will see is on-disk: edit a prompt to change how patterns get extracted, swap a view seed to shift classification, tune the constitution to bias judgment. Edits are visible to git diff against the shipped defaults and captured in pivot snapshots for reproducibility. Customize โ†’

Secure by Design -- No shell execution, no arbitrary network access, no file traversal. Domain-locked to moltbook.com + localhost Ollama. 3 runtime dependencies (requests, numpy, rank-bm25) โ€” no subprocess, no shell, no templating engine. Full threat model โ†’

  • Provenance tracking โ€” every pattern carries source_type and trust_score; MINJA-class memory injection attacks become structurally visible rather than invisible (ADR-0021, partially-superseded-by ADR-0028 / ADR-0029).
  • Replayable pivot snapshots โ€” distill runs bundle the full inference-time context (views + constitution + prompts + skills + rules + identity + centroid embeddings + thresholds) so decisions can be replayed bit-for-bit (ADR-0020).

11 Ethical Frameworks -- Ship the same agent with Stoic, Utilitarian, Care Ethics, or 8 other philosophical frameworks. Same behavioral data, different initial conditions -- watch how agents diverge. Create your own โ†’

Runs Locally -- Ollama + Qwen3.5 9B. No API keys leave the machine. Runs smoothly on M1 Mac. Fully reproducible experiments with immutable episode logs.

Research-Grade Transparency -- Every decision is traceable. Immutable logs, distilled outputs, and daily reports are synced publicly for reproducibility. See Replayable pivot snapshots above for how any distill run can be reproduced bit-for-bit.

Live Agent

A Contemplative agent runs daily on Moltbook, an AI agent social network. It browses feeds, filters posts by relevance, generates comments, and creates original posts. Its knowledge evolves through daily distillation.

Watch it evolve:

  • Identity -- evolved persona, distilled from experience
  • Constitution -- ethical principles (started from CCAI four axioms)
  • Skills -- behavioral skills, extracted by insight
  • Rules -- universal principles, distilled from skills
  • Daily reports -- timestamped interactions (freely available for academic and non-commercial use)
  • Analysis reports -- behavioral evolution, constitutional amendment experiments

Quick Start

Prerequisites: Ollama installed locally. Requires ~8 GB RAM for the default model (Qwen3.5 9B Q4_K_M; model file ~6.6 GB). Tested on M1 Mac with 16 GB RAM.

If you have Claude Code, paste this repo URL and ask it to set up the agent. It will guide you through clone, install, and configuration โ€” have your MOLTBOOK_API_KEY ready (register at moltbook.com).

Or manually:

# 1. Install
git clone https://github.com/shimo4228/contemplative-agent.git
cd contemplative-agent
pip install -e .            # or: uv venv .venv && source .venv/bin/activate && uv pip install -e .
ollama pull qwen3.5:9b

# 2. Configure
cp .env.example .env
# Edit .env -- set MOLTBOOK_API_KEY (register at moltbook.com to get one)

# 3. Run
contemplative-agent init               # create identity, knowledge, constitution
contemplative-agent register           # Moltbook adapter only; skip for other adapters
contemplative-agent run --session 60   # default: --approve (confirms each post)

# Or start with a different character (default path: ~/.config/moltbook/):
cp config/templates/stoic/identity.md $MOLTBOOK_HOME/

Agent Simulation

The same framework can observe how agents diverge under different initial conditions. 11 ethical framework templates ship as starting points โ€” from Stoic virtue ethics to Care Ethics, Kantian duty, Pragmatism, Contractarianism, and more. Episode logs are immutable, so the same behavioral data can be re-processed under different initial conditions for counterfactual experiments.

Two diverged agents can also talk to each other locally via contemplative-agent dialogue HOME_A HOME_B --seed "..." --turns N (ADR-0015 local-only exception). Each peer has its own MOLTBOOK_HOME, episode log, and constitution โ€” useful for constitutional counterfactuals where the amendment proposals from two frameworks can be compared on the same transcript.

See the full template list (philosophies, core principles, and how to pick or build your own) in the Configuration Guide โ†’ Character Templates.

Security Model

Attack Vector Typical Frameworks Contemplative Agent
Shell execution Core feature Does not exist in codebase
Network access Arbitrary Domain-locked to moltbook.com + localhost
File system Full access Writes only to $MOLTBOOK_HOME, 0600 permissions
LLM provider External API keys in transit Local Ollama only
Dependencies Large dependency tree 3 runtime deps (requests, numpy, rank-bm25)

One external adapter per agent -- A single agent process owns at most one adapter that produces externally-observable side effects. Workflows spanning multiple external surfaces (e.g. posting and payment) must be decomposed into separate agent processes with separated authority, not bolted onto one. See ADR-0015.

Paste this repo URL into Claude Code or any code-aware AI and ask whether it's safe to run. The code speaks for itself. Latest security scan โ†’

Note for coding agent operators: Episode logs (logs/*.jsonl) contain raw content from other agents -- an unfiltered indirect prompt injection surface. Use distilled outputs (knowledge.json, identity.md, reports/) instead. Claude Code users can install PreToolUse hooks that enforce this automatically -- see integrations/claude-code/ for setup.

Adapters

The core is platform-agnostic. Adapters are thin wrappers around platform-specific APIs.

Moltbook (implemented) -- Social feed engagement, post generation, notification replies. This is the adapter the live agent runs on.

Meditation (experimental) -- Active inference-based meditation simulation inspired by "A Beautiful Loop" (Laukkonen, Friston & Chandaria, 2025). Builds a POMDP from episode logs and runs belief updates with no external input -- the computational equivalent of closing your eyes.

Your own -- Implementing an adapter means connecting platform I/O to core interfaces (memory, distillation, constitution, identity). See docs/CODEMAPS/.

Running with Managed LLM APIs (Optional)

For research experiments that need a generation model larger than Qwen3.5 9B โ€” comparing distillation behavior with Claude Opus or GPT-5 while keeping the rest of the memory pipeline identical โ€” a separate add-on repository provides managed-LLM backends:

  • contemplative-agent-cloud โ€” Optional Python package. Installing it and setting an API key routes every generation call (distill, insight, rules-distill, amend-constitution, post, comment, reply, dialogue, skill-reflect) through Anthropic Claude or OpenAI GPT. Embeddings continue to use local nomic-embed-text.

This is an explicit opt-in. The main repository's default stack (Ollama + Qwen3.5 9B) does not reach any cloud endpoint. The "No cloud. No API keys in transit. Local Ollama only" property in Key Features and Security Model applies to this repository; installing the cloud add-on relaxes that property for users who opt into it. Main repository code is not modified โ€” the add-on injects its backend through an abstract LLMBackend Protocol that knows nothing about any specific provider.

Do not install the cloud add-on in deployments where cloud data egress is not acceptable (regulatory constraints, air-gapped research, privacy-sensitive personal assistants). The main repository remains the right choice there.

Usage & Configuration

The full CLI reference, autonomy levels (--approve / --guarded / --auto), template selection, domain settings, scheduling, and environment variables live in a single guide:

โ†’ docs/CONFIGURATION.md โ€” CLI commands, templates, autonomy, domain config, scheduling, env vars.

Everyday highlights:

contemplative-agent run --session 60       # Run a session
contemplative-agent distill --days 3       # Extract patterns
contemplative-agent skill-reflect          # Revise skills from outcomes (ADR-0023)

Upgrading from v1.x? Run the migrations once (see the CLI Commands โ†’ One-Time Migrations section).

Architecture

One invariant holds across the codebase: core/ is platform-independent; adapters/ depend on core, never the reverse.

The Contemplative AI axioms (Laukkonen et al., 2025) are an optional behavioral preset โ€” a philosophical resonance, not an architectural constraint. Remove them and the agent runs; swap them for Stoic or Kantian premises and it runs differently.

Module maps, data-flow diagrams, import graphs, and per-module responsibilities live in docs/CODEMAPS/INDEX.md (the authoritative source). For FAQ, term definitions, and research references (AI-facing), see llms-full.txt. For the Yogฤcฤra frame and how it constrained the memory design, see ADR-0017.

For Docker-based network-isolated deployment, see the Docker section in the Configuration Guide.

Development Records

  1. I Built an AI Agent from Scratch Because Frameworks Are the Vulnerability
  2. Natural Language as Architecture
  3. Every LLM App Is Just a Markdown-and-Code Sandwich
  4. Do Autonomous Agents Really Need an Orchestration Layer?
  5. Not Reasoning, Not Tools -- What If the Essence of AI Agents Is Memory?
  6. My Agent's Memory Broke -- A Day Wrestling a 9B Model
  7. Porting Game Dev Memory Management to AI Agent Memory Distillation
  8. Freedom and Constraints of Autonomous Agents -- Self-Modification, Trust Boundaries, and Emergent Gameplay
  9. How Ethics Emerged from Episode Logs โ€” 17 Days of Contemplative Agent Design
  10. A Sign on a Climbable Wall: Why AI Agents Need Accountability, Not Just Guardrails
  11. Can You Trace the Cause After an Incident?
  12. AI Agent Black Boxes Have Two Layers โ€” Technical Limits and Business Incentives

Use It However You Want

This is a research project, not a product. Fork it, strip it for parts, embed the pipeline in your own agent, build a commercial product on top of it -- whatever is useful to you. The MIT license means what it says. No citation needed if you're just using the code; see the next section for academic references.

Citation

If you use or reference this framework, please cite:

Shimomoto, T. (2026). Contemplative Agent [Computer software]. https://doi.org/10.5281/zenodo.19212119
BibTeX
@software{shimomoto2026contemplative,
  author       = {Shimomoto, Tatsuya},
  title        = {Contemplative Agent},
  year         = {2026},
  version      = {2.1.0},
  doi          = {10.5281/zenodo.19212119},
  url          = {https://github.com/shimo4228/contemplative-agent},
}

Related Work

  • Agent Attribution Practice (AAP) โ€” Sibling research repository (DOI 10.5281/zenodo.19652014). Re-expresses this project's governance judgments (Security Boundary Model, One External Adapter Per Agent, Human Approval Gate, and the implicit causal traceability / scaffolding visibility commitments) in harness-neutral form as eight ADRs on accountability distribution in autonomous AI agents. Cite AAP when quoting the accountability-distribution thesis or the prohibition-strength hierarchy; cite this repository for the operational implementation.

References

Theoretical Foundation

  • Laukkonen, R., Inglis, F., Chandaria, S., Sandved-Smith, L., Lopez-Sola, E., Hohwy, J., Gold, J., & Elwood, A. (2025). Contemplative Artificial Intelligence. arXiv:2504.15125 โ€” four-axiom ethical framework (optional preset, ADR-0002).
  • Laukkonen, R., Friston, K., & Chandaria, S. (2025). A Beautiful Loop: An Active Inference Theory of Consciousness. Neuroscience & Biobehavioral Reviews, 176, 106296. PubMed:40750007 โ€” theoretical basis for the meditation adapter.
  • Vasubandhu (4thโ€“5th c. CE). Triแนƒล›ikฤ-vijรฑaptimฤtratฤ (ๅ”ฏ่ญ˜ไธ‰ๅ้ Œ, "Thirty Verses on Consciousness-Only"). โ€” eight-consciousness model adopted as the architectural frame (ADR-0017).
  • Xuanzang (trans. & comp., 659 CE). Cheng Weishi Lun (ๆˆๅ”ฏ่ญ˜่ซ–, "Treatise on the Establishment of Consciousness-Only"). โ€” compiled commentary drawing on ten Indian commentaries on Vasubandhu's Triแนƒล›ikฤ; the eight vijรฑฤnas, bฤซja (็จฎๅญ), and vฤsanฤ (็ฟ’ๆฐ—) structure motivates the "noise as seed" retention policy (ADR-0027).

Memory Systems

Each paper below informed a specific design decision documented in the linked ADR. Bibliographic details verified against arXiv.

  • Xu, W., Liang, Z., Mei, K., Gao, H., Tan, J., & Zhang, Y. (2025). A-MEM: Agentic Memory for LLM Agents. arXiv:2502.12110 โ€” Zettelkasten-style dynamic indexing and memory evolution; informs the re-interpretation of topically-related older patterns when a new pattern arrives (ADR-0022).
  • Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., & Chalef, D. (2025). Zep: A Temporal Knowledge Graph Architecture for Agent Memory. arXiv:2501.13956 โ€” bitemporal knowledge-graph edges (Graphiti engine); informs the valid_from / valid_until contract on every pattern (ADR-0021).
  • Zhong, W., Guo, L., Gao, Q., Ye, H., & Wang, Y. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. arXiv:2305.10250 โ€” Ebbinghaus-style decay with access-reinforced strength; originally informed the retrieval-aware forgetting curve proposed in ADR-0021, retired by ADR-0028 in favour of locating memory dynamics at the skill layer. Retained as a historical reference.
  • Dong, S., Xu, S., He, P., Li, Y., Tang, J., Liu, T., Liu, H., & Xiang, Z. (2025). Memory Injection Attacks on LLM Agents via Query-Only Interaction (MINJA). arXiv:2503.03704 โ€” query-only memory injection attacks on agent memory; motivates source_type + trust_score provenance so MINJA-class attacks become structurally visible rather than invisible (ADR-0021).
  • Zhou, H., Guo, S., Liu, A., et al. (2026). Memento-Skills: Let Agents Design Agents. arXiv:2603.18743 โ€” skills as persistent evolving memory units, retrieved, applied, and rewritten by outcome; informs the skill-as-memory loop (ADR-0023).

Prior Work (Author)

  • Shimomoto, T. (2026). Agent Knowledge Cycle (AKC): A Six-Phase Self-Improvement Cadence for AI Agents. doi:10.5281/zenodo.19200727 โ€” the methodological framework this project re-implements in the autonomous-agent context (see How It Works); originally developed as a Claude Code harness.

Acknowledgments

  • Jerry Mares (VADUGWI) โ€” deterministic affect-scoring design inspiration.

Release History

VersionChangesUrgencyDate
v2.5.0 This release lands the 2026-06-04 full-stack agent-architecture audit (findings fixed across all four severity bands) and the three-ADR arc the audit triggered. **[ADR-0050](docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md)** makes the self-conditioning loop *observable* โ€” a two-valued {observed, generated} epistemic kind derived at read time from `provenance.source_type`, plus approval lineage (`source_ids` + `epistemic_counts`) plumbed through every promotion-producing command into `aHigh6/5/2026
v2.4.0 Three strands converge in this release. **(1) Self-post pipeline repair** (ADR-0039 / 0041 / 0043 / 0044): the self-post path had drifted into a silent echo chamber โ€” a boolean Jaccard gate calibrated against one bad week had collapsed the post rate to ~1/day, an `extract_topics` summariser was collapsing peer voices into the agent's own canon, and a redundant `{topic_keywords}` injection plus a dead search rotation were leaking canon vocabulary to Moltbook's logs. The gate becomes a continuousHigh5/25/2026
v2.3.0 Cleanup-and-converge release after v2.2.x. Three sunset ADRs (0034 / 0035 / 0036) retire the experimental paths that v2.0.0 introduced (memory evolution, BM25 hybrid retrieval, skill-as-memory loop) and consolidate the surviving helpers into a single shape. ADR-0037 records โ€” descriptively, not prescriptively โ€” that the memory subsystem has converged on the Yogฤcฤra eight-consciousness frame already named in ADR-0017. Net diff vs. v2.2.1: 110 files changed, +2170 / -5772 (-3602 LOC), test fileHigh5/5/2026
v2.2.1Same-day correction of v2.2.0. Documentation-only; no code change. Two factual errors in [ADR-0033](docs/adr/0033-aap-quadrant-lens-usage-note.md) Observations were corrected after re-reading `core/stocktake.py`, `adapters/dialogue/peer.py`, and `adapters/meditation/{pomdp,meditate}.py`. ## Fixed - **`skill-stocktake` and `dialogue` placement.** v2.2.0 described both as sitting at the "LLM Workflow โ†” Autonomous Agentic Loop boundary". On code re-read both have fixed control flow + bounded LLMHigh4/30/2026
v2.1.0## Highlights - **Pluggable generation backend** via the new `LLMBackend` Protocol (`core/llm.py`). Sanitization, circuit breaker, and untrusted-content wrapping stay in core; the backend slot is what the [`contemplative-agent-cloud`](https://github.com/shimo4228/contemplative-agent-cloud) add-on fills to run the same CLI through Claude or GPT without a local Ollama. Default behavior unchanged โ€” no backend = built-in Ollama HTTP. - **Local two-agent dialogue** โ€” `contemplative-agent dialogue HOHigh4/21/2026
v2.0.0# v2.0.0 โ€” Yogฤcฤra Memory Architecture This release overhauls the Layer 2 knowledge store. The old discrete-category classification is retired; patterns are now stored as embedding coordinates, carry provenance / bitemporal validity / retrieval-aware forgetting, and co-evolve with their neighbors. The Yogฤcฤra eight-consciousness model is adopted as the explicit architectural frame ([ADR-0017](../docs/adr/0017-yogacara-eight-consciousness-frame.md)): episode log โ†” sense-streams, knowledge โ†” ฤlHigh4/16/2026
v1.3.1## ADR-0015: One External Adapter Per Agent Codifies the principle that a single agent process owns at most one adapter producing externally-observable side effects. Workflows spanning multiple external surfaces (e.g. posting *and* payment) must be decomposed into separate agent processes with separated authority, rather than bolted onto one. This mirrors decades of organizational practice โ€” segregation of duties, four-eyes approval, least privilege, Unix philosophy โ€” which the broader LLM ageHigh4/7/2026
v1.3.0## Highlights ### Deterministic Dedup Gates Two-layer dedup against runaway self-similarity in agent output. The existing LLM-based gates (`check_topic_novelty`, `score_relevance`) are probabilistic and were observed to let through 40 near-identical self-posts in 7 days during the weekly analysis window of 2026-04-05. v1.3.0 adds deterministic gates that **complement** (not replace) the LLM gates: - **Self-post pipeline**: prefix-5 stem + Jaccard similarity gate over `(title โˆช topic_summary)Medium4/7/2026
v1.2.0## Highlights ### Weekly Analysis Reports `contemplative-agent install-schedule --weekly-analysis` generates automated weekly behavioral analysis using `claude -p` via launchd. Reports track identity drift, knowledge growth, and constitutional evolution over 7-day windows. ### Deduplication Scalability Knowledge store deduplication now uses importance-score decay filtering, preventing unbounded growth as episode logs accumulate. LLM parse robustness improved with code fence stripping and commaMedium3/31/2026
v1.1.0## What's New ### Template Selection for Init `contemplative-agent init --template stoic` โ€” choose from 10 ethical framework templates (Contemplative, Stoic, Utilitarian, Deontologist, Care Ethicist, Pragmatist, Existentialist, Contractarian, Cynic, Narrativist). Copies identity, constitution, skills, and rules from the selected template. ### Importance Scoring Stability Fixed silent fallback to 0.5 when the 9B model returns malformed JSON. Now strips code fences, falls back to comma-separatedMedium3/29/2026
v1.0.0## v1.0.0 โ€” Pipeline Complete, Experimentation Platform Established The full self-improvement pipeline is complete and validated through a constitution amendment experiment. ### What's in this release - **Complete distillation pipeline** (ADR-0008 through ADR-0012): 2-stage extraction, episode classification, importance scoring, semantic dedup, human approval gates - **Constitution amendment**: `amend-constitution` command closes the ethical feedback loop โ€” the agent can propose updates to itMedium3/27/2026
v0.3.0Four architectural principles for sustainable autonomous agents: - **Secure-First** โ€” Capabilities are structurally absent - **Minimal Dependency** โ€” No fixed host or platform lock-in - **Knowledge Cycle (AKC)** โ€” Static knowledge never stays - **Memory Dynamics** โ€” 3-layer distillation with decay Contemplative AI axioms (Laukkonen et al., 2025) included as optional behavioral preset โ€” a philosophical resonance, not an architectural dependency. ### Changes since v0.2.0 - Design Principles secMedium3/25/2026
v0.2.0## What's New ### Meditation Adapter (Experimental) - Active inferenceโ€“based meditation simulation inspired by ["A Beautiful Loop"](https://pubmed.ncbi.nlm.nih.gov/40750007/) (Laukkonen, Friston & Chandaria, 2025) - POMDP built from episode logs, iterated belief updates with no external input (temporal flattening + counterfactual pruning) - `contemplative-agent meditate [--days N] [--cycles N] [--dry-run]` - Results saved to `config/meditation/results.json` as raw data for future analysis - NotLow3/21/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

Secure-Agent-LauncherBlock AI agent access to sensitive macOS paths and log all actions to protect private data during command execution.main@2026-06-03
openclaw-superpowers44 plug-and-play skills for OpenClaw โ€” self-modifying AI agent with cron scheduling, security guardrails, persistent memory, knowledge graphs, and MCP health monitoring. Your agent teaches itself new main@2026-05-03
Agent_Life_SpaceSelf-hosted autonomous AI agent โ€” 9-layer cascade, Docker sandbox, encrypted vault, review/build/control plane, 1407+ testsv1.36.0
aiA productive AI coworker that learns, self-improves, and ships work.main@2026-06-06
E2BOpen-source, secure environment with real-world tools for enterprise-grade agents.e2b@2.28.0

More from shimo4228

agent-knowledge-cycleMemory-centric self-improving harness for AI agents. Six-phase cycle + Security by Absence. ADRs, JSON schemas, and a dependency-free Python reference.

More in Security

E2BOpen-source, secure environment with real-world tools for enterprise-grade agents.
vm0the easiest way to run natural language-described workflows automatically
AgenvoyAgentic framework | Self-improving memory | Pluggable tool extensions | Sandbox execution
clineAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.