Skip to main content

IABEE: AI CLI coding agent with LLM, tool-use loop, MCP bridge, sessions, streaming output, and secure runtime controls.

Project description

IABEE (Python Package)

IABEE is a AI CLI coding agent framework.
It supports real LLM calls, tool-use loops, MCP bridge, session persistence, streaming outputs, and security-focused runtime controls.

Implemented Features

  • CLI entry and modes
    • text / json / stream-json output
    • session list and resume (--list-sessions, --resume)
  • Command layer
    • /help, /files, /mcp-tools
    • command disable rules (--disabled-commands)
  • Tool layer
    • local tools: FileRead, FileWrite, Glob, Grep
    • MCP tools discovery and invocation
    • allow/deny filters (--allowed-tools, --disallowed-tools)
  • LLM integration (OpenAI-compatible API)
    • providers for qwen, kimi, minimax
    • dynamic model/base-url/api-key-env/api-key runtime settings
    • configurable timeout/retry/backoff/max-tokens
    • multi-step tool-use loop (tool_calls -> tool_result -> follow-up)
  • Context and prompt assembly
    • system prompt composition with project file sampling
    • extra system prompt injection (--llm-system-prompt)
  • Long conversation controls
    • conversation window compression by message count and serialized size
    • configurable limits (--convo-max-messages, --convo-max-chars)
  • Tool safety and reliability
    • tool call budget and circuit breaker
    • configurable thresholds (--tool-call-budget, --tool-error-threshold)
    • tool result truncation before feeding back to LLM (tool_result_max_chars)
  • Security controls
    • settings sanitizer removes secret-like keys
    • subprocess environment whitelist for MCP/Rust calls
    • error masking to prevent key leakage
  • Auditing
    • per-session tool audit logs under .iabee/audit/*.jsonl
    • records sanitized inputs, key result summary, and duration

Quick Start

iabee "分析这个项目并给出改造建议" \
  --llm-provider qwen \
  --llm-model qwen-plus \
  --llm-api-key-env DASHSCOPE_API_KEY \
  --llm-max-steps 6 \
  --tool-call-budget 8 \
  --tool-error-threshold 3 \
  --convo-max-messages 16 \
  --convo-max-chars 10000 \
  --output-format stream-json

Dynamic LLM Configuration

  • Provider/model/base URL:
    • --llm-provider, --llm-model, --llm-api-base
  • Secret (recommended):
    • --llm-api-key-env <ENV_NAME>
  • Secret (runtime direct, less safe):
    • --llm-api-key <SECRET>
  • Reliability:
    • --llm-timeout-sec, --llm-retry, --llm-retry-backoff-ms, --llm-max-tokens

MCP / Tool Usage

iabee "/mcp-tools" --output-format json
iabee "/mcp-call local echo {\"msg\":\"hello\"}" --output-format stream-json
iabee "/read src/iabee/main.py" --output-format stream-json

Session Usage

iabee --list-sessions
iabee --resume <session_id> --output-format text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iabee-0.1.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iabee-0.1.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file iabee-0.1.1.tar.gz.

File metadata

  • Download URL: iabee-0.1.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for iabee-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b91c9566ba63c6e3c741cb72235ab3abcfe2a9eafb31f1a969bcee78eb520731
MD5 924e0f2bfe960250c13d7b1c1d544b44
BLAKE2b-256 60cadcff78b52a5c3d128af4366f99c23a69d262193641e1061b421606e352a1

See more details on using hashes here.

File details

Details for the file iabee-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iabee-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for iabee-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 798e934331a69740318faa0f18efc6e4d808e6ef064b28e4c4f8f8fd2be1bab8
MD5 000dcef25bf795ce8d4102b75a80d35c
BLAKE2b-256 24f93e52e41c26bb2eddd84b949789e06e5aae5d648a9d3a58fa26748047ebd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page