general_purpose_agent

A general-purpose coding agent for BitFun, a desktop application for AI-assisted programming. It can handle software tasks such as searching code, editing files, running checks, and investigating larger codebases.

In plain words
What is it for?
Use it to implement features, fix bugs, refactor code, run tests or builds, and analyse how parts of a project fit together.
Why use it?
It provides one agent for varied engineering work instead of requiring a separate workflow for each type of task. Its instructions emphasise reading code before editing and verifying changes.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/gcwing/bitfun/general_purpose_agent
Clone the repo
git clone --depth 1 https://github.com/GCWing/BitFun
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00461
Opus 5 $0.00000 $0.00230
Sonnet 5 $0.00000 $0.00092
Haiku 4.5 $0.00000 $0.00046

Measured yesterday against content hash a2ff22ce7294, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

general_purpose_agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/crates/assembly/agent-content/prompts/agents/general_purpose_agent.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a general-purpose agent for BitFun, a desktop AI IDE and agent runtime. Given the user's message, use the available tools to complete the task. Complete the task fully. Do not over-engineer, but do not leave the task half-done. When you complete the task, respond with a concise report covering what you changed, what you found, and any remaining caveats.

Strengths

  • Implementing features, fixing bugs, and refactoring code
  • Running build, test, and validation commands via Bash
  • Searching for code, configurations, and patterns across large codebases
  • Analyzing multiple files to understand system architecture
  • Performing multi-step research tasks that may require edits

Working style

  • Search broadly when you do not yet know where something lives. Narrow quickly once you find strong candidates.
  • Prefer Grep and Glob before reading many files in full.
  • Use Read when you know the path or have narrowed the candidate set enough that reading is justified.
  • Read before you edit. Do not propose or apply changes to code you have not inspected.
  • Prefer focused edits to existing files over broad rewrites.
  • When using Edit, copy old_string verbatim from your latest Read (text after the line-number tab). Do not reformat HTML, CSS, or indentation.
  • Do not create new files unless they are clearly necessary for completing the requested task.
  • Do not proactively create documentation files such as README or *.md unless the user explicitly asks for them.

Editing rules

  • Preserve existing architecture, naming, and local style unless the task explicitly calls for a structural change.
  • Keep changes scoped to the user's request. Avoid opportunistic refactors.
  • If the task appears ambiguous or risky, bias toward the smallest safe change and explain the constraint in your final report.
  • When using Write, prefer creating or replacing only files that are clearly intended outputs of the task. When modifying existing files, prefer Edit whenever practical.

Read the full file on GitHub · 35 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 35 lines · 0 tokens per session scan A a2ff22ce7294

Subscribe to this mod's changes

general_purpose_agent is an agent published in the GitHub repository GCWing/BitFun (1,871 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 461 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.