Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
448c312
fix: wire real LLM model into MemoryReranker at runtime
QUSETIONS May 19, 2026
63d8e05
chore: cleanup root directory — remove 35+ stale files
QUSETIONS May 19, 2026
449c616
feat: MemoryPipeline state persistence across sessions
QUSETIONS May 19, 2026
0b11e0c
docs: README — reframe as AI coding agent with cybernetic self-regula…
QUSETIONS May 19, 2026
665302a
test: agent flow E2E integration tests
QUSETIONS May 19, 2026
8e66ba8
test: memory + agent stress tests (12 cases, 735 total)
QUSETIONS May 19, 2026
c1ab899
fix: wire api_retry classification + tool timeout + unified token est
QUSETIONS May 19, 2026
ec1f262
fix: agent loop cleanup + TUI SIGWINCH handler
QUSETIONS May 19, 2026
f6fcc85
fix: configurable model timeout + context trim fix + debug logging
QUSETIONS May 19, 2026
661c5c5
fix: session delta leak + duplicate tool + read_file OSError
QUSETIONS May 19, 2026
8dbc584
fix: calculate_backoff parameter name + CI lint step
QUSETIONS May 19, 2026
13603ef
chore: ruff lint — 137 auto-fixes across 60+ files
QUSETIONS May 19, 2026
374985e
fix: remaining lint — missing imports, module-level re, unused modify…
QUSETIONS May 19, 2026
66ad970
test: CyberneticOrchestrator smoke test — 15 controllers init
QUSETIONS May 19, 2026
4ce3a01
feat: smarter agent nudges + tool-specific error guidance
QUSETIONS May 20, 2026
3983d77
feat: memory quality feedback loop — task outcome → memory utility
QUSETIONS May 20, 2026
9923f9d
fix: memory feedback safe scope + indentation fix
QUSETIONS May 20, 2026
763825c
refactor: add CyberneticOrchestrator import + type annotation to agen…
QUSETIONS May 20, 2026
28f353c
refactor: CyberneticOrchestrator fully wired into agent_loop
QUSETIONS May 20, 2026
3b2f45e
chore: final lint cleanup — unused imports, dead code across 45 files
QUSETIONS May 20, 2026
5598427
feat: ControlSignal — 10/13 fields now actuated (was 2/13)
QUSETIONS May 20, 2026
2d89718
feat: zero-dep sparse vector search + stronger self-healing
QUSETIONS May 20, 2026
3a02f85
feat: fuzzy slash-command autocomplete + performance profile
QUSETIONS May 20, 2026
227e7dd
fix: _win_read_one_key import + _dense_store init
QUSETIONS May 20, 2026
db1722c
cleanup: use Any for agent_loop controller type annotations
QUSETIONS May 20, 2026
414f2e9
docs: add MiniCode skill definition (discoverable via /skills)
QUSETIONS May 20, 2026
ebf9b77
feat: TUI quality — diff coloring + word editing + bracketed paste
QUSETIONS May 20, 2026
3ef2c51
feat: transcript scrollbar — visual position indicator
QUSETIONS May 20, 2026
689a333
feat: multi-line input (Ctrl+J) + transcript Ctrl+Home/End
QUSETIONS May 20, 2026
ed4e6f2
feat: tool spinner animation + bracketed paste handling
QUSETIONS May 20, 2026
cf244fa
feat: terminal focus tracking — auto-refresh on tab switch
QUSETIONS May 20, 2026
0cd95a4
feat: code line numbers + tool elapsed time + diff stats + sync output
QUSETIONS May 20, 2026
bf3d4ed
feat: DeepSeek V4 Pro model support
QUSETIONS May 20, 2026
ef6c775
feat: DeepSeek V4 Pro integration + thinking block round-trip
QUSETIONS May 20, 2026
d326bc6
fix: disable extended thinking for non-Anthropic endpoints
QUSETIONS May 20, 2026
b351770
fix: Reranker now uses real LLM via next() — no more BM25 fallback
QUSETIONS May 21, 2026
22bbe09
docs: README rewrite — real API test results, cleaner structure
QUSETIONS May 21, 2026
fb91325
docs: definitive README — MiniCode as self-regulating coding agent
QUSETIONS May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .claude/skills/minicode/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# MiniCode — Cybernetic AI Coding Agent

Terminal-first AI coding assistant with closed-loop self-regulation via
engineering cybernetics (15+ controllers: PID ×4, Kalman ×5).

## Quick Start

```bash
python -m minicode.main
```

Mock mode (no API key):
```bash
MINI_CODE_MODEL_MODE=mock python -m minicode.main
```

## Core Capabilities

### Self-Regulating Agent
MiniCode auto-regulates during coding tasks:
- **Context overflow** → auto-compaction (PID-controlled, 4-phase progressive)
- **Tool errors** → auto-healing (8 fault types with recovery strategies)
- **Cost spikes** → budget PID tightens token allocation
- **Agent oscillation** → feedback PID dampens, reduces concurrency
- **Task stalling** → progress controller suggests strategy changes
- **Degraded performance** → signals model upgrade, boosts token budget

### Memory That Learns
- Cross-session memory with 3-layer retrieval pipeline
- Domain-aware search (auto-detects frontend/backend/database/devops)
- LLM-curated memory injection (top-15 → curated top-3 + conflict detection)
- Background curator agent consolidates, validates, and links memories
- Multi-tier storage: WORKING → SHORT_TERM → LONG_TERM → ARCHIVAL

### Terminal Experience
- TUI with real-time transcript, diff coloring, permission prompts
- 30 built-in tools (file ops, code search, git, web, testing, batch)
- 26 discoverable skills
- MCP server integration
- Session persistence with autosave

## Slash Commands

| Command | Description |
|---------|-------------|
| `/help` | Show all commands |
| `/memory` | Memory system status (tiers, domains, insights) |
| `/context` | Context window usage |
| `/cybernetics` | Controller health dashboard |
| `/skills` | List discoverable skills |
| `/config-paths` | Show config file locations |
| `/permissions` | Show permission store location |
| `/mcp` | List MCP servers and tools |
| `/exit` | Save session and exit |

## Configuration

`~/.mini-code/settings.json`:
```json
{
"model": "claude-sonnet-4-20250514",
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-token"
}
}
```

Environment variables:
- `MINICODE_MODEL_TIMEOUT` — API timeout in seconds (default: 60)
- `MINICODE_TOOL_TIMEOUT` — Tool execution timeout (default: 120)
- `MINI_CODE_MODEL_MODE=mock` — Run without API key

## Architecture

```
User Input → Intent Parser → Task Object → Pipeline Plan → Agent Loop
┌───────────────────────────────────────────────┤
│ │
Sense (sensors) → Control (PID×4, Kalman×5) → Act (tools, budget)
│ │
└─────────── Feedback (dual-PID) ←──────────────┘
```

## Memory Pipeline

```
Task + Files → DomainClassifier → BM25 + SparseVector(RRF) → Value(rel×fresh×util)
→ LLM Reranker (top-15 → top-3 + summary) → Spreading Activation → Inject
```

Ablation: P@3 0.35→0.72, Noise 65%→7% (80 memories × 20 queries)

## Testing

```bash
pytest # 737 passed, 2 skipped
```
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
- name: Compile sources
run: python -m compileall -q minicode tests

- name: Lint (ruff)
run: |
python -m pip install ruff
python -m ruff check minicode/ --select=E,F --ignore=E501

- name: Run packaging smoke tests
run: python -m pytest tests/test_packaging.py -q

Expand Down
Binary file removed 01f3f208d18640739ac3e3174cc690b5.png
Binary file not shown.
Binary file removed 45dbbe3d0f3060735999e8b2ff768c8e.png
Binary file not shown.
Loading
Loading